@kl1/contracts 1.0.52 → 1.0.54

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 (50) hide show
  1. package/dist/index.js +1298 -1133
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1296 -1133
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/channel/index.d.ts +2273 -1438
  6. package/dist/src/channel/index.d.ts.map +1 -1
  7. package/dist/src/chat/index.d.ts +6678 -1560
  8. package/dist/src/chat/index.d.ts.map +1 -1
  9. package/dist/src/chat/schema.d.ts +180 -180
  10. package/dist/src/chat/validation.d.ts +371 -440
  11. package/dist/src/chat/validation.d.ts.map +1 -1
  12. package/dist/src/comment/index.d.ts +3026 -1010
  13. package/dist/src/comment/index.d.ts.map +1 -1
  14. package/dist/src/comment/schema.d.ts +780 -188
  15. package/dist/src/comment/schema.d.ts.map +1 -1
  16. package/dist/src/contact/index.d.ts +296 -296
  17. package/dist/src/contact/schema.d.ts +20 -20
  18. package/dist/src/contact/validation.d.ts +150 -150
  19. package/dist/src/contract.d.ts +20591 -8915
  20. package/dist/src/contract.d.ts.map +1 -1
  21. package/dist/src/cx-log/index.d.ts +240 -240
  22. package/dist/src/cx-log/schema.d.ts +180 -180
  23. package/dist/src/index.d.ts +2 -0
  24. package/dist/src/index.d.ts.map +1 -1
  25. package/dist/src/instagram/index.d.ts +100 -100
  26. package/dist/src/line/index.d.ts +301 -6
  27. package/dist/src/line/index.d.ts.map +1 -1
  28. package/dist/src/line/schema.d.ts +301 -6
  29. package/dist/src/line/schema.d.ts.map +1 -1
  30. package/dist/src/messenger/index.d.ts +100 -100
  31. package/dist/src/telephony-cdr/index.d.ts +180 -180
  32. package/dist/src/telephony-cdr/schema.d.ts +40 -40
  33. package/dist/src/ticket/index.d.ts +4128 -1040
  34. package/dist/src/ticket/index.d.ts.map +1 -1
  35. package/dist/src/ticket/schema.d.ts +512 -40
  36. package/dist/src/ticket/schema.d.ts.map +1 -1
  37. package/dist/src/{mail/mail-server.d.ts → upload/index.d.ts} +72 -91
  38. package/dist/src/upload/index.d.ts.map +1 -0
  39. package/dist/src/upload/schema.d.ts +14 -0
  40. package/dist/src/upload/schema.d.ts.map +1 -1
  41. package/dist/src/upload/validation.d.ts +2 -0
  42. package/dist/src/upload/validation.d.ts.map +1 -0
  43. package/dist/src/user-presence-status-log/index.d.ts +63 -0
  44. package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/src/app/index.d.ts +0 -17
  47. package/dist/src/app/index.d.ts.map +0 -1
  48. package/dist/src/mail/mail-server.d.ts.map +0 -1
  49. package/dist/src/platform-contact/schema.d.ts +0 -30
  50. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -2,57 +2,13 @@ import z from 'zod';
2
2
  import { ConnectChannelSchema } from './validation';
3
3
  export type ConnectChannelRequest = z.TypeOf<typeof ConnectChannelSchema>;
4
4
  export declare const channelContract: {
5
- connectChannel: {
6
- body: z.ZodObject<{
7
- name: z.ZodString;
8
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
9
- metadata: z.ZodObject<{
10
- id: z.ZodString;
11
- name: z.ZodString;
12
- accessToken: z.ZodString;
13
- additionalCredentials: z.ZodOptional<z.ZodAny>;
14
- }, "strip", z.ZodTypeAny, {
15
- id: string;
16
- name: string;
17
- accessToken: string;
18
- additionalCredentials?: any;
19
- }, {
20
- id: string;
21
- name: string;
22
- accessToken: string;
23
- additionalCredentials?: any;
24
- }>;
25
- platformId: z.ZodString;
26
- connectedUserId: z.ZodString;
27
- }, "strip", z.ZodTypeAny, {
28
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
29
- name: string;
30
- metadata: {
31
- id: string;
32
- name: string;
33
- accessToken: string;
34
- additionalCredentials?: any;
35
- };
36
- platformId: string;
37
- connectedUserId: string;
38
- }, {
39
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
40
- name: string;
41
- metadata: {
42
- id: string;
43
- name: string;
44
- accessToken: string;
45
- additionalCredentials?: any;
46
- };
47
- platformId: string;
48
- connectedUserId: string;
49
- }>;
50
- summary: "Connect message channel";
51
- method: "POST";
5
+ getChannels: {
6
+ summary: "Get Channels";
7
+ method: "GET";
52
8
  responses: {
53
9
  200: z.ZodObject<{
54
10
  requestId: z.ZodString;
55
- channel: z.ZodOptional<z.ZodObject<{
11
+ data: z.ZodArray<z.ZodOptional<z.ZodObject<{
56
12
  id: z.ZodOptional<z.ZodString>;
57
13
  createdAt: z.ZodOptional<z.ZodDate>;
58
14
  updatedAt: z.ZodOptional<z.ZodDate>;
@@ -411,10 +367,9 @@ export declare const channelContract: {
411
367
  telephonySignature: string | null;
412
368
  };
413
369
  } | undefined;
414
- }>>;
370
+ }>>, "many">;
415
371
  }, "strip", z.ZodTypeAny, {
416
- requestId: string;
417
- channel?: {
372
+ data: ({
418
373
  id?: string | undefined;
419
374
  createdAt?: Date | undefined;
420
375
  updatedAt?: Date | undefined;
@@ -477,10 +432,10 @@ export declare const channelContract: {
477
432
  telephonySignature: string | null;
478
433
  };
479
434
  } | undefined;
480
- } | undefined;
481
- }, {
435
+ } | undefined)[];
482
436
  requestId: string;
483
- channel?: {
437
+ }, {
438
+ data: ({
484
439
  id?: string | undefined;
485
440
  createdAt?: Date | undefined;
486
441
  updatedAt?: Date | undefined;
@@ -543,20 +498,11 @@ export declare const channelContract: {
543
498
  telephonySignature: string | null;
544
499
  };
545
500
  } | undefined;
546
- } | undefined;
547
- }>;
548
- 408: z.ZodObject<{
549
- message: z.ZodString;
550
- error: z.ZodAny;
551
- }, "strip", z.ZodTypeAny, {
552
- message: string;
553
- error?: any;
554
- }, {
555
- message: string;
556
- error?: any;
501
+ } | undefined)[];
502
+ requestId: string;
557
503
  }>;
558
504
  };
559
- path: "channel/connect";
505
+ path: "channel/";
560
506
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
561
507
  'x-tenant': z.ZodString;
562
508
  authorization: z.ZodString;
@@ -574,230 +520,316 @@ export declare const channelContract: {
574
520
  'x-client-timezone'?: string | undefined;
575
521
  }>>>;
576
522
  };
577
- disconnectChannel: {
578
- body: null;
579
- summary: "Disconnect message channel";
580
- method: "POST";
581
- pathParams: z.ZodObject<{
582
- channelId: z.ZodString;
583
- }, "strip", z.ZodTypeAny, {
584
- channelId: string;
585
- }, {
586
- channelId: string;
587
- }>;
588
- responses: {
589
- 200: z.ZodObject<{
590
- requestId: z.ZodString;
591
- channel: z.ZodOptional<z.ZodObject<{
592
- id: z.ZodOptional<z.ZodString>;
593
- createdAt: z.ZodOptional<z.ZodDate>;
594
- updatedAt: z.ZodOptional<z.ZodDate>;
595
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
596
- name: z.ZodOptional<z.ZodString>;
597
- type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
598
- metadata: z.ZodOptional<z.ZodObject<{
599
- id: z.ZodString;
600
- name: z.ZodString;
601
- accessToken: z.ZodString;
602
- additionalCredentials: z.ZodOptional<z.ZodAny>;
603
- }, "strip", z.ZodTypeAny, {
604
- id: string;
605
- name: string;
606
- accessToken: string;
607
- additionalCredentials?: any;
608
- }, {
609
- id: string;
610
- name: string;
611
- accessToken: string;
612
- additionalCredentials?: any;
613
- }>>;
614
- brandName: z.ZodOptional<z.ZodString>;
615
- platformId: z.ZodOptional<z.ZodString>;
616
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
617
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
618
- connectedUserName: z.ZodOptional<z.ZodString>;
619
- connectedUserId: z.ZodOptional<z.ZodString>;
620
- actor: z.ZodOptional<z.ZodObject<{
621
- id: z.ZodString;
622
- createdAt: z.ZodDate;
623
- updatedAt: z.ZodDate;
624
- deletedAt: z.ZodNullable<z.ZodDate>;
625
- name: z.ZodString;
626
- email: z.ZodString;
627
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
628
- password: z.ZodString;
629
- address: z.ZodNullable<z.ZodString>;
630
- phone: z.ZodNullable<z.ZodString>;
631
- notificationCount: z.ZodNullable<z.ZodNumber>;
632
- roles: z.ZodArray<z.ZodObject<{
633
- id: z.ZodString;
634
- createdAt: z.ZodDate;
635
- updatedAt: z.ZodDate;
636
- deletedAt: z.ZodNullable<z.ZodDate>;
637
- systemName: z.ZodString;
638
- displayName: z.ZodString;
639
- description: z.ZodNullable<z.ZodString>;
640
- permissions: z.ZodArray<z.ZodObject<{
523
+ messenger: {
524
+ getPages: {
525
+ method: "GET";
526
+ query: z.ZodObject<{
527
+ accessToken: z.ZodString;
528
+ userId: z.ZodString;
529
+ }, "strip", z.ZodTypeAny, {
530
+ userId: string;
531
+ accessToken: string;
532
+ }, {
533
+ userId: string;
534
+ accessToken: string;
535
+ }>;
536
+ responses: {
537
+ 200: z.ZodObject<{
538
+ requestId: z.ZodString;
539
+ data: z.ZodObject<{
540
+ data: z.ZodArray<z.ZodObject<{
541
+ access_token: z.ZodString;
542
+ category: z.ZodString;
543
+ category_list: z.ZodArray<z.ZodObject<{
641
544
  id: z.ZodString;
642
- createdAt: z.ZodDate;
643
- updatedAt: z.ZodDate;
644
- deletedAt: z.ZodNullable<z.ZodDate>;
645
- systemName: z.ZodString;
646
- displayName: z.ZodString;
647
- description: z.ZodNullable<z.ZodString>;
545
+ name: z.ZodString;
648
546
  }, "strip", z.ZodTypeAny, {
649
547
  id: string;
650
- description: string | null;
651
- createdAt: Date;
652
- updatedAt: Date;
653
- deletedAt: Date | null;
654
- systemName: string;
655
- displayName: string;
548
+ name: string;
656
549
  }, {
657
550
  id: string;
658
- description: string | null;
659
- createdAt: Date;
660
- updatedAt: Date;
661
- deletedAt: Date | null;
662
- systemName: string;
663
- displayName: string;
551
+ name: string;
664
552
  }>, "many">;
553
+ id: z.ZodString;
554
+ name: z.ZodString;
555
+ tasks: z.ZodArray<z.ZodString, "many">;
665
556
  }, "strip", z.ZodTypeAny, {
666
557
  id: string;
667
- description: string | null;
668
- createdAt: Date;
669
- updatedAt: Date;
670
- deletedAt: Date | null;
671
- systemName: string;
672
- displayName: string;
673
- permissions: {
558
+ name: string;
559
+ category: string;
560
+ access_token: string;
561
+ category_list: {
674
562
  id: string;
675
- description: string | null;
676
- createdAt: Date;
677
- updatedAt: Date;
678
- deletedAt: Date | null;
679
- systemName: string;
680
- displayName: string;
563
+ name: string;
681
564
  }[];
565
+ tasks: string[];
682
566
  }, {
683
567
  id: string;
684
- description: string | null;
685
- createdAt: Date;
686
- updatedAt: Date;
687
- deletedAt: Date | null;
688
- systemName: string;
689
- displayName: string;
690
- permissions: {
568
+ name: string;
569
+ category: string;
570
+ access_token: string;
571
+ category_list: {
691
572
  id: string;
692
- description: string | null;
693
- createdAt: Date;
694
- updatedAt: Date;
695
- deletedAt: Date | null;
696
- systemName: string;
697
- displayName: string;
573
+ name: string;
698
574
  }[];
575
+ tasks: string[];
699
576
  }>, "many">;
700
- extension: z.ZodObject<{
701
- id: z.ZodString;
702
- createdAt: z.ZodDate;
703
- updatedAt: z.ZodDate;
704
- deletedAt: z.ZodNullable<z.ZodDate>;
705
- userId: z.ZodNullable<z.ZodString>;
706
- sipServerUrl: z.ZodString;
707
- sipUserName: z.ZodString;
708
- webphoneLoginUser: z.ZodString;
709
- extensionId: z.ZodNullable<z.ZodString>;
710
- extensionName: z.ZodString;
711
- telephonySignature: z.ZodNullable<z.ZodString>;
577
+ paging: z.ZodOptional<z.ZodObject<{
578
+ cursors: z.ZodObject<{
579
+ before: z.ZodOptional<z.ZodString>;
580
+ after: z.ZodOptional<z.ZodString>;
581
+ }, "strip", z.ZodTypeAny, {
582
+ before?: string | undefined;
583
+ after?: string | undefined;
584
+ }, {
585
+ before?: string | undefined;
586
+ after?: string | undefined;
587
+ }>;
712
588
  }, "strip", z.ZodTypeAny, {
713
- id: string;
714
- createdAt: Date;
715
- updatedAt: Date;
716
- deletedAt: Date | null;
717
- userId: string | null;
718
- sipServerUrl: string;
719
- sipUserName: string;
720
- webphoneLoginUser: string;
721
- extensionId: string | null;
722
- extensionName: string;
723
- telephonySignature: string | null;
589
+ cursors: {
590
+ before?: string | undefined;
591
+ after?: string | undefined;
592
+ };
724
593
  }, {
725
- id: string;
726
- createdAt: Date;
727
- updatedAt: Date;
728
- deletedAt: Date | null;
729
- userId: string | null;
730
- sipServerUrl: string;
731
- sipUserName: string;
732
- webphoneLoginUser: string;
733
- extensionId: string | null;
734
- extensionName: string;
735
- telephonySignature: string | null;
736
- }>;
594
+ cursors: {
595
+ before?: string | undefined;
596
+ after?: string | undefined;
597
+ };
598
+ }>>;
737
599
  }, "strip", z.ZodTypeAny, {
738
- id: string;
739
- address: string | null;
740
- name: string;
741
- email: string;
742
- createdAt: Date;
743
- updatedAt: Date;
744
- deletedAt: Date | null;
745
- emailVerifiedAt: Date | null;
746
- password: string;
747
- phone: string | null;
748
- notificationCount: number | null;
749
- roles: {
600
+ data: {
750
601
  id: string;
751
- description: string | null;
752
- createdAt: Date;
753
- updatedAt: Date;
754
- deletedAt: Date | null;
755
- systemName: string;
756
- displayName: string;
757
- permissions: {
602
+ name: string;
603
+ category: string;
604
+ access_token: string;
605
+ category_list: {
758
606
  id: string;
759
- description: string | null;
760
- createdAt: Date;
761
- updatedAt: Date;
762
- deletedAt: Date | null;
763
- systemName: string;
764
- displayName: string;
607
+ name: string;
765
608
  }[];
609
+ tasks: string[];
766
610
  }[];
767
- extension: {
768
- id: string;
769
- createdAt: Date;
770
- updatedAt: Date;
771
- deletedAt: Date | null;
772
- userId: string | null;
773
- sipServerUrl: string;
774
- sipUserName: string;
775
- webphoneLoginUser: string;
776
- extensionId: string | null;
777
- extensionName: string;
778
- telephonySignature: string | null;
779
- };
611
+ paging?: {
612
+ cursors: {
613
+ before?: string | undefined;
614
+ after?: string | undefined;
615
+ };
616
+ } | undefined;
780
617
  }, {
781
- id: string;
782
- address: string | null;
783
- name: string;
784
- email: string;
785
- createdAt: Date;
786
- updatedAt: Date;
787
- deletedAt: Date | null;
788
- emailVerifiedAt: Date | null;
789
- password: string;
790
- phone: string | null;
791
- notificationCount: number | null;
792
- roles: {
618
+ data: {
793
619
  id: string;
794
- description: string | null;
795
- createdAt: Date;
796
- updatedAt: Date;
797
- deletedAt: Date | null;
798
- systemName: string;
799
- displayName: string;
800
- permissions: {
620
+ name: string;
621
+ category: string;
622
+ access_token: string;
623
+ category_list: {
624
+ id: string;
625
+ name: string;
626
+ }[];
627
+ tasks: string[];
628
+ }[];
629
+ paging?: {
630
+ cursors: {
631
+ before?: string | undefined;
632
+ after?: string | undefined;
633
+ };
634
+ } | undefined;
635
+ }>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ data: {
638
+ data: {
639
+ id: string;
640
+ name: string;
641
+ category: string;
642
+ access_token: string;
643
+ category_list: {
644
+ id: string;
645
+ name: string;
646
+ }[];
647
+ tasks: string[];
648
+ }[];
649
+ paging?: {
650
+ cursors: {
651
+ before?: string | undefined;
652
+ after?: string | undefined;
653
+ };
654
+ } | undefined;
655
+ };
656
+ requestId: string;
657
+ }, {
658
+ data: {
659
+ data: {
660
+ id: string;
661
+ name: string;
662
+ category: string;
663
+ access_token: string;
664
+ category_list: {
665
+ id: string;
666
+ name: string;
667
+ }[];
668
+ tasks: string[];
669
+ }[];
670
+ paging?: {
671
+ cursors: {
672
+ before?: string | undefined;
673
+ after?: string | undefined;
674
+ };
675
+ } | undefined;
676
+ };
677
+ requestId: string;
678
+ }>;
679
+ 500: z.ZodObject<{
680
+ message: z.ZodString;
681
+ error: z.ZodAny;
682
+ }, "strip", z.ZodTypeAny, {
683
+ message: string;
684
+ error?: any;
685
+ }, {
686
+ message: string;
687
+ error?: any;
688
+ }>;
689
+ };
690
+ path: "channel/messenger/pages";
691
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
692
+ 'x-tenant': z.ZodString;
693
+ authorization: z.ZodString;
694
+ 'x-code': z.ZodOptional<z.ZodString>;
695
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ 'x-tenant': string;
698
+ authorization: string;
699
+ 'x-client-timezone': string;
700
+ 'x-code'?: string | undefined;
701
+ }, {
702
+ 'x-tenant': string;
703
+ authorization: string;
704
+ 'x-code'?: string | undefined;
705
+ 'x-client-timezone'?: string | undefined;
706
+ }>>>;
707
+ };
708
+ connect: {
709
+ body: z.ZodObject<{
710
+ name: z.ZodString;
711
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
712
+ metadata: z.ZodObject<{
713
+ id: z.ZodString;
714
+ name: z.ZodString;
715
+ accessToken: z.ZodString;
716
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ id: string;
719
+ name: string;
720
+ accessToken: string;
721
+ additionalCredentials?: any;
722
+ }, {
723
+ id: string;
724
+ name: string;
725
+ accessToken: string;
726
+ additionalCredentials?: any;
727
+ }>;
728
+ platformId: z.ZodString;
729
+ connectedUserId: z.ZodString;
730
+ }, "strip", z.ZodTypeAny, {
731
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
732
+ name: string;
733
+ metadata: {
734
+ id: string;
735
+ name: string;
736
+ accessToken: string;
737
+ additionalCredentials?: any;
738
+ };
739
+ platformId: string;
740
+ connectedUserId: string;
741
+ }, {
742
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
743
+ name: string;
744
+ metadata: {
745
+ id: string;
746
+ name: string;
747
+ accessToken: string;
748
+ additionalCredentials?: any;
749
+ };
750
+ platformId: string;
751
+ connectedUserId: string;
752
+ }>;
753
+ summary: "Connect message channel";
754
+ method: "POST";
755
+ responses: {
756
+ 200: z.ZodObject<{
757
+ requestId: z.ZodString;
758
+ channel: z.ZodOptional<z.ZodObject<{
759
+ id: z.ZodOptional<z.ZodString>;
760
+ createdAt: z.ZodOptional<z.ZodDate>;
761
+ updatedAt: z.ZodOptional<z.ZodDate>;
762
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
763
+ name: z.ZodOptional<z.ZodString>;
764
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
765
+ metadata: z.ZodOptional<z.ZodObject<{
766
+ id: z.ZodString;
767
+ name: z.ZodString;
768
+ accessToken: z.ZodString;
769
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ id: string;
772
+ name: string;
773
+ accessToken: string;
774
+ additionalCredentials?: any;
775
+ }, {
776
+ id: string;
777
+ name: string;
778
+ accessToken: string;
779
+ additionalCredentials?: any;
780
+ }>>;
781
+ brandName: z.ZodOptional<z.ZodString>;
782
+ platformId: z.ZodOptional<z.ZodString>;
783
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
784
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
785
+ connectedUserName: z.ZodOptional<z.ZodString>;
786
+ connectedUserId: z.ZodOptional<z.ZodString>;
787
+ actor: z.ZodOptional<z.ZodObject<{
788
+ id: z.ZodString;
789
+ createdAt: z.ZodDate;
790
+ updatedAt: z.ZodDate;
791
+ deletedAt: z.ZodNullable<z.ZodDate>;
792
+ name: z.ZodString;
793
+ email: z.ZodString;
794
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
795
+ password: z.ZodString;
796
+ address: z.ZodNullable<z.ZodString>;
797
+ phone: z.ZodNullable<z.ZodString>;
798
+ notificationCount: z.ZodNullable<z.ZodNumber>;
799
+ roles: z.ZodArray<z.ZodObject<{
800
+ id: z.ZodString;
801
+ createdAt: z.ZodDate;
802
+ updatedAt: z.ZodDate;
803
+ deletedAt: z.ZodNullable<z.ZodDate>;
804
+ systemName: z.ZodString;
805
+ displayName: z.ZodString;
806
+ description: z.ZodNullable<z.ZodString>;
807
+ permissions: z.ZodArray<z.ZodObject<{
808
+ id: z.ZodString;
809
+ createdAt: z.ZodDate;
810
+ updatedAt: z.ZodDate;
811
+ deletedAt: z.ZodNullable<z.ZodDate>;
812
+ systemName: z.ZodString;
813
+ displayName: z.ZodString;
814
+ description: z.ZodNullable<z.ZodString>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ id: string;
817
+ description: string | null;
818
+ createdAt: Date;
819
+ updatedAt: Date;
820
+ deletedAt: Date | null;
821
+ systemName: string;
822
+ displayName: string;
823
+ }, {
824
+ id: string;
825
+ description: string | null;
826
+ createdAt: Date;
827
+ updatedAt: Date;
828
+ deletedAt: Date | null;
829
+ systemName: string;
830
+ displayName: string;
831
+ }>, "many">;
832
+ }, "strip", z.ZodTypeAny, {
801
833
  id: string;
802
834
  description: string | null;
803
835
  createdAt: Date;
@@ -805,62 +837,126 @@ export declare const channelContract: {
805
837
  deletedAt: Date | null;
806
838
  systemName: string;
807
839
  displayName: string;
808
- }[];
809
- }[];
810
- extension: {
840
+ permissions: {
841
+ id: string;
842
+ description: string | null;
843
+ createdAt: Date;
844
+ updatedAt: Date;
845
+ deletedAt: Date | null;
846
+ systemName: string;
847
+ displayName: string;
848
+ }[];
849
+ }, {
850
+ id: string;
851
+ description: string | null;
852
+ createdAt: Date;
853
+ updatedAt: Date;
854
+ deletedAt: Date | null;
855
+ systemName: string;
856
+ displayName: string;
857
+ permissions: {
858
+ id: string;
859
+ description: string | null;
860
+ createdAt: Date;
861
+ updatedAt: Date;
862
+ deletedAt: Date | null;
863
+ systemName: string;
864
+ displayName: string;
865
+ }[];
866
+ }>, "many">;
867
+ extension: z.ZodObject<{
868
+ id: z.ZodString;
869
+ createdAt: z.ZodDate;
870
+ updatedAt: z.ZodDate;
871
+ deletedAt: z.ZodNullable<z.ZodDate>;
872
+ userId: z.ZodNullable<z.ZodString>;
873
+ sipServerUrl: z.ZodString;
874
+ sipUserName: z.ZodString;
875
+ webphoneLoginUser: z.ZodString;
876
+ extensionId: z.ZodNullable<z.ZodString>;
877
+ extensionName: z.ZodString;
878
+ telephonySignature: z.ZodNullable<z.ZodString>;
879
+ }, "strip", z.ZodTypeAny, {
880
+ id: string;
881
+ createdAt: Date;
882
+ updatedAt: Date;
883
+ deletedAt: Date | null;
884
+ userId: string | null;
885
+ sipServerUrl: string;
886
+ sipUserName: string;
887
+ webphoneLoginUser: string;
888
+ extensionId: string | null;
889
+ extensionName: string;
890
+ telephonySignature: string | null;
891
+ }, {
892
+ id: string;
893
+ createdAt: Date;
894
+ updatedAt: Date;
895
+ deletedAt: Date | null;
896
+ userId: string | null;
897
+ sipServerUrl: string;
898
+ sipUserName: string;
899
+ webphoneLoginUser: string;
900
+ extensionId: string | null;
901
+ extensionName: string;
902
+ telephonySignature: string | null;
903
+ }>;
904
+ }, "strip", z.ZodTypeAny, {
811
905
  id: string;
906
+ address: string | null;
907
+ name: string;
908
+ email: string;
812
909
  createdAt: Date;
813
910
  updatedAt: Date;
814
911
  deletedAt: Date | null;
815
- userId: string | null;
816
- sipServerUrl: string;
817
- sipUserName: string;
818
- webphoneLoginUser: string;
819
- extensionId: string | null;
820
- extensionName: string;
821
- telephonySignature: string | null;
822
- };
823
- }>>;
824
- }, "strip", z.ZodTypeAny, {
825
- id?: string | undefined;
826
- createdAt?: Date | undefined;
827
- updatedAt?: Date | undefined;
828
- deletedAt?: Date | null | undefined;
829
- name?: string | undefined;
830
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
831
- metadata?: {
832
- id: string;
833
- name: string;
834
- accessToken: string;
835
- additionalCredentials?: any;
836
- } | undefined;
837
- brandName?: string | undefined;
838
- platformId?: string | undefined;
839
- status?: boolean | undefined;
840
- isReloginRequired?: boolean | undefined;
841
- connectedUserName?: string | undefined;
842
- connectedUserId?: string | undefined;
843
- actor?: {
844
- id: string;
845
- address: string | null;
846
- name: string;
847
- email: string;
848
- createdAt: Date;
849
- updatedAt: Date;
850
- deletedAt: Date | null;
851
- emailVerifiedAt: Date | null;
852
- password: string;
853
- phone: string | null;
854
- notificationCount: number | null;
855
- roles: {
912
+ emailVerifiedAt: Date | null;
913
+ password: string;
914
+ phone: string | null;
915
+ notificationCount: number | null;
916
+ roles: {
917
+ id: string;
918
+ description: string | null;
919
+ createdAt: Date;
920
+ updatedAt: Date;
921
+ deletedAt: Date | null;
922
+ systemName: string;
923
+ displayName: string;
924
+ permissions: {
925
+ id: string;
926
+ description: string | null;
927
+ createdAt: Date;
928
+ updatedAt: Date;
929
+ deletedAt: Date | null;
930
+ systemName: string;
931
+ displayName: string;
932
+ }[];
933
+ }[];
934
+ extension: {
935
+ id: string;
936
+ createdAt: Date;
937
+ updatedAt: Date;
938
+ deletedAt: Date | null;
939
+ userId: string | null;
940
+ sipServerUrl: string;
941
+ sipUserName: string;
942
+ webphoneLoginUser: string;
943
+ extensionId: string | null;
944
+ extensionName: string;
945
+ telephonySignature: string | null;
946
+ };
947
+ }, {
856
948
  id: string;
857
- description: string | null;
949
+ address: string | null;
950
+ name: string;
951
+ email: string;
858
952
  createdAt: Date;
859
953
  updatedAt: Date;
860
954
  deletedAt: Date | null;
861
- systemName: string;
862
- displayName: string;
863
- permissions: {
955
+ emailVerifiedAt: Date | null;
956
+ password: string;
957
+ phone: string | null;
958
+ notificationCount: number | null;
959
+ roles: {
864
960
  id: string;
865
961
  description: string | null;
866
962
  createdAt: Date;
@@ -868,62 +964,125 @@ export declare const channelContract: {
868
964
  deletedAt: Date | null;
869
965
  systemName: string;
870
966
  displayName: string;
967
+ permissions: {
968
+ id: string;
969
+ description: string | null;
970
+ createdAt: Date;
971
+ updatedAt: Date;
972
+ deletedAt: Date | null;
973
+ systemName: string;
974
+ displayName: string;
975
+ }[];
871
976
  }[];
872
- }[];
873
- extension: {
977
+ extension: {
978
+ id: string;
979
+ createdAt: Date;
980
+ updatedAt: Date;
981
+ deletedAt: Date | null;
982
+ userId: string | null;
983
+ sipServerUrl: string;
984
+ sipUserName: string;
985
+ webphoneLoginUser: string;
986
+ extensionId: string | null;
987
+ extensionName: string;
988
+ telephonySignature: string | null;
989
+ };
990
+ }>>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ id?: string | undefined;
993
+ createdAt?: Date | undefined;
994
+ updatedAt?: Date | undefined;
995
+ deletedAt?: Date | null | undefined;
996
+ name?: string | undefined;
997
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
998
+ metadata?: {
874
999
  id: string;
1000
+ name: string;
1001
+ accessToken: string;
1002
+ additionalCredentials?: any;
1003
+ } | undefined;
1004
+ brandName?: string | undefined;
1005
+ platformId?: string | undefined;
1006
+ status?: boolean | undefined;
1007
+ isReloginRequired?: boolean | undefined;
1008
+ connectedUserName?: string | undefined;
1009
+ connectedUserId?: string | undefined;
1010
+ actor?: {
1011
+ id: string;
1012
+ address: string | null;
1013
+ name: string;
1014
+ email: string;
875
1015
  createdAt: Date;
876
1016
  updatedAt: Date;
877
1017
  deletedAt: Date | null;
878
- userId: string | null;
879
- sipServerUrl: string;
880
- sipUserName: string;
881
- webphoneLoginUser: string;
882
- extensionId: string | null;
883
- extensionName: string;
884
- telephonySignature: string | null;
885
- };
886
- } | undefined;
887
- }, {
888
- id?: string | undefined;
889
- createdAt?: Date | undefined;
890
- updatedAt?: Date | undefined;
891
- deletedAt?: Date | null | undefined;
892
- name?: string | undefined;
893
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
894
- metadata?: {
895
- id: string;
896
- name: string;
897
- accessToken: string;
898
- additionalCredentials?: any;
899
- } | undefined;
900
- brandName?: string | undefined;
901
- platformId?: string | undefined;
902
- status?: boolean | undefined;
903
- isReloginRequired?: boolean | undefined;
904
- connectedUserName?: string | undefined;
905
- connectedUserId?: string | undefined;
906
- actor?: {
907
- id: string;
908
- address: string | null;
909
- name: string;
910
- email: string;
911
- createdAt: Date;
912
- updatedAt: Date;
913
- deletedAt: Date | null;
914
- emailVerifiedAt: Date | null;
915
- password: string;
916
- phone: string | null;
917
- notificationCount: number | null;
918
- roles: {
1018
+ emailVerifiedAt: Date | null;
1019
+ password: string;
1020
+ phone: string | null;
1021
+ notificationCount: number | null;
1022
+ roles: {
1023
+ id: string;
1024
+ description: string | null;
1025
+ createdAt: Date;
1026
+ updatedAt: Date;
1027
+ deletedAt: Date | null;
1028
+ systemName: string;
1029
+ displayName: string;
1030
+ permissions: {
1031
+ id: string;
1032
+ description: string | null;
1033
+ createdAt: Date;
1034
+ updatedAt: Date;
1035
+ deletedAt: Date | null;
1036
+ systemName: string;
1037
+ displayName: string;
1038
+ }[];
1039
+ }[];
1040
+ extension: {
1041
+ id: string;
1042
+ createdAt: Date;
1043
+ updatedAt: Date;
1044
+ deletedAt: Date | null;
1045
+ userId: string | null;
1046
+ sipServerUrl: string;
1047
+ sipUserName: string;
1048
+ webphoneLoginUser: string;
1049
+ extensionId: string | null;
1050
+ extensionName: string;
1051
+ telephonySignature: string | null;
1052
+ };
1053
+ } | undefined;
1054
+ }, {
1055
+ id?: string | undefined;
1056
+ createdAt?: Date | undefined;
1057
+ updatedAt?: Date | undefined;
1058
+ deletedAt?: Date | null | undefined;
1059
+ name?: string | undefined;
1060
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1061
+ metadata?: {
919
1062
  id: string;
920
- description: string | null;
1063
+ name: string;
1064
+ accessToken: string;
1065
+ additionalCredentials?: any;
1066
+ } | undefined;
1067
+ brandName?: string | undefined;
1068
+ platformId?: string | undefined;
1069
+ status?: boolean | undefined;
1070
+ isReloginRequired?: boolean | undefined;
1071
+ connectedUserName?: string | undefined;
1072
+ connectedUserId?: string | undefined;
1073
+ actor?: {
1074
+ id: string;
1075
+ address: string | null;
1076
+ name: string;
1077
+ email: string;
921
1078
  createdAt: Date;
922
1079
  updatedAt: Date;
923
1080
  deletedAt: Date | null;
924
- systemName: string;
925
- displayName: string;
926
- permissions: {
1081
+ emailVerifiedAt: Date | null;
1082
+ password: string;
1083
+ phone: string | null;
1084
+ notificationCount: number | null;
1085
+ roles: {
927
1086
  id: string;
928
1087
  description: string | null;
929
1088
  createdAt: Date;
@@ -931,65 +1090,65 @@ export declare const channelContract: {
931
1090
  deletedAt: Date | null;
932
1091
  systemName: string;
933
1092
  displayName: string;
1093
+ permissions: {
1094
+ id: string;
1095
+ description: string | null;
1096
+ createdAt: Date;
1097
+ updatedAt: Date;
1098
+ deletedAt: Date | null;
1099
+ systemName: string;
1100
+ displayName: string;
1101
+ }[];
934
1102
  }[];
935
- }[];
936
- extension: {
937
- id: string;
938
- createdAt: Date;
939
- updatedAt: Date;
940
- deletedAt: Date | null;
941
- userId: string | null;
942
- sipServerUrl: string;
943
- sipUserName: string;
944
- webphoneLoginUser: string;
945
- extensionId: string | null;
946
- extensionName: string;
947
- telephonySignature: string | null;
948
- };
949
- } | undefined;
950
- }>>;
951
- }, "strip", z.ZodTypeAny, {
952
- requestId: string;
953
- channel?: {
954
- id?: string | undefined;
955
- createdAt?: Date | undefined;
956
- updatedAt?: Date | undefined;
957
- deletedAt?: Date | null | undefined;
958
- name?: string | undefined;
959
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
960
- metadata?: {
961
- id: string;
962
- name: string;
963
- accessToken: string;
964
- additionalCredentials?: any;
965
- } | undefined;
966
- brandName?: string | undefined;
967
- platformId?: string | undefined;
968
- status?: boolean | undefined;
969
- isReloginRequired?: boolean | undefined;
970
- connectedUserName?: string | undefined;
971
- connectedUserId?: string | undefined;
972
- actor?: {
973
- id: string;
974
- address: string | null;
975
- name: string;
976
- email: string;
977
- createdAt: Date;
978
- updatedAt: Date;
979
- deletedAt: Date | null;
980
- emailVerifiedAt: Date | null;
981
- password: string;
982
- phone: string | null;
983
- notificationCount: number | null;
984
- roles: {
1103
+ extension: {
1104
+ id: string;
1105
+ createdAt: Date;
1106
+ updatedAt: Date;
1107
+ deletedAt: Date | null;
1108
+ userId: string | null;
1109
+ sipServerUrl: string;
1110
+ sipUserName: string;
1111
+ webphoneLoginUser: string;
1112
+ extensionId: string | null;
1113
+ extensionName: string;
1114
+ telephonySignature: string | null;
1115
+ };
1116
+ } | undefined;
1117
+ }>>;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ requestId: string;
1120
+ channel?: {
1121
+ id?: string | undefined;
1122
+ createdAt?: Date | undefined;
1123
+ updatedAt?: Date | undefined;
1124
+ deletedAt?: Date | null | undefined;
1125
+ name?: string | undefined;
1126
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1127
+ metadata?: {
985
1128
  id: string;
986
- description: string | null;
1129
+ name: string;
1130
+ accessToken: string;
1131
+ additionalCredentials?: any;
1132
+ } | undefined;
1133
+ brandName?: string | undefined;
1134
+ platformId?: string | undefined;
1135
+ status?: boolean | undefined;
1136
+ isReloginRequired?: boolean | undefined;
1137
+ connectedUserName?: string | undefined;
1138
+ connectedUserId?: string | undefined;
1139
+ actor?: {
1140
+ id: string;
1141
+ address: string | null;
1142
+ name: string;
1143
+ email: string;
987
1144
  createdAt: Date;
988
1145
  updatedAt: Date;
989
1146
  deletedAt: Date | null;
990
- systemName: string;
991
- displayName: string;
992
- permissions: {
1147
+ emailVerifiedAt: Date | null;
1148
+ password: string;
1149
+ phone: string | null;
1150
+ notificationCount: number | null;
1151
+ roles: {
993
1152
  id: string;
994
1153
  description: string | null;
995
1154
  createdAt: Date;
@@ -997,65 +1156,65 @@ export declare const channelContract: {
997
1156
  deletedAt: Date | null;
998
1157
  systemName: string;
999
1158
  displayName: string;
1159
+ permissions: {
1160
+ id: string;
1161
+ description: string | null;
1162
+ createdAt: Date;
1163
+ updatedAt: Date;
1164
+ deletedAt: Date | null;
1165
+ systemName: string;
1166
+ displayName: string;
1167
+ }[];
1000
1168
  }[];
1001
- }[];
1002
- extension: {
1003
- id: string;
1004
- createdAt: Date;
1005
- updatedAt: Date;
1006
- deletedAt: Date | null;
1007
- userId: string | null;
1008
- sipServerUrl: string;
1009
- sipUserName: string;
1010
- webphoneLoginUser: string;
1011
- extensionId: string | null;
1012
- extensionName: string;
1013
- telephonySignature: string | null;
1014
- };
1015
- } | undefined;
1016
- } | undefined;
1017
- }, {
1018
- requestId: string;
1019
- channel?: {
1020
- id?: string | undefined;
1021
- createdAt?: Date | undefined;
1022
- updatedAt?: Date | undefined;
1023
- deletedAt?: Date | null | undefined;
1024
- name?: string | undefined;
1025
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1026
- metadata?: {
1027
- id: string;
1028
- name: string;
1029
- accessToken: string;
1030
- additionalCredentials?: any;
1169
+ extension: {
1170
+ id: string;
1171
+ createdAt: Date;
1172
+ updatedAt: Date;
1173
+ deletedAt: Date | null;
1174
+ userId: string | null;
1175
+ sipServerUrl: string;
1176
+ sipUserName: string;
1177
+ webphoneLoginUser: string;
1178
+ extensionId: string | null;
1179
+ extensionName: string;
1180
+ telephonySignature: string | null;
1181
+ };
1182
+ } | undefined;
1031
1183
  } | undefined;
1032
- brandName?: string | undefined;
1033
- platformId?: string | undefined;
1034
- status?: boolean | undefined;
1035
- isReloginRequired?: boolean | undefined;
1036
- connectedUserName?: string | undefined;
1037
- connectedUserId?: string | undefined;
1038
- actor?: {
1039
- id: string;
1040
- address: string | null;
1041
- name: string;
1042
- email: string;
1043
- createdAt: Date;
1044
- updatedAt: Date;
1045
- deletedAt: Date | null;
1046
- emailVerifiedAt: Date | null;
1047
- password: string;
1048
- phone: string | null;
1049
- notificationCount: number | null;
1050
- roles: {
1184
+ }, {
1185
+ requestId: string;
1186
+ channel?: {
1187
+ id?: string | undefined;
1188
+ createdAt?: Date | undefined;
1189
+ updatedAt?: Date | undefined;
1190
+ deletedAt?: Date | null | undefined;
1191
+ name?: string | undefined;
1192
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1193
+ metadata?: {
1051
1194
  id: string;
1052
- description: string | null;
1195
+ name: string;
1196
+ accessToken: string;
1197
+ additionalCredentials?: any;
1198
+ } | undefined;
1199
+ brandName?: string | undefined;
1200
+ platformId?: string | undefined;
1201
+ status?: boolean | undefined;
1202
+ isReloginRequired?: boolean | undefined;
1203
+ connectedUserName?: string | undefined;
1204
+ connectedUserId?: string | undefined;
1205
+ actor?: {
1206
+ id: string;
1207
+ address: string | null;
1208
+ name: string;
1209
+ email: string;
1053
1210
  createdAt: Date;
1054
1211
  updatedAt: Date;
1055
1212
  deletedAt: Date | null;
1056
- systemName: string;
1057
- displayName: string;
1058
- permissions: {
1213
+ emailVerifiedAt: Date | null;
1214
+ password: string;
1215
+ phone: string | null;
1216
+ notificationCount: number | null;
1217
+ roles: {
1059
1218
  id: string;
1060
1219
  description: string | null;
1061
1220
  createdAt: Date;
@@ -1063,153 +1222,153 @@ export declare const channelContract: {
1063
1222
  deletedAt: Date | null;
1064
1223
  systemName: string;
1065
1224
  displayName: string;
1225
+ permissions: {
1226
+ id: string;
1227
+ description: string | null;
1228
+ createdAt: Date;
1229
+ updatedAt: Date;
1230
+ deletedAt: Date | null;
1231
+ systemName: string;
1232
+ displayName: string;
1233
+ }[];
1066
1234
  }[];
1067
- }[];
1068
- extension: {
1069
- id: string;
1070
- createdAt: Date;
1071
- updatedAt: Date;
1072
- deletedAt: Date | null;
1073
- userId: string | null;
1074
- sipServerUrl: string;
1075
- sipUserName: string;
1076
- webphoneLoginUser: string;
1077
- extensionId: string | null;
1078
- extensionName: string;
1079
- telephonySignature: string | null;
1080
- };
1235
+ extension: {
1236
+ id: string;
1237
+ createdAt: Date;
1238
+ updatedAt: Date;
1239
+ deletedAt: Date | null;
1240
+ userId: string | null;
1241
+ sipServerUrl: string;
1242
+ sipUserName: string;
1243
+ webphoneLoginUser: string;
1244
+ extensionId: string | null;
1245
+ extensionName: string;
1246
+ telephonySignature: string | null;
1247
+ };
1248
+ } | undefined;
1081
1249
  } | undefined;
1082
- } | undefined;
1083
- }>;
1084
- 408: z.ZodObject<{
1085
- message: z.ZodString;
1086
- error: z.ZodAny;
1250
+ }>;
1251
+ 408: z.ZodObject<{
1252
+ message: z.ZodString;
1253
+ error: z.ZodAny;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ message: string;
1256
+ error?: any;
1257
+ }, {
1258
+ message: string;
1259
+ error?: any;
1260
+ }>;
1261
+ };
1262
+ path: "channel/messenger/connect";
1263
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1264
+ 'x-tenant': z.ZodString;
1265
+ authorization: z.ZodString;
1266
+ 'x-code': z.ZodOptional<z.ZodString>;
1267
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
1087
1268
  }, "strip", z.ZodTypeAny, {
1088
- message: string;
1089
- error?: any;
1269
+ 'x-tenant': string;
1270
+ authorization: string;
1271
+ 'x-client-timezone': string;
1272
+ 'x-code'?: string | undefined;
1090
1273
  }, {
1091
- message: string;
1092
- error?: any;
1093
- }>;
1274
+ 'x-tenant': string;
1275
+ authorization: string;
1276
+ 'x-code'?: string | undefined;
1277
+ 'x-client-timezone'?: string | undefined;
1278
+ }>>>;
1094
1279
  };
1095
- path: "channel/disconnect/:channelId";
1096
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1097
- 'x-tenant': z.ZodString;
1098
- authorization: z.ZodString;
1099
- 'x-code': z.ZodOptional<z.ZodString>;
1100
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
1101
- }, "strip", z.ZodTypeAny, {
1102
- 'x-tenant': string;
1103
- authorization: string;
1104
- 'x-client-timezone': string;
1105
- 'x-code'?: string | undefined;
1106
- }, {
1107
- 'x-tenant': string;
1108
- authorization: string;
1109
- 'x-code'?: string | undefined;
1110
- 'x-client-timezone'?: string | undefined;
1111
- }>>>;
1112
- };
1113
- reloginChannel: {
1114
- body: z.ZodObject<{
1115
- name: z.ZodString;
1116
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
1117
- metadata: z.ZodObject<{
1118
- id: z.ZodString;
1280
+ relogin: {
1281
+ body: z.ZodObject<{
1119
1282
  name: z.ZodString;
1120
- accessToken: z.ZodString;
1121
- additionalCredentials: z.ZodOptional<z.ZodAny>;
1283
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
1284
+ metadata: z.ZodObject<{
1285
+ id: z.ZodString;
1286
+ name: z.ZodString;
1287
+ accessToken: z.ZodString;
1288
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ id: string;
1291
+ name: string;
1292
+ accessToken: string;
1293
+ additionalCredentials?: any;
1294
+ }, {
1295
+ id: string;
1296
+ name: string;
1297
+ accessToken: string;
1298
+ additionalCredentials?: any;
1299
+ }>;
1300
+ platformId: z.ZodString;
1301
+ connectedUserId: z.ZodString;
1122
1302
  }, "strip", z.ZodTypeAny, {
1123
- id: string;
1303
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1124
1304
  name: string;
1125
- accessToken: string;
1126
- additionalCredentials?: any;
1305
+ metadata: {
1306
+ id: string;
1307
+ name: string;
1308
+ accessToken: string;
1309
+ additionalCredentials?: any;
1310
+ };
1311
+ platformId: string;
1312
+ connectedUserId: string;
1127
1313
  }, {
1128
- id: string;
1314
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1129
1315
  name: string;
1130
- accessToken: string;
1131
- additionalCredentials?: any;
1316
+ metadata: {
1317
+ id: string;
1318
+ name: string;
1319
+ accessToken: string;
1320
+ additionalCredentials?: any;
1321
+ };
1322
+ platformId: string;
1323
+ connectedUserId: string;
1132
1324
  }>;
1133
- platformId: z.ZodString;
1134
- connectedUserId: z.ZodString;
1135
- }, "strip", z.ZodTypeAny, {
1136
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1137
- name: string;
1138
- metadata: {
1139
- id: string;
1140
- name: string;
1141
- accessToken: string;
1142
- additionalCredentials?: any;
1143
- };
1144
- platformId: string;
1145
- connectedUserId: string;
1146
- }, {
1147
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1148
- name: string;
1149
- metadata: {
1150
- id: string;
1151
- name: string;
1152
- accessToken: string;
1153
- additionalCredentials?: any;
1154
- };
1155
- platformId: string;
1156
- connectedUserId: string;
1157
- }>;
1158
- summary: "Relogin message channel";
1159
- method: "POST";
1160
- responses: {
1161
- 200: z.ZodObject<{
1162
- requestId: z.ZodString;
1163
- channel: z.ZodOptional<z.ZodObject<{
1164
- id: z.ZodOptional<z.ZodString>;
1165
- createdAt: z.ZodOptional<z.ZodDate>;
1166
- updatedAt: z.ZodOptional<z.ZodDate>;
1167
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1168
- name: z.ZodOptional<z.ZodString>;
1169
- type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
1170
- metadata: z.ZodOptional<z.ZodObject<{
1171
- id: z.ZodString;
1172
- name: z.ZodString;
1173
- accessToken: z.ZodString;
1174
- additionalCredentials: z.ZodOptional<z.ZodAny>;
1175
- }, "strip", z.ZodTypeAny, {
1176
- id: string;
1177
- name: string;
1178
- accessToken: string;
1179
- additionalCredentials?: any;
1180
- }, {
1181
- id: string;
1182
- name: string;
1183
- accessToken: string;
1184
- additionalCredentials?: any;
1185
- }>>;
1186
- brandName: z.ZodOptional<z.ZodString>;
1187
- platformId: z.ZodOptional<z.ZodString>;
1188
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
1189
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
1190
- connectedUserName: z.ZodOptional<z.ZodString>;
1191
- connectedUserId: z.ZodOptional<z.ZodString>;
1192
- actor: z.ZodOptional<z.ZodObject<{
1193
- id: z.ZodString;
1194
- createdAt: z.ZodDate;
1195
- updatedAt: z.ZodDate;
1196
- deletedAt: z.ZodNullable<z.ZodDate>;
1197
- name: z.ZodString;
1198
- email: z.ZodString;
1199
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1200
- password: z.ZodString;
1201
- address: z.ZodNullable<z.ZodString>;
1202
- phone: z.ZodNullable<z.ZodString>;
1203
- notificationCount: z.ZodNullable<z.ZodNumber>;
1204
- roles: z.ZodArray<z.ZodObject<{
1325
+ summary: "Relogin message channel";
1326
+ method: "POST";
1327
+ responses: {
1328
+ 200: z.ZodObject<{
1329
+ requestId: z.ZodString;
1330
+ channel: z.ZodOptional<z.ZodObject<{
1331
+ id: z.ZodOptional<z.ZodString>;
1332
+ createdAt: z.ZodOptional<z.ZodDate>;
1333
+ updatedAt: z.ZodOptional<z.ZodDate>;
1334
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1335
+ name: z.ZodOptional<z.ZodString>;
1336
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
1337
+ metadata: z.ZodOptional<z.ZodObject<{
1338
+ id: z.ZodString;
1339
+ name: z.ZodString;
1340
+ accessToken: z.ZodString;
1341
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ id: string;
1344
+ name: string;
1345
+ accessToken: string;
1346
+ additionalCredentials?: any;
1347
+ }, {
1348
+ id: string;
1349
+ name: string;
1350
+ accessToken: string;
1351
+ additionalCredentials?: any;
1352
+ }>>;
1353
+ brandName: z.ZodOptional<z.ZodString>;
1354
+ platformId: z.ZodOptional<z.ZodString>;
1355
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
1356
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
1357
+ connectedUserName: z.ZodOptional<z.ZodString>;
1358
+ connectedUserId: z.ZodOptional<z.ZodString>;
1359
+ actor: z.ZodOptional<z.ZodObject<{
1205
1360
  id: z.ZodString;
1206
1361
  createdAt: z.ZodDate;
1207
1362
  updatedAt: z.ZodDate;
1208
1363
  deletedAt: z.ZodNullable<z.ZodDate>;
1209
- systemName: z.ZodString;
1210
- displayName: z.ZodString;
1211
- description: z.ZodNullable<z.ZodString>;
1212
- permissions: z.ZodArray<z.ZodObject<{
1364
+ name: z.ZodString;
1365
+ email: z.ZodString;
1366
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1367
+ password: z.ZodString;
1368
+ address: z.ZodNullable<z.ZodString>;
1369
+ phone: z.ZodNullable<z.ZodString>;
1370
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1371
+ roles: z.ZodArray<z.ZodObject<{
1213
1372
  id: z.ZodString;
1214
1373
  createdAt: z.ZodDate;
1215
1374
  updatedAt: z.ZodDate;
@@ -1217,6 +1376,31 @@ export declare const channelContract: {
1217
1376
  systemName: z.ZodString;
1218
1377
  displayName: z.ZodString;
1219
1378
  description: z.ZodNullable<z.ZodString>;
1379
+ permissions: z.ZodArray<z.ZodObject<{
1380
+ id: z.ZodString;
1381
+ createdAt: z.ZodDate;
1382
+ updatedAt: z.ZodDate;
1383
+ deletedAt: z.ZodNullable<z.ZodDate>;
1384
+ systemName: z.ZodString;
1385
+ displayName: z.ZodString;
1386
+ description: z.ZodNullable<z.ZodString>;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ id: string;
1389
+ description: string | null;
1390
+ createdAt: Date;
1391
+ updatedAt: Date;
1392
+ deletedAt: Date | null;
1393
+ systemName: string;
1394
+ displayName: string;
1395
+ }, {
1396
+ id: string;
1397
+ description: string | null;
1398
+ createdAt: Date;
1399
+ updatedAt: Date;
1400
+ deletedAt: Date | null;
1401
+ systemName: string;
1402
+ displayName: string;
1403
+ }>, "many">;
1220
1404
  }, "strip", z.ZodTypeAny, {
1221
1405
  id: string;
1222
1406
  description: string | null;
@@ -1225,6 +1409,15 @@ export declare const channelContract: {
1225
1409
  deletedAt: Date | null;
1226
1410
  systemName: string;
1227
1411
  displayName: string;
1412
+ permissions: {
1413
+ id: string;
1414
+ description: string | null;
1415
+ createdAt: Date;
1416
+ updatedAt: Date;
1417
+ deletedAt: Date | null;
1418
+ systemName: string;
1419
+ displayName: string;
1420
+ }[];
1228
1421
  }, {
1229
1422
  id: string;
1230
1423
  description: string | null;
@@ -1233,16 +1426,66 @@ export declare const channelContract: {
1233
1426
  deletedAt: Date | null;
1234
1427
  systemName: string;
1235
1428
  displayName: string;
1429
+ permissions: {
1430
+ id: string;
1431
+ description: string | null;
1432
+ createdAt: Date;
1433
+ updatedAt: Date;
1434
+ deletedAt: Date | null;
1435
+ systemName: string;
1436
+ displayName: string;
1437
+ }[];
1236
1438
  }>, "many">;
1439
+ extension: z.ZodObject<{
1440
+ id: z.ZodString;
1441
+ createdAt: z.ZodDate;
1442
+ updatedAt: z.ZodDate;
1443
+ deletedAt: z.ZodNullable<z.ZodDate>;
1444
+ userId: z.ZodNullable<z.ZodString>;
1445
+ sipServerUrl: z.ZodString;
1446
+ sipUserName: z.ZodString;
1447
+ webphoneLoginUser: z.ZodString;
1448
+ extensionId: z.ZodNullable<z.ZodString>;
1449
+ extensionName: z.ZodString;
1450
+ telephonySignature: z.ZodNullable<z.ZodString>;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ id: string;
1453
+ createdAt: Date;
1454
+ updatedAt: Date;
1455
+ deletedAt: Date | null;
1456
+ userId: string | null;
1457
+ sipServerUrl: string;
1458
+ sipUserName: string;
1459
+ webphoneLoginUser: string;
1460
+ extensionId: string | null;
1461
+ extensionName: string;
1462
+ telephonySignature: string | null;
1463
+ }, {
1464
+ id: string;
1465
+ createdAt: Date;
1466
+ updatedAt: Date;
1467
+ deletedAt: Date | null;
1468
+ userId: string | null;
1469
+ sipServerUrl: string;
1470
+ sipUserName: string;
1471
+ webphoneLoginUser: string;
1472
+ extensionId: string | null;
1473
+ extensionName: string;
1474
+ telephonySignature: string | null;
1475
+ }>;
1237
1476
  }, "strip", z.ZodTypeAny, {
1238
1477
  id: string;
1239
- description: string | null;
1478
+ address: string | null;
1479
+ name: string;
1480
+ email: string;
1240
1481
  createdAt: Date;
1241
1482
  updatedAt: Date;
1242
1483
  deletedAt: Date | null;
1243
- systemName: string;
1244
- displayName: string;
1245
- permissions: {
1484
+ emailVerifiedAt: Date | null;
1485
+ password: string;
1486
+ phone: string | null;
1487
+ notificationCount: number | null;
1488
+ roles: {
1246
1489
  id: string;
1247
1490
  description: string | null;
1248
1491
  createdAt: Date;
@@ -1250,83 +1493,42 @@ export declare const channelContract: {
1250
1493
  deletedAt: Date | null;
1251
1494
  systemName: string;
1252
1495
  displayName: string;
1496
+ permissions: {
1497
+ id: string;
1498
+ description: string | null;
1499
+ createdAt: Date;
1500
+ updatedAt: Date;
1501
+ deletedAt: Date | null;
1502
+ systemName: string;
1503
+ displayName: string;
1504
+ }[];
1253
1505
  }[];
1254
- }, {
1255
- id: string;
1256
- description: string | null;
1257
- createdAt: Date;
1258
- updatedAt: Date;
1259
- deletedAt: Date | null;
1260
- systemName: string;
1261
- displayName: string;
1262
- permissions: {
1506
+ extension: {
1263
1507
  id: string;
1264
- description: string | null;
1265
1508
  createdAt: Date;
1266
1509
  updatedAt: Date;
1267
1510
  deletedAt: Date | null;
1268
- systemName: string;
1269
- displayName: string;
1270
- }[];
1271
- }>, "many">;
1272
- extension: z.ZodObject<{
1273
- id: z.ZodString;
1274
- createdAt: z.ZodDate;
1275
- updatedAt: z.ZodDate;
1276
- deletedAt: z.ZodNullable<z.ZodDate>;
1277
- userId: z.ZodNullable<z.ZodString>;
1278
- sipServerUrl: z.ZodString;
1279
- sipUserName: z.ZodString;
1280
- webphoneLoginUser: z.ZodString;
1281
- extensionId: z.ZodNullable<z.ZodString>;
1282
- extensionName: z.ZodString;
1283
- telephonySignature: z.ZodNullable<z.ZodString>;
1284
- }, "strip", z.ZodTypeAny, {
1285
- id: string;
1286
- createdAt: Date;
1287
- updatedAt: Date;
1288
- deletedAt: Date | null;
1289
- userId: string | null;
1290
- sipServerUrl: string;
1291
- sipUserName: string;
1292
- webphoneLoginUser: string;
1293
- extensionId: string | null;
1294
- extensionName: string;
1295
- telephonySignature: string | null;
1511
+ userId: string | null;
1512
+ sipServerUrl: string;
1513
+ sipUserName: string;
1514
+ webphoneLoginUser: string;
1515
+ extensionId: string | null;
1516
+ extensionName: string;
1517
+ telephonySignature: string | null;
1518
+ };
1296
1519
  }, {
1297
1520
  id: string;
1521
+ address: string | null;
1522
+ name: string;
1523
+ email: string;
1298
1524
  createdAt: Date;
1299
1525
  updatedAt: Date;
1300
1526
  deletedAt: Date | null;
1301
- userId: string | null;
1302
- sipServerUrl: string;
1303
- sipUserName: string;
1304
- webphoneLoginUser: string;
1305
- extensionId: string | null;
1306
- extensionName: string;
1307
- telephonySignature: string | null;
1308
- }>;
1309
- }, "strip", z.ZodTypeAny, {
1310
- id: string;
1311
- address: string | null;
1312
- name: string;
1313
- email: string;
1314
- createdAt: Date;
1315
- updatedAt: Date;
1316
- deletedAt: Date | null;
1317
- emailVerifiedAt: Date | null;
1318
- password: string;
1319
- phone: string | null;
1320
- notificationCount: number | null;
1321
- roles: {
1322
- id: string;
1323
- description: string | null;
1324
- createdAt: Date;
1325
- updatedAt: Date;
1326
- deletedAt: Date | null;
1327
- systemName: string;
1328
- displayName: string;
1329
- permissions: {
1527
+ emailVerifiedAt: Date | null;
1528
+ password: string;
1529
+ phone: string | null;
1530
+ notificationCount: number | null;
1531
+ roles: {
1330
1532
  id: string;
1331
1533
  description: string | null;
1332
1534
  createdAt: Date;
@@ -1334,105 +1536,62 @@ export declare const channelContract: {
1334
1536
  deletedAt: Date | null;
1335
1537
  systemName: string;
1336
1538
  displayName: string;
1539
+ permissions: {
1540
+ id: string;
1541
+ description: string | null;
1542
+ createdAt: Date;
1543
+ updatedAt: Date;
1544
+ deletedAt: Date | null;
1545
+ systemName: string;
1546
+ displayName: string;
1547
+ }[];
1337
1548
  }[];
1338
- }[];
1339
- extension: {
1340
- id: string;
1341
- createdAt: Date;
1342
- updatedAt: Date;
1343
- deletedAt: Date | null;
1344
- userId: string | null;
1345
- sipServerUrl: string;
1346
- sipUserName: string;
1347
- webphoneLoginUser: string;
1348
- extensionId: string | null;
1349
- extensionName: string;
1350
- telephonySignature: string | null;
1351
- };
1352
- }, {
1353
- id: string;
1354
- address: string | null;
1355
- name: string;
1356
- email: string;
1357
- createdAt: Date;
1358
- updatedAt: Date;
1359
- deletedAt: Date | null;
1360
- emailVerifiedAt: Date | null;
1361
- password: string;
1362
- phone: string | null;
1363
- notificationCount: number | null;
1364
- roles: {
1365
- id: string;
1366
- description: string | null;
1367
- createdAt: Date;
1368
- updatedAt: Date;
1369
- deletedAt: Date | null;
1370
- systemName: string;
1371
- displayName: string;
1372
- permissions: {
1549
+ extension: {
1373
1550
  id: string;
1374
- description: string | null;
1375
1551
  createdAt: Date;
1376
1552
  updatedAt: Date;
1377
1553
  deletedAt: Date | null;
1378
- systemName: string;
1379
- displayName: string;
1380
- }[];
1381
- }[];
1382
- extension: {
1383
- id: string;
1384
- createdAt: Date;
1385
- updatedAt: Date;
1386
- deletedAt: Date | null;
1387
- userId: string | null;
1388
- sipServerUrl: string;
1389
- sipUserName: string;
1390
- webphoneLoginUser: string;
1391
- extensionId: string | null;
1392
- extensionName: string;
1393
- telephonySignature: string | null;
1394
- };
1395
- }>>;
1396
- }, "strip", z.ZodTypeAny, {
1397
- id?: string | undefined;
1398
- createdAt?: Date | undefined;
1399
- updatedAt?: Date | undefined;
1400
- deletedAt?: Date | null | undefined;
1401
- name?: string | undefined;
1402
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1403
- metadata?: {
1404
- id: string;
1405
- name: string;
1406
- accessToken: string;
1407
- additionalCredentials?: any;
1408
- } | undefined;
1409
- brandName?: string | undefined;
1410
- platformId?: string | undefined;
1411
- status?: boolean | undefined;
1412
- isReloginRequired?: boolean | undefined;
1413
- connectedUserName?: string | undefined;
1414
- connectedUserId?: string | undefined;
1415
- actor?: {
1416
- id: string;
1417
- address: string | null;
1418
- name: string;
1419
- email: string;
1420
- createdAt: Date;
1421
- updatedAt: Date;
1422
- deletedAt: Date | null;
1423
- emailVerifiedAt: Date | null;
1424
- password: string;
1425
- phone: string | null;
1426
- notificationCount: number | null;
1427
- roles: {
1554
+ userId: string | null;
1555
+ sipServerUrl: string;
1556
+ sipUserName: string;
1557
+ webphoneLoginUser: string;
1558
+ extensionId: string | null;
1559
+ extensionName: string;
1560
+ telephonySignature: string | null;
1561
+ };
1562
+ }>>;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ id?: string | undefined;
1565
+ createdAt?: Date | undefined;
1566
+ updatedAt?: Date | undefined;
1567
+ deletedAt?: Date | null | undefined;
1568
+ name?: string | undefined;
1569
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1570
+ metadata?: {
1428
1571
  id: string;
1429
- description: string | null;
1572
+ name: string;
1573
+ accessToken: string;
1574
+ additionalCredentials?: any;
1575
+ } | undefined;
1576
+ brandName?: string | undefined;
1577
+ platformId?: string | undefined;
1578
+ status?: boolean | undefined;
1579
+ isReloginRequired?: boolean | undefined;
1580
+ connectedUserName?: string | undefined;
1581
+ connectedUserId?: string | undefined;
1582
+ actor?: {
1583
+ id: string;
1584
+ address: string | null;
1585
+ name: string;
1586
+ email: string;
1430
1587
  createdAt: Date;
1431
1588
  updatedAt: Date;
1432
1589
  deletedAt: Date | null;
1433
- systemName: string;
1434
- displayName: string;
1435
- permissions: {
1590
+ emailVerifiedAt: Date | null;
1591
+ password: string;
1592
+ phone: string | null;
1593
+ notificationCount: number | null;
1594
+ roles: {
1436
1595
  id: string;
1437
1596
  description: string | null;
1438
1597
  createdAt: Date;
@@ -1440,62 +1599,62 @@ export declare const channelContract: {
1440
1599
  deletedAt: Date | null;
1441
1600
  systemName: string;
1442
1601
  displayName: string;
1602
+ permissions: {
1603
+ id: string;
1604
+ description: string | null;
1605
+ createdAt: Date;
1606
+ updatedAt: Date;
1607
+ deletedAt: Date | null;
1608
+ systemName: string;
1609
+ displayName: string;
1610
+ }[];
1443
1611
  }[];
1444
- }[];
1445
- extension: {
1446
- id: string;
1447
- createdAt: Date;
1448
- updatedAt: Date;
1449
- deletedAt: Date | null;
1450
- userId: string | null;
1451
- sipServerUrl: string;
1452
- sipUserName: string;
1453
- webphoneLoginUser: string;
1454
- extensionId: string | null;
1455
- extensionName: string;
1456
- telephonySignature: string | null;
1457
- };
1458
- } | undefined;
1459
- }, {
1460
- id?: string | undefined;
1461
- createdAt?: Date | undefined;
1462
- updatedAt?: Date | undefined;
1463
- deletedAt?: Date | null | undefined;
1464
- name?: string | undefined;
1465
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1466
- metadata?: {
1467
- id: string;
1468
- name: string;
1469
- accessToken: string;
1470
- additionalCredentials?: any;
1471
- } | undefined;
1472
- brandName?: string | undefined;
1473
- platformId?: string | undefined;
1474
- status?: boolean | undefined;
1475
- isReloginRequired?: boolean | undefined;
1476
- connectedUserName?: string | undefined;
1477
- connectedUserId?: string | undefined;
1478
- actor?: {
1479
- id: string;
1480
- address: string | null;
1481
- name: string;
1482
- email: string;
1483
- createdAt: Date;
1484
- updatedAt: Date;
1485
- deletedAt: Date | null;
1486
- emailVerifiedAt: Date | null;
1487
- password: string;
1488
- phone: string | null;
1489
- notificationCount: number | null;
1490
- roles: {
1612
+ extension: {
1613
+ id: string;
1614
+ createdAt: Date;
1615
+ updatedAt: Date;
1616
+ deletedAt: Date | null;
1617
+ userId: string | null;
1618
+ sipServerUrl: string;
1619
+ sipUserName: string;
1620
+ webphoneLoginUser: string;
1621
+ extensionId: string | null;
1622
+ extensionName: string;
1623
+ telephonySignature: string | null;
1624
+ };
1625
+ } | undefined;
1626
+ }, {
1627
+ id?: string | undefined;
1628
+ createdAt?: Date | undefined;
1629
+ updatedAt?: Date | undefined;
1630
+ deletedAt?: Date | null | undefined;
1631
+ name?: string | undefined;
1632
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1633
+ metadata?: {
1491
1634
  id: string;
1492
- description: string | null;
1635
+ name: string;
1636
+ accessToken: string;
1637
+ additionalCredentials?: any;
1638
+ } | undefined;
1639
+ brandName?: string | undefined;
1640
+ platformId?: string | undefined;
1641
+ status?: boolean | undefined;
1642
+ isReloginRequired?: boolean | undefined;
1643
+ connectedUserName?: string | undefined;
1644
+ connectedUserId?: string | undefined;
1645
+ actor?: {
1646
+ id: string;
1647
+ address: string | null;
1648
+ name: string;
1649
+ email: string;
1493
1650
  createdAt: Date;
1494
1651
  updatedAt: Date;
1495
1652
  deletedAt: Date | null;
1496
- systemName: string;
1497
- displayName: string;
1498
- permissions: {
1653
+ emailVerifiedAt: Date | null;
1654
+ password: string;
1655
+ phone: string | null;
1656
+ notificationCount: number | null;
1657
+ roles: {
1499
1658
  id: string;
1500
1659
  description: string | null;
1501
1660
  createdAt: Date;
@@ -1503,65 +1662,65 @@ export declare const channelContract: {
1503
1662
  deletedAt: Date | null;
1504
1663
  systemName: string;
1505
1664
  displayName: string;
1665
+ permissions: {
1666
+ id: string;
1667
+ description: string | null;
1668
+ createdAt: Date;
1669
+ updatedAt: Date;
1670
+ deletedAt: Date | null;
1671
+ systemName: string;
1672
+ displayName: string;
1673
+ }[];
1506
1674
  }[];
1507
- }[];
1508
- extension: {
1509
- id: string;
1510
- createdAt: Date;
1511
- updatedAt: Date;
1512
- deletedAt: Date | null;
1513
- userId: string | null;
1514
- sipServerUrl: string;
1515
- sipUserName: string;
1516
- webphoneLoginUser: string;
1517
- extensionId: string | null;
1518
- extensionName: string;
1519
- telephonySignature: string | null;
1520
- };
1521
- } | undefined;
1522
- }>>;
1523
- }, "strip", z.ZodTypeAny, {
1524
- requestId: string;
1525
- channel?: {
1526
- id?: string | undefined;
1527
- createdAt?: Date | undefined;
1528
- updatedAt?: Date | undefined;
1529
- deletedAt?: Date | null | undefined;
1530
- name?: string | undefined;
1531
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1532
- metadata?: {
1533
- id: string;
1534
- name: string;
1535
- accessToken: string;
1536
- additionalCredentials?: any;
1537
- } | undefined;
1538
- brandName?: string | undefined;
1539
- platformId?: string | undefined;
1540
- status?: boolean | undefined;
1541
- isReloginRequired?: boolean | undefined;
1542
- connectedUserName?: string | undefined;
1543
- connectedUserId?: string | undefined;
1544
- actor?: {
1545
- id: string;
1546
- address: string | null;
1547
- name: string;
1548
- email: string;
1549
- createdAt: Date;
1550
- updatedAt: Date;
1551
- deletedAt: Date | null;
1552
- emailVerifiedAt: Date | null;
1553
- password: string;
1554
- phone: string | null;
1555
- notificationCount: number | null;
1556
- roles: {
1675
+ extension: {
1676
+ id: string;
1677
+ createdAt: Date;
1678
+ updatedAt: Date;
1679
+ deletedAt: Date | null;
1680
+ userId: string | null;
1681
+ sipServerUrl: string;
1682
+ sipUserName: string;
1683
+ webphoneLoginUser: string;
1684
+ extensionId: string | null;
1685
+ extensionName: string;
1686
+ telephonySignature: string | null;
1687
+ };
1688
+ } | undefined;
1689
+ }>>;
1690
+ }, "strip", z.ZodTypeAny, {
1691
+ requestId: string;
1692
+ channel?: {
1693
+ id?: string | undefined;
1694
+ createdAt?: Date | undefined;
1695
+ updatedAt?: Date | undefined;
1696
+ deletedAt?: Date | null | undefined;
1697
+ name?: string | undefined;
1698
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1699
+ metadata?: {
1557
1700
  id: string;
1558
- description: string | null;
1701
+ name: string;
1702
+ accessToken: string;
1703
+ additionalCredentials?: any;
1704
+ } | undefined;
1705
+ brandName?: string | undefined;
1706
+ platformId?: string | undefined;
1707
+ status?: boolean | undefined;
1708
+ isReloginRequired?: boolean | undefined;
1709
+ connectedUserName?: string | undefined;
1710
+ connectedUserId?: string | undefined;
1711
+ actor?: {
1712
+ id: string;
1713
+ address: string | null;
1714
+ name: string;
1715
+ email: string;
1559
1716
  createdAt: Date;
1560
1717
  updatedAt: Date;
1561
1718
  deletedAt: Date | null;
1562
- systemName: string;
1563
- displayName: string;
1564
- permissions: {
1719
+ emailVerifiedAt: Date | null;
1720
+ password: string;
1721
+ phone: string | null;
1722
+ notificationCount: number | null;
1723
+ roles: {
1565
1724
  id: string;
1566
1725
  description: string | null;
1567
1726
  createdAt: Date;
@@ -1569,65 +1728,65 @@ export declare const channelContract: {
1569
1728
  deletedAt: Date | null;
1570
1729
  systemName: string;
1571
1730
  displayName: string;
1731
+ permissions: {
1732
+ id: string;
1733
+ description: string | null;
1734
+ createdAt: Date;
1735
+ updatedAt: Date;
1736
+ deletedAt: Date | null;
1737
+ systemName: string;
1738
+ displayName: string;
1739
+ }[];
1572
1740
  }[];
1573
- }[];
1574
- extension: {
1575
- id: string;
1576
- createdAt: Date;
1577
- updatedAt: Date;
1578
- deletedAt: Date | null;
1579
- userId: string | null;
1580
- sipServerUrl: string;
1581
- sipUserName: string;
1582
- webphoneLoginUser: string;
1583
- extensionId: string | null;
1584
- extensionName: string;
1585
- telephonySignature: string | null;
1586
- };
1587
- } | undefined;
1588
- } | undefined;
1589
- }, {
1590
- requestId: string;
1591
- channel?: {
1592
- id?: string | undefined;
1593
- createdAt?: Date | undefined;
1594
- updatedAt?: Date | undefined;
1595
- deletedAt?: Date | null | undefined;
1596
- name?: string | undefined;
1597
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1598
- metadata?: {
1599
- id: string;
1600
- name: string;
1601
- accessToken: string;
1602
- additionalCredentials?: any;
1741
+ extension: {
1742
+ id: string;
1743
+ createdAt: Date;
1744
+ updatedAt: Date;
1745
+ deletedAt: Date | null;
1746
+ userId: string | null;
1747
+ sipServerUrl: string;
1748
+ sipUserName: string;
1749
+ webphoneLoginUser: string;
1750
+ extensionId: string | null;
1751
+ extensionName: string;
1752
+ telephonySignature: string | null;
1753
+ };
1754
+ } | undefined;
1603
1755
  } | undefined;
1604
- brandName?: string | undefined;
1605
- platformId?: string | undefined;
1606
- status?: boolean | undefined;
1607
- isReloginRequired?: boolean | undefined;
1608
- connectedUserName?: string | undefined;
1609
- connectedUserId?: string | undefined;
1610
- actor?: {
1611
- id: string;
1612
- address: string | null;
1613
- name: string;
1614
- email: string;
1615
- createdAt: Date;
1616
- updatedAt: Date;
1617
- deletedAt: Date | null;
1618
- emailVerifiedAt: Date | null;
1619
- password: string;
1620
- phone: string | null;
1621
- notificationCount: number | null;
1622
- roles: {
1756
+ }, {
1757
+ requestId: string;
1758
+ channel?: {
1759
+ id?: string | undefined;
1760
+ createdAt?: Date | undefined;
1761
+ updatedAt?: Date | undefined;
1762
+ deletedAt?: Date | null | undefined;
1763
+ name?: string | undefined;
1764
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1765
+ metadata?: {
1623
1766
  id: string;
1624
- description: string | null;
1767
+ name: string;
1768
+ accessToken: string;
1769
+ additionalCredentials?: any;
1770
+ } | undefined;
1771
+ brandName?: string | undefined;
1772
+ platformId?: string | undefined;
1773
+ status?: boolean | undefined;
1774
+ isReloginRequired?: boolean | undefined;
1775
+ connectedUserName?: string | undefined;
1776
+ connectedUserId?: string | undefined;
1777
+ actor?: {
1778
+ id: string;
1779
+ address: string | null;
1780
+ name: string;
1781
+ email: string;
1625
1782
  createdAt: Date;
1626
1783
  updatedAt: Date;
1627
1784
  deletedAt: Date | null;
1628
- systemName: string;
1629
- displayName: string;
1630
- permissions: {
1785
+ emailVerifiedAt: Date | null;
1786
+ password: string;
1787
+ phone: string | null;
1788
+ notificationCount: number | null;
1789
+ roles: {
1631
1790
  id: string;
1632
1791
  description: string | null;
1633
1792
  createdAt: Date;
@@ -1635,109 +1794,117 @@ export declare const channelContract: {
1635
1794
  deletedAt: Date | null;
1636
1795
  systemName: string;
1637
1796
  displayName: string;
1797
+ permissions: {
1798
+ id: string;
1799
+ description: string | null;
1800
+ createdAt: Date;
1801
+ updatedAt: Date;
1802
+ deletedAt: Date | null;
1803
+ systemName: string;
1804
+ displayName: string;
1805
+ }[];
1638
1806
  }[];
1639
- }[];
1640
- extension: {
1641
- id: string;
1642
- createdAt: Date;
1643
- updatedAt: Date;
1644
- deletedAt: Date | null;
1645
- userId: string | null;
1646
- sipServerUrl: string;
1647
- sipUserName: string;
1648
- webphoneLoginUser: string;
1649
- extensionId: string | null;
1650
- extensionName: string;
1651
- telephonySignature: string | null;
1652
- };
1807
+ extension: {
1808
+ id: string;
1809
+ createdAt: Date;
1810
+ updatedAt: Date;
1811
+ deletedAt: Date | null;
1812
+ userId: string | null;
1813
+ sipServerUrl: string;
1814
+ sipUserName: string;
1815
+ webphoneLoginUser: string;
1816
+ extensionId: string | null;
1817
+ extensionName: string;
1818
+ telephonySignature: string | null;
1819
+ };
1820
+ } | undefined;
1653
1821
  } | undefined;
1654
- } | undefined;
1655
- }>;
1656
- 408: z.ZodObject<{
1657
- message: z.ZodString;
1658
- error: z.ZodAny;
1822
+ }>;
1823
+ 408: z.ZodObject<{
1824
+ message: z.ZodString;
1825
+ error: z.ZodAny;
1826
+ }, "strip", z.ZodTypeAny, {
1827
+ message: string;
1828
+ error?: any;
1829
+ }, {
1830
+ message: string;
1831
+ error?: any;
1832
+ }>;
1833
+ };
1834
+ path: "channel/messenger/relogin";
1835
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1836
+ 'x-tenant': z.ZodString;
1837
+ authorization: z.ZodString;
1838
+ 'x-code': z.ZodOptional<z.ZodString>;
1839
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
1659
1840
  }, "strip", z.ZodTypeAny, {
1660
- message: string;
1661
- error?: any;
1841
+ 'x-tenant': string;
1842
+ authorization: string;
1843
+ 'x-client-timezone': string;
1844
+ 'x-code'?: string | undefined;
1662
1845
  }, {
1663
- message: string;
1664
- error?: any;
1665
- }>;
1846
+ 'x-tenant': string;
1847
+ authorization: string;
1848
+ 'x-code'?: string | undefined;
1849
+ 'x-client-timezone'?: string | undefined;
1850
+ }>>>;
1666
1851
  };
1667
- path: "channel/relogin";
1668
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1669
- 'x-tenant': z.ZodString;
1670
- authorization: z.ZodString;
1671
- 'x-code': z.ZodOptional<z.ZodString>;
1672
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
1673
- }, "strip", z.ZodTypeAny, {
1674
- 'x-tenant': string;
1675
- authorization: string;
1676
- 'x-client-timezone': string;
1677
- 'x-code'?: string | undefined;
1678
- }, {
1679
- 'x-tenant': string;
1680
- authorization: string;
1681
- 'x-code'?: string | undefined;
1682
- 'x-client-timezone'?: string | undefined;
1683
- }>>>;
1684
- };
1685
- getChannels: {
1686
- summary: "Get Channels";
1687
- method: "GET";
1688
- responses: {
1689
- 200: z.ZodObject<{
1690
- requestId: z.ZodString;
1691
- data: z.ZodArray<z.ZodOptional<z.ZodObject<{
1692
- id: z.ZodOptional<z.ZodString>;
1693
- createdAt: z.ZodOptional<z.ZodDate>;
1694
- updatedAt: z.ZodOptional<z.ZodDate>;
1695
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1696
- name: z.ZodOptional<z.ZodString>;
1697
- type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
1698
- metadata: z.ZodOptional<z.ZodObject<{
1699
- id: z.ZodString;
1700
- name: z.ZodString;
1701
- accessToken: z.ZodString;
1702
- additionalCredentials: z.ZodOptional<z.ZodAny>;
1703
- }, "strip", z.ZodTypeAny, {
1704
- id: string;
1705
- name: string;
1706
- accessToken: string;
1707
- additionalCredentials?: any;
1708
- }, {
1709
- id: string;
1710
- name: string;
1711
- accessToken: string;
1712
- additionalCredentials?: any;
1713
- }>>;
1714
- brandName: z.ZodOptional<z.ZodString>;
1715
- platformId: z.ZodOptional<z.ZodString>;
1716
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
1717
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
1718
- connectedUserName: z.ZodOptional<z.ZodString>;
1719
- connectedUserId: z.ZodOptional<z.ZodString>;
1720
- actor: z.ZodOptional<z.ZodObject<{
1721
- id: z.ZodString;
1722
- createdAt: z.ZodDate;
1723
- updatedAt: z.ZodDate;
1724
- deletedAt: z.ZodNullable<z.ZodDate>;
1725
- name: z.ZodString;
1726
- email: z.ZodString;
1727
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1728
- password: z.ZodString;
1729
- address: z.ZodNullable<z.ZodString>;
1730
- phone: z.ZodNullable<z.ZodString>;
1731
- notificationCount: z.ZodNullable<z.ZodNumber>;
1732
- roles: z.ZodArray<z.ZodObject<{
1852
+ disconnect: {
1853
+ body: null;
1854
+ summary: "Disconnect message channel";
1855
+ method: "POST";
1856
+ pathParams: z.ZodObject<{
1857
+ channelId: z.ZodString;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ channelId: string;
1860
+ }, {
1861
+ channelId: string;
1862
+ }>;
1863
+ responses: {
1864
+ 200: z.ZodObject<{
1865
+ requestId: z.ZodString;
1866
+ channel: z.ZodOptional<z.ZodObject<{
1867
+ id: z.ZodOptional<z.ZodString>;
1868
+ createdAt: z.ZodOptional<z.ZodDate>;
1869
+ updatedAt: z.ZodOptional<z.ZodDate>;
1870
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1871
+ name: z.ZodOptional<z.ZodString>;
1872
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
1873
+ metadata: z.ZodOptional<z.ZodObject<{
1874
+ id: z.ZodString;
1875
+ name: z.ZodString;
1876
+ accessToken: z.ZodString;
1877
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ id: string;
1880
+ name: string;
1881
+ accessToken: string;
1882
+ additionalCredentials?: any;
1883
+ }, {
1884
+ id: string;
1885
+ name: string;
1886
+ accessToken: string;
1887
+ additionalCredentials?: any;
1888
+ }>>;
1889
+ brandName: z.ZodOptional<z.ZodString>;
1890
+ platformId: z.ZodOptional<z.ZodString>;
1891
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
1892
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
1893
+ connectedUserName: z.ZodOptional<z.ZodString>;
1894
+ connectedUserId: z.ZodOptional<z.ZodString>;
1895
+ actor: z.ZodOptional<z.ZodObject<{
1733
1896
  id: z.ZodString;
1734
1897
  createdAt: z.ZodDate;
1735
1898
  updatedAt: z.ZodDate;
1736
1899
  deletedAt: z.ZodNullable<z.ZodDate>;
1737
- systemName: z.ZodString;
1738
- displayName: z.ZodString;
1739
- description: z.ZodNullable<z.ZodString>;
1740
- permissions: z.ZodArray<z.ZodObject<{
1900
+ name: z.ZodString;
1901
+ email: z.ZodString;
1902
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1903
+ password: z.ZodString;
1904
+ address: z.ZodNullable<z.ZodString>;
1905
+ phone: z.ZodNullable<z.ZodString>;
1906
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1907
+ roles: z.ZodArray<z.ZodObject<{
1741
1908
  id: z.ZodString;
1742
1909
  createdAt: z.ZodDate;
1743
1910
  updatedAt: z.ZodDate;
@@ -1745,6 +1912,31 @@ export declare const channelContract: {
1745
1912
  systemName: z.ZodString;
1746
1913
  displayName: z.ZodString;
1747
1914
  description: z.ZodNullable<z.ZodString>;
1915
+ permissions: z.ZodArray<z.ZodObject<{
1916
+ id: z.ZodString;
1917
+ createdAt: z.ZodDate;
1918
+ updatedAt: z.ZodDate;
1919
+ deletedAt: z.ZodNullable<z.ZodDate>;
1920
+ systemName: z.ZodString;
1921
+ displayName: z.ZodString;
1922
+ description: z.ZodNullable<z.ZodString>;
1923
+ }, "strip", z.ZodTypeAny, {
1924
+ id: string;
1925
+ description: string | null;
1926
+ createdAt: Date;
1927
+ updatedAt: Date;
1928
+ deletedAt: Date | null;
1929
+ systemName: string;
1930
+ displayName: string;
1931
+ }, {
1932
+ id: string;
1933
+ description: string | null;
1934
+ createdAt: Date;
1935
+ updatedAt: Date;
1936
+ deletedAt: Date | null;
1937
+ systemName: string;
1938
+ displayName: string;
1939
+ }>, "many">;
1748
1940
  }, "strip", z.ZodTypeAny, {
1749
1941
  id: string;
1750
1942
  description: string | null;
@@ -1753,6 +1945,15 @@ export declare const channelContract: {
1753
1945
  deletedAt: Date | null;
1754
1946
  systemName: string;
1755
1947
  displayName: string;
1948
+ permissions: {
1949
+ id: string;
1950
+ description: string | null;
1951
+ createdAt: Date;
1952
+ updatedAt: Date;
1953
+ deletedAt: Date | null;
1954
+ systemName: string;
1955
+ displayName: string;
1956
+ }[];
1756
1957
  }, {
1757
1958
  id: string;
1758
1959
  description: string | null;
@@ -1761,16 +1962,66 @@ export declare const channelContract: {
1761
1962
  deletedAt: Date | null;
1762
1963
  systemName: string;
1763
1964
  displayName: string;
1965
+ permissions: {
1966
+ id: string;
1967
+ description: string | null;
1968
+ createdAt: Date;
1969
+ updatedAt: Date;
1970
+ deletedAt: Date | null;
1971
+ systemName: string;
1972
+ displayName: string;
1973
+ }[];
1764
1974
  }>, "many">;
1975
+ extension: z.ZodObject<{
1976
+ id: z.ZodString;
1977
+ createdAt: z.ZodDate;
1978
+ updatedAt: z.ZodDate;
1979
+ deletedAt: z.ZodNullable<z.ZodDate>;
1980
+ userId: z.ZodNullable<z.ZodString>;
1981
+ sipServerUrl: z.ZodString;
1982
+ sipUserName: z.ZodString;
1983
+ webphoneLoginUser: z.ZodString;
1984
+ extensionId: z.ZodNullable<z.ZodString>;
1985
+ extensionName: z.ZodString;
1986
+ telephonySignature: z.ZodNullable<z.ZodString>;
1987
+ }, "strip", z.ZodTypeAny, {
1988
+ id: string;
1989
+ createdAt: Date;
1990
+ updatedAt: Date;
1991
+ deletedAt: Date | null;
1992
+ userId: string | null;
1993
+ sipServerUrl: string;
1994
+ sipUserName: string;
1995
+ webphoneLoginUser: string;
1996
+ extensionId: string | null;
1997
+ extensionName: string;
1998
+ telephonySignature: string | null;
1999
+ }, {
2000
+ id: string;
2001
+ createdAt: Date;
2002
+ updatedAt: Date;
2003
+ deletedAt: Date | null;
2004
+ userId: string | null;
2005
+ sipServerUrl: string;
2006
+ sipUserName: string;
2007
+ webphoneLoginUser: string;
2008
+ extensionId: string | null;
2009
+ extensionName: string;
2010
+ telephonySignature: string | null;
2011
+ }>;
1765
2012
  }, "strip", z.ZodTypeAny, {
1766
2013
  id: string;
1767
- description: string | null;
2014
+ address: string | null;
2015
+ name: string;
2016
+ email: string;
1768
2017
  createdAt: Date;
1769
2018
  updatedAt: Date;
1770
2019
  deletedAt: Date | null;
1771
- systemName: string;
1772
- displayName: string;
1773
- permissions: {
2020
+ emailVerifiedAt: Date | null;
2021
+ password: string;
2022
+ phone: string | null;
2023
+ notificationCount: number | null;
2024
+ roles: {
1774
2025
  id: string;
1775
2026
  description: string | null;
1776
2027
  createdAt: Date;
@@ -1778,16 +2029,42 @@ export declare const channelContract: {
1778
2029
  deletedAt: Date | null;
1779
2030
  systemName: string;
1780
2031
  displayName: string;
2032
+ permissions: {
2033
+ id: string;
2034
+ description: string | null;
2035
+ createdAt: Date;
2036
+ updatedAt: Date;
2037
+ deletedAt: Date | null;
2038
+ systemName: string;
2039
+ displayName: string;
2040
+ }[];
1781
2041
  }[];
2042
+ extension: {
2043
+ id: string;
2044
+ createdAt: Date;
2045
+ updatedAt: Date;
2046
+ deletedAt: Date | null;
2047
+ userId: string | null;
2048
+ sipServerUrl: string;
2049
+ sipUserName: string;
2050
+ webphoneLoginUser: string;
2051
+ extensionId: string | null;
2052
+ extensionName: string;
2053
+ telephonySignature: string | null;
2054
+ };
1782
2055
  }, {
1783
2056
  id: string;
1784
- description: string | null;
2057
+ address: string | null;
2058
+ name: string;
2059
+ email: string;
1785
2060
  createdAt: Date;
1786
2061
  updatedAt: Date;
1787
2062
  deletedAt: Date | null;
1788
- systemName: string;
1789
- displayName: string;
1790
- permissions: {
2063
+ emailVerifiedAt: Date | null;
2064
+ password: string;
2065
+ phone: string | null;
2066
+ notificationCount: number | null;
2067
+ roles: {
1791
2068
  id: string;
1792
2069
  description: string | null;
1793
2070
  createdAt: Date;
@@ -1795,66 +2072,62 @@ export declare const channelContract: {
1795
2072
  deletedAt: Date | null;
1796
2073
  systemName: string;
1797
2074
  displayName: string;
2075
+ permissions: {
2076
+ id: string;
2077
+ description: string | null;
2078
+ createdAt: Date;
2079
+ updatedAt: Date;
2080
+ deletedAt: Date | null;
2081
+ systemName: string;
2082
+ displayName: string;
2083
+ }[];
1798
2084
  }[];
1799
- }>, "many">;
1800
- extension: z.ZodObject<{
1801
- id: z.ZodString;
1802
- createdAt: z.ZodDate;
1803
- updatedAt: z.ZodDate;
1804
- deletedAt: z.ZodNullable<z.ZodDate>;
1805
- userId: z.ZodNullable<z.ZodString>;
1806
- sipServerUrl: z.ZodString;
1807
- sipUserName: z.ZodString;
1808
- webphoneLoginUser: z.ZodString;
1809
- extensionId: z.ZodNullable<z.ZodString>;
1810
- extensionName: z.ZodString;
1811
- telephonySignature: z.ZodNullable<z.ZodString>;
1812
- }, "strip", z.ZodTypeAny, {
1813
- id: string;
1814
- createdAt: Date;
1815
- updatedAt: Date;
1816
- deletedAt: Date | null;
1817
- userId: string | null;
1818
- sipServerUrl: string;
1819
- sipUserName: string;
1820
- webphoneLoginUser: string;
1821
- extensionId: string | null;
1822
- extensionName: string;
1823
- telephonySignature: string | null;
1824
- }, {
1825
- id: string;
1826
- createdAt: Date;
1827
- updatedAt: Date;
1828
- deletedAt: Date | null;
1829
- userId: string | null;
1830
- sipServerUrl: string;
1831
- sipUserName: string;
1832
- webphoneLoginUser: string;
1833
- extensionId: string | null;
1834
- extensionName: string;
1835
- telephonySignature: string | null;
1836
- }>;
2085
+ extension: {
2086
+ id: string;
2087
+ createdAt: Date;
2088
+ updatedAt: Date;
2089
+ deletedAt: Date | null;
2090
+ userId: string | null;
2091
+ sipServerUrl: string;
2092
+ sipUserName: string;
2093
+ webphoneLoginUser: string;
2094
+ extensionId: string | null;
2095
+ extensionName: string;
2096
+ telephonySignature: string | null;
2097
+ };
2098
+ }>>;
1837
2099
  }, "strip", z.ZodTypeAny, {
1838
- id: string;
1839
- address: string | null;
1840
- name: string;
1841
- email: string;
1842
- createdAt: Date;
1843
- updatedAt: Date;
1844
- deletedAt: Date | null;
1845
- emailVerifiedAt: Date | null;
1846
- password: string;
1847
- phone: string | null;
1848
- notificationCount: number | null;
1849
- roles: {
2100
+ id?: string | undefined;
2101
+ createdAt?: Date | undefined;
2102
+ updatedAt?: Date | undefined;
2103
+ deletedAt?: Date | null | undefined;
2104
+ name?: string | undefined;
2105
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2106
+ metadata?: {
1850
2107
  id: string;
1851
- description: string | null;
2108
+ name: string;
2109
+ accessToken: string;
2110
+ additionalCredentials?: any;
2111
+ } | undefined;
2112
+ brandName?: string | undefined;
2113
+ platformId?: string | undefined;
2114
+ status?: boolean | undefined;
2115
+ isReloginRequired?: boolean | undefined;
2116
+ connectedUserName?: string | undefined;
2117
+ connectedUserId?: string | undefined;
2118
+ actor?: {
2119
+ id: string;
2120
+ address: string | null;
2121
+ name: string;
2122
+ email: string;
1852
2123
  createdAt: Date;
1853
2124
  updatedAt: Date;
1854
2125
  deletedAt: Date | null;
1855
- systemName: string;
1856
- displayName: string;
1857
- permissions: {
2126
+ emailVerifiedAt: Date | null;
2127
+ password: string;
2128
+ phone: string | null;
2129
+ notificationCount: number | null;
2130
+ roles: {
1858
2131
  id: string;
1859
2132
  description: string | null;
1860
2133
  createdAt: Date;
@@ -1862,42 +2135,128 @@ export declare const channelContract: {
1862
2135
  deletedAt: Date | null;
1863
2136
  systemName: string;
1864
2137
  displayName: string;
2138
+ permissions: {
2139
+ id: string;
2140
+ description: string | null;
2141
+ createdAt: Date;
2142
+ updatedAt: Date;
2143
+ deletedAt: Date | null;
2144
+ systemName: string;
2145
+ displayName: string;
2146
+ }[];
1865
2147
  }[];
1866
- }[];
1867
- extension: {
2148
+ extension: {
2149
+ id: string;
2150
+ createdAt: Date;
2151
+ updatedAt: Date;
2152
+ deletedAt: Date | null;
2153
+ userId: string | null;
2154
+ sipServerUrl: string;
2155
+ sipUserName: string;
2156
+ webphoneLoginUser: string;
2157
+ extensionId: string | null;
2158
+ extensionName: string;
2159
+ telephonySignature: string | null;
2160
+ };
2161
+ } | undefined;
2162
+ }, {
2163
+ id?: string | undefined;
2164
+ createdAt?: Date | undefined;
2165
+ updatedAt?: Date | undefined;
2166
+ deletedAt?: Date | null | undefined;
2167
+ name?: string | undefined;
2168
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2169
+ metadata?: {
1868
2170
  id: string;
2171
+ name: string;
2172
+ accessToken: string;
2173
+ additionalCredentials?: any;
2174
+ } | undefined;
2175
+ brandName?: string | undefined;
2176
+ platformId?: string | undefined;
2177
+ status?: boolean | undefined;
2178
+ isReloginRequired?: boolean | undefined;
2179
+ connectedUserName?: string | undefined;
2180
+ connectedUserId?: string | undefined;
2181
+ actor?: {
2182
+ id: string;
2183
+ address: string | null;
2184
+ name: string;
2185
+ email: string;
1869
2186
  createdAt: Date;
1870
2187
  updatedAt: Date;
1871
2188
  deletedAt: Date | null;
1872
- userId: string | null;
1873
- sipServerUrl: string;
1874
- sipUserName: string;
1875
- webphoneLoginUser: string;
1876
- extensionId: string | null;
1877
- extensionName: string;
1878
- telephonySignature: string | null;
1879
- };
1880
- }, {
1881
- id: string;
1882
- address: string | null;
1883
- name: string;
1884
- email: string;
1885
- createdAt: Date;
1886
- updatedAt: Date;
1887
- deletedAt: Date | null;
1888
- emailVerifiedAt: Date | null;
1889
- password: string;
1890
- phone: string | null;
1891
- notificationCount: number | null;
1892
- roles: {
2189
+ emailVerifiedAt: Date | null;
2190
+ password: string;
2191
+ phone: string | null;
2192
+ notificationCount: number | null;
2193
+ roles: {
2194
+ id: string;
2195
+ description: string | null;
2196
+ createdAt: Date;
2197
+ updatedAt: Date;
2198
+ deletedAt: Date | null;
2199
+ systemName: string;
2200
+ displayName: string;
2201
+ permissions: {
2202
+ id: string;
2203
+ description: string | null;
2204
+ createdAt: Date;
2205
+ updatedAt: Date;
2206
+ deletedAt: Date | null;
2207
+ systemName: string;
2208
+ displayName: string;
2209
+ }[];
2210
+ }[];
2211
+ extension: {
2212
+ id: string;
2213
+ createdAt: Date;
2214
+ updatedAt: Date;
2215
+ deletedAt: Date | null;
2216
+ userId: string | null;
2217
+ sipServerUrl: string;
2218
+ sipUserName: string;
2219
+ webphoneLoginUser: string;
2220
+ extensionId: string | null;
2221
+ extensionName: string;
2222
+ telephonySignature: string | null;
2223
+ };
2224
+ } | undefined;
2225
+ }>>;
2226
+ }, "strip", z.ZodTypeAny, {
2227
+ requestId: string;
2228
+ channel?: {
2229
+ id?: string | undefined;
2230
+ createdAt?: Date | undefined;
2231
+ updatedAt?: Date | undefined;
2232
+ deletedAt?: Date | null | undefined;
2233
+ name?: string | undefined;
2234
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2235
+ metadata?: {
1893
2236
  id: string;
1894
- description: string | null;
2237
+ name: string;
2238
+ accessToken: string;
2239
+ additionalCredentials?: any;
2240
+ } | undefined;
2241
+ brandName?: string | undefined;
2242
+ platformId?: string | undefined;
2243
+ status?: boolean | undefined;
2244
+ isReloginRequired?: boolean | undefined;
2245
+ connectedUserName?: string | undefined;
2246
+ connectedUserId?: string | undefined;
2247
+ actor?: {
2248
+ id: string;
2249
+ address: string | null;
2250
+ name: string;
2251
+ email: string;
1895
2252
  createdAt: Date;
1896
2253
  updatedAt: Date;
1897
2254
  deletedAt: Date | null;
1898
- systemName: string;
1899
- displayName: string;
1900
- permissions: {
2255
+ emailVerifiedAt: Date | null;
2256
+ password: string;
2257
+ phone: string | null;
2258
+ notificationCount: number | null;
2259
+ roles: {
1901
2260
  id: string;
1902
2261
  description: string | null;
1903
2262
  createdAt: Date;
@@ -1905,54 +2264,188 @@ export declare const channelContract: {
1905
2264
  deletedAt: Date | null;
1906
2265
  systemName: string;
1907
2266
  displayName: string;
2267
+ permissions: {
2268
+ id: string;
2269
+ description: string | null;
2270
+ createdAt: Date;
2271
+ updatedAt: Date;
2272
+ deletedAt: Date | null;
2273
+ systemName: string;
2274
+ displayName: string;
2275
+ }[];
1908
2276
  }[];
1909
- }[];
1910
- extension: {
2277
+ extension: {
2278
+ id: string;
2279
+ createdAt: Date;
2280
+ updatedAt: Date;
2281
+ deletedAt: Date | null;
2282
+ userId: string | null;
2283
+ sipServerUrl: string;
2284
+ sipUserName: string;
2285
+ webphoneLoginUser: string;
2286
+ extensionId: string | null;
2287
+ extensionName: string;
2288
+ telephonySignature: string | null;
2289
+ };
2290
+ } | undefined;
2291
+ } | undefined;
2292
+ }, {
2293
+ requestId: string;
2294
+ channel?: {
2295
+ id?: string | undefined;
2296
+ createdAt?: Date | undefined;
2297
+ updatedAt?: Date | undefined;
2298
+ deletedAt?: Date | null | undefined;
2299
+ name?: string | undefined;
2300
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2301
+ metadata?: {
1911
2302
  id: string;
2303
+ name: string;
2304
+ accessToken: string;
2305
+ additionalCredentials?: any;
2306
+ } | undefined;
2307
+ brandName?: string | undefined;
2308
+ platformId?: string | undefined;
2309
+ status?: boolean | undefined;
2310
+ isReloginRequired?: boolean | undefined;
2311
+ connectedUserName?: string | undefined;
2312
+ connectedUserId?: string | undefined;
2313
+ actor?: {
2314
+ id: string;
2315
+ address: string | null;
2316
+ name: string;
2317
+ email: string;
1912
2318
  createdAt: Date;
1913
2319
  updatedAt: Date;
1914
2320
  deletedAt: Date | null;
1915
- userId: string | null;
1916
- sipServerUrl: string;
1917
- sipUserName: string;
1918
- webphoneLoginUser: string;
1919
- extensionId: string | null;
1920
- extensionName: string;
1921
- telephonySignature: string | null;
1922
- };
1923
- }>>;
1924
- }, "strip", z.ZodTypeAny, {
1925
- id?: string | undefined;
1926
- createdAt?: Date | undefined;
1927
- updatedAt?: Date | undefined;
1928
- deletedAt?: Date | null | undefined;
1929
- name?: string | undefined;
1930
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1931
- metadata?: {
1932
- id: string;
1933
- name: string;
1934
- accessToken: string;
1935
- additionalCredentials?: any;
2321
+ emailVerifiedAt: Date | null;
2322
+ password: string;
2323
+ phone: string | null;
2324
+ notificationCount: number | null;
2325
+ roles: {
2326
+ id: string;
2327
+ description: string | null;
2328
+ createdAt: Date;
2329
+ updatedAt: Date;
2330
+ deletedAt: Date | null;
2331
+ systemName: string;
2332
+ displayName: string;
2333
+ permissions: {
2334
+ id: string;
2335
+ description: string | null;
2336
+ createdAt: Date;
2337
+ updatedAt: Date;
2338
+ deletedAt: Date | null;
2339
+ systemName: string;
2340
+ displayName: string;
2341
+ }[];
2342
+ }[];
2343
+ extension: {
2344
+ id: string;
2345
+ createdAt: Date;
2346
+ updatedAt: Date;
2347
+ deletedAt: Date | null;
2348
+ userId: string | null;
2349
+ sipServerUrl: string;
2350
+ sipUserName: string;
2351
+ webphoneLoginUser: string;
2352
+ extensionId: string | null;
2353
+ extensionName: string;
2354
+ telephonySignature: string | null;
2355
+ };
2356
+ } | undefined;
1936
2357
  } | undefined;
1937
- brandName?: string | undefined;
1938
- platformId?: string | undefined;
1939
- status?: boolean | undefined;
1940
- isReloginRequired?: boolean | undefined;
1941
- connectedUserName?: string | undefined;
1942
- connectedUserId?: string | undefined;
1943
- actor?: {
2358
+ }>;
2359
+ 408: z.ZodObject<{
2360
+ message: z.ZodString;
2361
+ error: z.ZodAny;
2362
+ }, "strip", z.ZodTypeAny, {
2363
+ message: string;
2364
+ error?: any;
2365
+ }, {
2366
+ message: string;
2367
+ error?: any;
2368
+ }>;
2369
+ };
2370
+ path: "channel/messenger/disconnect/:channelId";
2371
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2372
+ 'x-tenant': z.ZodString;
2373
+ authorization: z.ZodString;
2374
+ 'x-code': z.ZodOptional<z.ZodString>;
2375
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
2376
+ }, "strip", z.ZodTypeAny, {
2377
+ 'x-tenant': string;
2378
+ authorization: string;
2379
+ 'x-client-timezone': string;
2380
+ 'x-code'?: string | undefined;
2381
+ }, {
2382
+ 'x-tenant': string;
2383
+ authorization: string;
2384
+ 'x-code'?: string | undefined;
2385
+ 'x-client-timezone'?: string | undefined;
2386
+ }>>>;
2387
+ };
2388
+ };
2389
+ line: {
2390
+ connect: {
2391
+ body: z.ZodObject<{
2392
+ lineId: z.ZodOptional<z.ZodString>;
2393
+ accessToken: z.ZodOptional<z.ZodString>;
2394
+ lineSecret: z.ZodOptional<z.ZodString>;
2395
+ actor: z.ZodObject<{
2396
+ id: z.ZodString;
2397
+ createdAt: z.ZodDate;
2398
+ updatedAt: z.ZodDate;
2399
+ deletedAt: z.ZodNullable<z.ZodDate>;
2400
+ name: z.ZodString;
2401
+ email: z.ZodString;
2402
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2403
+ password: z.ZodString;
2404
+ address: z.ZodNullable<z.ZodString>;
2405
+ phone: z.ZodNullable<z.ZodString>;
2406
+ notificationCount: z.ZodNullable<z.ZodNumber>;
2407
+ roles: z.ZodArray<z.ZodObject<{
2408
+ id: z.ZodString;
2409
+ createdAt: z.ZodDate;
2410
+ updatedAt: z.ZodDate;
2411
+ deletedAt: z.ZodNullable<z.ZodDate>;
2412
+ systemName: z.ZodString;
2413
+ displayName: z.ZodString;
2414
+ description: z.ZodNullable<z.ZodString>;
2415
+ permissions: z.ZodArray<z.ZodObject<{
2416
+ id: z.ZodString;
2417
+ createdAt: z.ZodDate;
2418
+ updatedAt: z.ZodDate;
2419
+ deletedAt: z.ZodNullable<z.ZodDate>;
2420
+ systemName: z.ZodString;
2421
+ displayName: z.ZodString;
2422
+ description: z.ZodNullable<z.ZodString>;
2423
+ }, "strip", z.ZodTypeAny, {
2424
+ id: string;
2425
+ description: string | null;
2426
+ createdAt: Date;
2427
+ updatedAt: Date;
2428
+ deletedAt: Date | null;
2429
+ systemName: string;
2430
+ displayName: string;
2431
+ }, {
2432
+ id: string;
2433
+ description: string | null;
2434
+ createdAt: Date;
2435
+ updatedAt: Date;
2436
+ deletedAt: Date | null;
2437
+ systemName: string;
2438
+ displayName: string;
2439
+ }>, "many">;
2440
+ }, "strip", z.ZodTypeAny, {
1944
2441
  id: string;
1945
- address: string | null;
1946
- name: string;
1947
- email: string;
2442
+ description: string | null;
1948
2443
  createdAt: Date;
1949
2444
  updatedAt: Date;
1950
2445
  deletedAt: Date | null;
1951
- emailVerifiedAt: Date | null;
1952
- password: string;
1953
- phone: string | null;
1954
- notificationCount: number | null;
1955
- roles: {
2446
+ systemName: string;
2447
+ displayName: string;
2448
+ permissions: {
1956
2449
  id: string;
1957
2450
  description: string | null;
1958
2451
  createdAt: Date;
@@ -1960,62 +2453,83 @@ export declare const channelContract: {
1960
2453
  deletedAt: Date | null;
1961
2454
  systemName: string;
1962
2455
  displayName: string;
1963
- permissions: {
1964
- id: string;
1965
- description: string | null;
1966
- createdAt: Date;
1967
- updatedAt: Date;
1968
- deletedAt: Date | null;
1969
- systemName: string;
1970
- displayName: string;
1971
- }[];
1972
2456
  }[];
1973
- extension: {
2457
+ }, {
2458
+ id: string;
2459
+ description: string | null;
2460
+ createdAt: Date;
2461
+ updatedAt: Date;
2462
+ deletedAt: Date | null;
2463
+ systemName: string;
2464
+ displayName: string;
2465
+ permissions: {
1974
2466
  id: string;
2467
+ description: string | null;
1975
2468
  createdAt: Date;
1976
2469
  updatedAt: Date;
1977
2470
  deletedAt: Date | null;
1978
- userId: string | null;
1979
- sipServerUrl: string;
1980
- sipUserName: string;
1981
- webphoneLoginUser: string;
1982
- extensionId: string | null;
1983
- extensionName: string;
1984
- telephonySignature: string | null;
1985
- };
1986
- } | undefined;
1987
- }, {
1988
- id?: string | undefined;
1989
- createdAt?: Date | undefined;
1990
- updatedAt?: Date | undefined;
1991
- deletedAt?: Date | null | undefined;
1992
- name?: string | undefined;
1993
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1994
- metadata?: {
2471
+ systemName: string;
2472
+ displayName: string;
2473
+ }[];
2474
+ }>, "many">;
2475
+ extension: z.ZodObject<{
2476
+ id: z.ZodString;
2477
+ createdAt: z.ZodDate;
2478
+ updatedAt: z.ZodDate;
2479
+ deletedAt: z.ZodNullable<z.ZodDate>;
2480
+ userId: z.ZodNullable<z.ZodString>;
2481
+ sipServerUrl: z.ZodString;
2482
+ sipUserName: z.ZodString;
2483
+ webphoneLoginUser: z.ZodString;
2484
+ extensionId: z.ZodNullable<z.ZodString>;
2485
+ extensionName: z.ZodString;
2486
+ telephonySignature: z.ZodNullable<z.ZodString>;
2487
+ }, "strip", z.ZodTypeAny, {
1995
2488
  id: string;
1996
- name: string;
1997
- accessToken: string;
1998
- additionalCredentials?: any;
1999
- } | undefined;
2000
- brandName?: string | undefined;
2001
- platformId?: string | undefined;
2002
- status?: boolean | undefined;
2003
- isReloginRequired?: boolean | undefined;
2004
- connectedUserName?: string | undefined;
2005
- connectedUserId?: string | undefined;
2006
- actor?: {
2489
+ createdAt: Date;
2490
+ updatedAt: Date;
2491
+ deletedAt: Date | null;
2492
+ userId: string | null;
2493
+ sipServerUrl: string;
2494
+ sipUserName: string;
2495
+ webphoneLoginUser: string;
2496
+ extensionId: string | null;
2497
+ extensionName: string;
2498
+ telephonySignature: string | null;
2499
+ }, {
2007
2500
  id: string;
2008
- address: string | null;
2009
- name: string;
2010
- email: string;
2011
2501
  createdAt: Date;
2012
2502
  updatedAt: Date;
2013
2503
  deletedAt: Date | null;
2014
- emailVerifiedAt: Date | null;
2015
- password: string;
2016
- phone: string | null;
2017
- notificationCount: number | null;
2018
- roles: {
2504
+ userId: string | null;
2505
+ sipServerUrl: string;
2506
+ sipUserName: string;
2507
+ webphoneLoginUser: string;
2508
+ extensionId: string | null;
2509
+ extensionName: string;
2510
+ telephonySignature: string | null;
2511
+ }>;
2512
+ }, "strip", z.ZodTypeAny, {
2513
+ id: string;
2514
+ address: string | null;
2515
+ name: string;
2516
+ email: string;
2517
+ createdAt: Date;
2518
+ updatedAt: Date;
2519
+ deletedAt: Date | null;
2520
+ emailVerifiedAt: Date | null;
2521
+ password: string;
2522
+ phone: string | null;
2523
+ notificationCount: number | null;
2524
+ roles: {
2525
+ id: string;
2526
+ description: string | null;
2527
+ createdAt: Date;
2528
+ updatedAt: Date;
2529
+ deletedAt: Date | null;
2530
+ systemName: string;
2531
+ displayName: string;
2532
+ permissions: {
2019
2533
  id: string;
2020
2534
  description: string | null;
2021
2535
  createdAt: Date;
@@ -2023,64 +2537,42 @@ export declare const channelContract: {
2023
2537
  deletedAt: Date | null;
2024
2538
  systemName: string;
2025
2539
  displayName: string;
2026
- permissions: {
2027
- id: string;
2028
- description: string | null;
2029
- createdAt: Date;
2030
- updatedAt: Date;
2031
- deletedAt: Date | null;
2032
- systemName: string;
2033
- displayName: string;
2034
- }[];
2035
2540
  }[];
2036
- extension: {
2037
- id: string;
2038
- createdAt: Date;
2039
- updatedAt: Date;
2040
- deletedAt: Date | null;
2041
- userId: string | null;
2042
- sipServerUrl: string;
2043
- sipUserName: string;
2044
- webphoneLoginUser: string;
2045
- extensionId: string | null;
2046
- extensionName: string;
2047
- telephonySignature: string | null;
2048
- };
2049
- } | undefined;
2050
- }>>, "many">;
2051
- }, "strip", z.ZodTypeAny, {
2052
- data: ({
2053
- id?: string | undefined;
2054
- createdAt?: Date | undefined;
2055
- updatedAt?: Date | undefined;
2056
- deletedAt?: Date | null | undefined;
2057
- name?: string | undefined;
2058
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2059
- metadata?: {
2541
+ }[];
2542
+ extension: {
2060
2543
  id: string;
2061
- name: string;
2062
- accessToken: string;
2063
- additionalCredentials?: any;
2064
- } | undefined;
2065
- brandName?: string | undefined;
2066
- platformId?: string | undefined;
2067
- status?: boolean | undefined;
2068
- isReloginRequired?: boolean | undefined;
2069
- connectedUserName?: string | undefined;
2070
- connectedUserId?: string | undefined;
2071
- actor?: {
2544
+ createdAt: Date;
2545
+ updatedAt: Date;
2546
+ deletedAt: Date | null;
2547
+ userId: string | null;
2548
+ sipServerUrl: string;
2549
+ sipUserName: string;
2550
+ webphoneLoginUser: string;
2551
+ extensionId: string | null;
2552
+ extensionName: string;
2553
+ telephonySignature: string | null;
2554
+ };
2555
+ }, {
2556
+ id: string;
2557
+ address: string | null;
2558
+ name: string;
2559
+ email: string;
2560
+ createdAt: Date;
2561
+ updatedAt: Date;
2562
+ deletedAt: Date | null;
2563
+ emailVerifiedAt: Date | null;
2564
+ password: string;
2565
+ phone: string | null;
2566
+ notificationCount: number | null;
2567
+ roles: {
2072
2568
  id: string;
2073
- address: string | null;
2074
- name: string;
2075
- email: string;
2569
+ description: string | null;
2076
2570
  createdAt: Date;
2077
2571
  updatedAt: Date;
2078
2572
  deletedAt: Date | null;
2079
- emailVerifiedAt: Date | null;
2080
- password: string;
2081
- phone: string | null;
2082
- notificationCount: number | null;
2083
- roles: {
2573
+ systemName: string;
2574
+ displayName: string;
2575
+ permissions: {
2084
2576
  id: string;
2085
2577
  description: string | null;
2086
2578
  createdAt: Date;
@@ -2088,65 +2580,92 @@ export declare const channelContract: {
2088
2580
  deletedAt: Date | null;
2089
2581
  systemName: string;
2090
2582
  displayName: string;
2091
- permissions: {
2092
- id: string;
2093
- description: string | null;
2094
- createdAt: Date;
2095
- updatedAt: Date;
2096
- deletedAt: Date | null;
2097
- systemName: string;
2098
- displayName: string;
2099
- }[];
2100
2583
  }[];
2101
- extension: {
2584
+ }[];
2585
+ extension: {
2586
+ id: string;
2587
+ createdAt: Date;
2588
+ updatedAt: Date;
2589
+ deletedAt: Date | null;
2590
+ userId: string | null;
2591
+ sipServerUrl: string;
2592
+ sipUserName: string;
2593
+ webphoneLoginUser: string;
2594
+ extensionId: string | null;
2595
+ extensionName: string;
2596
+ telephonySignature: string | null;
2597
+ };
2598
+ }>;
2599
+ }, "strip", z.ZodTypeAny, {
2600
+ actor: {
2601
+ id: string;
2602
+ address: string | null;
2603
+ name: string;
2604
+ email: string;
2605
+ createdAt: Date;
2606
+ updatedAt: Date;
2607
+ deletedAt: Date | null;
2608
+ emailVerifiedAt: Date | null;
2609
+ password: string;
2610
+ phone: string | null;
2611
+ notificationCount: number | null;
2612
+ roles: {
2613
+ id: string;
2614
+ description: string | null;
2615
+ createdAt: Date;
2616
+ updatedAt: Date;
2617
+ deletedAt: Date | null;
2618
+ systemName: string;
2619
+ displayName: string;
2620
+ permissions: {
2102
2621
  id: string;
2622
+ description: string | null;
2103
2623
  createdAt: Date;
2104
2624
  updatedAt: Date;
2105
2625
  deletedAt: Date | null;
2106
- userId: string | null;
2107
- sipServerUrl: string;
2108
- sipUserName: string;
2109
- webphoneLoginUser: string;
2110
- extensionId: string | null;
2111
- extensionName: string;
2112
- telephonySignature: string | null;
2113
- };
2114
- } | undefined;
2115
- } | undefined)[];
2116
- requestId: string;
2117
- }, {
2118
- data: ({
2119
- id?: string | undefined;
2120
- createdAt?: Date | undefined;
2121
- updatedAt?: Date | undefined;
2122
- deletedAt?: Date | null | undefined;
2123
- name?: string | undefined;
2124
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2125
- metadata?: {
2626
+ systemName: string;
2627
+ displayName: string;
2628
+ }[];
2629
+ }[];
2630
+ extension: {
2126
2631
  id: string;
2127
- name: string;
2128
- accessToken: string;
2129
- additionalCredentials?: any;
2130
- } | undefined;
2131
- brandName?: string | undefined;
2132
- platformId?: string | undefined;
2133
- status?: boolean | undefined;
2134
- isReloginRequired?: boolean | undefined;
2135
- connectedUserName?: string | undefined;
2136
- connectedUserId?: string | undefined;
2137
- actor?: {
2632
+ createdAt: Date;
2633
+ updatedAt: Date;
2634
+ deletedAt: Date | null;
2635
+ userId: string | null;
2636
+ sipServerUrl: string;
2637
+ sipUserName: string;
2638
+ webphoneLoginUser: string;
2639
+ extensionId: string | null;
2640
+ extensionName: string;
2641
+ telephonySignature: string | null;
2642
+ };
2643
+ };
2644
+ lineId?: string | undefined;
2645
+ accessToken?: string | undefined;
2646
+ lineSecret?: string | undefined;
2647
+ }, {
2648
+ actor: {
2649
+ id: string;
2650
+ address: string | null;
2651
+ name: string;
2652
+ email: string;
2653
+ createdAt: Date;
2654
+ updatedAt: Date;
2655
+ deletedAt: Date | null;
2656
+ emailVerifiedAt: Date | null;
2657
+ password: string;
2658
+ phone: string | null;
2659
+ notificationCount: number | null;
2660
+ roles: {
2138
2661
  id: string;
2139
- address: string | null;
2140
- name: string;
2141
- email: string;
2662
+ description: string | null;
2142
2663
  createdAt: Date;
2143
2664
  updatedAt: Date;
2144
2665
  deletedAt: Date | null;
2145
- emailVerifiedAt: Date | null;
2146
- password: string;
2147
- phone: string | null;
2148
- notificationCount: number | null;
2149
- roles: {
2666
+ systemName: string;
2667
+ displayName: string;
2668
+ permissions: {
2150
2669
  id: string;
2151
2670
  description: string | null;
2152
2671
  createdAt: Date;
@@ -2154,7 +2673,123 @@ export declare const channelContract: {
2154
2673
  deletedAt: Date | null;
2155
2674
  systemName: string;
2156
2675
  displayName: string;
2157
- permissions: {
2676
+ }[];
2677
+ }[];
2678
+ extension: {
2679
+ id: string;
2680
+ createdAt: Date;
2681
+ updatedAt: Date;
2682
+ deletedAt: Date | null;
2683
+ userId: string | null;
2684
+ sipServerUrl: string;
2685
+ sipUserName: string;
2686
+ webphoneLoginUser: string;
2687
+ extensionId: string | null;
2688
+ extensionName: string;
2689
+ telephonySignature: string | null;
2690
+ };
2691
+ };
2692
+ lineId?: string | undefined;
2693
+ accessToken?: string | undefined;
2694
+ lineSecret?: string | undefined;
2695
+ }>;
2696
+ summary: "Connect line channel";
2697
+ method: "POST";
2698
+ responses: {
2699
+ 200: z.ZodObject<{
2700
+ requestId: z.ZodString;
2701
+ channel: z.ZodOptional<z.ZodObject<{
2702
+ id: z.ZodOptional<z.ZodString>;
2703
+ createdAt: z.ZodOptional<z.ZodDate>;
2704
+ updatedAt: z.ZodOptional<z.ZodDate>;
2705
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2706
+ name: z.ZodOptional<z.ZodString>;
2707
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
2708
+ metadata: z.ZodOptional<z.ZodObject<{
2709
+ id: z.ZodString;
2710
+ name: z.ZodString;
2711
+ accessToken: z.ZodString;
2712
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
2713
+ }, "strip", z.ZodTypeAny, {
2714
+ id: string;
2715
+ name: string;
2716
+ accessToken: string;
2717
+ additionalCredentials?: any;
2718
+ }, {
2719
+ id: string;
2720
+ name: string;
2721
+ accessToken: string;
2722
+ additionalCredentials?: any;
2723
+ }>>;
2724
+ brandName: z.ZodOptional<z.ZodString>;
2725
+ platformId: z.ZodOptional<z.ZodString>;
2726
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
2727
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
2728
+ connectedUserName: z.ZodOptional<z.ZodString>;
2729
+ connectedUserId: z.ZodOptional<z.ZodString>;
2730
+ actor: z.ZodOptional<z.ZodObject<{
2731
+ id: z.ZodString;
2732
+ createdAt: z.ZodDate;
2733
+ updatedAt: z.ZodDate;
2734
+ deletedAt: z.ZodNullable<z.ZodDate>;
2735
+ name: z.ZodString;
2736
+ email: z.ZodString;
2737
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2738
+ password: z.ZodString;
2739
+ address: z.ZodNullable<z.ZodString>;
2740
+ phone: z.ZodNullable<z.ZodString>;
2741
+ notificationCount: z.ZodNullable<z.ZodNumber>;
2742
+ roles: z.ZodArray<z.ZodObject<{
2743
+ id: z.ZodString;
2744
+ createdAt: z.ZodDate;
2745
+ updatedAt: z.ZodDate;
2746
+ deletedAt: z.ZodNullable<z.ZodDate>;
2747
+ systemName: z.ZodString;
2748
+ displayName: z.ZodString;
2749
+ description: z.ZodNullable<z.ZodString>;
2750
+ permissions: z.ZodArray<z.ZodObject<{
2751
+ id: z.ZodString;
2752
+ createdAt: z.ZodDate;
2753
+ updatedAt: z.ZodDate;
2754
+ deletedAt: z.ZodNullable<z.ZodDate>;
2755
+ systemName: z.ZodString;
2756
+ displayName: z.ZodString;
2757
+ description: z.ZodNullable<z.ZodString>;
2758
+ }, "strip", z.ZodTypeAny, {
2759
+ id: string;
2760
+ description: string | null;
2761
+ createdAt: Date;
2762
+ updatedAt: Date;
2763
+ deletedAt: Date | null;
2764
+ systemName: string;
2765
+ displayName: string;
2766
+ }, {
2767
+ id: string;
2768
+ description: string | null;
2769
+ createdAt: Date;
2770
+ updatedAt: Date;
2771
+ deletedAt: Date | null;
2772
+ systemName: string;
2773
+ displayName: string;
2774
+ }>, "many">;
2775
+ }, "strip", z.ZodTypeAny, {
2776
+ id: string;
2777
+ description: string | null;
2778
+ createdAt: Date;
2779
+ updatedAt: Date;
2780
+ deletedAt: Date | null;
2781
+ systemName: string;
2782
+ displayName: string;
2783
+ permissions: {
2784
+ id: string;
2785
+ description: string | null;
2786
+ createdAt: Date;
2787
+ updatedAt: Date;
2788
+ deletedAt: Date | null;
2789
+ systemName: string;
2790
+ displayName: string;
2791
+ }[];
2792
+ }, {
2158
2793
  id: string;
2159
2794
  description: string | null;
2160
2795
  createdAt: Date;
@@ -2162,201 +2797,401 @@ export declare const channelContract: {
2162
2797
  deletedAt: Date | null;
2163
2798
  systemName: string;
2164
2799
  displayName: string;
2165
- }[];
2166
- }[];
2167
- extension: {
2168
- id: string;
2169
- createdAt: Date;
2170
- updatedAt: Date;
2171
- deletedAt: Date | null;
2172
- userId: string | null;
2173
- sipServerUrl: string;
2174
- sipUserName: string;
2175
- webphoneLoginUser: string;
2176
- extensionId: string | null;
2177
- extensionName: string;
2178
- telephonySignature: string | null;
2179
- };
2180
- } | undefined;
2181
- } | undefined)[];
2182
- requestId: string;
2183
- }>;
2184
- };
2185
- path: "channel/";
2186
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2187
- 'x-tenant': z.ZodString;
2188
- authorization: z.ZodString;
2189
- 'x-code': z.ZodOptional<z.ZodString>;
2190
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
2191
- }, "strip", z.ZodTypeAny, {
2192
- 'x-tenant': string;
2193
- authorization: string;
2194
- 'x-client-timezone': string;
2195
- 'x-code'?: string | undefined;
2196
- }, {
2197
- 'x-tenant': string;
2198
- authorization: string;
2199
- 'x-code'?: string | undefined;
2200
- 'x-client-timezone'?: string | undefined;
2201
- }>>>;
2202
- };
2203
- messenger: {
2204
- getPages: {
2205
- method: "GET";
2206
- query: z.ZodObject<{
2207
- accessToken: z.ZodString;
2208
- userId: z.ZodString;
2209
- }, "strip", z.ZodTypeAny, {
2210
- userId: string;
2211
- accessToken: string;
2212
- }, {
2213
- userId: string;
2214
- accessToken: string;
2215
- }>;
2216
- responses: {
2217
- 200: z.ZodObject<{
2218
- requestId: z.ZodString;
2219
- data: z.ZodObject<{
2220
- data: z.ZodArray<z.ZodObject<{
2221
- access_token: z.ZodString;
2222
- category: z.ZodString;
2223
- category_list: z.ZodArray<z.ZodObject<{
2800
+ permissions: {
2801
+ id: string;
2802
+ description: string | null;
2803
+ createdAt: Date;
2804
+ updatedAt: Date;
2805
+ deletedAt: Date | null;
2806
+ systemName: string;
2807
+ displayName: string;
2808
+ }[];
2809
+ }>, "many">;
2810
+ extension: z.ZodObject<{
2224
2811
  id: z.ZodString;
2225
- name: z.ZodString;
2812
+ createdAt: z.ZodDate;
2813
+ updatedAt: z.ZodDate;
2814
+ deletedAt: z.ZodNullable<z.ZodDate>;
2815
+ userId: z.ZodNullable<z.ZodString>;
2816
+ sipServerUrl: z.ZodString;
2817
+ sipUserName: z.ZodString;
2818
+ webphoneLoginUser: z.ZodString;
2819
+ extensionId: z.ZodNullable<z.ZodString>;
2820
+ extensionName: z.ZodString;
2821
+ telephonySignature: z.ZodNullable<z.ZodString>;
2226
2822
  }, "strip", z.ZodTypeAny, {
2227
2823
  id: string;
2228
- name: string;
2824
+ createdAt: Date;
2825
+ updatedAt: Date;
2826
+ deletedAt: Date | null;
2827
+ userId: string | null;
2828
+ sipServerUrl: string;
2829
+ sipUserName: string;
2830
+ webphoneLoginUser: string;
2831
+ extensionId: string | null;
2832
+ extensionName: string;
2833
+ telephonySignature: string | null;
2229
2834
  }, {
2230
2835
  id: string;
2231
- name: string;
2232
- }>, "many">;
2233
- id: z.ZodString;
2234
- name: z.ZodString;
2235
- tasks: z.ZodArray<z.ZodString, "many">;
2836
+ createdAt: Date;
2837
+ updatedAt: Date;
2838
+ deletedAt: Date | null;
2839
+ userId: string | null;
2840
+ sipServerUrl: string;
2841
+ sipUserName: string;
2842
+ webphoneLoginUser: string;
2843
+ extensionId: string | null;
2844
+ extensionName: string;
2845
+ telephonySignature: string | null;
2846
+ }>;
2236
2847
  }, "strip", z.ZodTypeAny, {
2237
2848
  id: string;
2849
+ address: string | null;
2238
2850
  name: string;
2239
- category: string;
2240
- access_token: string;
2241
- category_list: {
2851
+ email: string;
2852
+ createdAt: Date;
2853
+ updatedAt: Date;
2854
+ deletedAt: Date | null;
2855
+ emailVerifiedAt: Date | null;
2856
+ password: string;
2857
+ phone: string | null;
2858
+ notificationCount: number | null;
2859
+ roles: {
2242
2860
  id: string;
2243
- name: string;
2861
+ description: string | null;
2862
+ createdAt: Date;
2863
+ updatedAt: Date;
2864
+ deletedAt: Date | null;
2865
+ systemName: string;
2866
+ displayName: string;
2867
+ permissions: {
2868
+ id: string;
2869
+ description: string | null;
2870
+ createdAt: Date;
2871
+ updatedAt: Date;
2872
+ deletedAt: Date | null;
2873
+ systemName: string;
2874
+ displayName: string;
2875
+ }[];
2244
2876
  }[];
2245
- tasks: string[];
2877
+ extension: {
2878
+ id: string;
2879
+ createdAt: Date;
2880
+ updatedAt: Date;
2881
+ deletedAt: Date | null;
2882
+ userId: string | null;
2883
+ sipServerUrl: string;
2884
+ sipUserName: string;
2885
+ webphoneLoginUser: string;
2886
+ extensionId: string | null;
2887
+ extensionName: string;
2888
+ telephonySignature: string | null;
2889
+ };
2246
2890
  }, {
2247
2891
  id: string;
2892
+ address: string | null;
2248
2893
  name: string;
2249
- category: string;
2250
- access_token: string;
2251
- category_list: {
2894
+ email: string;
2895
+ createdAt: Date;
2896
+ updatedAt: Date;
2897
+ deletedAt: Date | null;
2898
+ emailVerifiedAt: Date | null;
2899
+ password: string;
2900
+ phone: string | null;
2901
+ notificationCount: number | null;
2902
+ roles: {
2252
2903
  id: string;
2253
- name: string;
2904
+ description: string | null;
2905
+ createdAt: Date;
2906
+ updatedAt: Date;
2907
+ deletedAt: Date | null;
2908
+ systemName: string;
2909
+ displayName: string;
2910
+ permissions: {
2911
+ id: string;
2912
+ description: string | null;
2913
+ createdAt: Date;
2914
+ updatedAt: Date;
2915
+ deletedAt: Date | null;
2916
+ systemName: string;
2917
+ displayName: string;
2918
+ }[];
2254
2919
  }[];
2255
- tasks: string[];
2256
- }>, "many">;
2257
- paging: z.ZodOptional<z.ZodObject<{
2258
- cursors: z.ZodObject<{
2259
- before: z.ZodOptional<z.ZodString>;
2260
- after: z.ZodOptional<z.ZodString>;
2261
- }, "strip", z.ZodTypeAny, {
2262
- before?: string | undefined;
2263
- after?: string | undefined;
2264
- }, {
2265
- before?: string | undefined;
2266
- after?: string | undefined;
2267
- }>;
2268
- }, "strip", z.ZodTypeAny, {
2269
- cursors: {
2270
- before?: string | undefined;
2271
- after?: string | undefined;
2272
- };
2273
- }, {
2274
- cursors: {
2275
- before?: string | undefined;
2276
- after?: string | undefined;
2920
+ extension: {
2921
+ id: string;
2922
+ createdAt: Date;
2923
+ updatedAt: Date;
2924
+ deletedAt: Date | null;
2925
+ userId: string | null;
2926
+ sipServerUrl: string;
2927
+ sipUserName: string;
2928
+ webphoneLoginUser: string;
2929
+ extensionId: string | null;
2930
+ extensionName: string;
2931
+ telephonySignature: string | null;
2277
2932
  };
2278
2933
  }>>;
2279
2934
  }, "strip", z.ZodTypeAny, {
2280
- data: {
2935
+ id?: string | undefined;
2936
+ createdAt?: Date | undefined;
2937
+ updatedAt?: Date | undefined;
2938
+ deletedAt?: Date | null | undefined;
2939
+ name?: string | undefined;
2940
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2941
+ metadata?: {
2281
2942
  id: string;
2282
2943
  name: string;
2283
- category: string;
2284
- access_token: string;
2285
- category_list: {
2944
+ accessToken: string;
2945
+ additionalCredentials?: any;
2946
+ } | undefined;
2947
+ brandName?: string | undefined;
2948
+ platformId?: string | undefined;
2949
+ status?: boolean | undefined;
2950
+ isReloginRequired?: boolean | undefined;
2951
+ connectedUserName?: string | undefined;
2952
+ connectedUserId?: string | undefined;
2953
+ actor?: {
2954
+ id: string;
2955
+ address: string | null;
2956
+ name: string;
2957
+ email: string;
2958
+ createdAt: Date;
2959
+ updatedAt: Date;
2960
+ deletedAt: Date | null;
2961
+ emailVerifiedAt: Date | null;
2962
+ password: string;
2963
+ phone: string | null;
2964
+ notificationCount: number | null;
2965
+ roles: {
2286
2966
  id: string;
2287
- name: string;
2967
+ description: string | null;
2968
+ createdAt: Date;
2969
+ updatedAt: Date;
2970
+ deletedAt: Date | null;
2971
+ systemName: string;
2972
+ displayName: string;
2973
+ permissions: {
2974
+ id: string;
2975
+ description: string | null;
2976
+ createdAt: Date;
2977
+ updatedAt: Date;
2978
+ deletedAt: Date | null;
2979
+ systemName: string;
2980
+ displayName: string;
2981
+ }[];
2288
2982
  }[];
2289
- tasks: string[];
2290
- }[];
2291
- paging?: {
2292
- cursors: {
2293
- before?: string | undefined;
2294
- after?: string | undefined;
2983
+ extension: {
2984
+ id: string;
2985
+ createdAt: Date;
2986
+ updatedAt: Date;
2987
+ deletedAt: Date | null;
2988
+ userId: string | null;
2989
+ sipServerUrl: string;
2990
+ sipUserName: string;
2991
+ webphoneLoginUser: string;
2992
+ extensionId: string | null;
2993
+ extensionName: string;
2994
+ telephonySignature: string | null;
2295
2995
  };
2296
2996
  } | undefined;
2297
2997
  }, {
2298
- data: {
2998
+ id?: string | undefined;
2999
+ createdAt?: Date | undefined;
3000
+ updatedAt?: Date | undefined;
3001
+ deletedAt?: Date | null | undefined;
3002
+ name?: string | undefined;
3003
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3004
+ metadata?: {
2299
3005
  id: string;
2300
3006
  name: string;
2301
- category: string;
2302
- access_token: string;
2303
- category_list: {
3007
+ accessToken: string;
3008
+ additionalCredentials?: any;
3009
+ } | undefined;
3010
+ brandName?: string | undefined;
3011
+ platformId?: string | undefined;
3012
+ status?: boolean | undefined;
3013
+ isReloginRequired?: boolean | undefined;
3014
+ connectedUserName?: string | undefined;
3015
+ connectedUserId?: string | undefined;
3016
+ actor?: {
3017
+ id: string;
3018
+ address: string | null;
3019
+ name: string;
3020
+ email: string;
3021
+ createdAt: Date;
3022
+ updatedAt: Date;
3023
+ deletedAt: Date | null;
3024
+ emailVerifiedAt: Date | null;
3025
+ password: string;
3026
+ phone: string | null;
3027
+ notificationCount: number | null;
3028
+ roles: {
2304
3029
  id: string;
2305
- name: string;
3030
+ description: string | null;
3031
+ createdAt: Date;
3032
+ updatedAt: Date;
3033
+ deletedAt: Date | null;
3034
+ systemName: string;
3035
+ displayName: string;
3036
+ permissions: {
3037
+ id: string;
3038
+ description: string | null;
3039
+ createdAt: Date;
3040
+ updatedAt: Date;
3041
+ deletedAt: Date | null;
3042
+ systemName: string;
3043
+ displayName: string;
3044
+ }[];
2306
3045
  }[];
2307
- tasks: string[];
2308
- }[];
2309
- paging?: {
2310
- cursors: {
2311
- before?: string | undefined;
2312
- after?: string | undefined;
3046
+ extension: {
3047
+ id: string;
3048
+ createdAt: Date;
3049
+ updatedAt: Date;
3050
+ deletedAt: Date | null;
3051
+ userId: string | null;
3052
+ sipServerUrl: string;
3053
+ sipUserName: string;
3054
+ webphoneLoginUser: string;
3055
+ extensionId: string | null;
3056
+ extensionName: string;
3057
+ telephonySignature: string | null;
2313
3058
  };
2314
3059
  } | undefined;
2315
- }>;
3060
+ }>>;
2316
3061
  }, "strip", z.ZodTypeAny, {
2317
- data: {
2318
- data: {
3062
+ requestId: string;
3063
+ channel?: {
3064
+ id?: string | undefined;
3065
+ createdAt?: Date | undefined;
3066
+ updatedAt?: Date | undefined;
3067
+ deletedAt?: Date | null | undefined;
3068
+ name?: string | undefined;
3069
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3070
+ metadata?: {
2319
3071
  id: string;
2320
3072
  name: string;
2321
- category: string;
2322
- access_token: string;
2323
- category_list: {
3073
+ accessToken: string;
3074
+ additionalCredentials?: any;
3075
+ } | undefined;
3076
+ brandName?: string | undefined;
3077
+ platformId?: string | undefined;
3078
+ status?: boolean | undefined;
3079
+ isReloginRequired?: boolean | undefined;
3080
+ connectedUserName?: string | undefined;
3081
+ connectedUserId?: string | undefined;
3082
+ actor?: {
3083
+ id: string;
3084
+ address: string | null;
3085
+ name: string;
3086
+ email: string;
3087
+ createdAt: Date;
3088
+ updatedAt: Date;
3089
+ deletedAt: Date | null;
3090
+ emailVerifiedAt: Date | null;
3091
+ password: string;
3092
+ phone: string | null;
3093
+ notificationCount: number | null;
3094
+ roles: {
2324
3095
  id: string;
2325
- name: string;
3096
+ description: string | null;
3097
+ createdAt: Date;
3098
+ updatedAt: Date;
3099
+ deletedAt: Date | null;
3100
+ systemName: string;
3101
+ displayName: string;
3102
+ permissions: {
3103
+ id: string;
3104
+ description: string | null;
3105
+ createdAt: Date;
3106
+ updatedAt: Date;
3107
+ deletedAt: Date | null;
3108
+ systemName: string;
3109
+ displayName: string;
3110
+ }[];
2326
3111
  }[];
2327
- tasks: string[];
2328
- }[];
2329
- paging?: {
2330
- cursors: {
2331
- before?: string | undefined;
2332
- after?: string | undefined;
3112
+ extension: {
3113
+ id: string;
3114
+ createdAt: Date;
3115
+ updatedAt: Date;
3116
+ deletedAt: Date | null;
3117
+ userId: string | null;
3118
+ sipServerUrl: string;
3119
+ sipUserName: string;
3120
+ webphoneLoginUser: string;
3121
+ extensionId: string | null;
3122
+ extensionName: string;
3123
+ telephonySignature: string | null;
2333
3124
  };
2334
3125
  } | undefined;
2335
- };
2336
- requestId: string;
3126
+ } | undefined;
2337
3127
  }, {
2338
- data: {
2339
- data: {
3128
+ requestId: string;
3129
+ channel?: {
3130
+ id?: string | undefined;
3131
+ createdAt?: Date | undefined;
3132
+ updatedAt?: Date | undefined;
3133
+ deletedAt?: Date | null | undefined;
3134
+ name?: string | undefined;
3135
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3136
+ metadata?: {
2340
3137
  id: string;
2341
3138
  name: string;
2342
- category: string;
2343
- access_token: string;
2344
- category_list: {
3139
+ accessToken: string;
3140
+ additionalCredentials?: any;
3141
+ } | undefined;
3142
+ brandName?: string | undefined;
3143
+ platformId?: string | undefined;
3144
+ status?: boolean | undefined;
3145
+ isReloginRequired?: boolean | undefined;
3146
+ connectedUserName?: string | undefined;
3147
+ connectedUserId?: string | undefined;
3148
+ actor?: {
3149
+ id: string;
3150
+ address: string | null;
3151
+ name: string;
3152
+ email: string;
3153
+ createdAt: Date;
3154
+ updatedAt: Date;
3155
+ deletedAt: Date | null;
3156
+ emailVerifiedAt: Date | null;
3157
+ password: string;
3158
+ phone: string | null;
3159
+ notificationCount: number | null;
3160
+ roles: {
2345
3161
  id: string;
2346
- name: string;
3162
+ description: string | null;
3163
+ createdAt: Date;
3164
+ updatedAt: Date;
3165
+ deletedAt: Date | null;
3166
+ systemName: string;
3167
+ displayName: string;
3168
+ permissions: {
3169
+ id: string;
3170
+ description: string | null;
3171
+ createdAt: Date;
3172
+ updatedAt: Date;
3173
+ deletedAt: Date | null;
3174
+ systemName: string;
3175
+ displayName: string;
3176
+ }[];
2347
3177
  }[];
2348
- tasks: string[];
2349
- }[];
2350
- paging?: {
2351
- cursors: {
2352
- before?: string | undefined;
2353
- after?: string | undefined;
3178
+ extension: {
3179
+ id: string;
3180
+ createdAt: Date;
3181
+ updatedAt: Date;
3182
+ deletedAt: Date | null;
3183
+ userId: string | null;
3184
+ sipServerUrl: string;
3185
+ sipUserName: string;
3186
+ webphoneLoginUser: string;
3187
+ extensionId: string | null;
3188
+ extensionName: string;
3189
+ telephonySignature: string | null;
2354
3190
  };
2355
3191
  } | undefined;
2356
- };
2357
- requestId: string;
3192
+ } | undefined;
2358
3193
  }>;
2359
- 500: z.ZodObject<{
3194
+ 408: z.ZodObject<{
2360
3195
  message: z.ZodString;
2361
3196
  error: z.ZodAny;
2362
3197
  }, "strip", z.ZodTypeAny, {
@@ -2367,7 +3202,7 @@ export declare const channelContract: {
2367
3202
  error?: any;
2368
3203
  }>;
2369
3204
  };
2370
- path: "channel/messenger/pages";
3205
+ path: "channel/line/connect";
2371
3206
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2372
3207
  'x-tenant': z.ZodString;
2373
3208
  authorization: z.ZodString;