@kl1/contracts 1.2.46-uat → 1.2.48-uat

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