@kl1/contracts 1.2.45-uat → 1.2.46-uat

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +4 -4
  2. package/dist/api-contracts/src/activity-log/schema.d.ts +4 -4
  3. package/dist/api-contracts/src/attribute/index.d.ts +4 -4
  4. package/dist/api-contracts/src/attribute/validation.d.ts +4 -4
  5. package/dist/api-contracts/src/auth/index.d.ts +4 -4
  6. package/dist/api-contracts/src/automation-queue/index.d.ts +80 -80
  7. package/dist/api-contracts/src/automation-queue/schema.d.ts +10 -10
  8. package/dist/api-contracts/src/botpress/index.d.ts +28 -28
  9. package/dist/api-contracts/src/botpress/schema.d.ts +6 -6
  10. package/dist/api-contracts/src/botpress/validation.d.ts +8 -8
  11. package/dist/api-contracts/src/business-calendar/index.d.ts +32 -32
  12. package/dist/api-contracts/src/business-calendar/schema.d.ts +8 -8
  13. package/dist/api-contracts/src/business-calendar/validation.d.ts +2 -2
  14. package/dist/api-contracts/src/category/index.d.ts +12 -12
  15. package/dist/api-contracts/src/category/schema.d.ts +2 -2
  16. package/dist/api-contracts/src/channel/index.d.ts +1725 -2399
  17. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  18. package/dist/api-contracts/src/channel/schema.d.ts +103 -139
  19. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  20. package/dist/api-contracts/src/channel/validation.d.ts +118 -160
  21. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  22. package/dist/api-contracts/src/chat/index.d.ts +6471 -7294
  23. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  24. package/dist/api-contracts/src/chat/schema.d.ts +2167 -2366
  25. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  26. package/dist/api-contracts/src/chat/validation.d.ts +1563 -1854
  27. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  28. package/dist/api-contracts/src/comment/index.d.ts +312 -312
  29. package/dist/api-contracts/src/comment/schema.d.ts +88 -88
  30. package/dist/api-contracts/src/company/index.d.ts +4 -4
  31. package/dist/api-contracts/src/company/validation.d.ts +4 -4
  32. package/dist/api-contracts/src/contact/index.d.ts +343 -343
  33. package/dist/api-contracts/src/contact/schema.d.ts +38 -38
  34. package/dist/api-contracts/src/contact/validation.d.ts +190 -190
  35. package/dist/api-contracts/src/contract.d.ts +52403 -67729
  36. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  37. package/dist/api-contracts/src/cx-log/index.d.ts +387 -539
  38. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  39. package/dist/api-contracts/src/cx-log/schema.d.ts +321 -402
  40. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  41. package/dist/api-contracts/src/cx-log/validation.d.ts +2 -2
  42. package/dist/api-contracts/src/dashboard/index.d.ts +135 -113
  43. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  44. package/dist/api-contracts/src/dashboard/schema.d.ts +87 -44
  45. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  46. package/dist/api-contracts/src/dashboard/validation.d.ts +0 -26
  47. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  48. package/dist/api-contracts/src/extension/index.d.ts +4 -85
  49. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  50. package/dist/api-contracts/src/facebook-feed/index.d.ts +1768 -2170
  51. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  52. package/dist/api-contracts/src/facebook-feed/schema.d.ts +141 -168
  53. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  54. package/dist/api-contracts/src/facebook-feed/validation.d.ts +126 -147
  55. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  56. package/dist/api-contracts/src/hold-label/index.d.ts +34 -34
  57. package/dist/api-contracts/src/hold-label/schema.d.ts +10 -10
  58. package/dist/api-contracts/src/index.d.ts +0 -5
  59. package/dist/api-contracts/src/index.d.ts.map +1 -1
  60. package/dist/api-contracts/src/instagram/index.d.ts +1432 -1747
  61. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  62. package/dist/api-contracts/src/instagram/validation.d.ts +10 -10
  63. package/dist/api-contracts/src/line/index.d.ts +1365 -1644
  64. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  65. package/dist/api-contracts/src/line/schema.d.ts +4 -4
  66. package/dist/api-contracts/src/line/validation.d.ts +132 -165
  67. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  68. package/dist/api-contracts/src/mail/account-contract.d.ts +72 -72
  69. package/dist/api-contracts/src/mail/mail-contract.d.ts +2470 -2470
  70. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +32 -32
  71. package/dist/api-contracts/src/mail/message-contract.d.ts +272 -272
  72. package/dist/api-contracts/src/mail/room-contract.d.ts +1481 -1481
  73. package/dist/api-contracts/src/mail/schemas/account-validation.schema.d.ts +50 -50
  74. package/dist/api-contracts/src/mail/schemas/account.schema.d.ts +12 -12
  75. package/dist/api-contracts/src/mail/schemas/message.schema.d.ts +56 -56
  76. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +478 -478
  77. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +471 -471
  78. package/dist/api-contracts/src/messenger/index.d.ts +1435 -1750
  79. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  80. package/dist/api-contracts/src/messenger/schema.d.ts +16 -16
  81. package/dist/api-contracts/src/messenger/validation.d.ts +122 -143
  82. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  83. package/dist/api-contracts/src/notification/index.d.ts +26 -26
  84. package/dist/api-contracts/src/notification/schema.d.ts +18 -18
  85. package/dist/api-contracts/src/notification/validation.d.ts +10 -10
  86. package/dist/api-contracts/src/public-api/index.d.ts +143 -143
  87. package/dist/api-contracts/src/public-api/schema.d.ts +22 -22
  88. package/dist/api-contracts/src/public-api/validation.d.ts +39 -39
  89. package/dist/api-contracts/src/sms/index.d.ts +295 -3282
  90. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  91. package/dist/api-contracts/src/sms/schema.d.ts +8 -30
  92. package/dist/api-contracts/src/sms/schema.d.ts.map +1 -1
  93. package/dist/api-contracts/src/sms/validation.d.ts +2 -2
  94. package/dist/api-contracts/src/snippet/index.d.ts +147 -147
  95. package/dist/api-contracts/src/snippet/schema.d.ts +50 -50
  96. package/dist/api-contracts/src/subscription/index.d.ts +185 -194
  97. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  98. package/dist/api-contracts/src/subscription/schema.d.ts +216 -216
  99. package/dist/api-contracts/src/subscription/validation.d.ts +0 -10
  100. package/dist/api-contracts/src/subscription/validation.d.ts.map +1 -1
  101. package/dist/api-contracts/src/tag/index.d.ts +12 -12
  102. package/dist/api-contracts/src/tag/schema.d.ts +2 -2
  103. package/dist/api-contracts/src/telegram/index.d.ts +1182 -1407
  104. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  105. package/dist/api-contracts/src/telegram/validation.d.ts +4 -4
  106. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +103 -48
  107. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  108. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +31 -14
  109. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  110. package/dist/api-contracts/src/telephony-cdr/index.d.ts +240 -240
  111. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  112. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +72 -72
  113. package/dist/api-contracts/src/tenant/schema.d.ts +2 -2
  114. package/dist/api-contracts/src/ticket/index.d.ts +439 -439
  115. package/dist/api-contracts/src/ticket/schema.d.ts +63 -63
  116. package/dist/api-contracts/src/upload/schema.d.ts +3 -3
  117. package/dist/api-contracts/src/user/index.d.ts +23 -23
  118. package/dist/api-contracts/src/user/schema.d.ts +2 -2
  119. package/dist/api-contracts/src/user/validation.d.ts +5 -5
  120. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +12 -20
  121. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  122. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +14 -24
  123. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  124. package/dist/api-contracts/src/viber/index.d.ts +1194 -1419
  125. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  126. package/dist/api-contracts/src/viber/validation.d.ts +4 -4
  127. package/dist/api-contracts/src/webchat/index.d.ts +1188 -1413
  128. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  129. package/dist/api-contracts/src/webchat/schema.d.ts +10 -10
  130. package/dist/api-contracts/src/webchat/validation.d.ts +2 -2
  131. package/dist/api-contracts/src/whatsapp/index.d.ts +1287 -1717
  132. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  133. package/dist/api-contracts/src/whatsapp/validation.d.ts +0 -79
  134. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  135. package/dist/api-contracts/src/widget/index.d.ts +24 -24
  136. package/dist/api-contracts/src/widget/schema.d.ts +2 -2
  137. package/dist/api-contracts/src/widget/validation.d.ts +4 -4
  138. package/dist/api-contracts/src/workflow-rule/index.d.ts +427 -8713
  139. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  140. package/dist/api-contracts/src/workflow-rule/schema.d.ts +2 -2
  141. package/dist/api-contracts/src/wrap-up-form/index.d.ts +26 -26
  142. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +4 -4
  143. package/dist/api-contracts/utils.d.ts +1 -1
  144. package/dist/api-contracts/utils.d.ts.map +1 -1
  145. package/dist/entities/src/enums/chat.d.ts +0 -1
  146. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  147. package/dist/index.js +4398 -4946
  148. package/dist/index.js.map +1 -1
  149. package/dist/index.mjs +4394 -4937
  150. package/dist/index.mjs.map +1 -1
  151. package/package.json +3 -7
@@ -1,7 +1,6 @@
1
- import { ConnectSMSChannelSchema, SMSNumberSchema } from './schema';
1
+ import { ConnectSMSChannelSchema } 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>;
5
4
  export declare const smsContract: {
6
5
  connect: {
7
6
  body: z.ZodObject<{
@@ -12,2965 +11,92 @@ export declare const smsContract: {
12
11
  address: z.ZodNullable<z.ZodString>;
13
12
  phone: z.ZodNullable<z.ZodString>;
14
13
  }, "strip", z.ZodTypeAny, {
15
- name: string;
16
14
  id: string;
17
15
  address: string | null;
18
- email: string;
19
- phone: string | null;
20
- }, {
21
16
  name: string;
22
- id: string;
23
- address: string | null;
24
17
  email: string;
25
18
  phone: string | null;
26
- }>;
27
- channel: z.ZodObject<{
28
- name: z.ZodString;
29
- type: z.ZodEnum<[import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS]>;
30
- senderId: z.ZodString;
31
- vonageCredentials: z.ZodObject<{
32
- mobileNumber: z.ZodString;
33
- apiKey: z.ZodString;
34
- apiSecret: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- apiKey: string;
37
- mobileNumber: string;
38
- apiSecret: string;
39
- }, {
40
- apiKey: string;
41
- mobileNumber: string;
42
- apiSecret: string;
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
19
  }, {
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;
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
20
  id: string;
77
21
  address: string | null;
78
- email: string;
79
- phone: string | null;
80
- };
81
- }, {
82
- channel: {
83
- name: string;
84
- type: import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS;
85
- senderId: string;
86
- vonageCredentials: {
87
- apiKey: string;
88
- mobileNumber: string;
89
- apiSecret: string;
90
- };
91
- };
92
- actor: {
93
22
  name: string;
94
- id: string;
95
- address: string | null;
96
23
  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.ZodOptional<z.ZodString>;
872
- createdAt: z.ZodOptional<z.ZodDate>;
873
- updatedAt: z.ZodOptional<z.ZodDate>;
874
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
875
- name: z.ZodOptional<z.ZodString>;
876
- type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>>;
877
- metadata: z.ZodOptional<z.ZodObject<{
878
- id: z.ZodString;
879
- name: z.ZodString;
880
- accessToken: z.ZodOptional<z.ZodString>;
881
- channelSecret: z.ZodOptional<z.ZodString>;
882
- additionalCredentials: z.ZodOptional<z.ZodAny>;
883
- senderId: z.ZodOptional<z.ZodString>;
884
- whatsapp: z.ZodOptional<z.ZodObject<{
885
- wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
886
- wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
887
- phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
888
- email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
889
- clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
890
- channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
891
- waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
892
- qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
893
- status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
894
- apiKey: z.ZodOptional<z.ZodString>;
895
- tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
896
- integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
897
- }, "strip", z.ZodTypeAny, {
898
- wabaBusinessId?: string | null | undefined;
899
- wabaExternalId?: string | null | undefined;
900
- phoneNumberId?: string | null | undefined;
901
- email?: string | null | undefined;
902
- clientId?: string | null | undefined;
903
- channelId?: string | null | undefined;
904
- waapiInstanceId?: string | null | undefined;
905
- qr?: string | null | undefined;
906
- status?: "active" | "pending" | "waapi-qr" | undefined;
907
- apiKey?: string | undefined;
908
- tier?: "basic" | "regular" | "premium" | undefined;
909
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
910
- }, {
911
- wabaBusinessId?: string | null | undefined;
912
- wabaExternalId?: string | null | undefined;
913
- phoneNumberId?: string | null | undefined;
914
- email?: string | null | undefined;
915
- clientId?: string | null | undefined;
916
- channelId?: string | null | undefined;
917
- waapiInstanceId?: string | null | undefined;
918
- qr?: string | null | undefined;
919
- status?: "active" | "pending" | "waapi-qr" | undefined;
920
- apiKey?: string | undefined;
921
- tier?: "basic" | "regular" | "premium" | undefined;
922
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
923
- }>>;
924
- vonageCredentials: z.ZodOptional<z.ZodObject<{
925
- mobileNumber: z.ZodString;
926
- apiKey: z.ZodString;
927
- apiSecret: z.ZodString;
928
- }, "strip", z.ZodTypeAny, {
929
- apiKey: string;
930
- mobileNumber: string;
931
- apiSecret: string;
932
- }, {
933
- apiKey: string;
934
- mobileNumber: string;
935
- apiSecret: string;
936
- }>>;
937
- lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
938
- messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
939
- facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
940
- }, "strip", z.ZodTypeAny, {
941
- name: string;
942
- id: string;
943
- accessToken?: string | undefined;
944
- channelSecret?: string | undefined;
945
- additionalCredentials?: any;
946
- senderId?: string | undefined;
947
- whatsapp?: {
948
- wabaBusinessId?: string | null | undefined;
949
- wabaExternalId?: string | null | undefined;
950
- phoneNumberId?: string | null | undefined;
951
- email?: string | null | undefined;
952
- clientId?: string | null | undefined;
953
- channelId?: string | null | undefined;
954
- waapiInstanceId?: string | null | undefined;
955
- qr?: string | null | undefined;
956
- status?: "active" | "pending" | "waapi-qr" | undefined;
957
- apiKey?: string | undefined;
958
- tier?: "basic" | "regular" | "premium" | undefined;
959
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
960
- } | undefined;
961
- vonageCredentials?: {
962
- apiKey: string;
963
- mobileNumber: string;
964
- apiSecret: string;
965
- } | undefined;
966
- lineRichMenuId?: string | null | undefined;
967
- messengerIntegrationType?: "own" | "business" | undefined;
968
- facebookFeedIntegrationType?: "own" | "business" | undefined;
969
- }, {
970
- name: string;
971
- id: string;
972
- accessToken?: string | undefined;
973
- channelSecret?: string | undefined;
974
- additionalCredentials?: any;
975
- senderId?: string | undefined;
976
- whatsapp?: {
977
- wabaBusinessId?: string | null | undefined;
978
- wabaExternalId?: string | null | undefined;
979
- phoneNumberId?: string | null | undefined;
980
- email?: string | null | undefined;
981
- clientId?: string | null | undefined;
982
- channelId?: string | null | undefined;
983
- waapiInstanceId?: string | null | undefined;
984
- qr?: string | null | undefined;
985
- status?: "active" | "pending" | "waapi-qr" | undefined;
986
- apiKey?: string | undefined;
987
- tier?: "basic" | "regular" | "premium" | undefined;
988
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
989
- } | undefined;
990
- vonageCredentials?: {
991
- apiKey: string;
992
- mobileNumber: string;
993
- apiSecret: string;
994
- } | undefined;
995
- lineRichMenuId?: string | null | undefined;
996
- messengerIntegrationType?: "own" | "business" | undefined;
997
- facebookFeedIntegrationType?: "own" | "business" | undefined;
998
- }>>;
999
- brandName: z.ZodOptional<z.ZodString>;
1000
- platformId: z.ZodOptional<z.ZodString>;
1001
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
1002
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
1003
- connectedUserName: z.ZodOptional<z.ZodString>;
1004
- connectedUserId: z.ZodOptional<z.ZodString>;
1005
- botpressBot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1006
- id: z.ZodString;
1007
- name: z.ZodString;
1008
- botId: z.ZodString;
1009
- integrationId: z.ZodString;
1010
- accessToken: z.ZodString;
1011
- }, "strip", z.ZodTypeAny, {
1012
- name: string;
1013
- id: string;
1014
- accessToken: string;
1015
- botId: string;
1016
- integrationId: string;
1017
- }, {
1018
- name: string;
1019
- id: string;
1020
- accessToken: string;
1021
- botId: string;
1022
- integrationId: string;
1023
- }>>>;
1024
- actor: z.ZodOptional<z.ZodObject<{
1025
- id: z.ZodString;
1026
- createdAt: z.ZodDate;
1027
- updatedAt: z.ZodDate;
1028
- deletedAt: z.ZodNullable<z.ZodDate>;
1029
- name: z.ZodString;
1030
- email: z.ZodString;
1031
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1032
- password: z.ZodString;
1033
- address: z.ZodNullable<z.ZodString>;
1034
- phone: z.ZodNullable<z.ZodString>;
1035
- notificationCount: z.ZodNullable<z.ZodNumber>;
1036
- roles: z.ZodArray<z.ZodObject<{
1037
- id: z.ZodString;
1038
- createdAt: z.ZodDate;
1039
- updatedAt: z.ZodDate;
1040
- deletedAt: z.ZodNullable<z.ZodDate>;
1041
- systemName: z.ZodString;
1042
- displayName: z.ZodString;
1043
- description: z.ZodNullable<z.ZodString>;
1044
- permissions: z.ZodArray<z.ZodObject<{
1045
- id: z.ZodString;
1046
- createdAt: z.ZodDate;
1047
- updatedAt: z.ZodDate;
1048
- deletedAt: z.ZodNullable<z.ZodDate>;
1049
- systemName: z.ZodString;
1050
- displayName: z.ZodString;
1051
- description: z.ZodNullable<z.ZodString>;
1052
- }, "strip", z.ZodTypeAny, {
1053
- id: string;
1054
- description: string | null;
1055
- createdAt: Date;
1056
- updatedAt: Date;
1057
- deletedAt: Date | null;
1058
- systemName: string;
1059
- displayName: string;
1060
- }, {
1061
- id: string;
1062
- description: string | null;
1063
- createdAt: Date;
1064
- updatedAt: Date;
1065
- deletedAt: Date | null;
1066
- systemName: string;
1067
- displayName: string;
1068
- }>, "many">;
1069
- }, "strip", z.ZodTypeAny, {
1070
- id: string;
1071
- description: string | null;
1072
- createdAt: Date;
1073
- updatedAt: Date;
1074
- deletedAt: Date | null;
1075
- systemName: string;
1076
- displayName: string;
1077
- permissions: {
1078
- id: string;
1079
- description: string | null;
1080
- createdAt: Date;
1081
- updatedAt: Date;
1082
- deletedAt: Date | null;
1083
- systemName: string;
1084
- displayName: string;
1085
- }[];
1086
- }, {
1087
- id: string;
1088
- description: string | null;
1089
- createdAt: Date;
1090
- updatedAt: Date;
1091
- deletedAt: Date | null;
1092
- systemName: string;
1093
- displayName: string;
1094
- permissions: {
1095
- id: string;
1096
- description: string | null;
1097
- createdAt: Date;
1098
- updatedAt: Date;
1099
- deletedAt: Date | null;
1100
- systemName: string;
1101
- displayName: string;
1102
- }[];
1103
- }>, "many">;
1104
- extension: z.ZodObject<{
1105
- id: z.ZodString;
1106
- createdAt: z.ZodDate;
1107
- updatedAt: z.ZodDate;
1108
- deletedAt: z.ZodNullable<z.ZodDate>;
1109
- userId: z.ZodNullable<z.ZodString>;
1110
- sipServerUrl: z.ZodString;
1111
- sipUserName: z.ZodString;
1112
- webphoneLoginUser: z.ZodString;
1113
- extensionId: z.ZodNullable<z.ZodString>;
1114
- extensionName: z.ZodString;
1115
- telephonySignature: z.ZodNullable<z.ZodString>;
1116
- }, "strip", z.ZodTypeAny, {
1117
- id: string;
1118
- createdAt: Date;
1119
- updatedAt: Date;
1120
- deletedAt: Date | null;
1121
- userId: string | null;
1122
- sipServerUrl: string;
1123
- sipUserName: string;
1124
- webphoneLoginUser: string;
1125
- extensionId: string | null;
1126
- extensionName: string;
1127
- telephonySignature: string | null;
1128
- }, {
1129
- id: string;
1130
- createdAt: Date;
1131
- updatedAt: Date;
1132
- deletedAt: Date | null;
1133
- userId: string | null;
1134
- sipServerUrl: string;
1135
- sipUserName: string;
1136
- webphoneLoginUser: string;
1137
- extensionId: string | null;
1138
- extensionName: string;
1139
- telephonySignature: string | null;
1140
- }>;
1141
- }, "strip", z.ZodTypeAny, {
1142
- name: string;
1143
- id: string;
1144
- address: string | null;
1145
- email: string;
1146
- createdAt: Date;
1147
- updatedAt: Date;
1148
- deletedAt: Date | null;
1149
- emailVerifiedAt: Date | null;
1150
- password: string;
1151
- phone: string | null;
1152
- notificationCount: number | null;
1153
- roles: {
1154
- id: string;
1155
- description: string | null;
1156
- createdAt: Date;
1157
- updatedAt: Date;
1158
- deletedAt: Date | null;
1159
- systemName: string;
1160
- displayName: string;
1161
- permissions: {
1162
- id: string;
1163
- description: string | null;
1164
- createdAt: Date;
1165
- updatedAt: Date;
1166
- deletedAt: Date | null;
1167
- systemName: string;
1168
- displayName: string;
1169
- }[];
1170
- }[];
1171
- extension: {
1172
- id: string;
1173
- createdAt: Date;
1174
- updatedAt: Date;
1175
- deletedAt: Date | null;
1176
- userId: string | null;
1177
- sipServerUrl: string;
1178
- sipUserName: string;
1179
- webphoneLoginUser: string;
1180
- extensionId: string | null;
1181
- extensionName: string;
1182
- telephonySignature: string | null;
1183
- };
1184
- }, {
1185
- name: string;
1186
- id: string;
1187
- address: string | null;
1188
- email: string;
1189
- createdAt: Date;
1190
- updatedAt: Date;
1191
- deletedAt: Date | null;
1192
- emailVerifiedAt: Date | null;
1193
- password: string;
1194
- phone: string | null;
1195
- notificationCount: number | null;
1196
- roles: {
1197
- id: string;
1198
- description: string | null;
1199
- createdAt: Date;
1200
- updatedAt: Date;
1201
- deletedAt: Date | null;
1202
- systemName: string;
1203
- displayName: string;
1204
- permissions: {
1205
- id: string;
1206
- description: string | null;
1207
- createdAt: Date;
1208
- updatedAt: Date;
1209
- deletedAt: Date | null;
1210
- systemName: string;
1211
- displayName: string;
1212
- }[];
1213
- }[];
1214
- extension: {
1215
- id: string;
1216
- createdAt: Date;
1217
- updatedAt: Date;
1218
- deletedAt: Date | null;
1219
- userId: string | null;
1220
- sipServerUrl: string;
1221
- sipUserName: string;
1222
- webphoneLoginUser: string;
1223
- extensionId: string | null;
1224
- extensionName: string;
1225
- telephonySignature: string | null;
1226
- };
1227
- }>>;
1228
- }, "strip", z.ZodTypeAny, {
1229
- id?: string | undefined;
1230
- createdAt?: Date | undefined;
1231
- updatedAt?: Date | undefined;
1232
- deletedAt?: Date | null | undefined;
1233
- name?: string | undefined;
1234
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
1235
- metadata?: {
1236
- name: string;
1237
- id: string;
1238
- accessToken?: string | undefined;
1239
- channelSecret?: string | undefined;
1240
- additionalCredentials?: any;
1241
- senderId?: string | undefined;
1242
- whatsapp?: {
1243
- wabaBusinessId?: string | null | undefined;
1244
- wabaExternalId?: string | null | undefined;
1245
- phoneNumberId?: string | null | undefined;
1246
- email?: string | null | undefined;
1247
- clientId?: string | null | undefined;
1248
- channelId?: string | null | undefined;
1249
- waapiInstanceId?: string | null | undefined;
1250
- qr?: string | null | undefined;
1251
- status?: "active" | "pending" | "waapi-qr" | undefined;
1252
- apiKey?: string | undefined;
1253
- tier?: "basic" | "regular" | "premium" | undefined;
1254
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1255
- } | undefined;
1256
- vonageCredentials?: {
1257
- apiKey: string;
1258
- mobileNumber: string;
1259
- apiSecret: string;
1260
- } | undefined;
1261
- lineRichMenuId?: string | null | undefined;
1262
- messengerIntegrationType?: "own" | "business" | undefined;
1263
- facebookFeedIntegrationType?: "own" | "business" | undefined;
1264
- } | undefined;
1265
- brandName?: string | undefined;
1266
- platformId?: string | undefined;
1267
- status?: boolean | undefined;
1268
- isReloginRequired?: boolean | undefined;
1269
- connectedUserName?: string | undefined;
1270
- connectedUserId?: string | undefined;
1271
- botpressBot?: {
1272
- name: string;
1273
- id: string;
1274
- accessToken: string;
1275
- botId: string;
1276
- integrationId: string;
1277
- } | null | undefined;
1278
- actor?: {
1279
- name: string;
1280
- id: string;
1281
- address: string | null;
1282
- email: string;
1283
- createdAt: Date;
1284
- updatedAt: Date;
1285
- deletedAt: Date | null;
1286
- emailVerifiedAt: Date | null;
1287
- password: string;
1288
- phone: string | null;
1289
- notificationCount: number | null;
1290
- roles: {
1291
- id: string;
1292
- description: string | null;
1293
- createdAt: Date;
1294
- updatedAt: Date;
1295
- deletedAt: Date | null;
1296
- systemName: string;
1297
- displayName: string;
1298
- permissions: {
1299
- id: string;
1300
- description: string | null;
1301
- createdAt: Date;
1302
- updatedAt: Date;
1303
- deletedAt: Date | null;
1304
- systemName: string;
1305
- displayName: string;
1306
- }[];
1307
- }[];
1308
- extension: {
1309
- id: string;
1310
- createdAt: Date;
1311
- updatedAt: Date;
1312
- deletedAt: Date | null;
1313
- userId: string | null;
1314
- sipServerUrl: string;
1315
- sipUserName: string;
1316
- webphoneLoginUser: string;
1317
- extensionId: string | null;
1318
- extensionName: string;
1319
- telephonySignature: string | null;
1320
- };
1321
- } | undefined;
1322
- }, {
1323
- id?: string | undefined;
1324
- createdAt?: Date | undefined;
1325
- updatedAt?: Date | undefined;
1326
- deletedAt?: Date | null | undefined;
1327
- name?: string | undefined;
1328
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
1329
- metadata?: {
1330
- name: string;
1331
- id: string;
1332
- accessToken?: string | undefined;
1333
- channelSecret?: string | undefined;
1334
- additionalCredentials?: any;
1335
- senderId?: string | undefined;
1336
- whatsapp?: {
1337
- wabaBusinessId?: string | null | undefined;
1338
- wabaExternalId?: string | null | undefined;
1339
- phoneNumberId?: string | null | undefined;
1340
- email?: string | null | undefined;
1341
- clientId?: string | null | undefined;
1342
- channelId?: string | null | undefined;
1343
- waapiInstanceId?: string | null | undefined;
1344
- qr?: string | null | undefined;
1345
- status?: "active" | "pending" | "waapi-qr" | undefined;
1346
- apiKey?: string | undefined;
1347
- tier?: "basic" | "regular" | "premium" | undefined;
1348
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1349
- } | undefined;
1350
- vonageCredentials?: {
1351
- apiKey: string;
1352
- mobileNumber: string;
1353
- apiSecret: string;
1354
- } | undefined;
1355
- lineRichMenuId?: string | null | undefined;
1356
- messengerIntegrationType?: "own" | "business" | undefined;
1357
- facebookFeedIntegrationType?: "own" | "business" | undefined;
1358
- } | undefined;
1359
- brandName?: string | undefined;
1360
- platformId?: string | undefined;
1361
- status?: boolean | undefined;
1362
- isReloginRequired?: boolean | undefined;
1363
- connectedUserName?: string | undefined;
1364
- connectedUserId?: string | undefined;
1365
- botpressBot?: {
1366
- name: string;
1367
- id: string;
1368
- accessToken: string;
1369
- botId: string;
1370
- integrationId: string;
1371
- } | null | undefined;
1372
- actor?: {
1373
- name: string;
1374
- id: string;
1375
- address: string | null;
1376
- email: string;
1377
- createdAt: Date;
1378
- updatedAt: Date;
1379
- deletedAt: Date | null;
1380
- emailVerifiedAt: Date | null;
1381
- password: string;
1382
- phone: string | null;
1383
- notificationCount: number | null;
1384
- roles: {
1385
- id: string;
1386
- description: string | null;
1387
- createdAt: Date;
1388
- updatedAt: Date;
1389
- deletedAt: Date | null;
1390
- systemName: string;
1391
- displayName: string;
1392
- permissions: {
1393
- id: string;
1394
- description: string | null;
1395
- createdAt: Date;
1396
- updatedAt: Date;
1397
- deletedAt: Date | null;
1398
- systemName: string;
1399
- displayName: string;
1400
- }[];
1401
- }[];
1402
- extension: {
1403
- id: string;
1404
- createdAt: Date;
1405
- updatedAt: Date;
1406
- deletedAt: Date | null;
1407
- userId: string | null;
1408
- sipServerUrl: string;
1409
- sipUserName: string;
1410
- webphoneLoginUser: string;
1411
- extensionId: string | null;
1412
- extensionName: string;
1413
- telephonySignature: string | null;
1414
- };
1415
- } | undefined;
1416
- }>;
1417
- method: "POST";
1418
- responses: {
1419
- 200: z.ZodObject<{
1420
- requestId: z.ZodString;
1421
- channel: z.ZodObject<{
1422
- id: z.ZodString;
1423
- createdAt: z.ZodDate;
1424
- updatedAt: z.ZodDate;
1425
- deletedAt: z.ZodNullable<z.ZodDate>;
1426
- name: z.ZodString;
1427
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
1428
- metadata: z.ZodObject<{
1429
- id: z.ZodString;
1430
- name: z.ZodString;
1431
- accessToken: z.ZodOptional<z.ZodString>;
1432
- channelSecret: z.ZodOptional<z.ZodString>;
1433
- additionalCredentials: z.ZodOptional<z.ZodAny>;
1434
- senderId: z.ZodOptional<z.ZodString>;
1435
- whatsapp: z.ZodOptional<z.ZodObject<{
1436
- wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1437
- wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1438
- phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1439
- email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1440
- clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1441
- channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1442
- waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1443
- qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1444
- status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
1445
- apiKey: z.ZodOptional<z.ZodString>;
1446
- tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
1447
- integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
1448
- }, "strip", z.ZodTypeAny, {
1449
- wabaBusinessId?: string | null | undefined;
1450
- wabaExternalId?: string | null | undefined;
1451
- phoneNumberId?: string | null | undefined;
1452
- email?: string | null | undefined;
1453
- clientId?: string | null | undefined;
1454
- channelId?: string | null | undefined;
1455
- waapiInstanceId?: string | null | undefined;
1456
- qr?: string | null | undefined;
1457
- status?: "active" | "pending" | "waapi-qr" | undefined;
1458
- apiKey?: string | undefined;
1459
- tier?: "basic" | "regular" | "premium" | undefined;
1460
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1461
- }, {
1462
- wabaBusinessId?: string | null | undefined;
1463
- wabaExternalId?: string | null | undefined;
1464
- phoneNumberId?: string | null | undefined;
1465
- email?: string | null | undefined;
1466
- clientId?: string | null | undefined;
1467
- channelId?: string | null | undefined;
1468
- waapiInstanceId?: string | null | undefined;
1469
- qr?: string | null | undefined;
1470
- status?: "active" | "pending" | "waapi-qr" | undefined;
1471
- apiKey?: string | undefined;
1472
- tier?: "basic" | "regular" | "premium" | undefined;
1473
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1474
- }>>;
1475
- vonageCredentials: z.ZodOptional<z.ZodObject<{
1476
- mobileNumber: z.ZodString;
1477
- apiKey: z.ZodString;
1478
- apiSecret: z.ZodString;
1479
- }, "strip", z.ZodTypeAny, {
1480
- apiKey: string;
1481
- mobileNumber: string;
1482
- apiSecret: string;
1483
- }, {
1484
- apiKey: string;
1485
- mobileNumber: string;
1486
- apiSecret: string;
1487
- }>>;
1488
- lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1489
- messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
1490
- facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
1491
- }, "strip", z.ZodTypeAny, {
1492
- name: string;
1493
- id: string;
1494
- accessToken?: string | undefined;
1495
- channelSecret?: string | undefined;
1496
- additionalCredentials?: any;
1497
- senderId?: string | undefined;
1498
- whatsapp?: {
1499
- wabaBusinessId?: string | null | undefined;
1500
- wabaExternalId?: string | null | undefined;
1501
- phoneNumberId?: string | null | undefined;
1502
- email?: string | null | undefined;
1503
- clientId?: string | null | undefined;
1504
- channelId?: string | null | undefined;
1505
- waapiInstanceId?: string | null | undefined;
1506
- qr?: string | null | undefined;
1507
- status?: "active" | "pending" | "waapi-qr" | undefined;
1508
- apiKey?: string | undefined;
1509
- tier?: "basic" | "regular" | "premium" | undefined;
1510
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1511
- } | undefined;
1512
- vonageCredentials?: {
1513
- apiKey: string;
1514
- mobileNumber: string;
1515
- apiSecret: string;
1516
- } | undefined;
1517
- lineRichMenuId?: string | null | undefined;
1518
- messengerIntegrationType?: "own" | "business" | undefined;
1519
- facebookFeedIntegrationType?: "own" | "business" | undefined;
1520
- }, {
1521
- name: string;
1522
- id: string;
1523
- accessToken?: string | undefined;
1524
- channelSecret?: string | undefined;
1525
- additionalCredentials?: any;
1526
- senderId?: string | undefined;
1527
- whatsapp?: {
1528
- wabaBusinessId?: string | null | undefined;
1529
- wabaExternalId?: string | null | undefined;
1530
- phoneNumberId?: string | null | undefined;
1531
- email?: string | null | undefined;
1532
- clientId?: string | null | undefined;
1533
- channelId?: string | null | undefined;
1534
- waapiInstanceId?: string | null | undefined;
1535
- qr?: string | null | undefined;
1536
- status?: "active" | "pending" | "waapi-qr" | undefined;
1537
- apiKey?: string | undefined;
1538
- tier?: "basic" | "regular" | "premium" | undefined;
1539
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1540
- } | undefined;
1541
- vonageCredentials?: {
1542
- apiKey: string;
1543
- mobileNumber: string;
1544
- apiSecret: string;
1545
- } | undefined;
1546
- lineRichMenuId?: string | null | undefined;
1547
- messengerIntegrationType?: "own" | "business" | undefined;
1548
- facebookFeedIntegrationType?: "own" | "business" | undefined;
1549
- }>;
1550
- brandName: z.ZodString;
1551
- platformId: z.ZodString;
1552
- status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
1553
- isReloginRequired: z.ZodBoolean;
1554
- connectedUserName: z.ZodString;
1555
- connectedUserId: z.ZodString;
1556
- botpressBot: z.ZodNullable<z.ZodObject<{
1557
- id: z.ZodString;
1558
- name: z.ZodString;
1559
- botId: z.ZodString;
1560
- integrationId: z.ZodString;
1561
- accessToken: z.ZodString;
1562
- }, "strip", z.ZodTypeAny, {
1563
- name: string;
1564
- id: string;
1565
- accessToken: string;
1566
- botId: string;
1567
- integrationId: string;
1568
- }, {
1569
- name: string;
1570
- id: string;
1571
- accessToken: string;
1572
- botId: string;
1573
- integrationId: string;
1574
- }>>;
1575
- actor: z.ZodObject<{
1576
- id: z.ZodString;
1577
- createdAt: z.ZodDate;
1578
- updatedAt: z.ZodDate;
1579
- deletedAt: z.ZodNullable<z.ZodDate>;
1580
- name: z.ZodString;
1581
- email: z.ZodString;
1582
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1583
- password: z.ZodString;
1584
- address: z.ZodNullable<z.ZodString>;
1585
- phone: z.ZodNullable<z.ZodString>;
1586
- notificationCount: z.ZodNullable<z.ZodNumber>;
1587
- roles: z.ZodArray<z.ZodObject<{
1588
- id: z.ZodString;
1589
- createdAt: z.ZodDate;
1590
- updatedAt: z.ZodDate;
1591
- deletedAt: z.ZodNullable<z.ZodDate>;
1592
- systemName: z.ZodString;
1593
- displayName: z.ZodString;
1594
- description: z.ZodNullable<z.ZodString>;
1595
- permissions: z.ZodArray<z.ZodObject<{
1596
- id: z.ZodString;
1597
- createdAt: z.ZodDate;
1598
- updatedAt: z.ZodDate;
1599
- deletedAt: z.ZodNullable<z.ZodDate>;
1600
- systemName: z.ZodString;
1601
- displayName: z.ZodString;
1602
- description: z.ZodNullable<z.ZodString>;
1603
- }, "strip", z.ZodTypeAny, {
1604
- id: string;
1605
- description: string | null;
1606
- createdAt: Date;
1607
- updatedAt: Date;
1608
- deletedAt: Date | null;
1609
- systemName: string;
1610
- displayName: string;
1611
- }, {
1612
- id: string;
1613
- description: string | null;
1614
- createdAt: Date;
1615
- updatedAt: Date;
1616
- deletedAt: Date | null;
1617
- systemName: string;
1618
- displayName: string;
1619
- }>, "many">;
1620
- }, "strip", z.ZodTypeAny, {
1621
- id: string;
1622
- description: string | null;
1623
- createdAt: Date;
1624
- updatedAt: Date;
1625
- deletedAt: Date | null;
1626
- systemName: string;
1627
- displayName: string;
1628
- permissions: {
1629
- id: string;
1630
- description: string | null;
1631
- createdAt: Date;
1632
- updatedAt: Date;
1633
- deletedAt: Date | null;
1634
- systemName: string;
1635
- displayName: string;
1636
- }[];
1637
- }, {
1638
- id: string;
1639
- description: string | null;
1640
- createdAt: Date;
1641
- updatedAt: Date;
1642
- deletedAt: Date | null;
1643
- systemName: string;
1644
- displayName: string;
1645
- permissions: {
1646
- id: string;
1647
- description: string | null;
1648
- createdAt: Date;
1649
- updatedAt: Date;
1650
- deletedAt: Date | null;
1651
- systemName: string;
1652
- displayName: string;
1653
- }[];
1654
- }>, "many">;
1655
- extension: z.ZodObject<{
1656
- id: z.ZodString;
1657
- createdAt: z.ZodDate;
1658
- updatedAt: z.ZodDate;
1659
- deletedAt: z.ZodNullable<z.ZodDate>;
1660
- userId: z.ZodNullable<z.ZodString>;
1661
- sipServerUrl: z.ZodString;
1662
- sipUserName: z.ZodString;
1663
- webphoneLoginUser: z.ZodString;
1664
- extensionId: z.ZodNullable<z.ZodString>;
1665
- extensionName: z.ZodString;
1666
- telephonySignature: z.ZodNullable<z.ZodString>;
1667
- }, "strip", z.ZodTypeAny, {
1668
- id: string;
1669
- createdAt: Date;
1670
- updatedAt: Date;
1671
- deletedAt: Date | null;
1672
- userId: string | null;
1673
- sipServerUrl: string;
1674
- sipUserName: string;
1675
- webphoneLoginUser: string;
1676
- extensionId: string | null;
1677
- extensionName: string;
1678
- telephonySignature: string | null;
1679
- }, {
1680
- id: string;
1681
- createdAt: Date;
1682
- updatedAt: Date;
1683
- deletedAt: Date | null;
1684
- userId: string | null;
1685
- sipServerUrl: string;
1686
- sipUserName: string;
1687
- webphoneLoginUser: string;
1688
- extensionId: string | null;
1689
- extensionName: string;
1690
- telephonySignature: string | null;
1691
- }>;
1692
- }, "strip", z.ZodTypeAny, {
1693
- name: string;
1694
- id: string;
1695
- address: string | null;
1696
- email: string;
1697
- createdAt: Date;
1698
- updatedAt: Date;
1699
- deletedAt: Date | null;
1700
- emailVerifiedAt: Date | null;
1701
- password: string;
1702
- phone: string | null;
1703
- notificationCount: number | null;
1704
- roles: {
1705
- id: string;
1706
- description: string | null;
1707
- createdAt: Date;
1708
- updatedAt: Date;
1709
- deletedAt: Date | null;
1710
- systemName: string;
1711
- displayName: string;
1712
- permissions: {
1713
- id: string;
1714
- description: string | null;
1715
- createdAt: Date;
1716
- updatedAt: Date;
1717
- deletedAt: Date | null;
1718
- systemName: string;
1719
- displayName: string;
1720
- }[];
1721
- }[];
1722
- extension: {
1723
- id: string;
1724
- createdAt: Date;
1725
- updatedAt: Date;
1726
- deletedAt: Date | null;
1727
- userId: string | null;
1728
- sipServerUrl: string;
1729
- sipUserName: string;
1730
- webphoneLoginUser: string;
1731
- extensionId: string | null;
1732
- extensionName: string;
1733
- telephonySignature: string | null;
1734
- };
1735
- }, {
1736
- name: string;
1737
- id: string;
1738
- address: string | null;
1739
- email: string;
1740
- createdAt: Date;
1741
- updatedAt: Date;
1742
- deletedAt: Date | null;
1743
- emailVerifiedAt: Date | null;
1744
- password: string;
1745
- phone: string | null;
1746
- notificationCount: number | null;
1747
- roles: {
1748
- id: string;
1749
- description: string | null;
1750
- createdAt: Date;
1751
- updatedAt: Date;
1752
- deletedAt: Date | null;
1753
- systemName: string;
1754
- displayName: string;
1755
- permissions: {
1756
- id: string;
1757
- description: string | null;
1758
- createdAt: Date;
1759
- updatedAt: Date;
1760
- deletedAt: Date | null;
1761
- systemName: string;
1762
- displayName: string;
1763
- }[];
1764
- }[];
1765
- extension: {
1766
- id: string;
1767
- createdAt: Date;
1768
- updatedAt: Date;
1769
- deletedAt: Date | null;
1770
- userId: string | null;
1771
- sipServerUrl: string;
1772
- sipUserName: string;
1773
- webphoneLoginUser: string;
1774
- extensionId: string | null;
1775
- extensionName: string;
1776
- telephonySignature: string | null;
1777
- };
1778
- }>;
1779
- }, "strip", z.ZodTypeAny, {
1780
- name: string;
1781
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1782
- id: string;
1783
- metadata: {
1784
- name: string;
1785
- id: string;
1786
- accessToken?: string | undefined;
1787
- channelSecret?: string | undefined;
1788
- additionalCredentials?: any;
1789
- senderId?: string | undefined;
1790
- whatsapp?: {
1791
- wabaBusinessId?: string | null | undefined;
1792
- wabaExternalId?: string | null | undefined;
1793
- phoneNumberId?: string | null | undefined;
1794
- email?: string | null | undefined;
1795
- clientId?: string | null | undefined;
1796
- channelId?: string | null | undefined;
1797
- waapiInstanceId?: string | null | undefined;
1798
- qr?: string | null | undefined;
1799
- status?: "active" | "pending" | "waapi-qr" | undefined;
1800
- apiKey?: string | undefined;
1801
- tier?: "basic" | "regular" | "premium" | undefined;
1802
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1803
- } | undefined;
1804
- vonageCredentials?: {
1805
- apiKey: string;
1806
- mobileNumber: string;
1807
- apiSecret: string;
1808
- } | undefined;
1809
- lineRichMenuId?: string | null | undefined;
1810
- messengerIntegrationType?: "own" | "business" | undefined;
1811
- facebookFeedIntegrationType?: "own" | "business" | undefined;
1812
- };
1813
- status: boolean;
1814
- createdAt: Date;
1815
- updatedAt: Date;
1816
- deletedAt: Date | null;
1817
- actor: {
1818
- name: string;
1819
- id: string;
1820
- address: string | null;
1821
- email: string;
1822
- createdAt: Date;
1823
- updatedAt: Date;
1824
- deletedAt: Date | null;
1825
- emailVerifiedAt: Date | null;
1826
- password: string;
1827
- phone: string | null;
1828
- notificationCount: number | null;
1829
- roles: {
1830
- id: string;
1831
- description: string | null;
1832
- createdAt: Date;
1833
- updatedAt: Date;
1834
- deletedAt: Date | null;
1835
- systemName: string;
1836
- displayName: string;
1837
- permissions: {
1838
- id: string;
1839
- description: string | null;
1840
- createdAt: Date;
1841
- updatedAt: Date;
1842
- deletedAt: Date | null;
1843
- systemName: string;
1844
- displayName: string;
1845
- }[];
1846
- }[];
1847
- extension: {
1848
- id: string;
1849
- createdAt: Date;
1850
- updatedAt: Date;
1851
- deletedAt: Date | null;
1852
- userId: string | null;
1853
- sipServerUrl: string;
1854
- sipUserName: string;
1855
- webphoneLoginUser: string;
1856
- extensionId: string | null;
1857
- extensionName: string;
1858
- telephonySignature: string | null;
1859
- };
1860
- };
1861
- brandName: string;
1862
- platformId: string;
1863
- isReloginRequired: boolean;
1864
- connectedUserName: string;
1865
- connectedUserId: string;
1866
- botpressBot: {
1867
- name: string;
1868
- id: string;
1869
- accessToken: string;
1870
- botId: string;
1871
- integrationId: string;
1872
- } | null;
1873
- }, {
1874
- name: string;
1875
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1876
- id: string;
1877
- metadata: {
1878
- name: string;
1879
- id: string;
1880
- accessToken?: string | undefined;
1881
- channelSecret?: string | undefined;
1882
- additionalCredentials?: any;
1883
- senderId?: string | undefined;
1884
- whatsapp?: {
1885
- wabaBusinessId?: string | null | undefined;
1886
- wabaExternalId?: string | null | undefined;
1887
- phoneNumberId?: string | null | undefined;
1888
- email?: string | null | undefined;
1889
- clientId?: string | null | undefined;
1890
- channelId?: string | null | undefined;
1891
- waapiInstanceId?: string | null | undefined;
1892
- qr?: string | null | undefined;
1893
- status?: "active" | "pending" | "waapi-qr" | undefined;
1894
- apiKey?: string | undefined;
1895
- tier?: "basic" | "regular" | "premium" | undefined;
1896
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1897
- } | undefined;
1898
- vonageCredentials?: {
1899
- apiKey: string;
1900
- mobileNumber: string;
1901
- apiSecret: string;
1902
- } | undefined;
1903
- lineRichMenuId?: string | null | undefined;
1904
- messengerIntegrationType?: "own" | "business" | undefined;
1905
- facebookFeedIntegrationType?: "own" | "business" | undefined;
1906
- };
1907
- status: boolean;
1908
- createdAt: Date;
1909
- updatedAt: Date;
1910
- deletedAt: Date | null;
1911
- actor: {
1912
- name: string;
1913
- id: string;
1914
- address: string | null;
1915
- email: string;
1916
- createdAt: Date;
1917
- updatedAt: Date;
1918
- deletedAt: Date | null;
1919
- emailVerifiedAt: Date | null;
1920
- password: string;
1921
- phone: string | null;
1922
- notificationCount: number | null;
1923
- roles: {
1924
- id: string;
1925
- description: string | null;
1926
- createdAt: Date;
1927
- updatedAt: Date;
1928
- deletedAt: Date | null;
1929
- systemName: string;
1930
- displayName: string;
1931
- permissions: {
1932
- id: string;
1933
- description: string | null;
1934
- createdAt: Date;
1935
- updatedAt: Date;
1936
- deletedAt: Date | null;
1937
- systemName: string;
1938
- displayName: string;
1939
- }[];
1940
- }[];
1941
- extension: {
1942
- id: string;
1943
- createdAt: Date;
1944
- updatedAt: Date;
1945
- deletedAt: Date | null;
1946
- userId: string | null;
1947
- sipServerUrl: string;
1948
- sipUserName: string;
1949
- webphoneLoginUser: string;
1950
- extensionId: string | null;
1951
- extensionName: string;
1952
- telephonySignature: string | null;
1953
- };
1954
- };
1955
- brandName: string;
1956
- platformId: string;
1957
- isReloginRequired: boolean;
1958
- connectedUserName: string;
1959
- connectedUserId: string;
1960
- botpressBot: {
1961
- name: string;
1962
- id: string;
1963
- accessToken: string;
1964
- botId: string;
1965
- integrationId: string;
1966
- } | null;
1967
- }>;
1968
- }, "strip", z.ZodTypeAny, {
1969
- channel: {
1970
- name: string;
1971
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1972
- id: string;
1973
- metadata: {
1974
- name: string;
1975
- id: string;
1976
- accessToken?: string | undefined;
1977
- channelSecret?: string | undefined;
1978
- additionalCredentials?: any;
1979
- senderId?: string | undefined;
1980
- whatsapp?: {
1981
- wabaBusinessId?: string | null | undefined;
1982
- wabaExternalId?: string | null | undefined;
1983
- phoneNumberId?: string | null | undefined;
1984
- email?: string | null | undefined;
1985
- clientId?: string | null | undefined;
1986
- channelId?: string | null | undefined;
1987
- waapiInstanceId?: string | null | undefined;
1988
- qr?: string | null | undefined;
1989
- status?: "active" | "pending" | "waapi-qr" | undefined;
1990
- apiKey?: string | undefined;
1991
- tier?: "basic" | "regular" | "premium" | undefined;
1992
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1993
- } | undefined;
1994
- vonageCredentials?: {
1995
- apiKey: string;
1996
- mobileNumber: string;
1997
- apiSecret: string;
1998
- } | undefined;
1999
- lineRichMenuId?: string | null | undefined;
2000
- messengerIntegrationType?: "own" | "business" | undefined;
2001
- facebookFeedIntegrationType?: "own" | "business" | undefined;
2002
- };
2003
- status: boolean;
2004
- createdAt: Date;
2005
- updatedAt: Date;
2006
- deletedAt: Date | null;
2007
- actor: {
2008
- name: string;
2009
- id: string;
2010
- address: string | null;
2011
- email: string;
2012
- createdAt: Date;
2013
- updatedAt: Date;
2014
- deletedAt: Date | null;
2015
- emailVerifiedAt: Date | null;
2016
- password: string;
2017
- phone: string | null;
2018
- notificationCount: number | null;
2019
- roles: {
2020
- id: string;
2021
- description: string | null;
2022
- createdAt: Date;
2023
- updatedAt: Date;
2024
- deletedAt: Date | null;
2025
- systemName: string;
2026
- displayName: string;
2027
- permissions: {
2028
- id: string;
2029
- description: string | null;
2030
- createdAt: Date;
2031
- updatedAt: Date;
2032
- deletedAt: Date | null;
2033
- systemName: string;
2034
- displayName: string;
2035
- }[];
2036
- }[];
2037
- extension: {
2038
- id: string;
2039
- createdAt: Date;
2040
- updatedAt: Date;
2041
- deletedAt: Date | null;
2042
- userId: string | null;
2043
- sipServerUrl: string;
2044
- sipUserName: string;
2045
- webphoneLoginUser: string;
2046
- extensionId: string | null;
2047
- extensionName: string;
2048
- telephonySignature: string | null;
2049
- };
2050
- };
2051
- brandName: string;
2052
- platformId: string;
2053
- isReloginRequired: boolean;
2054
- connectedUserName: string;
2055
- connectedUserId: string;
2056
- botpressBot: {
2057
- name: string;
2058
- id: string;
2059
- accessToken: string;
2060
- botId: string;
2061
- integrationId: string;
2062
- } | null;
2063
- };
2064
- requestId: string;
2065
- }, {
2066
- channel: {
2067
- name: string;
2068
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2069
- id: string;
2070
- metadata: {
2071
- name: string;
2072
- id: string;
2073
- accessToken?: string | undefined;
2074
- channelSecret?: string | undefined;
2075
- additionalCredentials?: any;
2076
- senderId?: string | undefined;
2077
- whatsapp?: {
2078
- wabaBusinessId?: string | null | undefined;
2079
- wabaExternalId?: string | null | undefined;
2080
- phoneNumberId?: string | null | undefined;
2081
- email?: string | null | undefined;
2082
- clientId?: string | null | undefined;
2083
- channelId?: string | null | undefined;
2084
- waapiInstanceId?: string | null | undefined;
2085
- qr?: string | null | undefined;
2086
- status?: "active" | "pending" | "waapi-qr" | undefined;
2087
- apiKey?: string | undefined;
2088
- tier?: "basic" | "regular" | "premium" | undefined;
2089
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2090
- } | undefined;
2091
- vonageCredentials?: {
2092
- apiKey: string;
2093
- mobileNumber: string;
2094
- apiSecret: string;
2095
- } | undefined;
2096
- lineRichMenuId?: string | null | undefined;
2097
- messengerIntegrationType?: "own" | "business" | undefined;
2098
- facebookFeedIntegrationType?: "own" | "business" | undefined;
2099
- };
2100
- status: boolean;
2101
- createdAt: Date;
2102
- updatedAt: Date;
2103
- deletedAt: Date | null;
2104
- actor: {
2105
- name: string;
2106
- id: string;
2107
- address: string | null;
2108
- email: string;
2109
- createdAt: Date;
2110
- updatedAt: Date;
2111
- deletedAt: Date | null;
2112
- emailVerifiedAt: Date | null;
2113
- password: string;
2114
- phone: string | null;
2115
- notificationCount: number | null;
2116
- roles: {
2117
- id: string;
2118
- description: string | null;
2119
- createdAt: Date;
2120
- updatedAt: Date;
2121
- deletedAt: Date | null;
2122
- systemName: string;
2123
- displayName: string;
2124
- permissions: {
2125
- id: string;
2126
- description: string | null;
2127
- createdAt: Date;
2128
- updatedAt: Date;
2129
- deletedAt: Date | null;
2130
- systemName: string;
2131
- displayName: string;
2132
- }[];
2133
- }[];
2134
- extension: {
2135
- id: string;
2136
- createdAt: Date;
2137
- updatedAt: Date;
2138
- deletedAt: Date | null;
2139
- userId: string | null;
2140
- sipServerUrl: string;
2141
- sipUserName: string;
2142
- webphoneLoginUser: string;
2143
- extensionId: string | null;
2144
- extensionName: string;
2145
- telephonySignature: string | null;
2146
- };
2147
- };
2148
- brandName: string;
2149
- platformId: string;
2150
- isReloginRequired: boolean;
2151
- connectedUserName: string;
2152
- connectedUserId: string;
2153
- botpressBot: {
2154
- name: string;
2155
- id: string;
2156
- accessToken: string;
2157
- botId: string;
2158
- integrationId: string;
2159
- } | null;
2160
- };
2161
- requestId: string;
2162
- }>;
2163
- 400: z.ZodObject<{
2164
- message: z.ZodString;
2165
- error: z.ZodAny;
2166
- }, "strip", z.ZodTypeAny, {
2167
- message: string;
2168
- error?: any;
2169
- }, {
2170
- message: string;
2171
- error?: any;
2172
- }>;
2173
- 500: z.ZodObject<{
2174
- message: z.ZodString;
2175
- error: z.ZodAny;
2176
- }, "strip", z.ZodTypeAny, {
2177
- message: string;
2178
- error?: any;
2179
- }, {
2180
- message: string;
2181
- error?: any;
2182
- }>;
2183
- };
2184
- path: "/disconnect";
2185
- };
2186
- reconnectSMSChannel: {
2187
- body: null;
2188
- method: "POST";
2189
- pathParams: z.ZodObject<{
2190
- channelId: z.ZodString;
2191
- }, "strip", z.ZodTypeAny, {
2192
- channelId: string;
2193
- }, {
2194
- channelId: string;
2195
- }>;
2196
- responses: {
2197
- 200: z.ZodObject<{
2198
- requestId: z.ZodString;
2199
- channel: z.ZodObject<{
2200
- id: z.ZodString;
2201
- createdAt: z.ZodDate;
2202
- updatedAt: z.ZodDate;
2203
- deletedAt: z.ZodNullable<z.ZodDate>;
2204
- name: z.ZodString;
2205
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
2206
- metadata: z.ZodObject<{
2207
- id: z.ZodString;
2208
- name: z.ZodString;
2209
- accessToken: z.ZodOptional<z.ZodString>;
2210
- channelSecret: z.ZodOptional<z.ZodString>;
2211
- additionalCredentials: z.ZodOptional<z.ZodAny>;
2212
- senderId: z.ZodOptional<z.ZodString>;
2213
- whatsapp: z.ZodOptional<z.ZodObject<{
2214
- wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2215
- wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2216
- phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2217
- email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2218
- clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2219
- channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2220
- waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2221
- qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2222
- status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
2223
- apiKey: z.ZodOptional<z.ZodString>;
2224
- tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
2225
- integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
2226
- }, "strip", z.ZodTypeAny, {
2227
- wabaBusinessId?: string | null | undefined;
2228
- wabaExternalId?: string | null | undefined;
2229
- phoneNumberId?: string | null | undefined;
2230
- email?: string | null | undefined;
2231
- clientId?: string | null | undefined;
2232
- channelId?: string | null | undefined;
2233
- waapiInstanceId?: string | null | undefined;
2234
- qr?: string | null | undefined;
2235
- status?: "active" | "pending" | "waapi-qr" | undefined;
2236
- apiKey?: string | undefined;
2237
- tier?: "basic" | "regular" | "premium" | undefined;
2238
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2239
- }, {
2240
- wabaBusinessId?: string | null | undefined;
2241
- wabaExternalId?: string | null | undefined;
2242
- phoneNumberId?: string | null | undefined;
2243
- email?: string | null | undefined;
2244
- clientId?: string | null | undefined;
2245
- channelId?: string | null | undefined;
2246
- waapiInstanceId?: string | null | undefined;
2247
- qr?: string | null | undefined;
2248
- status?: "active" | "pending" | "waapi-qr" | undefined;
2249
- apiKey?: string | undefined;
2250
- tier?: "basic" | "regular" | "premium" | undefined;
2251
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2252
- }>>;
2253
- vonageCredentials: z.ZodOptional<z.ZodObject<{
2254
- mobileNumber: z.ZodString;
2255
- apiKey: z.ZodString;
2256
- apiSecret: z.ZodString;
2257
- }, "strip", z.ZodTypeAny, {
2258
- apiKey: string;
2259
- mobileNumber: string;
2260
- apiSecret: string;
2261
- }, {
2262
- apiKey: string;
2263
- mobileNumber: string;
2264
- apiSecret: string;
2265
- }>>;
2266
- lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2267
- messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
2268
- facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
2269
- }, "strip", z.ZodTypeAny, {
2270
- name: string;
2271
- id: string;
2272
- accessToken?: string | undefined;
2273
- channelSecret?: string | undefined;
2274
- additionalCredentials?: any;
2275
- senderId?: string | undefined;
2276
- whatsapp?: {
2277
- wabaBusinessId?: string | null | undefined;
2278
- wabaExternalId?: string | null | undefined;
2279
- phoneNumberId?: string | null | undefined;
2280
- email?: string | null | undefined;
2281
- clientId?: string | null | undefined;
2282
- channelId?: string | null | undefined;
2283
- waapiInstanceId?: string | null | undefined;
2284
- qr?: string | null | undefined;
2285
- status?: "active" | "pending" | "waapi-qr" | undefined;
2286
- apiKey?: string | undefined;
2287
- tier?: "basic" | "regular" | "premium" | undefined;
2288
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2289
- } | undefined;
2290
- vonageCredentials?: {
2291
- apiKey: string;
2292
- mobileNumber: string;
2293
- apiSecret: string;
2294
- } | undefined;
2295
- lineRichMenuId?: string | null | undefined;
2296
- messengerIntegrationType?: "own" | "business" | undefined;
2297
- facebookFeedIntegrationType?: "own" | "business" | undefined;
2298
- }, {
2299
- name: string;
2300
- id: string;
2301
- accessToken?: string | undefined;
2302
- channelSecret?: string | undefined;
2303
- additionalCredentials?: any;
2304
- senderId?: string | undefined;
2305
- whatsapp?: {
2306
- wabaBusinessId?: string | null | undefined;
2307
- wabaExternalId?: string | null | undefined;
2308
- phoneNumberId?: string | null | undefined;
2309
- email?: string | null | undefined;
2310
- clientId?: string | null | undefined;
2311
- channelId?: string | null | undefined;
2312
- waapiInstanceId?: string | null | undefined;
2313
- qr?: string | null | undefined;
2314
- status?: "active" | "pending" | "waapi-qr" | undefined;
2315
- apiKey?: string | undefined;
2316
- tier?: "basic" | "regular" | "premium" | undefined;
2317
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2318
- } | undefined;
2319
- vonageCredentials?: {
2320
- apiKey: string;
2321
- mobileNumber: string;
2322
- apiSecret: string;
2323
- } | undefined;
2324
- lineRichMenuId?: string | null | undefined;
2325
- messengerIntegrationType?: "own" | "business" | undefined;
2326
- facebookFeedIntegrationType?: "own" | "business" | undefined;
2327
- }>;
2328
- brandName: z.ZodString;
2329
- platformId: z.ZodString;
2330
- status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
2331
- isReloginRequired: z.ZodBoolean;
2332
- connectedUserName: z.ZodString;
2333
- connectedUserId: z.ZodString;
2334
- botpressBot: z.ZodNullable<z.ZodObject<{
2335
- id: z.ZodString;
2336
- name: z.ZodString;
2337
- botId: z.ZodString;
2338
- integrationId: z.ZodString;
2339
- accessToken: z.ZodString;
2340
- }, "strip", z.ZodTypeAny, {
2341
- name: string;
2342
- id: string;
2343
- accessToken: string;
2344
- botId: string;
2345
- integrationId: string;
2346
- }, {
2347
- name: string;
2348
- id: string;
2349
- accessToken: string;
2350
- botId: string;
2351
- integrationId: string;
2352
- }>>;
2353
- actor: z.ZodObject<{
2354
- id: z.ZodString;
2355
- createdAt: z.ZodDate;
2356
- updatedAt: z.ZodDate;
2357
- deletedAt: z.ZodNullable<z.ZodDate>;
2358
- name: z.ZodString;
2359
- email: z.ZodString;
2360
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2361
- password: z.ZodString;
2362
- address: z.ZodNullable<z.ZodString>;
2363
- phone: z.ZodNullable<z.ZodString>;
2364
- notificationCount: z.ZodNullable<z.ZodNumber>;
2365
- roles: z.ZodArray<z.ZodObject<{
2366
- id: z.ZodString;
2367
- createdAt: z.ZodDate;
2368
- updatedAt: z.ZodDate;
2369
- deletedAt: z.ZodNullable<z.ZodDate>;
2370
- systemName: z.ZodString;
2371
- displayName: z.ZodString;
2372
- description: z.ZodNullable<z.ZodString>;
2373
- permissions: z.ZodArray<z.ZodObject<{
2374
- id: z.ZodString;
2375
- createdAt: z.ZodDate;
2376
- updatedAt: z.ZodDate;
2377
- deletedAt: z.ZodNullable<z.ZodDate>;
2378
- systemName: z.ZodString;
2379
- displayName: z.ZodString;
2380
- description: z.ZodNullable<z.ZodString>;
2381
- }, "strip", z.ZodTypeAny, {
2382
- id: string;
2383
- description: string | null;
2384
- createdAt: Date;
2385
- updatedAt: Date;
2386
- deletedAt: Date | null;
2387
- systemName: string;
2388
- displayName: string;
2389
- }, {
2390
- id: string;
2391
- description: string | null;
2392
- createdAt: Date;
2393
- updatedAt: Date;
2394
- deletedAt: Date | null;
2395
- systemName: string;
2396
- displayName: string;
2397
- }>, "many">;
2398
- }, "strip", z.ZodTypeAny, {
2399
- id: string;
2400
- description: string | null;
2401
- createdAt: Date;
2402
- updatedAt: Date;
2403
- deletedAt: Date | null;
2404
- systemName: string;
2405
- displayName: string;
2406
- permissions: {
2407
- id: string;
2408
- description: string | null;
2409
- createdAt: Date;
2410
- updatedAt: Date;
2411
- deletedAt: Date | null;
2412
- systemName: string;
2413
- displayName: string;
2414
- }[];
2415
- }, {
2416
- id: string;
2417
- description: string | null;
2418
- createdAt: Date;
2419
- updatedAt: Date;
2420
- deletedAt: Date | null;
2421
- systemName: string;
2422
- displayName: string;
2423
- permissions: {
2424
- id: string;
2425
- description: string | null;
2426
- createdAt: Date;
2427
- updatedAt: Date;
2428
- deletedAt: Date | null;
2429
- systemName: string;
2430
- displayName: string;
2431
- }[];
2432
- }>, "many">;
2433
- extension: z.ZodObject<{
2434
- id: z.ZodString;
2435
- createdAt: z.ZodDate;
2436
- updatedAt: z.ZodDate;
2437
- deletedAt: z.ZodNullable<z.ZodDate>;
2438
- userId: z.ZodNullable<z.ZodString>;
2439
- sipServerUrl: z.ZodString;
2440
- sipUserName: z.ZodString;
2441
- webphoneLoginUser: z.ZodString;
2442
- extensionId: z.ZodNullable<z.ZodString>;
2443
- extensionName: z.ZodString;
2444
- telephonySignature: z.ZodNullable<z.ZodString>;
2445
- }, "strip", z.ZodTypeAny, {
2446
- id: string;
2447
- createdAt: Date;
2448
- updatedAt: Date;
2449
- deletedAt: Date | null;
2450
- userId: string | null;
2451
- sipServerUrl: string;
2452
- sipUserName: string;
2453
- webphoneLoginUser: string;
2454
- extensionId: string | null;
2455
- extensionName: string;
2456
- telephonySignature: string | null;
2457
- }, {
2458
- id: string;
2459
- createdAt: Date;
2460
- updatedAt: Date;
2461
- deletedAt: Date | null;
2462
- userId: string | null;
2463
- sipServerUrl: string;
2464
- sipUserName: string;
2465
- webphoneLoginUser: string;
2466
- extensionId: string | null;
2467
- extensionName: string;
2468
- telephonySignature: string | null;
2469
- }>;
2470
- }, "strip", z.ZodTypeAny, {
2471
- name: string;
2472
- id: string;
2473
- address: string | null;
2474
- email: string;
2475
- createdAt: Date;
2476
- updatedAt: Date;
2477
- deletedAt: Date | null;
2478
- emailVerifiedAt: Date | null;
2479
- password: string;
2480
- phone: string | null;
2481
- notificationCount: number | null;
2482
- roles: {
2483
- id: string;
2484
- description: string | null;
2485
- createdAt: Date;
2486
- updatedAt: Date;
2487
- deletedAt: Date | null;
2488
- systemName: string;
2489
- displayName: string;
2490
- permissions: {
2491
- id: string;
2492
- description: string | null;
2493
- createdAt: Date;
2494
- updatedAt: Date;
2495
- deletedAt: Date | null;
2496
- systemName: string;
2497
- displayName: string;
2498
- }[];
2499
- }[];
2500
- extension: {
2501
- id: string;
2502
- createdAt: Date;
2503
- updatedAt: Date;
2504
- deletedAt: Date | null;
2505
- userId: string | null;
2506
- sipServerUrl: string;
2507
- sipUserName: string;
2508
- webphoneLoginUser: string;
2509
- extensionId: string | null;
2510
- extensionName: string;
2511
- telephonySignature: string | null;
2512
- };
2513
- }, {
2514
- name: string;
2515
- id: string;
2516
- address: string | null;
2517
- email: string;
2518
- createdAt: Date;
2519
- updatedAt: Date;
2520
- deletedAt: Date | null;
2521
- emailVerifiedAt: Date | null;
2522
- password: string;
2523
- phone: string | null;
2524
- notificationCount: number | null;
2525
- roles: {
2526
- id: string;
2527
- description: string | null;
2528
- createdAt: Date;
2529
- updatedAt: Date;
2530
- deletedAt: Date | null;
2531
- systemName: string;
2532
- displayName: string;
2533
- permissions: {
2534
- id: string;
2535
- description: string | null;
2536
- createdAt: Date;
2537
- updatedAt: Date;
2538
- deletedAt: Date | null;
2539
- systemName: string;
2540
- displayName: string;
2541
- }[];
2542
- }[];
2543
- extension: {
2544
- id: string;
2545
- createdAt: Date;
2546
- updatedAt: Date;
2547
- deletedAt: Date | null;
2548
- userId: string | null;
2549
- sipServerUrl: string;
2550
- sipUserName: string;
2551
- webphoneLoginUser: string;
2552
- extensionId: string | null;
2553
- extensionName: string;
2554
- telephonySignature: string | null;
2555
- };
2556
- }>;
2557
- }, "strip", z.ZodTypeAny, {
2558
- name: string;
2559
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2560
- id: string;
2561
- metadata: {
2562
- name: string;
2563
- id: string;
2564
- accessToken?: string | undefined;
2565
- channelSecret?: string | undefined;
2566
- additionalCredentials?: any;
2567
- senderId?: string | undefined;
2568
- whatsapp?: {
2569
- wabaBusinessId?: string | null | undefined;
2570
- wabaExternalId?: string | null | undefined;
2571
- phoneNumberId?: string | null | undefined;
2572
- email?: string | null | undefined;
2573
- clientId?: string | null | undefined;
2574
- channelId?: string | null | undefined;
2575
- waapiInstanceId?: string | null | undefined;
2576
- qr?: string | null | undefined;
2577
- status?: "active" | "pending" | "waapi-qr" | undefined;
2578
- apiKey?: string | undefined;
2579
- tier?: "basic" | "regular" | "premium" | undefined;
2580
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2581
- } | undefined;
2582
- vonageCredentials?: {
2583
- apiKey: string;
2584
- mobileNumber: string;
2585
- apiSecret: string;
2586
- } | undefined;
2587
- lineRichMenuId?: string | null | undefined;
2588
- messengerIntegrationType?: "own" | "business" | undefined;
2589
- facebookFeedIntegrationType?: "own" | "business" | undefined;
2590
- };
2591
- status: boolean;
2592
- createdAt: Date;
2593
- updatedAt: Date;
2594
- deletedAt: Date | null;
2595
- actor: {
2596
- name: string;
2597
- id: string;
2598
- address: string | null;
2599
- email: string;
2600
- createdAt: Date;
2601
- updatedAt: Date;
2602
- deletedAt: Date | null;
2603
- emailVerifiedAt: Date | null;
2604
- password: string;
2605
- phone: string | null;
2606
- notificationCount: number | null;
2607
- roles: {
2608
- id: string;
2609
- description: string | null;
2610
- createdAt: Date;
2611
- updatedAt: Date;
2612
- deletedAt: Date | null;
2613
- systemName: string;
2614
- displayName: string;
2615
- permissions: {
2616
- id: string;
2617
- description: string | null;
2618
- createdAt: Date;
2619
- updatedAt: Date;
2620
- deletedAt: Date | null;
2621
- systemName: string;
2622
- displayName: string;
2623
- }[];
2624
- }[];
2625
- extension: {
2626
- id: string;
2627
- createdAt: Date;
2628
- updatedAt: Date;
2629
- deletedAt: Date | null;
2630
- userId: string | null;
2631
- sipServerUrl: string;
2632
- sipUserName: string;
2633
- webphoneLoginUser: string;
2634
- extensionId: string | null;
2635
- extensionName: string;
2636
- telephonySignature: string | null;
2637
- };
2638
- };
2639
- brandName: string;
2640
- platformId: string;
2641
- isReloginRequired: boolean;
2642
- connectedUserName: string;
2643
- connectedUserId: string;
2644
- botpressBot: {
2645
- name: string;
2646
- id: string;
2647
- accessToken: string;
2648
- botId: string;
2649
- integrationId: string;
2650
- } | null;
2651
- }, {
2652
- name: string;
2653
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2654
- id: string;
2655
- metadata: {
2656
- name: string;
2657
- id: string;
2658
- accessToken?: string | undefined;
2659
- channelSecret?: string | undefined;
2660
- additionalCredentials?: any;
2661
- senderId?: string | undefined;
2662
- whatsapp?: {
2663
- wabaBusinessId?: string | null | undefined;
2664
- wabaExternalId?: string | null | undefined;
2665
- phoneNumberId?: string | null | undefined;
2666
- email?: string | null | undefined;
2667
- clientId?: string | null | undefined;
2668
- channelId?: string | null | undefined;
2669
- waapiInstanceId?: string | null | undefined;
2670
- qr?: string | null | undefined;
2671
- status?: "active" | "pending" | "waapi-qr" | undefined;
2672
- apiKey?: string | undefined;
2673
- tier?: "basic" | "regular" | "premium" | undefined;
2674
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2675
- } | undefined;
2676
- vonageCredentials?: {
2677
- apiKey: string;
2678
- mobileNumber: string;
2679
- apiSecret: string;
2680
- } | undefined;
2681
- lineRichMenuId?: string | null | undefined;
2682
- messengerIntegrationType?: "own" | "business" | undefined;
2683
- facebookFeedIntegrationType?: "own" | "business" | undefined;
2684
- };
2685
- status: boolean;
2686
- createdAt: Date;
2687
- updatedAt: Date;
2688
- deletedAt: Date | null;
2689
- actor: {
2690
- name: string;
2691
- id: string;
2692
- address: string | null;
2693
- email: string;
2694
- createdAt: Date;
2695
- updatedAt: Date;
2696
- deletedAt: Date | null;
2697
- emailVerifiedAt: Date | null;
2698
- password: string;
2699
- phone: string | null;
2700
- notificationCount: number | null;
2701
- roles: {
2702
- id: string;
2703
- description: string | null;
2704
- createdAt: Date;
2705
- updatedAt: Date;
2706
- deletedAt: Date | null;
2707
- systemName: string;
2708
- displayName: string;
2709
- permissions: {
2710
- id: string;
2711
- description: string | null;
2712
- createdAt: Date;
2713
- updatedAt: Date;
2714
- deletedAt: Date | null;
2715
- systemName: string;
2716
- displayName: string;
2717
- }[];
2718
- }[];
2719
- extension: {
2720
- id: string;
2721
- createdAt: Date;
2722
- updatedAt: Date;
2723
- deletedAt: Date | null;
2724
- userId: string | null;
2725
- sipServerUrl: string;
2726
- sipUserName: string;
2727
- webphoneLoginUser: string;
2728
- extensionId: string | null;
2729
- extensionName: string;
2730
- telephonySignature: string | null;
2731
- };
2732
- };
2733
- brandName: string;
2734
- platformId: string;
2735
- isReloginRequired: boolean;
2736
- connectedUserName: string;
2737
- connectedUserId: string;
2738
- botpressBot: {
2739
- name: string;
2740
- id: string;
2741
- accessToken: string;
2742
- botId: string;
2743
- integrationId: string;
2744
- } | null;
2745
- }>;
2746
- }, "strip", z.ZodTypeAny, {
2747
- channel: {
2748
- name: string;
2749
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2750
- id: string;
2751
- metadata: {
2752
- name: string;
2753
- id: string;
2754
- accessToken?: string | undefined;
2755
- channelSecret?: string | undefined;
2756
- additionalCredentials?: any;
2757
- senderId?: string | undefined;
2758
- whatsapp?: {
2759
- wabaBusinessId?: string | null | undefined;
2760
- wabaExternalId?: string | null | undefined;
2761
- phoneNumberId?: string | null | undefined;
2762
- email?: string | null | undefined;
2763
- clientId?: string | null | undefined;
2764
- channelId?: string | null | undefined;
2765
- waapiInstanceId?: string | null | undefined;
2766
- qr?: string | null | undefined;
2767
- status?: "active" | "pending" | "waapi-qr" | undefined;
2768
- apiKey?: string | undefined;
2769
- tier?: "basic" | "regular" | "premium" | undefined;
2770
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2771
- } | undefined;
2772
- vonageCredentials?: {
2773
- apiKey: string;
2774
- mobileNumber: string;
2775
- apiSecret: string;
2776
- } | undefined;
2777
- lineRichMenuId?: string | null | undefined;
2778
- messengerIntegrationType?: "own" | "business" | undefined;
2779
- facebookFeedIntegrationType?: "own" | "business" | undefined;
2780
- };
2781
- status: boolean;
2782
- createdAt: Date;
2783
- updatedAt: Date;
2784
- deletedAt: Date | null;
2785
- actor: {
2786
- name: string;
2787
- id: string;
2788
- address: string | null;
2789
- email: string;
2790
- createdAt: Date;
2791
- updatedAt: Date;
2792
- deletedAt: Date | null;
2793
- emailVerifiedAt: Date | null;
2794
- password: string;
2795
- phone: string | null;
2796
- notificationCount: number | null;
2797
- roles: {
2798
- id: string;
2799
- description: string | null;
2800
- createdAt: Date;
2801
- updatedAt: Date;
2802
- deletedAt: Date | null;
2803
- systemName: string;
2804
- displayName: string;
2805
- permissions: {
2806
- id: string;
2807
- description: string | null;
2808
- createdAt: Date;
2809
- updatedAt: Date;
2810
- deletedAt: Date | null;
2811
- systemName: string;
2812
- displayName: string;
2813
- }[];
2814
- }[];
2815
- extension: {
2816
- id: string;
2817
- createdAt: Date;
2818
- updatedAt: Date;
2819
- deletedAt: Date | null;
2820
- userId: string | null;
2821
- sipServerUrl: string;
2822
- sipUserName: string;
2823
- webphoneLoginUser: string;
2824
- extensionId: string | null;
2825
- extensionName: string;
2826
- telephonySignature: string | null;
2827
- };
2828
- };
2829
- brandName: string;
2830
- platformId: string;
2831
- isReloginRequired: boolean;
2832
- connectedUserName: string;
2833
- connectedUserId: string;
2834
- botpressBot: {
2835
- name: string;
2836
- id: string;
2837
- accessToken: string;
2838
- botId: string;
2839
- integrationId: string;
2840
- } | null;
2841
- };
2842
- requestId: string;
2843
- }, {
2844
- channel: {
2845
- name: string;
2846
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2847
- id: string;
2848
- metadata: {
2849
- name: string;
2850
- id: string;
2851
- accessToken?: string | undefined;
2852
- channelSecret?: string | undefined;
2853
- additionalCredentials?: any;
2854
- senderId?: string | undefined;
2855
- whatsapp?: {
2856
- wabaBusinessId?: string | null | undefined;
2857
- wabaExternalId?: string | null | undefined;
2858
- phoneNumberId?: string | null | undefined;
2859
- email?: string | null | undefined;
2860
- clientId?: string | null | undefined;
2861
- channelId?: string | null | undefined;
2862
- waapiInstanceId?: string | null | undefined;
2863
- qr?: string | null | undefined;
2864
- status?: "active" | "pending" | "waapi-qr" | undefined;
2865
- apiKey?: string | undefined;
2866
- tier?: "basic" | "regular" | "premium" | undefined;
2867
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2868
- } | undefined;
2869
- vonageCredentials?: {
2870
- apiKey: string;
2871
- mobileNumber: string;
2872
- apiSecret: string;
2873
- } | undefined;
2874
- lineRichMenuId?: string | null | undefined;
2875
- messengerIntegrationType?: "own" | "business" | undefined;
2876
- facebookFeedIntegrationType?: "own" | "business" | undefined;
2877
- };
2878
- status: boolean;
2879
- createdAt: Date;
2880
- updatedAt: Date;
2881
- deletedAt: Date | null;
2882
- actor: {
2883
- name: string;
2884
- id: string;
2885
- address: string | null;
2886
- email: string;
2887
- createdAt: Date;
2888
- updatedAt: Date;
2889
- deletedAt: Date | null;
2890
- emailVerifiedAt: Date | null;
2891
- password: string;
2892
- phone: string | null;
2893
- notificationCount: number | null;
2894
- roles: {
2895
- id: string;
2896
- description: string | null;
2897
- createdAt: Date;
2898
- updatedAt: Date;
2899
- deletedAt: Date | null;
2900
- systemName: string;
2901
- displayName: string;
2902
- permissions: {
2903
- id: string;
2904
- description: string | null;
2905
- createdAt: Date;
2906
- updatedAt: Date;
2907
- deletedAt: Date | null;
2908
- systemName: string;
2909
- displayName: string;
2910
- }[];
2911
- }[];
2912
- extension: {
2913
- id: string;
2914
- createdAt: Date;
2915
- updatedAt: Date;
2916
- deletedAt: Date | null;
2917
- userId: string | null;
2918
- sipServerUrl: string;
2919
- sipUserName: string;
2920
- webphoneLoginUser: string;
2921
- extensionId: string | null;
2922
- extensionName: string;
2923
- telephonySignature: string | null;
2924
- };
2925
- };
2926
- brandName: string;
2927
- platformId: string;
2928
- isReloginRequired: boolean;
2929
- connectedUserName: string;
2930
- connectedUserId: string;
2931
- botpressBot: {
2932
- name: string;
2933
- id: string;
2934
- accessToken: string;
2935
- botId: string;
2936
- integrationId: string;
2937
- } | null;
2938
- };
2939
- requestId: string;
2940
- }>;
2941
- 400: z.ZodObject<{
2942
- message: z.ZodString;
2943
- error: z.ZodAny;
2944
- }, "strip", z.ZodTypeAny, {
2945
- message: string;
2946
- error?: any;
2947
- }, {
2948
- message: string;
2949
- error?: any;
2950
- }>;
2951
- 500: z.ZodObject<{
2952
- message: z.ZodString;
2953
- error: z.ZodAny;
24
+ phone: string | null;
25
+ }>;
26
+ channel: z.ZodObject<{
27
+ name: z.ZodString;
28
+ type: z.ZodEnum<[import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS]>;
29
+ senderId: z.ZodString;
30
+ vonageCredentials: z.ZodObject<{
31
+ mobileNumber: z.ZodString;
32
+ apiKey: z.ZodString;
33
+ apiSecret: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ apiKey: string;
36
+ mobileNumber: string;
37
+ apiSecret: string;
38
+ }, {
39
+ apiKey: string;
40
+ mobileNumber: string;
41
+ apiSecret: string;
42
+ }>;
2954
43
  }, "strip", z.ZodTypeAny, {
2955
- message: string;
2956
- error?: any;
44
+ type: import("../../../entities/src/enums/chat").EChannelType.VONAGE_SMS;
45
+ name: string;
46
+ senderId: string;
47
+ vonageCredentials: {
48
+ apiKey: string;
49
+ mobileNumber: string;
50
+ apiSecret: string;
51
+ };
2957
52
  }, {
2958
- message: string;
2959
- error?: any;
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
+ };
2960
61
  }>;
2961
- };
2962
- path: "/reconnect/:channelId";
2963
- };
2964
- deleteSMSChannel: {
2965
- body: null;
2966
- method: "DELETE";
2967
- pathParams: z.ZodObject<{
2968
- channelId: z.ZodString;
2969
62
  }, "strip", z.ZodTypeAny, {
2970
- channelId: string;
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
+ };
2971
80
  }, {
2972
- channelId: string;
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
+ };
2973
98
  }>;
99
+ method: "POST";
2974
100
  responses: {
2975
101
  200: z.ZodObject<{
2976
102
  requestId: z.ZodString;
@@ -2989,44 +115,35 @@ export declare const smsContract: {
2989
115
  additionalCredentials: z.ZodOptional<z.ZodAny>;
2990
116
  senderId: z.ZodOptional<z.ZodString>;
2991
117
  whatsapp: z.ZodOptional<z.ZodObject<{
2992
- wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2993
- wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2994
- phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2995
- email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2996
- clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2997
- channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2998
- waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2999
- qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3000
- status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
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"]>>;
3001
125
  apiKey: z.ZodOptional<z.ZodString>;
3002
126
  tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
3003
- integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
3004
127
  }, "strip", z.ZodTypeAny, {
3005
- wabaBusinessId?: string | null | undefined;
3006
- wabaExternalId?: string | null | undefined;
3007
- phoneNumberId?: string | null | undefined;
3008
- email?: string | null | undefined;
3009
- clientId?: string | null | undefined;
3010
- channelId?: string | null | undefined;
3011
- waapiInstanceId?: string | null | undefined;
3012
- qr?: string | null | undefined;
3013
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3014
135
  apiKey?: string | undefined;
3015
136
  tier?: "basic" | "regular" | "premium" | undefined;
3016
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3017
137
  }, {
3018
- wabaBusinessId?: string | null | undefined;
3019
- wabaExternalId?: string | null | undefined;
3020
- phoneNumberId?: string | null | undefined;
3021
- email?: string | null | undefined;
3022
- clientId?: string | null | undefined;
3023
- channelId?: string | null | undefined;
3024
- waapiInstanceId?: string | null | undefined;
3025
- qr?: string | null | undefined;
3026
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3027
145
  apiKey?: string | undefined;
3028
146
  tier?: "basic" | "regular" | "premium" | undefined;
3029
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3030
147
  }>>;
3031
148
  vonageCredentials: z.ZodOptional<z.ZodObject<{
3032
149
  mobileNumber: z.ZodString;
@@ -3045,25 +162,22 @@ export declare const smsContract: {
3045
162
  messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
3046
163
  facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
3047
164
  }, "strip", z.ZodTypeAny, {
3048
- name: string;
3049
165
  id: string;
166
+ name: string;
3050
167
  accessToken?: string | undefined;
3051
168
  channelSecret?: string | undefined;
3052
169
  additionalCredentials?: any;
3053
170
  senderId?: string | undefined;
3054
171
  whatsapp?: {
3055
- wabaBusinessId?: string | null | undefined;
3056
- wabaExternalId?: string | null | undefined;
3057
- phoneNumberId?: string | null | undefined;
3058
- email?: string | null | undefined;
3059
- clientId?: string | null | undefined;
3060
- channelId?: string | null | undefined;
3061
- waapiInstanceId?: string | null | undefined;
3062
- qr?: string | null | undefined;
3063
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3064
179
  apiKey?: string | undefined;
3065
180
  tier?: "basic" | "regular" | "premium" | undefined;
3066
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3067
181
  } | undefined;
3068
182
  vonageCredentials?: {
3069
183
  apiKey: string;
@@ -3074,25 +188,22 @@ export declare const smsContract: {
3074
188
  messengerIntegrationType?: "own" | "business" | undefined;
3075
189
  facebookFeedIntegrationType?: "own" | "business" | undefined;
3076
190
  }, {
3077
- name: string;
3078
191
  id: string;
192
+ name: string;
3079
193
  accessToken?: string | undefined;
3080
194
  channelSecret?: string | undefined;
3081
195
  additionalCredentials?: any;
3082
196
  senderId?: string | undefined;
3083
197
  whatsapp?: {
3084
- wabaBusinessId?: string | null | undefined;
3085
- wabaExternalId?: string | null | undefined;
3086
- phoneNumberId?: string | null | undefined;
3087
- email?: string | null | undefined;
3088
- clientId?: string | null | undefined;
3089
- channelId?: string | null | undefined;
3090
- waapiInstanceId?: string | null | undefined;
3091
- qr?: string | null | undefined;
3092
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3093
205
  apiKey?: string | undefined;
3094
206
  tier?: "basic" | "regular" | "premium" | undefined;
3095
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3096
207
  } | undefined;
3097
208
  vonageCredentials?: {
3098
209
  apiKey: string;
@@ -3116,14 +227,14 @@ export declare const smsContract: {
3116
227
  integrationId: z.ZodString;
3117
228
  accessToken: z.ZodString;
3118
229
  }, "strip", z.ZodTypeAny, {
3119
- name: string;
3120
230
  id: string;
231
+ name: string;
3121
232
  accessToken: string;
3122
233
  botId: string;
3123
234
  integrationId: string;
3124
235
  }, {
3125
- name: string;
3126
236
  id: string;
237
+ name: string;
3127
238
  accessToken: string;
3128
239
  botId: string;
3129
240
  integrationId: string;
@@ -3246,9 +357,9 @@ export declare const smsContract: {
3246
357
  telephonySignature: string | null;
3247
358
  }>;
3248
359
  }, "strip", z.ZodTypeAny, {
3249
- name: string;
3250
360
  id: string;
3251
361
  address: string | null;
362
+ name: string;
3252
363
  email: string;
3253
364
  createdAt: Date;
3254
365
  updatedAt: Date;
@@ -3289,9 +400,9 @@ export declare const smsContract: {
3289
400
  telephonySignature: string | null;
3290
401
  };
3291
402
  }, {
3292
- name: string;
3293
403
  id: string;
3294
404
  address: string | null;
405
+ name: string;
3295
406
  email: string;
3296
407
  createdAt: Date;
3297
408
  updatedAt: Date;
@@ -3333,29 +444,26 @@ export declare const smsContract: {
3333
444
  };
3334
445
  }>;
3335
446
  }, "strip", z.ZodTypeAny, {
3336
- name: string;
3337
447
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3338
448
  id: string;
449
+ name: string;
3339
450
  metadata: {
3340
- name: string;
3341
451
  id: string;
452
+ name: string;
3342
453
  accessToken?: string | undefined;
3343
454
  channelSecret?: string | undefined;
3344
455
  additionalCredentials?: any;
3345
456
  senderId?: string | undefined;
3346
457
  whatsapp?: {
3347
- wabaBusinessId?: string | null | undefined;
3348
- wabaExternalId?: string | null | undefined;
3349
- phoneNumberId?: string | null | undefined;
3350
- email?: string | null | undefined;
3351
- clientId?: string | null | undefined;
3352
- channelId?: string | null | undefined;
3353
- waapiInstanceId?: string | null | undefined;
3354
- qr?: string | null | undefined;
3355
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3356
465
  apiKey?: string | undefined;
3357
466
  tier?: "basic" | "regular" | "premium" | undefined;
3358
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3359
467
  } | undefined;
3360
468
  vonageCredentials?: {
3361
469
  apiKey: string;
@@ -3371,9 +479,9 @@ export declare const smsContract: {
3371
479
  updatedAt: Date;
3372
480
  deletedAt: Date | null;
3373
481
  actor: {
3374
- name: string;
3375
482
  id: string;
3376
483
  address: string | null;
484
+ name: string;
3377
485
  email: string;
3378
486
  createdAt: Date;
3379
487
  updatedAt: Date;
@@ -3420,36 +528,33 @@ export declare const smsContract: {
3420
528
  connectedUserName: string;
3421
529
  connectedUserId: string;
3422
530
  botpressBot: {
3423
- name: string;
3424
531
  id: string;
532
+ name: string;
3425
533
  accessToken: string;
3426
534
  botId: string;
3427
535
  integrationId: string;
3428
536
  } | null;
3429
537
  }, {
3430
- name: string;
3431
538
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3432
539
  id: string;
540
+ name: string;
3433
541
  metadata: {
3434
- name: string;
3435
542
  id: string;
543
+ name: string;
3436
544
  accessToken?: string | undefined;
3437
545
  channelSecret?: string | undefined;
3438
546
  additionalCredentials?: any;
3439
547
  senderId?: string | undefined;
3440
548
  whatsapp?: {
3441
- wabaBusinessId?: string | null | undefined;
3442
- wabaExternalId?: string | null | undefined;
3443
- phoneNumberId?: string | null | undefined;
3444
- email?: string | null | undefined;
3445
- clientId?: string | null | undefined;
3446
- channelId?: string | null | undefined;
3447
- waapiInstanceId?: string | null | undefined;
3448
- qr?: string | null | undefined;
3449
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3450
556
  apiKey?: string | undefined;
3451
557
  tier?: "basic" | "regular" | "premium" | undefined;
3452
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3453
558
  } | undefined;
3454
559
  vonageCredentials?: {
3455
560
  apiKey: string;
@@ -3465,9 +570,9 @@ export declare const smsContract: {
3465
570
  updatedAt: Date;
3466
571
  deletedAt: Date | null;
3467
572
  actor: {
3468
- name: string;
3469
573
  id: string;
3470
574
  address: string | null;
575
+ name: string;
3471
576
  email: string;
3472
577
  createdAt: Date;
3473
578
  updatedAt: Date;
@@ -3514,8 +619,8 @@ export declare const smsContract: {
3514
619
  connectedUserName: string;
3515
620
  connectedUserId: string;
3516
621
  botpressBot: {
3517
- name: string;
3518
622
  id: string;
623
+ name: string;
3519
624
  accessToken: string;
3520
625
  botId: string;
3521
626
  integrationId: string;
@@ -3523,29 +628,26 @@ export declare const smsContract: {
3523
628
  }>;
3524
629
  }, "strip", z.ZodTypeAny, {
3525
630
  channel: {
3526
- name: string;
3527
631
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3528
632
  id: string;
633
+ name: string;
3529
634
  metadata: {
3530
- name: string;
3531
635
  id: string;
636
+ name: string;
3532
637
  accessToken?: string | undefined;
3533
638
  channelSecret?: string | undefined;
3534
639
  additionalCredentials?: any;
3535
640
  senderId?: string | undefined;
3536
641
  whatsapp?: {
3537
- wabaBusinessId?: string | null | undefined;
3538
- wabaExternalId?: string | null | undefined;
3539
- phoneNumberId?: string | null | undefined;
3540
- email?: string | null | undefined;
3541
- clientId?: string | null | undefined;
3542
- channelId?: string | null | undefined;
3543
- waapiInstanceId?: string | null | undefined;
3544
- qr?: string | null | undefined;
3545
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3546
649
  apiKey?: string | undefined;
3547
650
  tier?: "basic" | "regular" | "premium" | undefined;
3548
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3549
651
  } | undefined;
3550
652
  vonageCredentials?: {
3551
653
  apiKey: string;
@@ -3561,9 +663,9 @@ export declare const smsContract: {
3561
663
  updatedAt: Date;
3562
664
  deletedAt: Date | null;
3563
665
  actor: {
3564
- name: string;
3565
666
  id: string;
3566
667
  address: string | null;
668
+ name: string;
3567
669
  email: string;
3568
670
  createdAt: Date;
3569
671
  updatedAt: Date;
@@ -3610,8 +712,8 @@ export declare const smsContract: {
3610
712
  connectedUserName: string;
3611
713
  connectedUserId: string;
3612
714
  botpressBot: {
3613
- name: string;
3614
715
  id: string;
716
+ name: string;
3615
717
  accessToken: string;
3616
718
  botId: string;
3617
719
  integrationId: string;
@@ -3620,29 +722,26 @@ export declare const smsContract: {
3620
722
  requestId: string;
3621
723
  }, {
3622
724
  channel: {
3623
- name: string;
3624
725
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3625
726
  id: string;
727
+ name: string;
3626
728
  metadata: {
3627
- name: string;
3628
729
  id: string;
730
+ name: string;
3629
731
  accessToken?: string | undefined;
3630
732
  channelSecret?: string | undefined;
3631
733
  additionalCredentials?: any;
3632
734
  senderId?: string | undefined;
3633
735
  whatsapp?: {
3634
- wabaBusinessId?: string | null | undefined;
3635
- wabaExternalId?: string | null | undefined;
3636
- phoneNumberId?: string | null | undefined;
3637
- email?: string | null | undefined;
3638
- clientId?: string | null | undefined;
3639
- channelId?: string | null | undefined;
3640
- waapiInstanceId?: string | null | undefined;
3641
- qr?: string | null | undefined;
3642
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3643
743
  apiKey?: string | undefined;
3644
744
  tier?: "basic" | "regular" | "premium" | undefined;
3645
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3646
745
  } | undefined;
3647
746
  vonageCredentials?: {
3648
747
  apiKey: string;
@@ -3658,9 +757,9 @@ export declare const smsContract: {
3658
757
  updatedAt: Date;
3659
758
  deletedAt: Date | null;
3660
759
  actor: {
3661
- name: string;
3662
760
  id: string;
3663
761
  address: string | null;
762
+ name: string;
3664
763
  email: string;
3665
764
  createdAt: Date;
3666
765
  updatedAt: Date;
@@ -3707,8 +806,8 @@ export declare const smsContract: {
3707
806
  connectedUserName: string;
3708
807
  connectedUserId: string;
3709
808
  botpressBot: {
3710
- name: string;
3711
809
  id: string;
810
+ name: string;
3712
811
  accessToken: string;
3713
812
  botId: string;
3714
813
  integrationId: string;
@@ -3737,7 +836,7 @@ export declare const smsContract: {
3737
836
  error?: any;
3738
837
  }>;
3739
838
  };
3740
- path: "/delete/:channelId";
839
+ path: "/connect";
3741
840
  };
3742
841
  sendMessage: {
3743
842
  body: z.ZodObject<{
@@ -3762,13 +861,13 @@ export declare const smsContract: {
3762
861
  picture: z.ZodOptional<z.ZodString>;
3763
862
  additionalCredentials: z.ZodAny;
3764
863
  }, "strip", z.ZodTypeAny, {
3765
- name: string;
3766
864
  id: string;
865
+ name: string;
3767
866
  picture?: string | undefined;
3768
867
  additionalCredentials?: any;
3769
868
  }, {
3770
- name: string;
3771
869
  id: string;
870
+ name: string;
3772
871
  picture?: string | undefined;
3773
872
  additionalCredentials?: any;
3774
873
  }>;
@@ -3780,16 +879,16 @@ export declare const smsContract: {
3780
879
  contactProfile: z.ZodNullable<z.ZodString>;
3781
880
  socialProfileUrl: z.ZodNullable<z.ZodString>;
3782
881
  }, "strip", z.ZodTypeAny, {
3783
- name: string;
3784
882
  channel: string | null;
3785
883
  address: string | null;
884
+ name: string;
3786
885
  notes: string | null;
3787
886
  contactProfile: string | null;
3788
887
  socialProfileUrl: string | null;
3789
888
  }, {
3790
- name: string;
3791
889
  channel: string | null;
3792
890
  address: string | null;
891
+ name: string;
3793
892
  notes: string | null;
3794
893
  contactProfile: string | null;
3795
894
  socialProfileUrl: string | null;
@@ -3798,15 +897,15 @@ export declare const smsContract: {
3798
897
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3799
898
  id: string;
3800
899
  metadata: {
3801
- name: string;
3802
900
  id: string;
901
+ name: string;
3803
902
  picture?: string | undefined;
3804
903
  additionalCredentials?: any;
3805
904
  };
3806
905
  contact: {
3807
- name: string;
3808
906
  channel: string | null;
3809
907
  address: string | null;
908
+ name: string;
3810
909
  notes: string | null;
3811
910
  contactProfile: string | null;
3812
911
  socialProfileUrl: string | null;
@@ -3817,15 +916,15 @@ export declare const smsContract: {
3817
916
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3818
917
  id: string;
3819
918
  metadata: {
3820
- name: string;
3821
919
  id: string;
920
+ name: string;
3822
921
  picture?: string | undefined;
3823
922
  additionalCredentials?: any;
3824
923
  };
3825
924
  contact: {
3826
- name: string;
3827
925
  channel: string | null;
3828
926
  address: string | null;
927
+ name: string;
3829
928
  notes: string | null;
3830
929
  contactProfile: string | null;
3831
930
  socialProfileUrl: string | null;
@@ -3840,15 +939,15 @@ export declare const smsContract: {
3840
939
  address: z.ZodNullable<z.ZodString>;
3841
940
  phone: z.ZodNullable<z.ZodString>;
3842
941
  }, "strip", z.ZodTypeAny, {
3843
- name: string;
3844
942
  id: string;
3845
943
  address: string | null;
944
+ name: string;
3846
945
  email: string;
3847
946
  phone: string | null;
3848
947
  }, {
3849
- name: string;
3850
948
  id: string;
3851
949
  address: string | null;
950
+ name: string;
3852
951
  email: string;
3853
952
  phone: string | null;
3854
953
  }>>;
@@ -3857,12 +956,12 @@ export declare const smsContract: {
3857
956
  name: z.ZodString;
3858
957
  email: z.ZodString;
3859
958
  }, "strip", z.ZodTypeAny, {
3860
- name: string;
3861
959
  id: string;
960
+ name: string;
3862
961
  email: string;
3863
962
  }, {
3864
- name: string;
3865
963
  id: string;
964
+ name: string;
3866
965
  email: string;
3867
966
  }>>;
3868
967
  channel: z.ZodObject<{
@@ -3877,44 +976,35 @@ export declare const smsContract: {
3877
976
  additionalCredentials: z.ZodOptional<z.ZodAny>;
3878
977
  senderId: z.ZodOptional<z.ZodString>;
3879
978
  whatsapp: z.ZodOptional<z.ZodObject<{
3880
- wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3881
- wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3882
- phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3883
- email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3884
- clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3885
- channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3886
- waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3887
- qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3888
- status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
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"]>>;
3889
986
  apiKey: z.ZodOptional<z.ZodString>;
3890
987
  tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
3891
- integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
3892
988
  }, "strip", z.ZodTypeAny, {
3893
- wabaBusinessId?: string | null | undefined;
3894
- wabaExternalId?: string | null | undefined;
3895
- phoneNumberId?: string | null | undefined;
3896
- email?: string | null | undefined;
3897
- clientId?: string | null | undefined;
3898
- channelId?: string | null | undefined;
3899
- waapiInstanceId?: string | null | undefined;
3900
- qr?: string | null | undefined;
3901
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3902
996
  apiKey?: string | undefined;
3903
997
  tier?: "basic" | "regular" | "premium" | undefined;
3904
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3905
998
  }, {
3906
- wabaBusinessId?: string | null | undefined;
3907
- wabaExternalId?: string | null | undefined;
3908
- phoneNumberId?: string | null | undefined;
3909
- email?: string | null | undefined;
3910
- clientId?: string | null | undefined;
3911
- channelId?: string | null | undefined;
3912
- waapiInstanceId?: string | null | undefined;
3913
- qr?: string | null | undefined;
3914
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3915
1006
  apiKey?: string | undefined;
3916
1007
  tier?: "basic" | "regular" | "premium" | undefined;
3917
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3918
1008
  }>>;
3919
1009
  vonageCredentials: z.ZodOptional<z.ZodObject<{
3920
1010
  mobileNumber: z.ZodString;
@@ -3933,25 +1023,22 @@ export declare const smsContract: {
3933
1023
  messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
3934
1024
  facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
3935
1025
  }, "strip", z.ZodTypeAny, {
3936
- name: string;
3937
1026
  id: string;
1027
+ name: string;
3938
1028
  accessToken?: string | undefined;
3939
1029
  channelSecret?: string | undefined;
3940
1030
  additionalCredentials?: any;
3941
1031
  senderId?: string | undefined;
3942
1032
  whatsapp?: {
3943
- wabaBusinessId?: string | null | undefined;
3944
- wabaExternalId?: string | null | undefined;
3945
- phoneNumberId?: string | null | undefined;
3946
- email?: string | null | undefined;
3947
- clientId?: string | null | undefined;
3948
- channelId?: string | null | undefined;
3949
- waapiInstanceId?: string | null | undefined;
3950
- qr?: string | null | undefined;
3951
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3952
1040
  apiKey?: string | undefined;
3953
1041
  tier?: "basic" | "regular" | "premium" | undefined;
3954
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3955
1042
  } | undefined;
3956
1043
  vonageCredentials?: {
3957
1044
  apiKey: string;
@@ -3962,25 +1049,22 @@ export declare const smsContract: {
3962
1049
  messengerIntegrationType?: "own" | "business" | undefined;
3963
1050
  facebookFeedIntegrationType?: "own" | "business" | undefined;
3964
1051
  }, {
3965
- name: string;
3966
1052
  id: string;
1053
+ name: string;
3967
1054
  accessToken?: string | undefined;
3968
1055
  channelSecret?: string | undefined;
3969
1056
  additionalCredentials?: any;
3970
1057
  senderId?: string | undefined;
3971
1058
  whatsapp?: {
3972
- wabaBusinessId?: string | null | undefined;
3973
- wabaExternalId?: string | null | undefined;
3974
- phoneNumberId?: string | null | undefined;
3975
- email?: string | null | undefined;
3976
- clientId?: string | null | undefined;
3977
- channelId?: string | null | undefined;
3978
- waapiInstanceId?: string | null | undefined;
3979
- qr?: string | null | undefined;
3980
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
3981
1066
  apiKey?: string | undefined;
3982
1067
  tier?: "basic" | "regular" | "premium" | undefined;
3983
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3984
1068
  } | undefined;
3985
1069
  vonageCredentials?: {
3986
1070
  apiKey: string;
@@ -4004,42 +1088,39 @@ export declare const smsContract: {
4004
1088
  address: z.ZodNullable<z.ZodString>;
4005
1089
  phone: z.ZodNullable<z.ZodString>;
4006
1090
  }, "strip", z.ZodTypeAny, {
4007
- name: string;
4008
1091
  id: string;
4009
1092
  address: string | null;
1093
+ name: string;
4010
1094
  email: string;
4011
1095
  phone: string | null;
4012
1096
  }, {
4013
- name: string;
4014
1097
  id: string;
4015
1098
  address: string | null;
1099
+ name: string;
4016
1100
  email: string;
4017
1101
  phone: string | null;
4018
1102
  }>>;
4019
1103
  }, "strip", z.ZodTypeAny, {
4020
- name: string;
4021
1104
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4022
1105
  id: string;
1106
+ name: string;
4023
1107
  metadata: {
4024
- name: string;
4025
1108
  id: string;
1109
+ name: string;
4026
1110
  accessToken?: string | undefined;
4027
1111
  channelSecret?: string | undefined;
4028
1112
  additionalCredentials?: any;
4029
1113
  senderId?: string | undefined;
4030
1114
  whatsapp?: {
4031
- wabaBusinessId?: string | null | undefined;
4032
- wabaExternalId?: string | null | undefined;
4033
- phoneNumberId?: string | null | undefined;
4034
- email?: string | null | undefined;
4035
- clientId?: string | null | undefined;
4036
- channelId?: string | null | undefined;
4037
- waapiInstanceId?: string | null | undefined;
4038
- qr?: string | null | undefined;
4039
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
4040
1122
  apiKey?: string | undefined;
4041
1123
  tier?: "basic" | "regular" | "premium" | undefined;
4042
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4043
1124
  } | undefined;
4044
1125
  vonageCredentials?: {
4045
1126
  apiKey: string;
@@ -4057,36 +1138,33 @@ export declare const smsContract: {
4057
1138
  connectedUserId?: string | null | undefined;
4058
1139
  lineRichMenuId?: string | null | undefined;
4059
1140
  actor?: {
4060
- name: string;
4061
1141
  id: string;
4062
1142
  address: string | null;
1143
+ name: string;
4063
1144
  email: string;
4064
1145
  phone: string | null;
4065
1146
  } | undefined;
4066
1147
  }, {
4067
- name: string;
4068
1148
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4069
1149
  id: string;
1150
+ name: string;
4070
1151
  metadata: {
4071
- name: string;
4072
1152
  id: string;
1153
+ name: string;
4073
1154
  accessToken?: string | undefined;
4074
1155
  channelSecret?: string | undefined;
4075
1156
  additionalCredentials?: any;
4076
1157
  senderId?: string | undefined;
4077
1158
  whatsapp?: {
4078
- wabaBusinessId?: string | null | undefined;
4079
- wabaExternalId?: string | null | undefined;
4080
- phoneNumberId?: string | null | undefined;
4081
- email?: string | null | undefined;
4082
- clientId?: string | null | undefined;
4083
- channelId?: string | null | undefined;
4084
- waapiInstanceId?: string | null | undefined;
4085
- qr?: string | null | undefined;
4086
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
4087
1166
  apiKey?: string | undefined;
4088
1167
  tier?: "basic" | "regular" | "premium" | undefined;
4089
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4090
1168
  } | undefined;
4091
1169
  vonageCredentials?: {
4092
1170
  apiKey: string;
@@ -4104,9 +1182,9 @@ export declare const smsContract: {
4104
1182
  connectedUserId?: string | null | undefined;
4105
1183
  lineRichMenuId?: string | null | undefined;
4106
1184
  actor?: {
4107
- name: string;
4108
1185
  id: string;
4109
1186
  address: string | null;
1187
+ name: string;
4110
1188
  email: string;
4111
1189
  phone: string | null;
4112
1190
  } | undefined;
@@ -4116,29 +1194,26 @@ export declare const smsContract: {
4116
1194
  }, "strip", z.ZodTypeAny, {
4117
1195
  id: string;
4118
1196
  channel: {
4119
- name: string;
4120
1197
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4121
1198
  id: string;
1199
+ name: string;
4122
1200
  metadata: {
4123
- name: string;
4124
1201
  id: string;
1202
+ name: string;
4125
1203
  accessToken?: string | undefined;
4126
1204
  channelSecret?: string | undefined;
4127
1205
  additionalCredentials?: any;
4128
1206
  senderId?: string | undefined;
4129
1207
  whatsapp?: {
4130
- wabaBusinessId?: string | null | undefined;
4131
- wabaExternalId?: string | null | undefined;
4132
- phoneNumberId?: string | null | undefined;
4133
- email?: string | null | undefined;
4134
- clientId?: string | null | undefined;
4135
- channelId?: string | null | undefined;
4136
- waapiInstanceId?: string | null | undefined;
4137
- qr?: string | null | undefined;
4138
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
4139
1215
  apiKey?: string | undefined;
4140
1216
  tier?: "basic" | "regular" | "premium" | undefined;
4141
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4142
1217
  } | undefined;
4143
1218
  vonageCredentials?: {
4144
1219
  apiKey: string;
@@ -4156,9 +1231,9 @@ export declare const smsContract: {
4156
1231
  connectedUserId?: string | null | undefined;
4157
1232
  lineRichMenuId?: string | null | undefined;
4158
1233
  actor?: {
4159
- name: string;
4160
1234
  id: string;
4161
1235
  address: string | null;
1236
+ name: string;
4162
1237
  email: string;
4163
1238
  phone: string | null;
4164
1239
  } | undefined;
@@ -4167,9 +1242,9 @@ export declare const smsContract: {
4167
1242
  createdAt: string;
4168
1243
  updatedAt: string;
4169
1244
  actor: {
4170
- name: string;
4171
1245
  id: string;
4172
1246
  address: string | null;
1247
+ name: string;
4173
1248
  email: string;
4174
1249
  phone: string | null;
4175
1250
  } | null;
@@ -4178,15 +1253,15 @@ export declare const smsContract: {
4178
1253
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4179
1254
  id: string;
4180
1255
  metadata: {
4181
- name: string;
4182
1256
  id: string;
1257
+ name: string;
4183
1258
  picture?: string | undefined;
4184
1259
  additionalCredentials?: any;
4185
1260
  };
4186
1261
  contact: {
4187
- name: string;
4188
1262
  channel: string | null;
4189
1263
  address: string | null;
1264
+ name: string;
4190
1265
  notes: string | null;
4191
1266
  contactProfile: string | null;
4192
1267
  socialProfileUrl: string | null;
@@ -4195,8 +1270,8 @@ export declare const smsContract: {
4195
1270
  socialPlatformId: string | null;
4196
1271
  };
4197
1272
  assignee: {
4198
- name: string;
4199
1273
  id: string;
1274
+ name: string;
4200
1275
  email: string;
4201
1276
  } | null;
4202
1277
  lastMessage?: string | undefined;
@@ -4207,29 +1282,26 @@ export declare const smsContract: {
4207
1282
  }, {
4208
1283
  id: string;
4209
1284
  channel: {
4210
- name: string;
4211
1285
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4212
1286
  id: string;
1287
+ name: string;
4213
1288
  metadata: {
4214
- name: string;
4215
1289
  id: string;
1290
+ name: string;
4216
1291
  accessToken?: string | undefined;
4217
1292
  channelSecret?: string | undefined;
4218
1293
  additionalCredentials?: any;
4219
1294
  senderId?: string | undefined;
4220
1295
  whatsapp?: {
4221
- wabaBusinessId?: string | null | undefined;
4222
- wabaExternalId?: string | null | undefined;
4223
- phoneNumberId?: string | null | undefined;
4224
- email?: string | null | undefined;
4225
- clientId?: string | null | undefined;
4226
- channelId?: string | null | undefined;
4227
- waapiInstanceId?: string | null | undefined;
4228
- qr?: string | null | undefined;
4229
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
4230
1303
  apiKey?: string | undefined;
4231
1304
  tier?: "basic" | "regular" | "premium" | undefined;
4232
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4233
1305
  } | undefined;
4234
1306
  vonageCredentials?: {
4235
1307
  apiKey: string;
@@ -4247,9 +1319,9 @@ export declare const smsContract: {
4247
1319
  connectedUserId?: string | null | undefined;
4248
1320
  lineRichMenuId?: string | null | undefined;
4249
1321
  actor?: {
4250
- name: string;
4251
1322
  id: string;
4252
1323
  address: string | null;
1324
+ name: string;
4253
1325
  email: string;
4254
1326
  phone: string | null;
4255
1327
  } | undefined;
@@ -4258,9 +1330,9 @@ export declare const smsContract: {
4258
1330
  createdAt: string;
4259
1331
  updatedAt: string;
4260
1332
  actor: {
4261
- name: string;
4262
1333
  id: string;
4263
1334
  address: string | null;
1335
+ name: string;
4264
1336
  email: string;
4265
1337
  phone: string | null;
4266
1338
  } | null;
@@ -4269,15 +1341,15 @@ export declare const smsContract: {
4269
1341
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4270
1342
  id: string;
4271
1343
  metadata: {
4272
- name: string;
4273
1344
  id: string;
1345
+ name: string;
4274
1346
  picture?: string | undefined;
4275
1347
  additionalCredentials?: any;
4276
1348
  };
4277
1349
  contact: {
4278
- name: string;
4279
1350
  channel: string | null;
4280
1351
  address: string | null;
1352
+ name: string;
4281
1353
  notes: string | null;
4282
1354
  contactProfile: string | null;
4283
1355
  socialProfileUrl: string | null;
@@ -4286,8 +1358,8 @@ export declare const smsContract: {
4286
1358
  socialPlatformId: string | null;
4287
1359
  };
4288
1360
  assignee: {
4289
- name: string;
4290
1361
  id: string;
1362
+ name: string;
4291
1363
  email: string;
4292
1364
  } | null;
4293
1365
  lastMessage?: string | undefined;
@@ -4300,7 +1372,7 @@ export declare const smsContract: {
4300
1372
  id: z.ZodOptional<z.ZodString>;
4301
1373
  message: z.ZodOptional<z.ZodString>;
4302
1374
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4303
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
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"]>;
4304
1376
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
4305
1377
  metadata: z.ZodOptional<z.ZodAny>;
4306
1378
  platformId: z.ZodOptional<z.ZodString>;
@@ -4337,15 +1409,15 @@ export declare const smsContract: {
4337
1409
  address: z.ZodNullable<z.ZodString>;
4338
1410
  phone: z.ZodNullable<z.ZodString>;
4339
1411
  }, "strip", z.ZodTypeAny, {
4340
- name: string;
4341
1412
  id: string;
4342
1413
  address: string | null;
1414
+ name: string;
4343
1415
  email: string;
4344
1416
  phone: string | null;
4345
1417
  }, {
4346
- name: string;
4347
1418
  id: string;
4348
1419
  address: string | null;
1420
+ name: string;
4349
1421
  email: string;
4350
1422
  phone: string | null;
4351
1423
  }>>;
@@ -4356,7 +1428,7 @@ export declare const smsContract: {
4356
1428
  editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
4357
1429
  label: z.ZodOptional<z.ZodString>;
4358
1430
  }, "strip", z.ZodTypeAny, {
4359
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
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";
4360
1432
  direction: "incoming" | "outgoing" | "system";
4361
1433
  id?: string | undefined;
4362
1434
  message?: string | undefined;
@@ -4378,9 +1450,9 @@ export declare const smsContract: {
4378
1450
  originalUrl?: string | undefined;
4379
1451
  } | undefined;
4380
1452
  sender?: {
4381
- name: string;
4382
1453
  id: string;
4383
1454
  address: string | null;
1455
+ name: string;
4384
1456
  email: string;
4385
1457
  phone: string | null;
4386
1458
  } | undefined;
@@ -4391,7 +1463,7 @@ export declare const smsContract: {
4391
1463
  editedAt?: string | Date | null | undefined;
4392
1464
  label?: string | undefined;
4393
1465
  }, {
4394
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
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";
4395
1467
  direction: "incoming" | "outgoing" | "system";
4396
1468
  id?: string | undefined;
4397
1469
  message?: string | undefined;
@@ -4413,9 +1485,9 @@ export declare const smsContract: {
4413
1485
  originalUrl?: string | undefined;
4414
1486
  } | undefined;
4415
1487
  sender?: {
4416
- name: string;
4417
1488
  id: string;
4418
1489
  address: string | null;
1490
+ name: string;
4419
1491
  email: string;
4420
1492
  phone: string | null;
4421
1493
  } | undefined;
@@ -4428,7 +1500,7 @@ export declare const smsContract: {
4428
1500
  }>;
4429
1501
  }, "strip", z.ZodTypeAny, {
4430
1502
  message: {
4431
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
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";
4432
1504
  direction: "incoming" | "outgoing" | "system";
4433
1505
  id?: string | undefined;
4434
1506
  message?: string | undefined;
@@ -4450,9 +1522,9 @@ export declare const smsContract: {
4450
1522
  originalUrl?: string | undefined;
4451
1523
  } | undefined;
4452
1524
  sender?: {
4453
- name: string;
4454
1525
  id: string;
4455
1526
  address: string | null;
1527
+ name: string;
4456
1528
  email: string;
4457
1529
  phone: string | null;
4458
1530
  } | undefined;
@@ -4466,29 +1538,26 @@ export declare const smsContract: {
4466
1538
  room: {
4467
1539
  id: string;
4468
1540
  channel: {
4469
- name: string;
4470
1541
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4471
1542
  id: string;
1543
+ name: string;
4472
1544
  metadata: {
4473
- name: string;
4474
1545
  id: string;
1546
+ name: string;
4475
1547
  accessToken?: string | undefined;
4476
1548
  channelSecret?: string | undefined;
4477
1549
  additionalCredentials?: any;
4478
1550
  senderId?: string | undefined;
4479
1551
  whatsapp?: {
4480
- wabaBusinessId?: string | null | undefined;
4481
- wabaExternalId?: string | null | undefined;
4482
- phoneNumberId?: string | null | undefined;
4483
- email?: string | null | undefined;
4484
- clientId?: string | null | undefined;
4485
- channelId?: string | null | undefined;
4486
- waapiInstanceId?: string | null | undefined;
4487
- qr?: string | null | undefined;
4488
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
4489
1559
  apiKey?: string | undefined;
4490
1560
  tier?: "basic" | "regular" | "premium" | undefined;
4491
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4492
1561
  } | undefined;
4493
1562
  vonageCredentials?: {
4494
1563
  apiKey: string;
@@ -4506,9 +1575,9 @@ export declare const smsContract: {
4506
1575
  connectedUserId?: string | null | undefined;
4507
1576
  lineRichMenuId?: string | null | undefined;
4508
1577
  actor?: {
4509
- name: string;
4510
1578
  id: string;
4511
1579
  address: string | null;
1580
+ name: string;
4512
1581
  email: string;
4513
1582
  phone: string | null;
4514
1583
  } | undefined;
@@ -4517,9 +1586,9 @@ export declare const smsContract: {
4517
1586
  createdAt: string;
4518
1587
  updatedAt: string;
4519
1588
  actor: {
4520
- name: string;
4521
1589
  id: string;
4522
1590
  address: string | null;
1591
+ name: string;
4523
1592
  email: string;
4524
1593
  phone: string | null;
4525
1594
  } | null;
@@ -4528,15 +1597,15 @@ export declare const smsContract: {
4528
1597
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4529
1598
  id: string;
4530
1599
  metadata: {
4531
- name: string;
4532
1600
  id: string;
1601
+ name: string;
4533
1602
  picture?: string | undefined;
4534
1603
  additionalCredentials?: any;
4535
1604
  };
4536
1605
  contact: {
4537
- name: string;
4538
1606
  channel: string | null;
4539
1607
  address: string | null;
1608
+ name: string;
4540
1609
  notes: string | null;
4541
1610
  contactProfile: string | null;
4542
1611
  socialProfileUrl: string | null;
@@ -4545,8 +1614,8 @@ export declare const smsContract: {
4545
1614
  socialPlatformId: string | null;
4546
1615
  };
4547
1616
  assignee: {
4548
- name: string;
4549
1617
  id: string;
1618
+ name: string;
4550
1619
  email: string;
4551
1620
  } | null;
4552
1621
  lastMessage?: string | undefined;
@@ -4558,7 +1627,7 @@ export declare const smsContract: {
4558
1627
  isBot: boolean | null;
4559
1628
  }, {
4560
1629
  message: {
4561
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
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";
4562
1631
  direction: "incoming" | "outgoing" | "system";
4563
1632
  id?: string | undefined;
4564
1633
  message?: string | undefined;
@@ -4580,9 +1649,9 @@ export declare const smsContract: {
4580
1649
  originalUrl?: string | undefined;
4581
1650
  } | undefined;
4582
1651
  sender?: {
4583
- name: string;
4584
1652
  id: string;
4585
1653
  address: string | null;
1654
+ name: string;
4586
1655
  email: string;
4587
1656
  phone: string | null;
4588
1657
  } | undefined;
@@ -4596,29 +1665,26 @@ export declare const smsContract: {
4596
1665
  room: {
4597
1666
  id: string;
4598
1667
  channel: {
4599
- name: string;
4600
1668
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4601
1669
  id: string;
1670
+ name: string;
4602
1671
  metadata: {
4603
- name: string;
4604
1672
  id: string;
1673
+ name: string;
4605
1674
  accessToken?: string | undefined;
4606
1675
  channelSecret?: string | undefined;
4607
1676
  additionalCredentials?: any;
4608
1677
  senderId?: string | undefined;
4609
1678
  whatsapp?: {
4610
- wabaBusinessId?: string | null | undefined;
4611
- wabaExternalId?: string | null | undefined;
4612
- phoneNumberId?: string | null | undefined;
4613
- email?: string | null | undefined;
4614
- clientId?: string | null | undefined;
4615
- channelId?: string | null | undefined;
4616
- waapiInstanceId?: string | null | undefined;
4617
- qr?: string | null | undefined;
4618
- status?: "active" | "pending" | "waapi-qr" | undefined;
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;
4619
1686
  apiKey?: string | undefined;
4620
1687
  tier?: "basic" | "regular" | "premium" | undefined;
4621
- integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4622
1688
  } | undefined;
4623
1689
  vonageCredentials?: {
4624
1690
  apiKey: string;
@@ -4636,9 +1702,9 @@ export declare const smsContract: {
4636
1702
  connectedUserId?: string | null | undefined;
4637
1703
  lineRichMenuId?: string | null | undefined;
4638
1704
  actor?: {
4639
- name: string;
4640
1705
  id: string;
4641
1706
  address: string | null;
1707
+ name: string;
4642
1708
  email: string;
4643
1709
  phone: string | null;
4644
1710
  } | undefined;
@@ -4647,9 +1713,9 @@ export declare const smsContract: {
4647
1713
  createdAt: string;
4648
1714
  updatedAt: string;
4649
1715
  actor: {
4650
- name: string;
4651
1716
  id: string;
4652
1717
  address: string | null;
1718
+ name: string;
4653
1719
  email: string;
4654
1720
  phone: string | null;
4655
1721
  } | null;
@@ -4658,15 +1724,15 @@ export declare const smsContract: {
4658
1724
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4659
1725
  id: string;
4660
1726
  metadata: {
4661
- name: string;
4662
1727
  id: string;
1728
+ name: string;
4663
1729
  picture?: string | undefined;
4664
1730
  additionalCredentials?: any;
4665
1731
  };
4666
1732
  contact: {
4667
- name: string;
4668
1733
  channel: string | null;
4669
1734
  address: string | null;
1735
+ name: string;
4670
1736
  notes: string | null;
4671
1737
  contactProfile: string | null;
4672
1738
  socialProfileUrl: string | null;
@@ -4675,8 +1741,8 @@ export declare const smsContract: {
4675
1741
  socialPlatformId: string | null;
4676
1742
  };
4677
1743
  assignee: {
4678
- name: string;
4679
1744
  id: string;
1745
+ name: string;
4680
1746
  email: string;
4681
1747
  } | null;
4682
1748
  lastMessage?: string | undefined;
@@ -4720,57 +1786,4 @@ export declare const smsContract: {
4720
1786
  path: "/message";
4721
1787
  };
4722
1788
  };
4723
- export declare const smsSettingContract: {
4724
- getSMSNumbers: {
4725
- method: "GET";
4726
- responses: {
4727
- 200: z.ZodObject<{
4728
- requestId: z.ZodString;
4729
- smsNumbers: z.ZodArray<z.ZodObject<{
4730
- number: z.ZodString;
4731
- senderId: z.ZodString;
4732
- apiKey: z.ZodString;
4733
- apiSecret: z.ZodString;
4734
- type: z.ZodString;
4735
- isConnected: z.ZodBoolean;
4736
- }, "strip", z.ZodTypeAny, {
4737
- number: string;
4738
- type: string;
4739
- isConnected: boolean;
4740
- senderId: string;
4741
- apiKey: string;
4742
- apiSecret: string;
4743
- }, {
4744
- number: string;
4745
- type: string;
4746
- isConnected: boolean;
4747
- senderId: string;
4748
- apiKey: string;
4749
- apiSecret: string;
4750
- }>, "many">;
4751
- }, "strip", z.ZodTypeAny, {
4752
- requestId: string;
4753
- smsNumbers: {
4754
- number: string;
4755
- type: string;
4756
- isConnected: boolean;
4757
- senderId: string;
4758
- apiKey: string;
4759
- apiSecret: string;
4760
- }[];
4761
- }, {
4762
- requestId: string;
4763
- smsNumbers: {
4764
- number: string;
4765
- type: string;
4766
- isConnected: boolean;
4767
- senderId: string;
4768
- apiKey: string;
4769
- apiSecret: string;
4770
- }[];
4771
- }>;
4772
- };
4773
- path: "/sms-setting/sms-numbers";
4774
- };
4775
- };
4776
1789
  //# sourceMappingURL=index.d.ts.map