@kl1/contracts 1.1.58 → 1.1.59

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +7 -7
  2. package/dist/api-contracts/src/activity-log/schema.d.ts +4 -4
  3. package/dist/api-contracts/src/attribute/index.d.ts +25 -25
  4. package/dist/api-contracts/src/attribute/validation.d.ts +4 -4
  5. package/dist/api-contracts/src/auth/index.d.ts +71 -311
  6. package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
  7. package/dist/api-contracts/src/automation-queue/index.d.ts +101 -101
  8. package/dist/api-contracts/src/automation-queue/schema.d.ts +10 -10
  9. package/dist/api-contracts/src/base-contract.d.ts +3 -3
  10. package/dist/api-contracts/src/botpress/index.d.ts +28 -28
  11. package/dist/api-contracts/src/botpress/schema.d.ts +6 -6
  12. package/dist/api-contracts/src/botpress/validation.d.ts +8 -8
  13. package/dist/api-contracts/src/business-calendar/index.d.ts +32 -32
  14. package/dist/api-contracts/src/business-calendar/schema.d.ts +8 -8
  15. package/dist/api-contracts/src/business-calendar/validation.d.ts +2 -2
  16. package/dist/api-contracts/src/category/index.d.ts +30 -30
  17. package/dist/api-contracts/src/category/schema.d.ts +2 -2
  18. package/dist/api-contracts/src/channel/index.d.ts +2566 -1792
  19. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  20. package/dist/api-contracts/src/channel/schema.d.ts +139 -109
  21. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  22. package/dist/api-contracts/src/channel/validation.d.ts +160 -118
  23. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  24. package/dist/api-contracts/src/chat/index.d.ts +7354 -6531
  25. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  26. package/dist/api-contracts/src/chat/schema.d.ts +2366 -2167
  27. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  28. package/dist/api-contracts/src/chat/validation.d.ts +1854 -1563
  29. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  30. package/dist/api-contracts/src/comment/index.d.ts +328 -328
  31. package/dist/api-contracts/src/comment/schema.d.ts +88 -88
  32. package/dist/api-contracts/src/company/index.d.ts +9 -9
  33. package/dist/api-contracts/src/company/validation.d.ts +4 -4
  34. package/dist/api-contracts/src/contact/index.d.ts +399 -399
  35. package/dist/api-contracts/src/contact/schema.d.ts +38 -38
  36. package/dist/api-contracts/src/contact/validation.d.ts +190 -190
  37. package/dist/api-contracts/src/contract.d.ts +43684 -28896
  38. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  39. package/dist/api-contracts/src/cx-intelligence/index.d.ts +9 -9
  40. package/dist/api-contracts/src/cx-log/index.d.ts +545 -393
  41. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  42. package/dist/api-contracts/src/cx-log/schema.d.ts +402 -321
  43. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  44. package/dist/api-contracts/src/cx-log/validation.d.ts +2 -2
  45. package/dist/api-contracts/src/dashboard/index.d.ts +167 -189
  46. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  47. package/dist/api-contracts/src/dashboard/schema.d.ts +44 -87
  48. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  49. package/dist/api-contracts/src/dashboard/validation.d.ts +26 -0
  50. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  51. package/dist/api-contracts/src/extension/index.d.ts +103 -22
  52. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  53. package/dist/api-contracts/src/facebook-feed/index.d.ts +2170 -1768
  54. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  55. package/dist/api-contracts/src/facebook-feed/schema.d.ts +168 -141
  56. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  57. package/dist/api-contracts/src/facebook-feed/validation.d.ts +147 -126
  58. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  59. package/dist/api-contracts/src/hold-label/index.d.ts +34 -34
  60. package/dist/api-contracts/src/hold-label/schema.d.ts +10 -10
  61. package/dist/api-contracts/src/index.d.ts +5 -0
  62. package/dist/api-contracts/src/index.d.ts.map +1 -1
  63. package/dist/api-contracts/src/instagram/index.d.ts +1747 -1432
  64. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  65. package/dist/api-contracts/src/instagram/validation.d.ts +10 -10
  66. package/dist/api-contracts/src/line/index.d.ts +1646 -1367
  67. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  68. package/dist/api-contracts/src/line/schema.d.ts +4 -4
  69. package/dist/api-contracts/src/line/validation.d.ts +165 -132
  70. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  71. package/dist/api-contracts/src/mail/account-contract.d.ts +116 -116
  72. package/dist/api-contracts/src/mail/mail-contract.d.ts +2535 -2535
  73. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +38 -38
  74. package/dist/api-contracts/src/mail/message-contract.d.ts +278 -278
  75. package/dist/api-contracts/src/mail/room-contract.d.ts +1490 -1490
  76. package/dist/api-contracts/src/mail/schemas/account-validation.schema.d.ts +50 -50
  77. package/dist/api-contracts/src/mail/schemas/account.schema.d.ts +12 -12
  78. package/dist/api-contracts/src/mail/schemas/message.schema.d.ts +56 -56
  79. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +478 -478
  80. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +471 -471
  81. package/dist/api-contracts/src/messenger/index.d.ts +1750 -1435
  82. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  83. package/dist/api-contracts/src/messenger/schema.d.ts +16 -16
  84. package/dist/api-contracts/src/messenger/validation.d.ts +143 -122
  85. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  86. package/dist/api-contracts/src/notification/index.d.ts +26 -26
  87. package/dist/api-contracts/src/notification/schema.d.ts +18 -18
  88. package/dist/api-contracts/src/notification/validation.d.ts +10 -10
  89. package/dist/api-contracts/src/permission/index.d.ts +3 -3
  90. package/dist/api-contracts/src/presence-status/index.d.ts +15 -15
  91. package/dist/api-contracts/src/public-api/index.d.ts +143 -143
  92. package/dist/api-contracts/src/public-api/schema.d.ts +22 -22
  93. package/dist/api-contracts/src/public-api/validation.d.ts +39 -39
  94. package/dist/api-contracts/src/role/index.d.ts +15 -15
  95. package/dist/api-contracts/src/sms/index.d.ts +2717 -270
  96. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  97. package/dist/api-contracts/src/sms/schema.d.ts +30 -8
  98. package/dist/api-contracts/src/sms/schema.d.ts.map +1 -1
  99. package/dist/api-contracts/src/sms/validation.d.ts +2 -2
  100. package/dist/api-contracts/src/snippet/index.d.ts +147 -147
  101. package/dist/api-contracts/src/snippet/schema.d.ts +50 -50
  102. package/dist/api-contracts/src/subscription/index.d.ts +267 -186
  103. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  104. package/dist/api-contracts/src/subscription/schema.d.ts +247 -216
  105. package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
  106. package/dist/api-contracts/src/subscription/validation.d.ts +18 -0
  107. package/dist/api-contracts/src/subscription/validation.d.ts.map +1 -1
  108. package/dist/api-contracts/src/tag/index.d.ts +24 -24
  109. package/dist/api-contracts/src/tag/schema.d.ts +2 -2
  110. package/dist/api-contracts/src/telegram/index.d.ts +1407 -1182
  111. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  112. package/dist/api-contracts/src/telegram/validation.d.ts +4 -4
  113. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +57 -112
  114. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  115. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +14 -31
  116. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  117. package/dist/api-contracts/src/telephony-cdr/index.d.ts +282 -282
  118. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  119. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +72 -72
  120. package/dist/api-contracts/src/telephony-extension/index.d.ts +3 -3
  121. package/dist/api-contracts/src/tenant/schema.d.ts +2 -2
  122. package/dist/api-contracts/src/ticket/index.d.ts +515 -515
  123. package/dist/api-contracts/src/ticket/schema.d.ts +63 -63
  124. package/dist/api-contracts/src/upload/index.d.ts +6 -6
  125. package/dist/api-contracts/src/upload/schema.d.ts +3 -3
  126. package/dist/api-contracts/src/user/index.d.ts +41 -41
  127. package/dist/api-contracts/src/user/schema.d.ts +2 -2
  128. package/dist/api-contracts/src/user/validation.d.ts +5 -5
  129. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +26 -18
  130. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  131. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +24 -14
  132. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  133. package/dist/api-contracts/src/viber/index.d.ts +1419 -1194
  134. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  135. package/dist/api-contracts/src/viber/validation.d.ts +4 -4
  136. package/dist/api-contracts/src/webchat/index.d.ts +1413 -1188
  137. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  138. package/dist/api-contracts/src/webchat/schema.d.ts +10 -10
  139. package/dist/api-contracts/src/webchat/validation.d.ts +2 -2
  140. package/dist/api-contracts/src/whatsapp/index.d.ts +1758 -1287
  141. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  142. package/dist/api-contracts/src/whatsapp/validation.d.ts +79 -0
  143. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  144. package/dist/api-contracts/src/widget/index.d.ts +51 -51
  145. package/dist/api-contracts/src/widget/schema.d.ts +2 -2
  146. package/dist/api-contracts/src/widget/validation.d.ts +4 -4
  147. package/dist/api-contracts/src/workflow-rule/index.d.ts +8703 -417
  148. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  149. package/dist/api-contracts/src/workflow-rule/schema.d.ts +2 -2
  150. package/dist/api-contracts/src/wrap-up-form/index.d.ts +44 -44
  151. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +4 -4
  152. package/dist/api-contracts/utils.d.ts +1 -1
  153. package/dist/api-contracts/utils.d.ts.map +1 -1
  154. package/dist/entities/src/enums/chat.d.ts +1 -0
  155. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  156. package/dist/index.js +4832 -4295
  157. package/dist/index.js.map +1 -1
  158. package/dist/index.mjs +4821 -4289
  159. package/dist/index.mjs.map +1 -1
  160. 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<{
@@ -11,15 +12,15 @@ export declare const smsContract: {
11
12
  address: z.ZodNullable<z.ZodString>;
12
13
  phone: z.ZodNullable<z.ZodString>;
13
14
  }, "strip", z.ZodTypeAny, {
15
+ name: string;
14
16
  id: string;
15
17
  address: string | null;
16
- name: string;
17
18
  email: string;
18
19
  phone: string | null;
19
20
  }, {
21
+ name: string;
20
22
  id: string;
21
23
  address: string | null;
22
- name: string;
23
24
  email: string;
24
25
  phone: string | null;
25
26
  }>;
@@ -41,62 +42,2395 @@ export declare const smsContract: {
41
42
  apiSecret: string;
42
43
  }>;
43
44
  }, "strip", z.ZodTypeAny, {
45
+ name: string;
46
+ type: import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS;
47
+ senderId: string;
48
+ vonageCredentials: {
49
+ apiKey: string;
50
+ mobileNumber: string;
51
+ apiSecret: string;
52
+ };
53
+ }, {
54
+ name: string;
55
+ type: import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS;
56
+ senderId: string;
57
+ vonageCredentials: {
58
+ apiKey: string;
59
+ mobileNumber: string;
60
+ apiSecret: string;
61
+ };
62
+ }>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ channel: {
65
+ name: string;
44
66
  type: import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS;
67
+ senderId: string;
68
+ vonageCredentials: {
69
+ apiKey: string;
70
+ mobileNumber: string;
71
+ apiSecret: string;
72
+ };
73
+ };
74
+ actor: {
75
+ name: string;
76
+ id: string;
77
+ address: string | null;
78
+ email: string;
79
+ phone: string | null;
80
+ };
81
+ }, {
82
+ channel: {
45
83
  name: string;
84
+ type: import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS;
46
85
  senderId: string;
47
86
  vonageCredentials: {
48
87
  apiKey: string;
49
88
  mobileNumber: string;
50
89
  apiSecret: string;
51
90
  };
91
+ };
92
+ actor: {
93
+ name: string;
94
+ id: string;
95
+ address: string | null;
96
+ email: string;
97
+ phone: string | null;
98
+ };
99
+ }>;
100
+ method: "POST";
101
+ responses: {
102
+ 200: z.ZodObject<{
103
+ requestId: z.ZodString;
104
+ channel: z.ZodObject<{
105
+ id: z.ZodString;
106
+ createdAt: z.ZodDate;
107
+ updatedAt: z.ZodDate;
108
+ deletedAt: z.ZodNullable<z.ZodDate>;
109
+ name: z.ZodString;
110
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
111
+ metadata: z.ZodObject<{
112
+ id: z.ZodString;
113
+ name: z.ZodString;
114
+ accessToken: z.ZodOptional<z.ZodString>;
115
+ channelSecret: z.ZodOptional<z.ZodString>;
116
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
117
+ senderId: z.ZodOptional<z.ZodString>;
118
+ whatsapp: z.ZodOptional<z.ZodObject<{
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"]>>;
128
+ apiKey: z.ZodOptional<z.ZodString>;
129
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
130
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
131
+ }, "strip", z.ZodTypeAny, {
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;
141
+ apiKey?: string | undefined;
142
+ tier?: "basic" | "regular" | "premium" | undefined;
143
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
144
+ }, {
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;
154
+ apiKey?: string | undefined;
155
+ tier?: "basic" | "regular" | "premium" | undefined;
156
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
157
+ }>>;
158
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
159
+ mobileNumber: z.ZodString;
160
+ apiKey: z.ZodString;
161
+ apiSecret: z.ZodString;
162
+ }, "strip", z.ZodTypeAny, {
163
+ apiKey: string;
164
+ mobileNumber: string;
165
+ apiSecret: string;
166
+ }, {
167
+ apiKey: string;
168
+ mobileNumber: string;
169
+ apiSecret: string;
170
+ }>>;
171
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
172
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
173
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ name: string;
176
+ id: string;
177
+ accessToken?: string | undefined;
178
+ channelSecret?: string | undefined;
179
+ additionalCredentials?: any;
180
+ senderId?: string | undefined;
181
+ whatsapp?: {
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;
191
+ apiKey?: string | undefined;
192
+ tier?: "basic" | "regular" | "premium" | undefined;
193
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
194
+ } | undefined;
195
+ vonageCredentials?: {
196
+ apiKey: string;
197
+ mobileNumber: string;
198
+ apiSecret: string;
199
+ } | undefined;
200
+ lineRichMenuId?: string | null | undefined;
201
+ messengerIntegrationType?: "own" | "business" | undefined;
202
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
203
+ }, {
204
+ name: string;
205
+ id: string;
206
+ accessToken?: string | undefined;
207
+ channelSecret?: string | undefined;
208
+ additionalCredentials?: any;
209
+ senderId?: string | undefined;
210
+ whatsapp?: {
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;
220
+ apiKey?: string | undefined;
221
+ tier?: "basic" | "regular" | "premium" | undefined;
222
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
223
+ } | undefined;
224
+ vonageCredentials?: {
225
+ apiKey: string;
226
+ mobileNumber: string;
227
+ apiSecret: string;
228
+ } | undefined;
229
+ lineRichMenuId?: string | null | undefined;
230
+ messengerIntegrationType?: "own" | "business" | undefined;
231
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
232
+ }>;
233
+ brandName: z.ZodString;
234
+ platformId: z.ZodString;
235
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
236
+ isReloginRequired: z.ZodBoolean;
237
+ connectedUserName: z.ZodString;
238
+ connectedUserId: z.ZodString;
239
+ botpressBot: z.ZodNullable<z.ZodObject<{
240
+ id: z.ZodString;
241
+ name: z.ZodString;
242
+ botId: z.ZodString;
243
+ integrationId: z.ZodString;
244
+ accessToken: z.ZodString;
245
+ }, "strip", z.ZodTypeAny, {
246
+ name: string;
247
+ id: string;
248
+ accessToken: string;
249
+ botId: string;
250
+ integrationId: string;
251
+ }, {
252
+ name: string;
253
+ id: string;
254
+ accessToken: string;
255
+ botId: string;
256
+ integrationId: string;
257
+ }>>;
258
+ actor: z.ZodObject<{
259
+ id: z.ZodString;
260
+ createdAt: z.ZodDate;
261
+ updatedAt: z.ZodDate;
262
+ deletedAt: z.ZodNullable<z.ZodDate>;
263
+ name: z.ZodString;
264
+ email: z.ZodString;
265
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
266
+ password: z.ZodString;
267
+ address: z.ZodNullable<z.ZodString>;
268
+ phone: z.ZodNullable<z.ZodString>;
269
+ notificationCount: z.ZodNullable<z.ZodNumber>;
270
+ roles: z.ZodArray<z.ZodObject<{
271
+ id: z.ZodString;
272
+ createdAt: z.ZodDate;
273
+ updatedAt: z.ZodDate;
274
+ deletedAt: z.ZodNullable<z.ZodDate>;
275
+ systemName: z.ZodString;
276
+ displayName: z.ZodString;
277
+ description: z.ZodNullable<z.ZodString>;
278
+ permissions: z.ZodArray<z.ZodObject<{
279
+ id: z.ZodString;
280
+ createdAt: z.ZodDate;
281
+ updatedAt: z.ZodDate;
282
+ deletedAt: z.ZodNullable<z.ZodDate>;
283
+ systemName: z.ZodString;
284
+ displayName: z.ZodString;
285
+ description: z.ZodNullable<z.ZodString>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ id: string;
288
+ description: string | null;
289
+ createdAt: Date;
290
+ updatedAt: Date;
291
+ deletedAt: Date | null;
292
+ systemName: string;
293
+ displayName: string;
294
+ }, {
295
+ id: string;
296
+ description: string | null;
297
+ createdAt: Date;
298
+ updatedAt: Date;
299
+ deletedAt: Date | null;
300
+ systemName: string;
301
+ displayName: string;
302
+ }>, "many">;
303
+ }, "strip", z.ZodTypeAny, {
304
+ id: string;
305
+ description: string | null;
306
+ createdAt: Date;
307
+ updatedAt: Date;
308
+ deletedAt: Date | null;
309
+ systemName: string;
310
+ displayName: string;
311
+ permissions: {
312
+ id: string;
313
+ description: string | null;
314
+ createdAt: Date;
315
+ updatedAt: Date;
316
+ deletedAt: Date | null;
317
+ systemName: string;
318
+ displayName: string;
319
+ }[];
320
+ }, {
321
+ id: string;
322
+ description: string | null;
323
+ createdAt: Date;
324
+ updatedAt: Date;
325
+ deletedAt: Date | null;
326
+ systemName: string;
327
+ displayName: string;
328
+ permissions: {
329
+ id: string;
330
+ description: string | null;
331
+ createdAt: Date;
332
+ updatedAt: Date;
333
+ deletedAt: Date | null;
334
+ systemName: string;
335
+ displayName: string;
336
+ }[];
337
+ }>, "many">;
338
+ extension: z.ZodObject<{
339
+ id: z.ZodString;
340
+ createdAt: z.ZodDate;
341
+ updatedAt: z.ZodDate;
342
+ deletedAt: z.ZodNullable<z.ZodDate>;
343
+ userId: z.ZodNullable<z.ZodString>;
344
+ sipServerUrl: z.ZodString;
345
+ sipUserName: z.ZodString;
346
+ webphoneLoginUser: z.ZodString;
347
+ extensionId: z.ZodNullable<z.ZodString>;
348
+ extensionName: z.ZodString;
349
+ telephonySignature: z.ZodNullable<z.ZodString>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ id: string;
352
+ createdAt: Date;
353
+ updatedAt: Date;
354
+ deletedAt: Date | null;
355
+ userId: string | null;
356
+ sipServerUrl: string;
357
+ sipUserName: string;
358
+ webphoneLoginUser: string;
359
+ extensionId: string | null;
360
+ extensionName: string;
361
+ telephonySignature: string | null;
362
+ }, {
363
+ id: string;
364
+ createdAt: Date;
365
+ updatedAt: Date;
366
+ deletedAt: Date | null;
367
+ userId: string | null;
368
+ sipServerUrl: string;
369
+ sipUserName: string;
370
+ webphoneLoginUser: string;
371
+ extensionId: string | null;
372
+ extensionName: string;
373
+ telephonySignature: string | null;
374
+ }>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ name: string;
377
+ id: string;
378
+ address: string | null;
379
+ email: string;
380
+ createdAt: Date;
381
+ updatedAt: Date;
382
+ deletedAt: Date | null;
383
+ emailVerifiedAt: Date | null;
384
+ password: string;
385
+ phone: string | null;
386
+ notificationCount: number | null;
387
+ roles: {
388
+ id: string;
389
+ description: string | null;
390
+ createdAt: Date;
391
+ updatedAt: Date;
392
+ deletedAt: Date | null;
393
+ systemName: string;
394
+ displayName: string;
395
+ permissions: {
396
+ id: string;
397
+ description: string | null;
398
+ createdAt: Date;
399
+ updatedAt: Date;
400
+ deletedAt: Date | null;
401
+ systemName: string;
402
+ displayName: string;
403
+ }[];
404
+ }[];
405
+ extension: {
406
+ id: string;
407
+ createdAt: Date;
408
+ updatedAt: Date;
409
+ deletedAt: Date | null;
410
+ userId: string | null;
411
+ sipServerUrl: string;
412
+ sipUserName: string;
413
+ webphoneLoginUser: string;
414
+ extensionId: string | null;
415
+ extensionName: string;
416
+ telephonySignature: string | null;
417
+ };
418
+ }, {
419
+ name: string;
420
+ id: string;
421
+ address: string | null;
422
+ email: string;
423
+ createdAt: Date;
424
+ updatedAt: Date;
425
+ deletedAt: Date | null;
426
+ emailVerifiedAt: Date | null;
427
+ password: string;
428
+ phone: string | null;
429
+ notificationCount: number | null;
430
+ roles: {
431
+ id: string;
432
+ description: string | null;
433
+ createdAt: Date;
434
+ updatedAt: Date;
435
+ deletedAt: Date | null;
436
+ systemName: string;
437
+ displayName: string;
438
+ permissions: {
439
+ id: string;
440
+ description: string | null;
441
+ createdAt: Date;
442
+ updatedAt: Date;
443
+ deletedAt: Date | null;
444
+ systemName: string;
445
+ displayName: string;
446
+ }[];
447
+ }[];
448
+ extension: {
449
+ id: string;
450
+ createdAt: Date;
451
+ updatedAt: Date;
452
+ deletedAt: Date | null;
453
+ userId: string | null;
454
+ sipServerUrl: string;
455
+ sipUserName: string;
456
+ webphoneLoginUser: string;
457
+ extensionId: string | null;
458
+ extensionName: string;
459
+ telephonySignature: string | null;
460
+ };
461
+ }>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ name: string;
464
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
465
+ id: string;
466
+ metadata: {
467
+ name: string;
468
+ id: string;
469
+ accessToken?: string | undefined;
470
+ channelSecret?: string | undefined;
471
+ additionalCredentials?: any;
472
+ senderId?: string | undefined;
473
+ whatsapp?: {
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;
483
+ apiKey?: string | undefined;
484
+ tier?: "basic" | "regular" | "premium" | undefined;
485
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
486
+ } | undefined;
487
+ vonageCredentials?: {
488
+ apiKey: string;
489
+ mobileNumber: string;
490
+ apiSecret: string;
491
+ } | undefined;
492
+ lineRichMenuId?: string | null | undefined;
493
+ messengerIntegrationType?: "own" | "business" | undefined;
494
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
495
+ };
496
+ status: boolean;
497
+ createdAt: Date;
498
+ updatedAt: Date;
499
+ deletedAt: Date | null;
500
+ actor: {
501
+ name: string;
502
+ id: string;
503
+ address: string | null;
504
+ email: string;
505
+ createdAt: Date;
506
+ updatedAt: Date;
507
+ deletedAt: Date | null;
508
+ emailVerifiedAt: Date | null;
509
+ password: string;
510
+ phone: string | null;
511
+ notificationCount: number | null;
512
+ roles: {
513
+ id: string;
514
+ description: string | null;
515
+ createdAt: Date;
516
+ updatedAt: Date;
517
+ deletedAt: Date | null;
518
+ systemName: string;
519
+ displayName: string;
520
+ permissions: {
521
+ id: string;
522
+ description: string | null;
523
+ createdAt: Date;
524
+ updatedAt: Date;
525
+ deletedAt: Date | null;
526
+ systemName: string;
527
+ displayName: string;
528
+ }[];
529
+ }[];
530
+ extension: {
531
+ id: string;
532
+ createdAt: Date;
533
+ updatedAt: Date;
534
+ deletedAt: Date | null;
535
+ userId: string | null;
536
+ sipServerUrl: string;
537
+ sipUserName: string;
538
+ webphoneLoginUser: string;
539
+ extensionId: string | null;
540
+ extensionName: string;
541
+ telephonySignature: string | null;
542
+ };
543
+ };
544
+ brandName: string;
545
+ platformId: string;
546
+ isReloginRequired: boolean;
547
+ connectedUserName: string;
548
+ connectedUserId: string;
549
+ botpressBot: {
550
+ name: string;
551
+ id: string;
552
+ accessToken: string;
553
+ botId: string;
554
+ integrationId: string;
555
+ } | null;
556
+ }, {
557
+ name: string;
558
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
559
+ id: string;
560
+ metadata: {
561
+ name: string;
562
+ id: string;
563
+ accessToken?: string | undefined;
564
+ channelSecret?: string | undefined;
565
+ additionalCredentials?: any;
566
+ senderId?: string | undefined;
567
+ whatsapp?: {
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;
577
+ apiKey?: string | undefined;
578
+ tier?: "basic" | "regular" | "premium" | undefined;
579
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
580
+ } | undefined;
581
+ vonageCredentials?: {
582
+ apiKey: string;
583
+ mobileNumber: string;
584
+ apiSecret: string;
585
+ } | undefined;
586
+ lineRichMenuId?: string | null | undefined;
587
+ messengerIntegrationType?: "own" | "business" | undefined;
588
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
589
+ };
590
+ status: boolean;
591
+ createdAt: Date;
592
+ updatedAt: Date;
593
+ deletedAt: Date | null;
594
+ actor: {
595
+ name: string;
596
+ id: string;
597
+ address: string | null;
598
+ email: string;
599
+ createdAt: Date;
600
+ updatedAt: Date;
601
+ deletedAt: Date | null;
602
+ emailVerifiedAt: Date | null;
603
+ password: string;
604
+ phone: string | null;
605
+ notificationCount: number | null;
606
+ roles: {
607
+ id: string;
608
+ description: string | null;
609
+ createdAt: Date;
610
+ updatedAt: Date;
611
+ deletedAt: Date | null;
612
+ systemName: string;
613
+ displayName: string;
614
+ permissions: {
615
+ id: string;
616
+ description: string | null;
617
+ createdAt: Date;
618
+ updatedAt: Date;
619
+ deletedAt: Date | null;
620
+ systemName: string;
621
+ displayName: string;
622
+ }[];
623
+ }[];
624
+ extension: {
625
+ id: string;
626
+ createdAt: Date;
627
+ updatedAt: Date;
628
+ deletedAt: Date | null;
629
+ userId: string | null;
630
+ sipServerUrl: string;
631
+ sipUserName: string;
632
+ webphoneLoginUser: string;
633
+ extensionId: string | null;
634
+ extensionName: string;
635
+ telephonySignature: string | null;
636
+ };
637
+ };
638
+ brandName: string;
639
+ platformId: string;
640
+ isReloginRequired: boolean;
641
+ connectedUserName: string;
642
+ connectedUserId: string;
643
+ botpressBot: {
644
+ name: string;
645
+ id: string;
646
+ accessToken: string;
647
+ botId: string;
648
+ integrationId: string;
649
+ } | null;
650
+ }>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ channel: {
653
+ name: string;
654
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
655
+ id: string;
656
+ metadata: {
657
+ name: string;
658
+ id: string;
659
+ accessToken?: string | undefined;
660
+ channelSecret?: string | undefined;
661
+ additionalCredentials?: any;
662
+ senderId?: string | undefined;
663
+ whatsapp?: {
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;
673
+ apiKey?: string | undefined;
674
+ tier?: "basic" | "regular" | "premium" | undefined;
675
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
676
+ } | undefined;
677
+ vonageCredentials?: {
678
+ apiKey: string;
679
+ mobileNumber: string;
680
+ apiSecret: string;
681
+ } | undefined;
682
+ lineRichMenuId?: string | null | undefined;
683
+ messengerIntegrationType?: "own" | "business" | undefined;
684
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
685
+ };
686
+ status: boolean;
687
+ createdAt: Date;
688
+ updatedAt: Date;
689
+ deletedAt: Date | null;
690
+ actor: {
691
+ name: string;
692
+ id: string;
693
+ address: string | null;
694
+ email: string;
695
+ createdAt: Date;
696
+ updatedAt: Date;
697
+ deletedAt: Date | null;
698
+ emailVerifiedAt: Date | null;
699
+ password: string;
700
+ phone: string | null;
701
+ notificationCount: number | null;
702
+ roles: {
703
+ id: string;
704
+ description: string | null;
705
+ createdAt: Date;
706
+ updatedAt: Date;
707
+ deletedAt: Date | null;
708
+ systemName: string;
709
+ displayName: string;
710
+ permissions: {
711
+ id: string;
712
+ description: string | null;
713
+ createdAt: Date;
714
+ updatedAt: Date;
715
+ deletedAt: Date | null;
716
+ systemName: string;
717
+ displayName: string;
718
+ }[];
719
+ }[];
720
+ extension: {
721
+ id: string;
722
+ createdAt: Date;
723
+ updatedAt: Date;
724
+ deletedAt: Date | null;
725
+ userId: string | null;
726
+ sipServerUrl: string;
727
+ sipUserName: string;
728
+ webphoneLoginUser: string;
729
+ extensionId: string | null;
730
+ extensionName: string;
731
+ telephonySignature: string | null;
732
+ };
733
+ };
734
+ brandName: string;
735
+ platformId: string;
736
+ isReloginRequired: boolean;
737
+ connectedUserName: string;
738
+ connectedUserId: string;
739
+ botpressBot: {
740
+ name: string;
741
+ id: string;
742
+ accessToken: string;
743
+ botId: string;
744
+ integrationId: string;
745
+ } | null;
746
+ };
747
+ requestId: string;
748
+ }, {
749
+ channel: {
750
+ name: string;
751
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
752
+ id: string;
753
+ metadata: {
754
+ name: string;
755
+ id: string;
756
+ accessToken?: string | undefined;
757
+ channelSecret?: string | undefined;
758
+ additionalCredentials?: any;
759
+ senderId?: string | undefined;
760
+ whatsapp?: {
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;
770
+ apiKey?: string | undefined;
771
+ tier?: "basic" | "regular" | "premium" | undefined;
772
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
773
+ } | undefined;
774
+ vonageCredentials?: {
775
+ apiKey: string;
776
+ mobileNumber: string;
777
+ apiSecret: string;
778
+ } | undefined;
779
+ lineRichMenuId?: string | null | undefined;
780
+ messengerIntegrationType?: "own" | "business" | undefined;
781
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
782
+ };
783
+ status: boolean;
784
+ createdAt: Date;
785
+ updatedAt: Date;
786
+ deletedAt: Date | null;
787
+ actor: {
788
+ name: string;
789
+ id: string;
790
+ address: string | null;
791
+ email: string;
792
+ createdAt: Date;
793
+ updatedAt: Date;
794
+ deletedAt: Date | null;
795
+ emailVerifiedAt: Date | null;
796
+ password: string;
797
+ phone: string | null;
798
+ notificationCount: number | null;
799
+ roles: {
800
+ id: string;
801
+ description: string | null;
802
+ createdAt: Date;
803
+ updatedAt: Date;
804
+ deletedAt: Date | null;
805
+ systemName: string;
806
+ displayName: string;
807
+ permissions: {
808
+ id: string;
809
+ description: string | null;
810
+ createdAt: Date;
811
+ updatedAt: Date;
812
+ deletedAt: Date | null;
813
+ systemName: string;
814
+ displayName: string;
815
+ }[];
816
+ }[];
817
+ extension: {
818
+ id: string;
819
+ createdAt: Date;
820
+ updatedAt: Date;
821
+ deletedAt: Date | null;
822
+ userId: string | null;
823
+ sipServerUrl: string;
824
+ sipUserName: string;
825
+ webphoneLoginUser: string;
826
+ extensionId: string | null;
827
+ extensionName: string;
828
+ telephonySignature: string | null;
829
+ };
830
+ };
831
+ brandName: string;
832
+ platformId: string;
833
+ isReloginRequired: boolean;
834
+ connectedUserName: string;
835
+ connectedUserId: string;
836
+ botpressBot: {
837
+ name: string;
838
+ id: string;
839
+ accessToken: string;
840
+ botId: string;
841
+ integrationId: string;
842
+ } | null;
843
+ };
844
+ requestId: string;
845
+ }>;
846
+ 400: z.ZodObject<{
847
+ message: z.ZodString;
848
+ error: z.ZodAny;
849
+ }, "strip", z.ZodTypeAny, {
850
+ message: string;
851
+ error?: any;
852
+ }, {
853
+ message: string;
854
+ error?: any;
855
+ }>;
856
+ 500: z.ZodObject<{
857
+ message: z.ZodString;
858
+ error: z.ZodAny;
859
+ }, "strip", z.ZodTypeAny, {
860
+ message: string;
861
+ error?: any;
862
+ }, {
863
+ message: string;
864
+ error?: any;
865
+ }>;
866
+ };
867
+ path: "/connect";
868
+ };
869
+ disconnectSMSChannel: {
870
+ body: z.ZodObject<{
871
+ id: z.ZodString;
872
+ }, "strip", z.ZodTypeAny, {
873
+ id: string;
874
+ }, {
875
+ id: string;
876
+ }>;
877
+ method: "POST";
878
+ responses: {
879
+ 200: z.ZodObject<{
880
+ requestId: z.ZodString;
881
+ channel: z.ZodObject<{
882
+ id: z.ZodString;
883
+ createdAt: z.ZodDate;
884
+ updatedAt: z.ZodDate;
885
+ deletedAt: z.ZodNullable<z.ZodDate>;
886
+ name: z.ZodString;
887
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
888
+ metadata: z.ZodObject<{
889
+ id: z.ZodString;
890
+ name: z.ZodString;
891
+ accessToken: z.ZodOptional<z.ZodString>;
892
+ channelSecret: z.ZodOptional<z.ZodString>;
893
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
894
+ senderId: z.ZodOptional<z.ZodString>;
895
+ whatsapp: z.ZodOptional<z.ZodObject<{
896
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
897
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
898
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
899
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
900
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
901
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
902
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
903
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
904
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
905
+ apiKey: z.ZodOptional<z.ZodString>;
906
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
907
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
908
+ }, "strip", z.ZodTypeAny, {
909
+ wabaBusinessId?: string | null | undefined;
910
+ wabaExternalId?: string | null | undefined;
911
+ phoneNumberId?: string | null | undefined;
912
+ email?: string | null | undefined;
913
+ clientId?: string | null | undefined;
914
+ channelId?: string | null | undefined;
915
+ waapiInstanceId?: string | null | undefined;
916
+ qr?: string | null | undefined;
917
+ status?: "active" | "pending" | "waapi-qr" | undefined;
918
+ apiKey?: string | undefined;
919
+ tier?: "basic" | "regular" | "premium" | undefined;
920
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
921
+ }, {
922
+ wabaBusinessId?: string | null | undefined;
923
+ wabaExternalId?: string | null | undefined;
924
+ phoneNumberId?: string | null | undefined;
925
+ email?: string | null | undefined;
926
+ clientId?: string | null | undefined;
927
+ channelId?: string | null | undefined;
928
+ waapiInstanceId?: string | null | undefined;
929
+ qr?: string | null | undefined;
930
+ status?: "active" | "pending" | "waapi-qr" | undefined;
931
+ apiKey?: string | undefined;
932
+ tier?: "basic" | "regular" | "premium" | undefined;
933
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
934
+ }>>;
935
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
936
+ mobileNumber: z.ZodString;
937
+ apiKey: z.ZodString;
938
+ apiSecret: z.ZodString;
939
+ }, "strip", z.ZodTypeAny, {
940
+ apiKey: string;
941
+ mobileNumber: string;
942
+ apiSecret: string;
943
+ }, {
944
+ apiKey: string;
945
+ mobileNumber: string;
946
+ apiSecret: string;
947
+ }>>;
948
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
949
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
950
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ name: string;
953
+ id: string;
954
+ accessToken?: string | undefined;
955
+ channelSecret?: string | undefined;
956
+ additionalCredentials?: any;
957
+ senderId?: string | undefined;
958
+ whatsapp?: {
959
+ wabaBusinessId?: string | null | undefined;
960
+ wabaExternalId?: string | null | undefined;
961
+ phoneNumberId?: string | null | undefined;
962
+ email?: string | null | undefined;
963
+ clientId?: string | null | undefined;
964
+ channelId?: string | null | undefined;
965
+ waapiInstanceId?: string | null | undefined;
966
+ qr?: string | null | undefined;
967
+ status?: "active" | "pending" | "waapi-qr" | undefined;
968
+ apiKey?: string | undefined;
969
+ tier?: "basic" | "regular" | "premium" | undefined;
970
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
971
+ } | undefined;
972
+ vonageCredentials?: {
973
+ apiKey: string;
974
+ mobileNumber: string;
975
+ apiSecret: string;
976
+ } | undefined;
977
+ lineRichMenuId?: string | null | undefined;
978
+ messengerIntegrationType?: "own" | "business" | undefined;
979
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
980
+ }, {
981
+ name: string;
982
+ id: string;
983
+ accessToken?: string | undefined;
984
+ channelSecret?: string | undefined;
985
+ additionalCredentials?: any;
986
+ senderId?: string | undefined;
987
+ whatsapp?: {
988
+ wabaBusinessId?: string | null | undefined;
989
+ wabaExternalId?: string | null | undefined;
990
+ phoneNumberId?: string | null | undefined;
991
+ email?: string | null | undefined;
992
+ clientId?: string | null | undefined;
993
+ channelId?: string | null | undefined;
994
+ waapiInstanceId?: string | null | undefined;
995
+ qr?: string | null | undefined;
996
+ status?: "active" | "pending" | "waapi-qr" | undefined;
997
+ apiKey?: string | undefined;
998
+ tier?: "basic" | "regular" | "premium" | undefined;
999
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1000
+ } | undefined;
1001
+ vonageCredentials?: {
1002
+ apiKey: string;
1003
+ mobileNumber: string;
1004
+ apiSecret: string;
1005
+ } | undefined;
1006
+ lineRichMenuId?: string | null | undefined;
1007
+ messengerIntegrationType?: "own" | "business" | undefined;
1008
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1009
+ }>;
1010
+ brandName: z.ZodString;
1011
+ platformId: z.ZodString;
1012
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
1013
+ isReloginRequired: z.ZodBoolean;
1014
+ connectedUserName: z.ZodString;
1015
+ connectedUserId: z.ZodString;
1016
+ botpressBot: z.ZodNullable<z.ZodObject<{
1017
+ id: z.ZodString;
1018
+ name: z.ZodString;
1019
+ botId: z.ZodString;
1020
+ integrationId: z.ZodString;
1021
+ accessToken: z.ZodString;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ name: string;
1024
+ id: string;
1025
+ accessToken: string;
1026
+ botId: string;
1027
+ integrationId: string;
1028
+ }, {
1029
+ name: string;
1030
+ id: string;
1031
+ accessToken: string;
1032
+ botId: string;
1033
+ integrationId: string;
1034
+ }>>;
1035
+ actor: z.ZodObject<{
1036
+ id: z.ZodString;
1037
+ createdAt: z.ZodDate;
1038
+ updatedAt: z.ZodDate;
1039
+ deletedAt: z.ZodNullable<z.ZodDate>;
1040
+ name: z.ZodString;
1041
+ email: z.ZodString;
1042
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1043
+ password: z.ZodString;
1044
+ address: z.ZodNullable<z.ZodString>;
1045
+ phone: z.ZodNullable<z.ZodString>;
1046
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1047
+ roles: z.ZodArray<z.ZodObject<{
1048
+ id: z.ZodString;
1049
+ createdAt: z.ZodDate;
1050
+ updatedAt: z.ZodDate;
1051
+ deletedAt: z.ZodNullable<z.ZodDate>;
1052
+ systemName: z.ZodString;
1053
+ displayName: z.ZodString;
1054
+ description: z.ZodNullable<z.ZodString>;
1055
+ permissions: z.ZodArray<z.ZodObject<{
1056
+ id: z.ZodString;
1057
+ createdAt: z.ZodDate;
1058
+ updatedAt: z.ZodDate;
1059
+ deletedAt: z.ZodNullable<z.ZodDate>;
1060
+ systemName: z.ZodString;
1061
+ displayName: z.ZodString;
1062
+ description: z.ZodNullable<z.ZodString>;
1063
+ }, "strip", z.ZodTypeAny, {
1064
+ id: string;
1065
+ description: string | null;
1066
+ createdAt: Date;
1067
+ updatedAt: Date;
1068
+ deletedAt: Date | null;
1069
+ systemName: string;
1070
+ displayName: string;
1071
+ }, {
1072
+ id: string;
1073
+ description: string | null;
1074
+ createdAt: Date;
1075
+ updatedAt: Date;
1076
+ deletedAt: Date | null;
1077
+ systemName: string;
1078
+ displayName: string;
1079
+ }>, "many">;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ id: string;
1082
+ description: string | null;
1083
+ createdAt: Date;
1084
+ updatedAt: Date;
1085
+ deletedAt: Date | null;
1086
+ systemName: string;
1087
+ displayName: string;
1088
+ permissions: {
1089
+ id: string;
1090
+ description: string | null;
1091
+ createdAt: Date;
1092
+ updatedAt: Date;
1093
+ deletedAt: Date | null;
1094
+ systemName: string;
1095
+ displayName: string;
1096
+ }[];
1097
+ }, {
1098
+ id: string;
1099
+ description: string | null;
1100
+ createdAt: Date;
1101
+ updatedAt: Date;
1102
+ deletedAt: Date | null;
1103
+ systemName: string;
1104
+ displayName: string;
1105
+ permissions: {
1106
+ id: string;
1107
+ description: string | null;
1108
+ createdAt: Date;
1109
+ updatedAt: Date;
1110
+ deletedAt: Date | null;
1111
+ systemName: string;
1112
+ displayName: string;
1113
+ }[];
1114
+ }>, "many">;
1115
+ extension: z.ZodObject<{
1116
+ id: z.ZodString;
1117
+ createdAt: z.ZodDate;
1118
+ updatedAt: z.ZodDate;
1119
+ deletedAt: z.ZodNullable<z.ZodDate>;
1120
+ userId: z.ZodNullable<z.ZodString>;
1121
+ sipServerUrl: z.ZodString;
1122
+ sipUserName: z.ZodString;
1123
+ webphoneLoginUser: z.ZodString;
1124
+ extensionId: z.ZodNullable<z.ZodString>;
1125
+ extensionName: z.ZodString;
1126
+ telephonySignature: z.ZodNullable<z.ZodString>;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ id: string;
1129
+ createdAt: Date;
1130
+ updatedAt: Date;
1131
+ deletedAt: Date | null;
1132
+ userId: string | null;
1133
+ sipServerUrl: string;
1134
+ sipUserName: string;
1135
+ webphoneLoginUser: string;
1136
+ extensionId: string | null;
1137
+ extensionName: string;
1138
+ telephonySignature: string | null;
1139
+ }, {
1140
+ id: string;
1141
+ createdAt: Date;
1142
+ updatedAt: Date;
1143
+ deletedAt: Date | null;
1144
+ userId: string | null;
1145
+ sipServerUrl: string;
1146
+ sipUserName: string;
1147
+ webphoneLoginUser: string;
1148
+ extensionId: string | null;
1149
+ extensionName: string;
1150
+ telephonySignature: string | null;
1151
+ }>;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ name: string;
1154
+ id: string;
1155
+ address: string | null;
1156
+ email: string;
1157
+ createdAt: Date;
1158
+ updatedAt: Date;
1159
+ deletedAt: Date | null;
1160
+ emailVerifiedAt: Date | null;
1161
+ password: string;
1162
+ phone: string | null;
1163
+ notificationCount: number | null;
1164
+ roles: {
1165
+ id: string;
1166
+ description: string | null;
1167
+ createdAt: Date;
1168
+ updatedAt: Date;
1169
+ deletedAt: Date | null;
1170
+ systemName: string;
1171
+ displayName: string;
1172
+ permissions: {
1173
+ id: string;
1174
+ description: string | null;
1175
+ createdAt: Date;
1176
+ updatedAt: Date;
1177
+ deletedAt: Date | null;
1178
+ systemName: string;
1179
+ displayName: string;
1180
+ }[];
1181
+ }[];
1182
+ extension: {
1183
+ id: string;
1184
+ createdAt: Date;
1185
+ updatedAt: Date;
1186
+ deletedAt: Date | null;
1187
+ userId: string | null;
1188
+ sipServerUrl: string;
1189
+ sipUserName: string;
1190
+ webphoneLoginUser: string;
1191
+ extensionId: string | null;
1192
+ extensionName: string;
1193
+ telephonySignature: string | null;
1194
+ };
1195
+ }, {
1196
+ name: string;
1197
+ id: string;
1198
+ address: string | null;
1199
+ email: string;
1200
+ createdAt: Date;
1201
+ updatedAt: Date;
1202
+ deletedAt: Date | null;
1203
+ emailVerifiedAt: Date | null;
1204
+ password: string;
1205
+ phone: string | null;
1206
+ notificationCount: number | null;
1207
+ roles: {
1208
+ id: string;
1209
+ description: string | null;
1210
+ createdAt: Date;
1211
+ updatedAt: Date;
1212
+ deletedAt: Date | null;
1213
+ systemName: string;
1214
+ displayName: string;
1215
+ permissions: {
1216
+ id: string;
1217
+ description: string | null;
1218
+ createdAt: Date;
1219
+ updatedAt: Date;
1220
+ deletedAt: Date | null;
1221
+ systemName: string;
1222
+ displayName: string;
1223
+ }[];
1224
+ }[];
1225
+ extension: {
1226
+ id: string;
1227
+ createdAt: Date;
1228
+ updatedAt: Date;
1229
+ deletedAt: Date | null;
1230
+ userId: string | null;
1231
+ sipServerUrl: string;
1232
+ sipUserName: string;
1233
+ webphoneLoginUser: string;
1234
+ extensionId: string | null;
1235
+ extensionName: string;
1236
+ telephonySignature: string | null;
1237
+ };
1238
+ }>;
1239
+ }, "strip", z.ZodTypeAny, {
1240
+ name: string;
1241
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1242
+ id: string;
1243
+ metadata: {
1244
+ name: string;
1245
+ id: string;
1246
+ accessToken?: string | undefined;
1247
+ channelSecret?: string | undefined;
1248
+ additionalCredentials?: any;
1249
+ senderId?: string | undefined;
1250
+ whatsapp?: {
1251
+ wabaBusinessId?: string | null | undefined;
1252
+ wabaExternalId?: string | null | undefined;
1253
+ phoneNumberId?: string | null | undefined;
1254
+ email?: string | null | undefined;
1255
+ clientId?: string | null | undefined;
1256
+ channelId?: string | null | undefined;
1257
+ waapiInstanceId?: string | null | undefined;
1258
+ qr?: string | null | undefined;
1259
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1260
+ apiKey?: string | undefined;
1261
+ tier?: "basic" | "regular" | "premium" | undefined;
1262
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1263
+ } | undefined;
1264
+ vonageCredentials?: {
1265
+ apiKey: string;
1266
+ mobileNumber: string;
1267
+ apiSecret: string;
1268
+ } | undefined;
1269
+ lineRichMenuId?: string | null | undefined;
1270
+ messengerIntegrationType?: "own" | "business" | undefined;
1271
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1272
+ };
1273
+ status: boolean;
1274
+ createdAt: Date;
1275
+ updatedAt: Date;
1276
+ deletedAt: Date | null;
1277
+ actor: {
1278
+ name: string;
1279
+ id: string;
1280
+ address: string | null;
1281
+ email: string;
1282
+ createdAt: Date;
1283
+ updatedAt: Date;
1284
+ deletedAt: Date | null;
1285
+ emailVerifiedAt: Date | null;
1286
+ password: string;
1287
+ phone: string | null;
1288
+ notificationCount: number | null;
1289
+ roles: {
1290
+ id: string;
1291
+ description: string | null;
1292
+ createdAt: Date;
1293
+ updatedAt: Date;
1294
+ deletedAt: Date | null;
1295
+ systemName: string;
1296
+ displayName: string;
1297
+ permissions: {
1298
+ id: string;
1299
+ description: string | null;
1300
+ createdAt: Date;
1301
+ updatedAt: Date;
1302
+ deletedAt: Date | null;
1303
+ systemName: string;
1304
+ displayName: string;
1305
+ }[];
1306
+ }[];
1307
+ extension: {
1308
+ id: string;
1309
+ createdAt: Date;
1310
+ updatedAt: Date;
1311
+ deletedAt: Date | null;
1312
+ userId: string | null;
1313
+ sipServerUrl: string;
1314
+ sipUserName: string;
1315
+ webphoneLoginUser: string;
1316
+ extensionId: string | null;
1317
+ extensionName: string;
1318
+ telephonySignature: string | null;
1319
+ };
1320
+ };
1321
+ brandName: string;
1322
+ platformId: string;
1323
+ isReloginRequired: boolean;
1324
+ connectedUserName: string;
1325
+ connectedUserId: string;
1326
+ botpressBot: {
1327
+ name: string;
1328
+ id: string;
1329
+ accessToken: string;
1330
+ botId: string;
1331
+ integrationId: string;
1332
+ } | null;
1333
+ }, {
1334
+ name: string;
1335
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1336
+ id: string;
1337
+ metadata: {
1338
+ name: string;
1339
+ id: string;
1340
+ accessToken?: string | undefined;
1341
+ channelSecret?: string | undefined;
1342
+ additionalCredentials?: any;
1343
+ senderId?: string | undefined;
1344
+ whatsapp?: {
1345
+ wabaBusinessId?: string | null | undefined;
1346
+ wabaExternalId?: string | null | undefined;
1347
+ phoneNumberId?: string | null | undefined;
1348
+ email?: string | null | undefined;
1349
+ clientId?: string | null | undefined;
1350
+ channelId?: string | null | undefined;
1351
+ waapiInstanceId?: string | null | undefined;
1352
+ qr?: string | null | undefined;
1353
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1354
+ apiKey?: string | undefined;
1355
+ tier?: "basic" | "regular" | "premium" | undefined;
1356
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1357
+ } | undefined;
1358
+ vonageCredentials?: {
1359
+ apiKey: string;
1360
+ mobileNumber: string;
1361
+ apiSecret: string;
1362
+ } | undefined;
1363
+ lineRichMenuId?: string | null | undefined;
1364
+ messengerIntegrationType?: "own" | "business" | undefined;
1365
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1366
+ };
1367
+ status: boolean;
1368
+ createdAt: Date;
1369
+ updatedAt: Date;
1370
+ deletedAt: Date | null;
1371
+ actor: {
1372
+ name: string;
1373
+ id: string;
1374
+ address: string | null;
1375
+ email: string;
1376
+ createdAt: Date;
1377
+ updatedAt: Date;
1378
+ deletedAt: Date | null;
1379
+ emailVerifiedAt: Date | null;
1380
+ password: string;
1381
+ phone: string | null;
1382
+ notificationCount: number | null;
1383
+ roles: {
1384
+ id: string;
1385
+ description: string | null;
1386
+ createdAt: Date;
1387
+ updatedAt: Date;
1388
+ deletedAt: Date | null;
1389
+ systemName: string;
1390
+ displayName: string;
1391
+ permissions: {
1392
+ id: string;
1393
+ description: string | null;
1394
+ createdAt: Date;
1395
+ updatedAt: Date;
1396
+ deletedAt: Date | null;
1397
+ systemName: string;
1398
+ displayName: string;
1399
+ }[];
1400
+ }[];
1401
+ extension: {
1402
+ id: string;
1403
+ createdAt: Date;
1404
+ updatedAt: Date;
1405
+ deletedAt: Date | null;
1406
+ userId: string | null;
1407
+ sipServerUrl: string;
1408
+ sipUserName: string;
1409
+ webphoneLoginUser: string;
1410
+ extensionId: string | null;
1411
+ extensionName: string;
1412
+ telephonySignature: string | null;
1413
+ };
1414
+ };
1415
+ brandName: string;
1416
+ platformId: string;
1417
+ isReloginRequired: boolean;
1418
+ connectedUserName: string;
1419
+ connectedUserId: string;
1420
+ botpressBot: {
1421
+ name: string;
1422
+ id: string;
1423
+ accessToken: string;
1424
+ botId: string;
1425
+ integrationId: string;
1426
+ } | null;
1427
+ }>;
1428
+ }, "strip", z.ZodTypeAny, {
1429
+ channel: {
1430
+ name: string;
1431
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1432
+ id: string;
1433
+ metadata: {
1434
+ name: string;
1435
+ id: string;
1436
+ accessToken?: string | undefined;
1437
+ channelSecret?: string | undefined;
1438
+ additionalCredentials?: any;
1439
+ senderId?: string | undefined;
1440
+ whatsapp?: {
1441
+ wabaBusinessId?: string | null | undefined;
1442
+ wabaExternalId?: string | null | undefined;
1443
+ phoneNumberId?: string | null | undefined;
1444
+ email?: string | null | undefined;
1445
+ clientId?: string | null | undefined;
1446
+ channelId?: string | null | undefined;
1447
+ waapiInstanceId?: string | null | undefined;
1448
+ qr?: string | null | undefined;
1449
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1450
+ apiKey?: string | undefined;
1451
+ tier?: "basic" | "regular" | "premium" | undefined;
1452
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1453
+ } | undefined;
1454
+ vonageCredentials?: {
1455
+ apiKey: string;
1456
+ mobileNumber: string;
1457
+ apiSecret: string;
1458
+ } | undefined;
1459
+ lineRichMenuId?: string | null | undefined;
1460
+ messengerIntegrationType?: "own" | "business" | undefined;
1461
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1462
+ };
1463
+ status: boolean;
1464
+ createdAt: Date;
1465
+ updatedAt: Date;
1466
+ deletedAt: Date | null;
1467
+ actor: {
1468
+ name: string;
1469
+ id: string;
1470
+ address: string | null;
1471
+ email: string;
1472
+ createdAt: Date;
1473
+ updatedAt: Date;
1474
+ deletedAt: Date | null;
1475
+ emailVerifiedAt: Date | null;
1476
+ password: string;
1477
+ phone: string | null;
1478
+ notificationCount: number | null;
1479
+ roles: {
1480
+ id: string;
1481
+ description: string | null;
1482
+ createdAt: Date;
1483
+ updatedAt: Date;
1484
+ deletedAt: Date | null;
1485
+ systemName: string;
1486
+ displayName: string;
1487
+ permissions: {
1488
+ id: string;
1489
+ description: string | null;
1490
+ createdAt: Date;
1491
+ updatedAt: Date;
1492
+ deletedAt: Date | null;
1493
+ systemName: string;
1494
+ displayName: string;
1495
+ }[];
1496
+ }[];
1497
+ extension: {
1498
+ id: string;
1499
+ createdAt: Date;
1500
+ updatedAt: Date;
1501
+ deletedAt: Date | null;
1502
+ userId: string | null;
1503
+ sipServerUrl: string;
1504
+ sipUserName: string;
1505
+ webphoneLoginUser: string;
1506
+ extensionId: string | null;
1507
+ extensionName: string;
1508
+ telephonySignature: string | null;
1509
+ };
1510
+ };
1511
+ brandName: string;
1512
+ platformId: string;
1513
+ isReloginRequired: boolean;
1514
+ connectedUserName: string;
1515
+ connectedUserId: string;
1516
+ botpressBot: {
1517
+ name: string;
1518
+ id: string;
1519
+ accessToken: string;
1520
+ botId: string;
1521
+ integrationId: string;
1522
+ } | null;
1523
+ };
1524
+ requestId: string;
1525
+ }, {
1526
+ channel: {
1527
+ name: string;
1528
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1529
+ id: string;
1530
+ metadata: {
1531
+ name: string;
1532
+ id: string;
1533
+ accessToken?: string | undefined;
1534
+ channelSecret?: string | undefined;
1535
+ additionalCredentials?: any;
1536
+ senderId?: string | undefined;
1537
+ whatsapp?: {
1538
+ wabaBusinessId?: string | null | undefined;
1539
+ wabaExternalId?: string | null | undefined;
1540
+ phoneNumberId?: string | null | undefined;
1541
+ email?: string | null | undefined;
1542
+ clientId?: string | null | undefined;
1543
+ channelId?: string | null | undefined;
1544
+ waapiInstanceId?: string | null | undefined;
1545
+ qr?: string | null | undefined;
1546
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1547
+ apiKey?: string | undefined;
1548
+ tier?: "basic" | "regular" | "premium" | undefined;
1549
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1550
+ } | undefined;
1551
+ vonageCredentials?: {
1552
+ apiKey: string;
1553
+ mobileNumber: string;
1554
+ apiSecret: string;
1555
+ } | undefined;
1556
+ lineRichMenuId?: string | null | undefined;
1557
+ messengerIntegrationType?: "own" | "business" | undefined;
1558
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1559
+ };
1560
+ status: boolean;
1561
+ createdAt: Date;
1562
+ updatedAt: Date;
1563
+ deletedAt: Date | null;
1564
+ actor: {
1565
+ name: string;
1566
+ id: string;
1567
+ address: string | null;
1568
+ email: string;
1569
+ createdAt: Date;
1570
+ updatedAt: Date;
1571
+ deletedAt: Date | null;
1572
+ emailVerifiedAt: Date | null;
1573
+ password: string;
1574
+ phone: string | null;
1575
+ notificationCount: number | null;
1576
+ roles: {
1577
+ id: string;
1578
+ description: string | null;
1579
+ createdAt: Date;
1580
+ updatedAt: Date;
1581
+ deletedAt: Date | null;
1582
+ systemName: string;
1583
+ displayName: string;
1584
+ permissions: {
1585
+ id: string;
1586
+ description: string | null;
1587
+ createdAt: Date;
1588
+ updatedAt: Date;
1589
+ deletedAt: Date | null;
1590
+ systemName: string;
1591
+ displayName: string;
1592
+ }[];
1593
+ }[];
1594
+ extension: {
1595
+ id: string;
1596
+ createdAt: Date;
1597
+ updatedAt: Date;
1598
+ deletedAt: Date | null;
1599
+ userId: string | null;
1600
+ sipServerUrl: string;
1601
+ sipUserName: string;
1602
+ webphoneLoginUser: string;
1603
+ extensionId: string | null;
1604
+ extensionName: string;
1605
+ telephonySignature: string | null;
1606
+ };
1607
+ };
1608
+ brandName: string;
1609
+ platformId: string;
1610
+ isReloginRequired: boolean;
1611
+ connectedUserName: string;
1612
+ connectedUserId: string;
1613
+ botpressBot: {
1614
+ name: string;
1615
+ id: string;
1616
+ accessToken: string;
1617
+ botId: string;
1618
+ integrationId: string;
1619
+ } | null;
1620
+ };
1621
+ requestId: string;
1622
+ }>;
1623
+ 400: z.ZodObject<{
1624
+ message: z.ZodString;
1625
+ error: z.ZodAny;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ message: string;
1628
+ error?: any;
1629
+ }, {
1630
+ message: string;
1631
+ error?: any;
1632
+ }>;
1633
+ 500: z.ZodObject<{
1634
+ message: z.ZodString;
1635
+ error: z.ZodAny;
1636
+ }, "strip", z.ZodTypeAny, {
1637
+ message: string;
1638
+ error?: any;
1639
+ }, {
1640
+ message: string;
1641
+ error?: any;
1642
+ }>;
1643
+ };
1644
+ path: "/disconnect";
1645
+ };
1646
+ reconnectSMSChannel: {
1647
+ body: null;
1648
+ method: "POST";
1649
+ pathParams: z.ZodObject<{
1650
+ channelId: z.ZodString;
1651
+ }, "strip", z.ZodTypeAny, {
1652
+ channelId: string;
1653
+ }, {
1654
+ channelId: string;
1655
+ }>;
1656
+ responses: {
1657
+ 200: z.ZodObject<{
1658
+ requestId: z.ZodString;
1659
+ channel: z.ZodObject<{
1660
+ id: z.ZodString;
1661
+ createdAt: z.ZodDate;
1662
+ updatedAt: z.ZodDate;
1663
+ deletedAt: z.ZodNullable<z.ZodDate>;
1664
+ name: z.ZodString;
1665
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
1666
+ metadata: z.ZodObject<{
1667
+ id: z.ZodString;
1668
+ name: z.ZodString;
1669
+ accessToken: z.ZodOptional<z.ZodString>;
1670
+ channelSecret: z.ZodOptional<z.ZodString>;
1671
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
1672
+ senderId: z.ZodOptional<z.ZodString>;
1673
+ whatsapp: z.ZodOptional<z.ZodObject<{
1674
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1675
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1676
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1677
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1678
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1679
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1680
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1681
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1682
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
1683
+ apiKey: z.ZodOptional<z.ZodString>;
1684
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
1685
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ wabaBusinessId?: string | null | undefined;
1688
+ wabaExternalId?: string | null | undefined;
1689
+ phoneNumberId?: string | null | undefined;
1690
+ email?: string | null | undefined;
1691
+ clientId?: string | null | undefined;
1692
+ channelId?: string | null | undefined;
1693
+ waapiInstanceId?: string | null | undefined;
1694
+ qr?: string | null | undefined;
1695
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1696
+ apiKey?: string | undefined;
1697
+ tier?: "basic" | "regular" | "premium" | undefined;
1698
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1699
+ }, {
1700
+ wabaBusinessId?: string | null | undefined;
1701
+ wabaExternalId?: string | null | undefined;
1702
+ phoneNumberId?: string | null | undefined;
1703
+ email?: string | null | undefined;
1704
+ clientId?: string | null | undefined;
1705
+ channelId?: string | null | undefined;
1706
+ waapiInstanceId?: string | null | undefined;
1707
+ qr?: string | null | undefined;
1708
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1709
+ apiKey?: string | undefined;
1710
+ tier?: "basic" | "regular" | "premium" | undefined;
1711
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1712
+ }>>;
1713
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
1714
+ mobileNumber: z.ZodString;
1715
+ apiKey: z.ZodString;
1716
+ apiSecret: z.ZodString;
1717
+ }, "strip", z.ZodTypeAny, {
1718
+ apiKey: string;
1719
+ mobileNumber: string;
1720
+ apiSecret: string;
1721
+ }, {
1722
+ apiKey: string;
1723
+ mobileNumber: string;
1724
+ apiSecret: string;
1725
+ }>>;
1726
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1727
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
1728
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
1729
+ }, "strip", z.ZodTypeAny, {
1730
+ name: string;
1731
+ id: string;
1732
+ accessToken?: string | undefined;
1733
+ channelSecret?: string | undefined;
1734
+ additionalCredentials?: any;
1735
+ senderId?: string | undefined;
1736
+ whatsapp?: {
1737
+ wabaBusinessId?: string | null | undefined;
1738
+ wabaExternalId?: string | null | undefined;
1739
+ phoneNumberId?: string | null | undefined;
1740
+ email?: string | null | undefined;
1741
+ clientId?: string | null | undefined;
1742
+ channelId?: string | null | undefined;
1743
+ waapiInstanceId?: string | null | undefined;
1744
+ qr?: string | null | undefined;
1745
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1746
+ apiKey?: string | undefined;
1747
+ tier?: "basic" | "regular" | "premium" | undefined;
1748
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1749
+ } | undefined;
1750
+ vonageCredentials?: {
1751
+ apiKey: string;
1752
+ mobileNumber: string;
1753
+ apiSecret: string;
1754
+ } | undefined;
1755
+ lineRichMenuId?: string | null | undefined;
1756
+ messengerIntegrationType?: "own" | "business" | undefined;
1757
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1758
+ }, {
1759
+ name: string;
1760
+ id: string;
1761
+ accessToken?: string | undefined;
1762
+ channelSecret?: string | undefined;
1763
+ additionalCredentials?: any;
1764
+ senderId?: string | undefined;
1765
+ whatsapp?: {
1766
+ wabaBusinessId?: string | null | undefined;
1767
+ wabaExternalId?: string | null | undefined;
1768
+ phoneNumberId?: string | null | undefined;
1769
+ email?: string | null | undefined;
1770
+ clientId?: string | null | undefined;
1771
+ channelId?: string | null | undefined;
1772
+ waapiInstanceId?: string | null | undefined;
1773
+ qr?: string | null | undefined;
1774
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1775
+ apiKey?: string | undefined;
1776
+ tier?: "basic" | "regular" | "premium" | undefined;
1777
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1778
+ } | undefined;
1779
+ vonageCredentials?: {
1780
+ apiKey: string;
1781
+ mobileNumber: string;
1782
+ apiSecret: string;
1783
+ } | undefined;
1784
+ lineRichMenuId?: string | null | undefined;
1785
+ messengerIntegrationType?: "own" | "business" | undefined;
1786
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1787
+ }>;
1788
+ brandName: z.ZodString;
1789
+ platformId: z.ZodString;
1790
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
1791
+ isReloginRequired: z.ZodBoolean;
1792
+ connectedUserName: z.ZodString;
1793
+ connectedUserId: z.ZodString;
1794
+ botpressBot: z.ZodNullable<z.ZodObject<{
1795
+ id: z.ZodString;
1796
+ name: z.ZodString;
1797
+ botId: z.ZodString;
1798
+ integrationId: z.ZodString;
1799
+ accessToken: z.ZodString;
1800
+ }, "strip", z.ZodTypeAny, {
1801
+ name: string;
1802
+ id: string;
1803
+ accessToken: string;
1804
+ botId: string;
1805
+ integrationId: string;
1806
+ }, {
1807
+ name: string;
1808
+ id: string;
1809
+ accessToken: string;
1810
+ botId: string;
1811
+ integrationId: string;
1812
+ }>>;
1813
+ actor: z.ZodObject<{
1814
+ id: z.ZodString;
1815
+ createdAt: z.ZodDate;
1816
+ updatedAt: z.ZodDate;
1817
+ deletedAt: z.ZodNullable<z.ZodDate>;
1818
+ name: z.ZodString;
1819
+ email: z.ZodString;
1820
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1821
+ password: z.ZodString;
1822
+ address: z.ZodNullable<z.ZodString>;
1823
+ phone: z.ZodNullable<z.ZodString>;
1824
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1825
+ roles: z.ZodArray<z.ZodObject<{
1826
+ id: z.ZodString;
1827
+ createdAt: z.ZodDate;
1828
+ updatedAt: z.ZodDate;
1829
+ deletedAt: z.ZodNullable<z.ZodDate>;
1830
+ systemName: z.ZodString;
1831
+ displayName: z.ZodString;
1832
+ description: z.ZodNullable<z.ZodString>;
1833
+ permissions: z.ZodArray<z.ZodObject<{
1834
+ id: z.ZodString;
1835
+ createdAt: z.ZodDate;
1836
+ updatedAt: z.ZodDate;
1837
+ deletedAt: z.ZodNullable<z.ZodDate>;
1838
+ systemName: z.ZodString;
1839
+ displayName: z.ZodString;
1840
+ description: z.ZodNullable<z.ZodString>;
1841
+ }, "strip", z.ZodTypeAny, {
1842
+ id: string;
1843
+ description: string | null;
1844
+ createdAt: Date;
1845
+ updatedAt: Date;
1846
+ deletedAt: Date | null;
1847
+ systemName: string;
1848
+ displayName: string;
1849
+ }, {
1850
+ id: string;
1851
+ description: string | null;
1852
+ createdAt: Date;
1853
+ updatedAt: Date;
1854
+ deletedAt: Date | null;
1855
+ systemName: string;
1856
+ displayName: string;
1857
+ }>, "many">;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ id: string;
1860
+ description: string | null;
1861
+ createdAt: Date;
1862
+ updatedAt: Date;
1863
+ deletedAt: Date | null;
1864
+ systemName: string;
1865
+ displayName: string;
1866
+ permissions: {
1867
+ id: string;
1868
+ description: string | null;
1869
+ createdAt: Date;
1870
+ updatedAt: Date;
1871
+ deletedAt: Date | null;
1872
+ systemName: string;
1873
+ displayName: string;
1874
+ }[];
1875
+ }, {
1876
+ id: string;
1877
+ description: string | null;
1878
+ createdAt: Date;
1879
+ updatedAt: Date;
1880
+ deletedAt: Date | null;
1881
+ systemName: string;
1882
+ displayName: string;
1883
+ permissions: {
1884
+ id: string;
1885
+ description: string | null;
1886
+ createdAt: Date;
1887
+ updatedAt: Date;
1888
+ deletedAt: Date | null;
1889
+ systemName: string;
1890
+ displayName: string;
1891
+ }[];
1892
+ }>, "many">;
1893
+ extension: z.ZodObject<{
1894
+ id: z.ZodString;
1895
+ createdAt: z.ZodDate;
1896
+ updatedAt: z.ZodDate;
1897
+ deletedAt: z.ZodNullable<z.ZodDate>;
1898
+ userId: z.ZodNullable<z.ZodString>;
1899
+ sipServerUrl: z.ZodString;
1900
+ sipUserName: z.ZodString;
1901
+ webphoneLoginUser: z.ZodString;
1902
+ extensionId: z.ZodNullable<z.ZodString>;
1903
+ extensionName: z.ZodString;
1904
+ telephonySignature: z.ZodNullable<z.ZodString>;
1905
+ }, "strip", z.ZodTypeAny, {
1906
+ id: string;
1907
+ createdAt: Date;
1908
+ updatedAt: Date;
1909
+ deletedAt: Date | null;
1910
+ userId: string | null;
1911
+ sipServerUrl: string;
1912
+ sipUserName: string;
1913
+ webphoneLoginUser: string;
1914
+ extensionId: string | null;
1915
+ extensionName: string;
1916
+ telephonySignature: string | null;
1917
+ }, {
1918
+ id: string;
1919
+ createdAt: Date;
1920
+ updatedAt: Date;
1921
+ deletedAt: Date | null;
1922
+ userId: string | null;
1923
+ sipServerUrl: string;
1924
+ sipUserName: string;
1925
+ webphoneLoginUser: string;
1926
+ extensionId: string | null;
1927
+ extensionName: string;
1928
+ telephonySignature: string | null;
1929
+ }>;
1930
+ }, "strip", z.ZodTypeAny, {
1931
+ name: string;
1932
+ id: string;
1933
+ address: string | null;
1934
+ email: string;
1935
+ createdAt: Date;
1936
+ updatedAt: Date;
1937
+ deletedAt: Date | null;
1938
+ emailVerifiedAt: Date | null;
1939
+ password: string;
1940
+ phone: string | null;
1941
+ notificationCount: number | null;
1942
+ roles: {
1943
+ id: string;
1944
+ description: string | null;
1945
+ createdAt: Date;
1946
+ updatedAt: Date;
1947
+ deletedAt: Date | null;
1948
+ systemName: string;
1949
+ displayName: string;
1950
+ permissions: {
1951
+ id: string;
1952
+ description: string | null;
1953
+ createdAt: Date;
1954
+ updatedAt: Date;
1955
+ deletedAt: Date | null;
1956
+ systemName: string;
1957
+ displayName: string;
1958
+ }[];
1959
+ }[];
1960
+ extension: {
1961
+ id: string;
1962
+ createdAt: Date;
1963
+ updatedAt: Date;
1964
+ deletedAt: Date | null;
1965
+ userId: string | null;
1966
+ sipServerUrl: string;
1967
+ sipUserName: string;
1968
+ webphoneLoginUser: string;
1969
+ extensionId: string | null;
1970
+ extensionName: string;
1971
+ telephonySignature: string | null;
1972
+ };
1973
+ }, {
1974
+ name: string;
1975
+ id: string;
1976
+ address: string | null;
1977
+ email: string;
1978
+ createdAt: Date;
1979
+ updatedAt: Date;
1980
+ deletedAt: Date | null;
1981
+ emailVerifiedAt: Date | null;
1982
+ password: string;
1983
+ phone: string | null;
1984
+ notificationCount: number | null;
1985
+ roles: {
1986
+ id: string;
1987
+ description: string | null;
1988
+ createdAt: Date;
1989
+ updatedAt: Date;
1990
+ deletedAt: Date | null;
1991
+ systemName: string;
1992
+ displayName: string;
1993
+ permissions: {
1994
+ id: string;
1995
+ description: string | null;
1996
+ createdAt: Date;
1997
+ updatedAt: Date;
1998
+ deletedAt: Date | null;
1999
+ systemName: string;
2000
+ displayName: string;
2001
+ }[];
2002
+ }[];
2003
+ extension: {
2004
+ id: string;
2005
+ createdAt: Date;
2006
+ updatedAt: Date;
2007
+ deletedAt: Date | null;
2008
+ userId: string | null;
2009
+ sipServerUrl: string;
2010
+ sipUserName: string;
2011
+ webphoneLoginUser: string;
2012
+ extensionId: string | null;
2013
+ extensionName: string;
2014
+ telephonySignature: string | null;
2015
+ };
2016
+ }>;
2017
+ }, "strip", z.ZodTypeAny, {
2018
+ name: string;
2019
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2020
+ id: string;
2021
+ metadata: {
2022
+ name: string;
2023
+ id: string;
2024
+ accessToken?: string | undefined;
2025
+ channelSecret?: string | undefined;
2026
+ additionalCredentials?: any;
2027
+ senderId?: string | undefined;
2028
+ whatsapp?: {
2029
+ wabaBusinessId?: string | null | undefined;
2030
+ wabaExternalId?: string | null | undefined;
2031
+ phoneNumberId?: string | null | undefined;
2032
+ email?: string | null | undefined;
2033
+ clientId?: string | null | undefined;
2034
+ channelId?: string | null | undefined;
2035
+ waapiInstanceId?: string | null | undefined;
2036
+ qr?: string | null | undefined;
2037
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2038
+ apiKey?: string | undefined;
2039
+ tier?: "basic" | "regular" | "premium" | undefined;
2040
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2041
+ } | undefined;
2042
+ vonageCredentials?: {
2043
+ apiKey: string;
2044
+ mobileNumber: string;
2045
+ apiSecret: string;
2046
+ } | undefined;
2047
+ lineRichMenuId?: string | null | undefined;
2048
+ messengerIntegrationType?: "own" | "business" | undefined;
2049
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2050
+ };
2051
+ status: boolean;
2052
+ createdAt: Date;
2053
+ updatedAt: Date;
2054
+ deletedAt: Date | null;
2055
+ actor: {
2056
+ name: string;
2057
+ id: string;
2058
+ address: string | null;
2059
+ email: string;
2060
+ createdAt: Date;
2061
+ updatedAt: Date;
2062
+ deletedAt: Date | null;
2063
+ emailVerifiedAt: Date | null;
2064
+ password: string;
2065
+ phone: string | null;
2066
+ notificationCount: number | null;
2067
+ roles: {
2068
+ id: string;
2069
+ description: string | null;
2070
+ createdAt: Date;
2071
+ updatedAt: Date;
2072
+ deletedAt: Date | null;
2073
+ systemName: string;
2074
+ displayName: string;
2075
+ permissions: {
2076
+ id: string;
2077
+ description: string | null;
2078
+ createdAt: Date;
2079
+ updatedAt: Date;
2080
+ deletedAt: Date | null;
2081
+ systemName: string;
2082
+ displayName: string;
2083
+ }[];
2084
+ }[];
2085
+ extension: {
2086
+ id: string;
2087
+ createdAt: Date;
2088
+ updatedAt: Date;
2089
+ deletedAt: Date | null;
2090
+ userId: string | null;
2091
+ sipServerUrl: string;
2092
+ sipUserName: string;
2093
+ webphoneLoginUser: string;
2094
+ extensionId: string | null;
2095
+ extensionName: string;
2096
+ telephonySignature: string | null;
2097
+ };
2098
+ };
2099
+ brandName: string;
2100
+ platformId: string;
2101
+ isReloginRequired: boolean;
2102
+ connectedUserName: string;
2103
+ connectedUserId: string;
2104
+ botpressBot: {
2105
+ name: string;
2106
+ id: string;
2107
+ accessToken: string;
2108
+ botId: string;
2109
+ integrationId: string;
2110
+ } | null;
2111
+ }, {
2112
+ name: string;
2113
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2114
+ id: string;
2115
+ metadata: {
2116
+ name: string;
2117
+ id: string;
2118
+ accessToken?: string | undefined;
2119
+ channelSecret?: string | undefined;
2120
+ additionalCredentials?: any;
2121
+ senderId?: string | undefined;
2122
+ whatsapp?: {
2123
+ wabaBusinessId?: string | null | undefined;
2124
+ wabaExternalId?: string | null | undefined;
2125
+ phoneNumberId?: string | null | undefined;
2126
+ email?: string | null | undefined;
2127
+ clientId?: string | null | undefined;
2128
+ channelId?: string | null | undefined;
2129
+ waapiInstanceId?: string | null | undefined;
2130
+ qr?: string | null | undefined;
2131
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2132
+ apiKey?: string | undefined;
2133
+ tier?: "basic" | "regular" | "premium" | undefined;
2134
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2135
+ } | undefined;
2136
+ vonageCredentials?: {
2137
+ apiKey: string;
2138
+ mobileNumber: string;
2139
+ apiSecret: string;
2140
+ } | undefined;
2141
+ lineRichMenuId?: string | null | undefined;
2142
+ messengerIntegrationType?: "own" | "business" | undefined;
2143
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2144
+ };
2145
+ status: boolean;
2146
+ createdAt: Date;
2147
+ updatedAt: Date;
2148
+ deletedAt: Date | null;
2149
+ actor: {
2150
+ name: string;
2151
+ id: string;
2152
+ address: string | null;
2153
+ email: string;
2154
+ createdAt: Date;
2155
+ updatedAt: Date;
2156
+ deletedAt: Date | null;
2157
+ emailVerifiedAt: Date | null;
2158
+ password: string;
2159
+ phone: string | null;
2160
+ notificationCount: number | null;
2161
+ roles: {
2162
+ id: string;
2163
+ description: string | null;
2164
+ createdAt: Date;
2165
+ updatedAt: Date;
2166
+ deletedAt: Date | null;
2167
+ systemName: string;
2168
+ displayName: string;
2169
+ permissions: {
2170
+ id: string;
2171
+ description: string | null;
2172
+ createdAt: Date;
2173
+ updatedAt: Date;
2174
+ deletedAt: Date | null;
2175
+ systemName: string;
2176
+ displayName: string;
2177
+ }[];
2178
+ }[];
2179
+ extension: {
2180
+ id: string;
2181
+ createdAt: Date;
2182
+ updatedAt: Date;
2183
+ deletedAt: Date | null;
2184
+ userId: string | null;
2185
+ sipServerUrl: string;
2186
+ sipUserName: string;
2187
+ webphoneLoginUser: string;
2188
+ extensionId: string | null;
2189
+ extensionName: string;
2190
+ telephonySignature: string | null;
2191
+ };
2192
+ };
2193
+ brandName: string;
2194
+ platformId: string;
2195
+ isReloginRequired: boolean;
2196
+ connectedUserName: string;
2197
+ connectedUserId: string;
2198
+ botpressBot: {
2199
+ name: string;
2200
+ id: string;
2201
+ accessToken: string;
2202
+ botId: string;
2203
+ integrationId: string;
2204
+ } | null;
2205
+ }>;
2206
+ }, "strip", z.ZodTypeAny, {
2207
+ channel: {
2208
+ name: string;
2209
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2210
+ id: string;
2211
+ metadata: {
2212
+ name: string;
2213
+ id: string;
2214
+ accessToken?: string | undefined;
2215
+ channelSecret?: string | undefined;
2216
+ additionalCredentials?: any;
2217
+ senderId?: string | undefined;
2218
+ whatsapp?: {
2219
+ wabaBusinessId?: string | null | undefined;
2220
+ wabaExternalId?: string | null | undefined;
2221
+ phoneNumberId?: string | null | undefined;
2222
+ email?: string | null | undefined;
2223
+ clientId?: string | null | undefined;
2224
+ channelId?: string | null | undefined;
2225
+ waapiInstanceId?: string | null | undefined;
2226
+ qr?: string | null | undefined;
2227
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2228
+ apiKey?: string | undefined;
2229
+ tier?: "basic" | "regular" | "premium" | undefined;
2230
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2231
+ } | undefined;
2232
+ vonageCredentials?: {
2233
+ apiKey: string;
2234
+ mobileNumber: string;
2235
+ apiSecret: string;
2236
+ } | undefined;
2237
+ lineRichMenuId?: string | null | undefined;
2238
+ messengerIntegrationType?: "own" | "business" | undefined;
2239
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2240
+ };
2241
+ status: boolean;
2242
+ createdAt: Date;
2243
+ updatedAt: Date;
2244
+ deletedAt: Date | null;
2245
+ actor: {
2246
+ name: string;
2247
+ id: string;
2248
+ address: string | null;
2249
+ email: string;
2250
+ createdAt: Date;
2251
+ updatedAt: Date;
2252
+ deletedAt: Date | null;
2253
+ emailVerifiedAt: Date | null;
2254
+ password: string;
2255
+ phone: string | null;
2256
+ notificationCount: number | null;
2257
+ roles: {
2258
+ id: string;
2259
+ description: string | null;
2260
+ createdAt: Date;
2261
+ updatedAt: Date;
2262
+ deletedAt: Date | null;
2263
+ systemName: string;
2264
+ displayName: string;
2265
+ permissions: {
2266
+ id: string;
2267
+ description: string | null;
2268
+ createdAt: Date;
2269
+ updatedAt: Date;
2270
+ deletedAt: Date | null;
2271
+ systemName: string;
2272
+ displayName: string;
2273
+ }[];
2274
+ }[];
2275
+ extension: {
2276
+ id: string;
2277
+ createdAt: Date;
2278
+ updatedAt: Date;
2279
+ deletedAt: Date | null;
2280
+ userId: string | null;
2281
+ sipServerUrl: string;
2282
+ sipUserName: string;
2283
+ webphoneLoginUser: string;
2284
+ extensionId: string | null;
2285
+ extensionName: string;
2286
+ telephonySignature: string | null;
2287
+ };
2288
+ };
2289
+ brandName: string;
2290
+ platformId: string;
2291
+ isReloginRequired: boolean;
2292
+ connectedUserName: string;
2293
+ connectedUserId: string;
2294
+ botpressBot: {
2295
+ name: string;
2296
+ id: string;
2297
+ accessToken: string;
2298
+ botId: string;
2299
+ integrationId: string;
2300
+ } | null;
2301
+ };
2302
+ requestId: string;
2303
+ }, {
2304
+ channel: {
2305
+ name: string;
2306
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2307
+ id: string;
2308
+ metadata: {
2309
+ name: string;
2310
+ id: string;
2311
+ accessToken?: string | undefined;
2312
+ channelSecret?: string | undefined;
2313
+ additionalCredentials?: any;
2314
+ senderId?: string | undefined;
2315
+ whatsapp?: {
2316
+ wabaBusinessId?: string | null | undefined;
2317
+ wabaExternalId?: string | null | undefined;
2318
+ phoneNumberId?: string | null | undefined;
2319
+ email?: string | null | undefined;
2320
+ clientId?: string | null | undefined;
2321
+ channelId?: string | null | undefined;
2322
+ waapiInstanceId?: string | null | undefined;
2323
+ qr?: string | null | undefined;
2324
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2325
+ apiKey?: string | undefined;
2326
+ tier?: "basic" | "regular" | "premium" | undefined;
2327
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2328
+ } | undefined;
2329
+ vonageCredentials?: {
2330
+ apiKey: string;
2331
+ mobileNumber: string;
2332
+ apiSecret: string;
2333
+ } | undefined;
2334
+ lineRichMenuId?: string | null | undefined;
2335
+ messengerIntegrationType?: "own" | "business" | undefined;
2336
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2337
+ };
2338
+ status: boolean;
2339
+ createdAt: Date;
2340
+ updatedAt: Date;
2341
+ deletedAt: Date | null;
2342
+ actor: {
2343
+ name: string;
2344
+ id: string;
2345
+ address: string | null;
2346
+ email: string;
2347
+ createdAt: Date;
2348
+ updatedAt: Date;
2349
+ deletedAt: Date | null;
2350
+ emailVerifiedAt: Date | null;
2351
+ password: string;
2352
+ phone: string | null;
2353
+ notificationCount: number | null;
2354
+ roles: {
2355
+ id: string;
2356
+ description: string | null;
2357
+ createdAt: Date;
2358
+ updatedAt: Date;
2359
+ deletedAt: Date | null;
2360
+ systemName: string;
2361
+ displayName: string;
2362
+ permissions: {
2363
+ id: string;
2364
+ description: string | null;
2365
+ createdAt: Date;
2366
+ updatedAt: Date;
2367
+ deletedAt: Date | null;
2368
+ systemName: string;
2369
+ displayName: string;
2370
+ }[];
2371
+ }[];
2372
+ extension: {
2373
+ id: string;
2374
+ createdAt: Date;
2375
+ updatedAt: Date;
2376
+ deletedAt: Date | null;
2377
+ userId: string | null;
2378
+ sipServerUrl: string;
2379
+ sipUserName: string;
2380
+ webphoneLoginUser: string;
2381
+ extensionId: string | null;
2382
+ extensionName: string;
2383
+ telephonySignature: string | null;
2384
+ };
2385
+ };
2386
+ brandName: string;
2387
+ platformId: string;
2388
+ isReloginRequired: boolean;
2389
+ connectedUserName: string;
2390
+ connectedUserId: string;
2391
+ botpressBot: {
2392
+ name: string;
2393
+ id: string;
2394
+ accessToken: string;
2395
+ botId: string;
2396
+ integrationId: string;
2397
+ } | null;
2398
+ };
2399
+ requestId: string;
2400
+ }>;
2401
+ 400: z.ZodObject<{
2402
+ message: z.ZodString;
2403
+ error: z.ZodAny;
2404
+ }, "strip", z.ZodTypeAny, {
2405
+ message: string;
2406
+ error?: any;
52
2407
  }, {
53
- type: import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS;
54
- name: string;
55
- senderId: string;
56
- vonageCredentials: {
57
- apiKey: string;
58
- mobileNumber: string;
59
- apiSecret: string;
60
- };
2408
+ message: string;
2409
+ error?: any;
2410
+ }>;
2411
+ 500: z.ZodObject<{
2412
+ message: z.ZodString;
2413
+ error: z.ZodAny;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ message: string;
2416
+ error?: any;
2417
+ }, {
2418
+ message: string;
2419
+ error?: any;
61
2420
  }>;
2421
+ };
2422
+ path: "/reconnect/:channelId";
2423
+ };
2424
+ deleteSMSChannel: {
2425
+ body: null;
2426
+ method: "DELETE";
2427
+ pathParams: z.ZodObject<{
2428
+ channelId: z.ZodString;
62
2429
  }, "strip", z.ZodTypeAny, {
63
- channel: {
64
- type: import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS;
65
- name: string;
66
- senderId: string;
67
- vonageCredentials: {
68
- apiKey: string;
69
- mobileNumber: string;
70
- apiSecret: string;
71
- };
72
- };
73
- actor: {
74
- id: string;
75
- address: string | null;
76
- name: string;
77
- email: string;
78
- phone: string | null;
79
- };
2430
+ channelId: string;
80
2431
  }, {
81
- channel: {
82
- type: import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS;
83
- name: string;
84
- senderId: string;
85
- vonageCredentials: {
86
- apiKey: string;
87
- mobileNumber: string;
88
- apiSecret: string;
89
- };
90
- };
91
- actor: {
92
- id: string;
93
- address: string | null;
94
- name: string;
95
- email: string;
96
- phone: string | null;
97
- };
2432
+ channelId: string;
98
2433
  }>;
99
- method: "POST";
100
2434
  responses: {
101
2435
  200: z.ZodObject<{
102
2436
  requestId: z.ZodString;
@@ -115,35 +2449,44 @@ export declare const smsContract: {
115
2449
  additionalCredentials: z.ZodOptional<z.ZodAny>;
116
2450
  senderId: z.ZodOptional<z.ZodString>;
117
2451
  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"]>>;
2452
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2453
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2454
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2455
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2456
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2457
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2458
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2459
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2460
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
125
2461
  apiKey: z.ZodOptional<z.ZodString>;
126
2462
  tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
2463
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
127
2464
  }, "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;
2465
+ wabaBusinessId?: string | null | undefined;
2466
+ wabaExternalId?: string | null | undefined;
2467
+ phoneNumberId?: string | null | undefined;
2468
+ email?: string | null | undefined;
2469
+ clientId?: string | null | undefined;
2470
+ channelId?: string | null | undefined;
2471
+ waapiInstanceId?: string | null | undefined;
2472
+ qr?: string | null | undefined;
2473
+ status?: "active" | "pending" | "waapi-qr" | undefined;
135
2474
  apiKey?: string | undefined;
136
2475
  tier?: "basic" | "regular" | "premium" | undefined;
2476
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
137
2477
  }, {
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;
2478
+ wabaBusinessId?: string | null | undefined;
2479
+ wabaExternalId?: string | null | undefined;
2480
+ phoneNumberId?: string | null | undefined;
2481
+ email?: string | null | undefined;
2482
+ clientId?: string | null | undefined;
2483
+ channelId?: string | null | undefined;
2484
+ waapiInstanceId?: string | null | undefined;
2485
+ qr?: string | null | undefined;
2486
+ status?: "active" | "pending" | "waapi-qr" | undefined;
145
2487
  apiKey?: string | undefined;
146
2488
  tier?: "basic" | "regular" | "premium" | undefined;
2489
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
147
2490
  }>>;
148
2491
  vonageCredentials: z.ZodOptional<z.ZodObject<{
149
2492
  mobileNumber: z.ZodString;
@@ -162,22 +2505,25 @@ export declare const smsContract: {
162
2505
  messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
163
2506
  facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
164
2507
  }, "strip", z.ZodTypeAny, {
165
- id: string;
166
2508
  name: string;
2509
+ id: string;
167
2510
  accessToken?: string | undefined;
168
2511
  channelSecret?: string | undefined;
169
2512
  additionalCredentials?: any;
170
2513
  senderId?: string | undefined;
171
2514
  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;
2515
+ wabaBusinessId?: string | null | undefined;
2516
+ wabaExternalId?: string | null | undefined;
2517
+ phoneNumberId?: string | null | undefined;
2518
+ email?: string | null | undefined;
2519
+ clientId?: string | null | undefined;
2520
+ channelId?: string | null | undefined;
2521
+ waapiInstanceId?: string | null | undefined;
2522
+ qr?: string | null | undefined;
2523
+ status?: "active" | "pending" | "waapi-qr" | undefined;
179
2524
  apiKey?: string | undefined;
180
2525
  tier?: "basic" | "regular" | "premium" | undefined;
2526
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
181
2527
  } | undefined;
182
2528
  vonageCredentials?: {
183
2529
  apiKey: string;
@@ -188,22 +2534,25 @@ export declare const smsContract: {
188
2534
  messengerIntegrationType?: "own" | "business" | undefined;
189
2535
  facebookFeedIntegrationType?: "own" | "business" | undefined;
190
2536
  }, {
191
- id: string;
192
2537
  name: string;
2538
+ id: string;
193
2539
  accessToken?: string | undefined;
194
2540
  channelSecret?: string | undefined;
195
2541
  additionalCredentials?: any;
196
2542
  senderId?: string | undefined;
197
2543
  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;
2544
+ wabaBusinessId?: string | null | undefined;
2545
+ wabaExternalId?: string | null | undefined;
2546
+ phoneNumberId?: string | null | undefined;
2547
+ email?: string | null | undefined;
2548
+ clientId?: string | null | undefined;
2549
+ channelId?: string | null | undefined;
2550
+ waapiInstanceId?: string | null | undefined;
2551
+ qr?: string | null | undefined;
2552
+ status?: "active" | "pending" | "waapi-qr" | undefined;
205
2553
  apiKey?: string | undefined;
206
2554
  tier?: "basic" | "regular" | "premium" | undefined;
2555
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
207
2556
  } | undefined;
208
2557
  vonageCredentials?: {
209
2558
  apiKey: string;
@@ -227,14 +2576,14 @@ export declare const smsContract: {
227
2576
  integrationId: z.ZodString;
228
2577
  accessToken: z.ZodString;
229
2578
  }, "strip", z.ZodTypeAny, {
230
- id: string;
231
2579
  name: string;
2580
+ id: string;
232
2581
  accessToken: string;
233
2582
  botId: string;
234
2583
  integrationId: string;
235
2584
  }, {
236
- id: string;
237
2585
  name: string;
2586
+ id: string;
238
2587
  accessToken: string;
239
2588
  botId: string;
240
2589
  integrationId: string;
@@ -357,9 +2706,9 @@ export declare const smsContract: {
357
2706
  telephonySignature: string | null;
358
2707
  }>;
359
2708
  }, "strip", z.ZodTypeAny, {
2709
+ name: string;
360
2710
  id: string;
361
2711
  address: string | null;
362
- name: string;
363
2712
  email: string;
364
2713
  createdAt: Date;
365
2714
  updatedAt: Date;
@@ -400,9 +2749,9 @@ export declare const smsContract: {
400
2749
  telephonySignature: string | null;
401
2750
  };
402
2751
  }, {
2752
+ name: string;
403
2753
  id: string;
404
2754
  address: string | null;
405
- name: string;
406
2755
  email: string;
407
2756
  createdAt: Date;
408
2757
  updatedAt: Date;
@@ -444,26 +2793,29 @@ export declare const smsContract: {
444
2793
  };
445
2794
  }>;
446
2795
  }, "strip", z.ZodTypeAny, {
2796
+ name: string;
447
2797
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
448
2798
  id: string;
449
- name: string;
450
2799
  metadata: {
451
- id: string;
452
2800
  name: string;
2801
+ id: string;
453
2802
  accessToken?: string | undefined;
454
2803
  channelSecret?: string | undefined;
455
2804
  additionalCredentials?: any;
456
2805
  senderId?: string | undefined;
457
2806
  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;
2807
+ wabaBusinessId?: string | null | undefined;
2808
+ wabaExternalId?: string | null | undefined;
2809
+ phoneNumberId?: string | null | undefined;
2810
+ email?: string | null | undefined;
2811
+ clientId?: string | null | undefined;
2812
+ channelId?: string | null | undefined;
2813
+ waapiInstanceId?: string | null | undefined;
2814
+ qr?: string | null | undefined;
2815
+ status?: "active" | "pending" | "waapi-qr" | undefined;
465
2816
  apiKey?: string | undefined;
466
2817
  tier?: "basic" | "regular" | "premium" | undefined;
2818
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
467
2819
  } | undefined;
468
2820
  vonageCredentials?: {
469
2821
  apiKey: string;
@@ -479,9 +2831,9 @@ export declare const smsContract: {
479
2831
  updatedAt: Date;
480
2832
  deletedAt: Date | null;
481
2833
  actor: {
2834
+ name: string;
482
2835
  id: string;
483
2836
  address: string | null;
484
- name: string;
485
2837
  email: string;
486
2838
  createdAt: Date;
487
2839
  updatedAt: Date;
@@ -528,33 +2880,36 @@ export declare const smsContract: {
528
2880
  connectedUserName: string;
529
2881
  connectedUserId: string;
530
2882
  botpressBot: {
531
- id: string;
532
2883
  name: string;
2884
+ id: string;
533
2885
  accessToken: string;
534
2886
  botId: string;
535
2887
  integrationId: string;
536
2888
  } | null;
537
2889
  }, {
2890
+ name: string;
538
2891
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
539
2892
  id: string;
540
- name: string;
541
2893
  metadata: {
542
- id: string;
543
2894
  name: string;
2895
+ id: string;
544
2896
  accessToken?: string | undefined;
545
2897
  channelSecret?: string | undefined;
546
2898
  additionalCredentials?: any;
547
2899
  senderId?: string | undefined;
548
2900
  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;
2901
+ wabaBusinessId?: string | null | undefined;
2902
+ wabaExternalId?: string | null | undefined;
2903
+ phoneNumberId?: string | null | undefined;
2904
+ email?: string | null | undefined;
2905
+ clientId?: string | null | undefined;
2906
+ channelId?: string | null | undefined;
2907
+ waapiInstanceId?: string | null | undefined;
2908
+ qr?: string | null | undefined;
2909
+ status?: "active" | "pending" | "waapi-qr" | undefined;
556
2910
  apiKey?: string | undefined;
557
2911
  tier?: "basic" | "regular" | "premium" | undefined;
2912
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
558
2913
  } | undefined;
559
2914
  vonageCredentials?: {
560
2915
  apiKey: string;
@@ -570,9 +2925,9 @@ export declare const smsContract: {
570
2925
  updatedAt: Date;
571
2926
  deletedAt: Date | null;
572
2927
  actor: {
2928
+ name: string;
573
2929
  id: string;
574
2930
  address: string | null;
575
- name: string;
576
2931
  email: string;
577
2932
  createdAt: Date;
578
2933
  updatedAt: Date;
@@ -619,8 +2974,8 @@ export declare const smsContract: {
619
2974
  connectedUserName: string;
620
2975
  connectedUserId: string;
621
2976
  botpressBot: {
622
- id: string;
623
2977
  name: string;
2978
+ id: string;
624
2979
  accessToken: string;
625
2980
  botId: string;
626
2981
  integrationId: string;
@@ -628,26 +2983,29 @@ export declare const smsContract: {
628
2983
  }>;
629
2984
  }, "strip", z.ZodTypeAny, {
630
2985
  channel: {
2986
+ name: string;
631
2987
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
632
2988
  id: string;
633
- name: string;
634
2989
  metadata: {
635
- id: string;
636
2990
  name: string;
2991
+ id: string;
637
2992
  accessToken?: string | undefined;
638
2993
  channelSecret?: string | undefined;
639
2994
  additionalCredentials?: any;
640
2995
  senderId?: string | undefined;
641
2996
  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;
2997
+ wabaBusinessId?: string | null | undefined;
2998
+ wabaExternalId?: string | null | undefined;
2999
+ phoneNumberId?: string | null | undefined;
3000
+ email?: string | null | undefined;
3001
+ clientId?: string | null | undefined;
3002
+ channelId?: string | null | undefined;
3003
+ waapiInstanceId?: string | null | undefined;
3004
+ qr?: string | null | undefined;
3005
+ status?: "active" | "pending" | "waapi-qr" | undefined;
649
3006
  apiKey?: string | undefined;
650
3007
  tier?: "basic" | "regular" | "premium" | undefined;
3008
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
651
3009
  } | undefined;
652
3010
  vonageCredentials?: {
653
3011
  apiKey: string;
@@ -663,9 +3021,9 @@ export declare const smsContract: {
663
3021
  updatedAt: Date;
664
3022
  deletedAt: Date | null;
665
3023
  actor: {
3024
+ name: string;
666
3025
  id: string;
667
3026
  address: string | null;
668
- name: string;
669
3027
  email: string;
670
3028
  createdAt: Date;
671
3029
  updatedAt: Date;
@@ -712,8 +3070,8 @@ export declare const smsContract: {
712
3070
  connectedUserName: string;
713
3071
  connectedUserId: string;
714
3072
  botpressBot: {
715
- id: string;
716
3073
  name: string;
3074
+ id: string;
717
3075
  accessToken: string;
718
3076
  botId: string;
719
3077
  integrationId: string;
@@ -722,26 +3080,29 @@ export declare const smsContract: {
722
3080
  requestId: string;
723
3081
  }, {
724
3082
  channel: {
3083
+ name: string;
725
3084
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
726
3085
  id: string;
727
- name: string;
728
3086
  metadata: {
729
- id: string;
730
3087
  name: string;
3088
+ id: string;
731
3089
  accessToken?: string | undefined;
732
3090
  channelSecret?: string | undefined;
733
3091
  additionalCredentials?: any;
734
3092
  senderId?: string | undefined;
735
3093
  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;
3094
+ wabaBusinessId?: string | null | undefined;
3095
+ wabaExternalId?: string | null | undefined;
3096
+ phoneNumberId?: string | null | undefined;
3097
+ email?: string | null | undefined;
3098
+ clientId?: string | null | undefined;
3099
+ channelId?: string | null | undefined;
3100
+ waapiInstanceId?: string | null | undefined;
3101
+ qr?: string | null | undefined;
3102
+ status?: "active" | "pending" | "waapi-qr" | undefined;
743
3103
  apiKey?: string | undefined;
744
3104
  tier?: "basic" | "regular" | "premium" | undefined;
3105
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
745
3106
  } | undefined;
746
3107
  vonageCredentials?: {
747
3108
  apiKey: string;
@@ -757,9 +3118,9 @@ export declare const smsContract: {
757
3118
  updatedAt: Date;
758
3119
  deletedAt: Date | null;
759
3120
  actor: {
3121
+ name: string;
760
3122
  id: string;
761
3123
  address: string | null;
762
- name: string;
763
3124
  email: string;
764
3125
  createdAt: Date;
765
3126
  updatedAt: Date;
@@ -806,8 +3167,8 @@ export declare const smsContract: {
806
3167
  connectedUserName: string;
807
3168
  connectedUserId: string;
808
3169
  botpressBot: {
809
- id: string;
810
3170
  name: string;
3171
+ id: string;
811
3172
  accessToken: string;
812
3173
  botId: string;
813
3174
  integrationId: string;
@@ -836,7 +3197,7 @@ export declare const smsContract: {
836
3197
  error?: any;
837
3198
  }>;
838
3199
  };
839
- path: "/connect";
3200
+ path: "/delete/:channelId";
840
3201
  };
841
3202
  sendMessage: {
842
3203
  body: z.ZodObject<{
@@ -861,13 +3222,13 @@ export declare const smsContract: {
861
3222
  picture: z.ZodOptional<z.ZodString>;
862
3223
  additionalCredentials: z.ZodAny;
863
3224
  }, "strip", z.ZodTypeAny, {
864
- id: string;
865
3225
  name: string;
3226
+ id: string;
866
3227
  picture?: string | undefined;
867
3228
  additionalCredentials?: any;
868
3229
  }, {
869
- id: string;
870
3230
  name: string;
3231
+ id: string;
871
3232
  picture?: string | undefined;
872
3233
  additionalCredentials?: any;
873
3234
  }>;
@@ -879,16 +3240,16 @@ export declare const smsContract: {
879
3240
  contactProfile: z.ZodNullable<z.ZodString>;
880
3241
  socialProfileUrl: z.ZodNullable<z.ZodString>;
881
3242
  }, "strip", z.ZodTypeAny, {
3243
+ name: string;
882
3244
  channel: string | null;
883
3245
  address: string | null;
884
- name: string;
885
3246
  notes: string | null;
886
3247
  contactProfile: string | null;
887
3248
  socialProfileUrl: string | null;
888
3249
  }, {
3250
+ name: string;
889
3251
  channel: string | null;
890
3252
  address: string | null;
891
- name: string;
892
3253
  notes: string | null;
893
3254
  contactProfile: string | null;
894
3255
  socialProfileUrl: string | null;
@@ -897,15 +3258,15 @@ export declare const smsContract: {
897
3258
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
898
3259
  id: string;
899
3260
  metadata: {
900
- id: string;
901
3261
  name: string;
3262
+ id: string;
902
3263
  picture?: string | undefined;
903
3264
  additionalCredentials?: any;
904
3265
  };
905
3266
  contact: {
3267
+ name: string;
906
3268
  channel: string | null;
907
3269
  address: string | null;
908
- name: string;
909
3270
  notes: string | null;
910
3271
  contactProfile: string | null;
911
3272
  socialProfileUrl: string | null;
@@ -916,15 +3277,15 @@ export declare const smsContract: {
916
3277
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
917
3278
  id: string;
918
3279
  metadata: {
919
- id: string;
920
3280
  name: string;
3281
+ id: string;
921
3282
  picture?: string | undefined;
922
3283
  additionalCredentials?: any;
923
3284
  };
924
3285
  contact: {
3286
+ name: string;
925
3287
  channel: string | null;
926
3288
  address: string | null;
927
- name: string;
928
3289
  notes: string | null;
929
3290
  contactProfile: string | null;
930
3291
  socialProfileUrl: string | null;
@@ -939,15 +3300,15 @@ export declare const smsContract: {
939
3300
  address: z.ZodNullable<z.ZodString>;
940
3301
  phone: z.ZodNullable<z.ZodString>;
941
3302
  }, "strip", z.ZodTypeAny, {
3303
+ name: string;
942
3304
  id: string;
943
3305
  address: string | null;
944
- name: string;
945
3306
  email: string;
946
3307
  phone: string | null;
947
3308
  }, {
3309
+ name: string;
948
3310
  id: string;
949
3311
  address: string | null;
950
- name: string;
951
3312
  email: string;
952
3313
  phone: string | null;
953
3314
  }>>;
@@ -956,12 +3317,12 @@ export declare const smsContract: {
956
3317
  name: z.ZodString;
957
3318
  email: z.ZodString;
958
3319
  }, "strip", z.ZodTypeAny, {
959
- id: string;
960
3320
  name: string;
3321
+ id: string;
961
3322
  email: string;
962
3323
  }, {
963
- id: string;
964
3324
  name: string;
3325
+ id: string;
965
3326
  email: string;
966
3327
  }>>;
967
3328
  channel: z.ZodObject<{
@@ -976,35 +3337,44 @@ export declare const smsContract: {
976
3337
  additionalCredentials: z.ZodOptional<z.ZodAny>;
977
3338
  senderId: z.ZodOptional<z.ZodString>;
978
3339
  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"]>>;
3340
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3341
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3342
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3343
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3344
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3345
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3346
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3347
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3348
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
986
3349
  apiKey: z.ZodOptional<z.ZodString>;
987
3350
  tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
3351
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
988
3352
  }, "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;
3353
+ wabaBusinessId?: string | null | undefined;
3354
+ wabaExternalId?: string | null | undefined;
3355
+ phoneNumberId?: string | null | undefined;
3356
+ email?: string | null | undefined;
3357
+ clientId?: string | null | undefined;
3358
+ channelId?: string | null | undefined;
3359
+ waapiInstanceId?: string | null | undefined;
3360
+ qr?: string | null | undefined;
3361
+ status?: "active" | "pending" | "waapi-qr" | undefined;
996
3362
  apiKey?: string | undefined;
997
3363
  tier?: "basic" | "regular" | "premium" | undefined;
3364
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
998
3365
  }, {
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;
3366
+ wabaBusinessId?: string | null | undefined;
3367
+ wabaExternalId?: string | null | undefined;
3368
+ phoneNumberId?: string | null | undefined;
3369
+ email?: string | null | undefined;
3370
+ clientId?: string | null | undefined;
3371
+ channelId?: string | null | undefined;
3372
+ waapiInstanceId?: string | null | undefined;
3373
+ qr?: string | null | undefined;
3374
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1006
3375
  apiKey?: string | undefined;
1007
3376
  tier?: "basic" | "regular" | "premium" | undefined;
3377
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1008
3378
  }>>;
1009
3379
  vonageCredentials: z.ZodOptional<z.ZodObject<{
1010
3380
  mobileNumber: z.ZodString;
@@ -1023,22 +3393,25 @@ export declare const smsContract: {
1023
3393
  messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
1024
3394
  facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
1025
3395
  }, "strip", z.ZodTypeAny, {
1026
- id: string;
1027
3396
  name: string;
3397
+ id: string;
1028
3398
  accessToken?: string | undefined;
1029
3399
  channelSecret?: string | undefined;
1030
3400
  additionalCredentials?: any;
1031
3401
  senderId?: string | undefined;
1032
3402
  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;
3403
+ wabaBusinessId?: string | null | undefined;
3404
+ wabaExternalId?: string | null | undefined;
3405
+ phoneNumberId?: string | null | undefined;
3406
+ email?: string | null | undefined;
3407
+ clientId?: string | null | undefined;
3408
+ channelId?: string | null | undefined;
3409
+ waapiInstanceId?: string | null | undefined;
3410
+ qr?: string | null | undefined;
3411
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1040
3412
  apiKey?: string | undefined;
1041
3413
  tier?: "basic" | "regular" | "premium" | undefined;
3414
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1042
3415
  } | undefined;
1043
3416
  vonageCredentials?: {
1044
3417
  apiKey: string;
@@ -1049,22 +3422,25 @@ export declare const smsContract: {
1049
3422
  messengerIntegrationType?: "own" | "business" | undefined;
1050
3423
  facebookFeedIntegrationType?: "own" | "business" | undefined;
1051
3424
  }, {
1052
- id: string;
1053
3425
  name: string;
3426
+ id: string;
1054
3427
  accessToken?: string | undefined;
1055
3428
  channelSecret?: string | undefined;
1056
3429
  additionalCredentials?: any;
1057
3430
  senderId?: string | undefined;
1058
3431
  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;
3432
+ wabaBusinessId?: string | null | undefined;
3433
+ wabaExternalId?: string | null | undefined;
3434
+ phoneNumberId?: string | null | undefined;
3435
+ email?: string | null | undefined;
3436
+ clientId?: string | null | undefined;
3437
+ channelId?: string | null | undefined;
3438
+ waapiInstanceId?: string | null | undefined;
3439
+ qr?: string | null | undefined;
3440
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1066
3441
  apiKey?: string | undefined;
1067
3442
  tier?: "basic" | "regular" | "premium" | undefined;
3443
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1068
3444
  } | undefined;
1069
3445
  vonageCredentials?: {
1070
3446
  apiKey: string;
@@ -1088,39 +3464,42 @@ export declare const smsContract: {
1088
3464
  address: z.ZodNullable<z.ZodString>;
1089
3465
  phone: z.ZodNullable<z.ZodString>;
1090
3466
  }, "strip", z.ZodTypeAny, {
3467
+ name: string;
1091
3468
  id: string;
1092
3469
  address: string | null;
1093
- name: string;
1094
3470
  email: string;
1095
3471
  phone: string | null;
1096
3472
  }, {
3473
+ name: string;
1097
3474
  id: string;
1098
3475
  address: string | null;
1099
- name: string;
1100
3476
  email: string;
1101
3477
  phone: string | null;
1102
3478
  }>>;
1103
3479
  }, "strip", z.ZodTypeAny, {
3480
+ name: string;
1104
3481
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1105
3482
  id: string;
1106
- name: string;
1107
3483
  metadata: {
1108
- id: string;
1109
3484
  name: string;
3485
+ id: string;
1110
3486
  accessToken?: string | undefined;
1111
3487
  channelSecret?: string | undefined;
1112
3488
  additionalCredentials?: any;
1113
3489
  senderId?: string | undefined;
1114
3490
  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;
3491
+ wabaBusinessId?: string | null | undefined;
3492
+ wabaExternalId?: string | null | undefined;
3493
+ phoneNumberId?: string | null | undefined;
3494
+ email?: string | null | undefined;
3495
+ clientId?: string | null | undefined;
3496
+ channelId?: string | null | undefined;
3497
+ waapiInstanceId?: string | null | undefined;
3498
+ qr?: string | null | undefined;
3499
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1122
3500
  apiKey?: string | undefined;
1123
3501
  tier?: "basic" | "regular" | "premium" | undefined;
3502
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1124
3503
  } | undefined;
1125
3504
  vonageCredentials?: {
1126
3505
  apiKey: string;
@@ -1138,33 +3517,36 @@ export declare const smsContract: {
1138
3517
  connectedUserId?: string | null | undefined;
1139
3518
  lineRichMenuId?: string | null | undefined;
1140
3519
  actor?: {
3520
+ name: string;
1141
3521
  id: string;
1142
3522
  address: string | null;
1143
- name: string;
1144
3523
  email: string;
1145
3524
  phone: string | null;
1146
3525
  } | undefined;
1147
3526
  }, {
3527
+ name: string;
1148
3528
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1149
3529
  id: string;
1150
- name: string;
1151
3530
  metadata: {
1152
- id: string;
1153
3531
  name: string;
3532
+ id: string;
1154
3533
  accessToken?: string | undefined;
1155
3534
  channelSecret?: string | undefined;
1156
3535
  additionalCredentials?: any;
1157
3536
  senderId?: string | undefined;
1158
3537
  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;
3538
+ wabaBusinessId?: string | null | undefined;
3539
+ wabaExternalId?: string | null | undefined;
3540
+ phoneNumberId?: string | null | undefined;
3541
+ email?: string | null | undefined;
3542
+ clientId?: string | null | undefined;
3543
+ channelId?: string | null | undefined;
3544
+ waapiInstanceId?: string | null | undefined;
3545
+ qr?: string | null | undefined;
3546
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1166
3547
  apiKey?: string | undefined;
1167
3548
  tier?: "basic" | "regular" | "premium" | undefined;
3549
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1168
3550
  } | undefined;
1169
3551
  vonageCredentials?: {
1170
3552
  apiKey: string;
@@ -1182,9 +3564,9 @@ export declare const smsContract: {
1182
3564
  connectedUserId?: string | null | undefined;
1183
3565
  lineRichMenuId?: string | null | undefined;
1184
3566
  actor?: {
3567
+ name: string;
1185
3568
  id: string;
1186
3569
  address: string | null;
1187
- name: string;
1188
3570
  email: string;
1189
3571
  phone: string | null;
1190
3572
  } | undefined;
@@ -1194,26 +3576,29 @@ export declare const smsContract: {
1194
3576
  }, "strip", z.ZodTypeAny, {
1195
3577
  id: string;
1196
3578
  channel: {
3579
+ name: string;
1197
3580
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1198
3581
  id: string;
1199
- name: string;
1200
3582
  metadata: {
1201
- id: string;
1202
3583
  name: string;
3584
+ id: string;
1203
3585
  accessToken?: string | undefined;
1204
3586
  channelSecret?: string | undefined;
1205
3587
  additionalCredentials?: any;
1206
3588
  senderId?: string | undefined;
1207
3589
  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;
3590
+ wabaBusinessId?: string | null | undefined;
3591
+ wabaExternalId?: string | null | undefined;
3592
+ phoneNumberId?: string | null | undefined;
3593
+ email?: string | null | undefined;
3594
+ clientId?: string | null | undefined;
3595
+ channelId?: string | null | undefined;
3596
+ waapiInstanceId?: string | null | undefined;
3597
+ qr?: string | null | undefined;
3598
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1215
3599
  apiKey?: string | undefined;
1216
3600
  tier?: "basic" | "regular" | "premium" | undefined;
3601
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1217
3602
  } | undefined;
1218
3603
  vonageCredentials?: {
1219
3604
  apiKey: string;
@@ -1231,9 +3616,9 @@ export declare const smsContract: {
1231
3616
  connectedUserId?: string | null | undefined;
1232
3617
  lineRichMenuId?: string | null | undefined;
1233
3618
  actor?: {
3619
+ name: string;
1234
3620
  id: string;
1235
3621
  address: string | null;
1236
- name: string;
1237
3622
  email: string;
1238
3623
  phone: string | null;
1239
3624
  } | undefined;
@@ -1242,9 +3627,9 @@ export declare const smsContract: {
1242
3627
  createdAt: string;
1243
3628
  updatedAt: string;
1244
3629
  actor: {
3630
+ name: string;
1245
3631
  id: string;
1246
3632
  address: string | null;
1247
- name: string;
1248
3633
  email: string;
1249
3634
  phone: string | null;
1250
3635
  } | null;
@@ -1253,15 +3638,15 @@ export declare const smsContract: {
1253
3638
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1254
3639
  id: string;
1255
3640
  metadata: {
1256
- id: string;
1257
3641
  name: string;
3642
+ id: string;
1258
3643
  picture?: string | undefined;
1259
3644
  additionalCredentials?: any;
1260
3645
  };
1261
3646
  contact: {
3647
+ name: string;
1262
3648
  channel: string | null;
1263
3649
  address: string | null;
1264
- name: string;
1265
3650
  notes: string | null;
1266
3651
  contactProfile: string | null;
1267
3652
  socialProfileUrl: string | null;
@@ -1270,8 +3655,8 @@ export declare const smsContract: {
1270
3655
  socialPlatformId: string | null;
1271
3656
  };
1272
3657
  assignee: {
1273
- id: string;
1274
3658
  name: string;
3659
+ id: string;
1275
3660
  email: string;
1276
3661
  } | null;
1277
3662
  lastMessage?: string | undefined;
@@ -1282,26 +3667,29 @@ export declare const smsContract: {
1282
3667
  }, {
1283
3668
  id: string;
1284
3669
  channel: {
3670
+ name: string;
1285
3671
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1286
3672
  id: string;
1287
- name: string;
1288
3673
  metadata: {
1289
- id: string;
1290
3674
  name: string;
3675
+ id: string;
1291
3676
  accessToken?: string | undefined;
1292
3677
  channelSecret?: string | undefined;
1293
3678
  additionalCredentials?: any;
1294
3679
  senderId?: string | undefined;
1295
3680
  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;
3681
+ wabaBusinessId?: string | null | undefined;
3682
+ wabaExternalId?: string | null | undefined;
3683
+ phoneNumberId?: string | null | undefined;
3684
+ email?: string | null | undefined;
3685
+ clientId?: string | null | undefined;
3686
+ channelId?: string | null | undefined;
3687
+ waapiInstanceId?: string | null | undefined;
3688
+ qr?: string | null | undefined;
3689
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1303
3690
  apiKey?: string | undefined;
1304
3691
  tier?: "basic" | "regular" | "premium" | undefined;
3692
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1305
3693
  } | undefined;
1306
3694
  vonageCredentials?: {
1307
3695
  apiKey: string;
@@ -1319,9 +3707,9 @@ export declare const smsContract: {
1319
3707
  connectedUserId?: string | null | undefined;
1320
3708
  lineRichMenuId?: string | null | undefined;
1321
3709
  actor?: {
3710
+ name: string;
1322
3711
  id: string;
1323
3712
  address: string | null;
1324
- name: string;
1325
3713
  email: string;
1326
3714
  phone: string | null;
1327
3715
  } | undefined;
@@ -1330,9 +3718,9 @@ export declare const smsContract: {
1330
3718
  createdAt: string;
1331
3719
  updatedAt: string;
1332
3720
  actor: {
3721
+ name: string;
1333
3722
  id: string;
1334
3723
  address: string | null;
1335
- name: string;
1336
3724
  email: string;
1337
3725
  phone: string | null;
1338
3726
  } | null;
@@ -1341,15 +3729,15 @@ export declare const smsContract: {
1341
3729
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1342
3730
  id: string;
1343
3731
  metadata: {
1344
- id: string;
1345
3732
  name: string;
3733
+ id: string;
1346
3734
  picture?: string | undefined;
1347
3735
  additionalCredentials?: any;
1348
3736
  };
1349
3737
  contact: {
3738
+ name: string;
1350
3739
  channel: string | null;
1351
3740
  address: string | null;
1352
- name: string;
1353
3741
  notes: string | null;
1354
3742
  contactProfile: string | null;
1355
3743
  socialProfileUrl: string | null;
@@ -1358,8 +3746,8 @@ export declare const smsContract: {
1358
3746
  socialPlatformId: string | null;
1359
3747
  };
1360
3748
  assignee: {
1361
- id: string;
1362
3749
  name: string;
3750
+ id: string;
1363
3751
  email: string;
1364
3752
  } | null;
1365
3753
  lastMessage?: string | undefined;
@@ -1372,7 +3760,7 @@ export declare const smsContract: {
1372
3760
  id: z.ZodOptional<z.ZodString>;
1373
3761
  message: z.ZodOptional<z.ZodString>;
1374
3762
  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"]>;
3763
+ 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
3764
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
1377
3765
  metadata: z.ZodOptional<z.ZodAny>;
1378
3766
  platformId: z.ZodOptional<z.ZodString>;
@@ -1409,15 +3797,15 @@ export declare const smsContract: {
1409
3797
  address: z.ZodNullable<z.ZodString>;
1410
3798
  phone: z.ZodNullable<z.ZodString>;
1411
3799
  }, "strip", z.ZodTypeAny, {
3800
+ name: string;
1412
3801
  id: string;
1413
3802
  address: string | null;
1414
- name: string;
1415
3803
  email: string;
1416
3804
  phone: string | null;
1417
3805
  }, {
3806
+ name: string;
1418
3807
  id: string;
1419
3808
  address: string | null;
1420
- name: string;
1421
3809
  email: string;
1422
3810
  phone: string | null;
1423
3811
  }>>;
@@ -1428,7 +3816,7 @@ export declare const smsContract: {
1428
3816
  editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
1429
3817
  label: z.ZodOptional<z.ZodString>;
1430
3818
  }, "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";
3819
+ 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
3820
  direction: "incoming" | "outgoing" | "system";
1433
3821
  id?: string | undefined;
1434
3822
  message?: string | undefined;
@@ -1450,9 +3838,9 @@ export declare const smsContract: {
1450
3838
  originalUrl?: string | undefined;
1451
3839
  } | undefined;
1452
3840
  sender?: {
3841
+ name: string;
1453
3842
  id: string;
1454
3843
  address: string | null;
1455
- name: string;
1456
3844
  email: string;
1457
3845
  phone: string | null;
1458
3846
  } | undefined;
@@ -1463,7 +3851,7 @@ export declare const smsContract: {
1463
3851
  editedAt?: string | Date | null | undefined;
1464
3852
  label?: string | undefined;
1465
3853
  }, {
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";
3854
+ 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
3855
  direction: "incoming" | "outgoing" | "system";
1468
3856
  id?: string | undefined;
1469
3857
  message?: string | undefined;
@@ -1485,9 +3873,9 @@ export declare const smsContract: {
1485
3873
  originalUrl?: string | undefined;
1486
3874
  } | undefined;
1487
3875
  sender?: {
3876
+ name: string;
1488
3877
  id: string;
1489
3878
  address: string | null;
1490
- name: string;
1491
3879
  email: string;
1492
3880
  phone: string | null;
1493
3881
  } | undefined;
@@ -1500,7 +3888,7 @@ export declare const smsContract: {
1500
3888
  }>;
1501
3889
  }, "strip", z.ZodTypeAny, {
1502
3890
  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";
3891
+ 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
3892
  direction: "incoming" | "outgoing" | "system";
1505
3893
  id?: string | undefined;
1506
3894
  message?: string | undefined;
@@ -1522,9 +3910,9 @@ export declare const smsContract: {
1522
3910
  originalUrl?: string | undefined;
1523
3911
  } | undefined;
1524
3912
  sender?: {
3913
+ name: string;
1525
3914
  id: string;
1526
3915
  address: string | null;
1527
- name: string;
1528
3916
  email: string;
1529
3917
  phone: string | null;
1530
3918
  } | undefined;
@@ -1538,26 +3926,29 @@ export declare const smsContract: {
1538
3926
  room: {
1539
3927
  id: string;
1540
3928
  channel: {
3929
+ name: string;
1541
3930
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1542
3931
  id: string;
1543
- name: string;
1544
3932
  metadata: {
1545
- id: string;
1546
3933
  name: string;
3934
+ id: string;
1547
3935
  accessToken?: string | undefined;
1548
3936
  channelSecret?: string | undefined;
1549
3937
  additionalCredentials?: any;
1550
3938
  senderId?: string | undefined;
1551
3939
  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;
3940
+ wabaBusinessId?: string | null | undefined;
3941
+ wabaExternalId?: string | null | undefined;
3942
+ phoneNumberId?: string | null | undefined;
3943
+ email?: string | null | undefined;
3944
+ clientId?: string | null | undefined;
3945
+ channelId?: string | null | undefined;
3946
+ waapiInstanceId?: string | null | undefined;
3947
+ qr?: string | null | undefined;
3948
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1559
3949
  apiKey?: string | undefined;
1560
3950
  tier?: "basic" | "regular" | "premium" | undefined;
3951
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1561
3952
  } | undefined;
1562
3953
  vonageCredentials?: {
1563
3954
  apiKey: string;
@@ -1575,9 +3966,9 @@ export declare const smsContract: {
1575
3966
  connectedUserId?: string | null | undefined;
1576
3967
  lineRichMenuId?: string | null | undefined;
1577
3968
  actor?: {
3969
+ name: string;
1578
3970
  id: string;
1579
3971
  address: string | null;
1580
- name: string;
1581
3972
  email: string;
1582
3973
  phone: string | null;
1583
3974
  } | undefined;
@@ -1586,9 +3977,9 @@ export declare const smsContract: {
1586
3977
  createdAt: string;
1587
3978
  updatedAt: string;
1588
3979
  actor: {
3980
+ name: string;
1589
3981
  id: string;
1590
3982
  address: string | null;
1591
- name: string;
1592
3983
  email: string;
1593
3984
  phone: string | null;
1594
3985
  } | null;
@@ -1597,15 +3988,15 @@ export declare const smsContract: {
1597
3988
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1598
3989
  id: string;
1599
3990
  metadata: {
1600
- id: string;
1601
3991
  name: string;
3992
+ id: string;
1602
3993
  picture?: string | undefined;
1603
3994
  additionalCredentials?: any;
1604
3995
  };
1605
3996
  contact: {
3997
+ name: string;
1606
3998
  channel: string | null;
1607
3999
  address: string | null;
1608
- name: string;
1609
4000
  notes: string | null;
1610
4001
  contactProfile: string | null;
1611
4002
  socialProfileUrl: string | null;
@@ -1614,8 +4005,8 @@ export declare const smsContract: {
1614
4005
  socialPlatformId: string | null;
1615
4006
  };
1616
4007
  assignee: {
1617
- id: string;
1618
4008
  name: string;
4009
+ id: string;
1619
4010
  email: string;
1620
4011
  } | null;
1621
4012
  lastMessage?: string | undefined;
@@ -1627,7 +4018,7 @@ export declare const smsContract: {
1627
4018
  isBot: boolean | null;
1628
4019
  }, {
1629
4020
  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";
4021
+ 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
4022
  direction: "incoming" | "outgoing" | "system";
1632
4023
  id?: string | undefined;
1633
4024
  message?: string | undefined;
@@ -1649,9 +4040,9 @@ export declare const smsContract: {
1649
4040
  originalUrl?: string | undefined;
1650
4041
  } | undefined;
1651
4042
  sender?: {
4043
+ name: string;
1652
4044
  id: string;
1653
4045
  address: string | null;
1654
- name: string;
1655
4046
  email: string;
1656
4047
  phone: string | null;
1657
4048
  } | undefined;
@@ -1665,26 +4056,29 @@ export declare const smsContract: {
1665
4056
  room: {
1666
4057
  id: string;
1667
4058
  channel: {
4059
+ name: string;
1668
4060
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1669
4061
  id: string;
1670
- name: string;
1671
4062
  metadata: {
1672
- id: string;
1673
4063
  name: string;
4064
+ id: string;
1674
4065
  accessToken?: string | undefined;
1675
4066
  channelSecret?: string | undefined;
1676
4067
  additionalCredentials?: any;
1677
4068
  senderId?: string | undefined;
1678
4069
  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;
4070
+ wabaBusinessId?: string | null | undefined;
4071
+ wabaExternalId?: string | null | undefined;
4072
+ phoneNumberId?: string | null | undefined;
4073
+ email?: string | null | undefined;
4074
+ clientId?: string | null | undefined;
4075
+ channelId?: string | null | undefined;
4076
+ waapiInstanceId?: string | null | undefined;
4077
+ qr?: string | null | undefined;
4078
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1686
4079
  apiKey?: string | undefined;
1687
4080
  tier?: "basic" | "regular" | "premium" | undefined;
4081
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1688
4082
  } | undefined;
1689
4083
  vonageCredentials?: {
1690
4084
  apiKey: string;
@@ -1702,9 +4096,9 @@ export declare const smsContract: {
1702
4096
  connectedUserId?: string | null | undefined;
1703
4097
  lineRichMenuId?: string | null | undefined;
1704
4098
  actor?: {
4099
+ name: string;
1705
4100
  id: string;
1706
4101
  address: string | null;
1707
- name: string;
1708
4102
  email: string;
1709
4103
  phone: string | null;
1710
4104
  } | undefined;
@@ -1713,9 +4107,9 @@ export declare const smsContract: {
1713
4107
  createdAt: string;
1714
4108
  updatedAt: string;
1715
4109
  actor: {
4110
+ name: string;
1716
4111
  id: string;
1717
4112
  address: string | null;
1718
- name: string;
1719
4113
  email: string;
1720
4114
  phone: string | null;
1721
4115
  } | null;
@@ -1724,15 +4118,15 @@ export declare const smsContract: {
1724
4118
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1725
4119
  id: string;
1726
4120
  metadata: {
1727
- id: string;
1728
4121
  name: string;
4122
+ id: string;
1729
4123
  picture?: string | undefined;
1730
4124
  additionalCredentials?: any;
1731
4125
  };
1732
4126
  contact: {
4127
+ name: string;
1733
4128
  channel: string | null;
1734
4129
  address: string | null;
1735
- name: string;
1736
4130
  notes: string | null;
1737
4131
  contactProfile: string | null;
1738
4132
  socialProfileUrl: string | null;
@@ -1741,8 +4135,8 @@ export declare const smsContract: {
1741
4135
  socialPlatformId: string | null;
1742
4136
  };
1743
4137
  assignee: {
1744
- id: string;
1745
4138
  name: string;
4139
+ id: string;
1746
4140
  email: string;
1747
4141
  } | null;
1748
4142
  lastMessage?: string | undefined;
@@ -1786,4 +4180,57 @@ export declare const smsContract: {
1786
4180
  path: "/message";
1787
4181
  };
1788
4182
  };
4183
+ export declare const smsSettingContract: {
4184
+ getSMSNumbers: {
4185
+ method: "GET";
4186
+ responses: {
4187
+ 200: z.ZodObject<{
4188
+ requestId: z.ZodString;
4189
+ smsNumbers: z.ZodArray<z.ZodObject<{
4190
+ number: z.ZodString;
4191
+ senderId: z.ZodString;
4192
+ apiKey: z.ZodString;
4193
+ apiSecret: z.ZodString;
4194
+ type: z.ZodString;
4195
+ isConnected: z.ZodBoolean;
4196
+ }, "strip", z.ZodTypeAny, {
4197
+ number: string;
4198
+ type: string;
4199
+ isConnected: boolean;
4200
+ senderId: string;
4201
+ apiKey: string;
4202
+ apiSecret: string;
4203
+ }, {
4204
+ number: string;
4205
+ type: string;
4206
+ isConnected: boolean;
4207
+ senderId: string;
4208
+ apiKey: string;
4209
+ apiSecret: string;
4210
+ }>, "many">;
4211
+ }, "strip", z.ZodTypeAny, {
4212
+ requestId: string;
4213
+ smsNumbers: {
4214
+ number: string;
4215
+ type: string;
4216
+ isConnected: boolean;
4217
+ senderId: string;
4218
+ apiKey: string;
4219
+ apiSecret: string;
4220
+ }[];
4221
+ }, {
4222
+ requestId: string;
4223
+ smsNumbers: {
4224
+ number: string;
4225
+ type: string;
4226
+ isConnected: boolean;
4227
+ senderId: string;
4228
+ apiKey: string;
4229
+ apiSecret: string;
4230
+ }[];
4231
+ }>;
4232
+ };
4233
+ path: "/sms-setting/sms-numbers";
4234
+ };
4235
+ };
1789
4236
  //# sourceMappingURL=index.d.ts.map