@kl1/contracts 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/index.js +1328 -1062
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1325 -1061
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/auth/index.d.ts +34 -24
  6. package/dist/src/auth/index.d.ts.map +1 -1
  7. package/dist/src/aws/index.d.ts +4 -4
  8. package/dist/src/aws/validation.d.ts +2 -2
  9. package/dist/src/category/index.d.ts +3 -3
  10. package/dist/src/channel/index.d.ts +1357 -0
  11. package/dist/src/channel/index.d.ts.map +1 -0
  12. package/dist/src/channel/schema.d.ts +385 -0
  13. package/dist/src/channel/schema.d.ts.map +1 -0
  14. package/dist/src/channel/validation.d.ts +337 -0
  15. package/dist/src/channel/validation.d.ts.map +1 -0
  16. package/dist/src/chat/index.d.ts +17033 -10471
  17. package/dist/src/chat/index.d.ts.map +1 -1
  18. package/dist/src/chat/schema.d.ts +1995 -900
  19. package/dist/src/chat/schema.d.ts.map +1 -1
  20. package/dist/src/chat/validation.d.ts +3097 -461
  21. package/dist/src/chat/validation.d.ts.map +1 -1
  22. package/dist/src/company/schema.d.ts +197 -12
  23. package/dist/src/company/schema.d.ts.map +1 -1
  24. package/dist/src/contact/index.d.ts +2539 -0
  25. package/dist/src/contact/index.d.ts.map +1 -0
  26. package/dist/src/contact/schema.d.ts +978 -6
  27. package/dist/src/contact/schema.d.ts.map +1 -1
  28. package/dist/src/contact/validation.d.ts +981 -0
  29. package/dist/src/contact/validation.d.ts.map +1 -0
  30. package/dist/src/contract.d.ts +36388 -24411
  31. package/dist/src/contract.d.ts.map +1 -1
  32. package/dist/src/custom-field-upload/schema.d.ts +2 -2
  33. package/dist/src/cx-log/index.d.ts +4 -4
  34. package/dist/src/cx-log/schema.d.ts +2 -2
  35. package/dist/src/extension/index.d.ts +226 -60
  36. package/dist/src/extension/index.d.ts.map +1 -1
  37. package/dist/src/extension/schema.d.ts +6 -6
  38. package/dist/src/extension/validation.d.ts +6 -12
  39. package/dist/src/extension/validation.d.ts.map +1 -1
  40. package/dist/src/index.d.ts +1 -0
  41. package/dist/src/index.d.ts.map +1 -1
  42. package/dist/src/mail/account-contract.d.ts +2 -2
  43. package/dist/src/mail/mail-contract.d.ts +2871 -3707
  44. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  45. package/dist/src/mail/message-contract.d.ts +18 -18
  46. package/dist/src/mail/room-contract.d.ts +2860 -3696
  47. package/dist/src/mail/room-contract.d.ts.map +1 -1
  48. package/dist/src/mail/schemas/account-validation.schema.d.ts +2 -2
  49. package/dist/src/mail/schemas/message-validation.schema.d.ts +12 -12
  50. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  51. package/dist/src/mail/schemas/room-validation.schema.d.ts +70 -70
  52. package/dist/src/mail/schemas/room.schema.d.ts +50 -50
  53. package/dist/src/messenger/index.d.ts +2977 -0
  54. package/dist/src/messenger/index.d.ts.map +1 -0
  55. package/dist/src/messenger/schema.d.ts +2 -0
  56. package/dist/src/messenger/schema.d.ts.map +1 -0
  57. package/dist/src/messenger/validation.d.ts +2 -0
  58. package/dist/src/messenger/validation.d.ts.map +1 -0
  59. package/dist/src/permission/index.d.ts +2 -0
  60. package/dist/src/permission/index.d.ts.map +1 -1
  61. package/dist/src/role/index.d.ts +3 -3
  62. package/dist/src/telephony-agent-presence-status/index.d.ts +1376 -0
  63. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -0
  64. package/dist/src/telephony-agent-presence-status/schema.d.ts +366 -0
  65. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -0
  66. package/dist/src/telephony-agent-presence-status/validation.d.ts +18 -0
  67. package/dist/src/telephony-agent-presence-status/validation.d.ts.map +1 -0
  68. package/dist/src/telephony-extension/index.d.ts +5 -5
  69. package/dist/src/telephony-extension/schema.d.ts +5 -5
  70. package/dist/src/tenant/schema.d.ts +36 -0
  71. package/dist/src/tenant/schema.d.ts.map +1 -0
  72. package/dist/src/upload/schema.d.ts +4 -4
  73. package/dist/src/user/index.d.ts +128 -94
  74. package/dist/src/user/index.d.ts.map +1 -1
  75. package/dist/src/user/schema.d.ts +22 -16
  76. package/dist/src/user/schema.d.ts.map +1 -1
  77. package/dist/src/user/validation.d.ts +11 -11
  78. package/dist/src/user-presence-status-log/index.d.ts +342 -0
  79. package/dist/src/user-presence-status-log/index.d.ts.map +1 -0
  80. package/dist/src/user-presence-status-log/schema.d.ts +382 -0
  81. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -0
  82. package/dist/src/user-presence-status-log/validation.d.ts +15 -0
  83. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -0
  84. package/dist/src/widget/index.d.ts +31 -29
  85. package/dist/src/widget/index.d.ts.map +1 -1
  86. package/dist/src/widget/schema.d.ts +3 -3
  87. package/dist/src/wrap-up-form/index.d.ts +30 -30
  88. package/dist/src/wrap-up-form/validation.d.ts +27 -27
  89. package/dist/utils.d.ts +6 -6
  90. package/package.json +1 -1
  91. package/dist/src/app/index.d.ts +0 -17
  92. package/dist/src/app/index.d.ts.map +0 -1
  93. package/dist/src/mail/mail-server.d.ts +0 -216
  94. package/dist/src/mail/mail-server.d.ts.map +0 -1
@@ -0,0 +1,2977 @@
1
+ export declare const messengerContract: {
2
+ sendMessage: {
3
+ body: import("zod").ZodObject<{
4
+ room: import("zod").ZodObject<{
5
+ id: import("zod").ZodString;
6
+ createdAt: import("zod").ZodDate;
7
+ updatedAt: import("zod").ZodDate;
8
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
9
+ lastMessage: import("zod").ZodString;
10
+ handleTime: import("zod").ZodNumber;
11
+ isSolved: import("zod").ZodBoolean;
12
+ notes: import("zod").ZodString;
13
+ closeAt: import("zod").ZodDate;
14
+ unreadCount: import("zod").ZodNumber;
15
+ firstResponseTime: import("zod").ZodDate;
16
+ isLatest: import("zod").ZodBoolean;
17
+ direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
18
+ platformContact: import("zod").ZodObject<{
19
+ id: import("zod").ZodString;
20
+ createdAt: import("zod").ZodDate;
21
+ updatedAt: import("zod").ZodDate;
22
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
23
+ channelId: import("zod").ZodString;
24
+ socialPlatformId: import("zod").ZodString;
25
+ platform: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"]>;
26
+ metadata: import("zod").ZodObject<{
27
+ id: import("zod").ZodString;
28
+ name: import("zod").ZodString;
29
+ additionalCredentials: import("zod").ZodAny;
30
+ }, "strip", import("zod").ZodTypeAny, {
31
+ id: string;
32
+ name: string;
33
+ additionalCredentials?: any;
34
+ }, {
35
+ id: string;
36
+ name: string;
37
+ additionalCredentials?: any;
38
+ }>;
39
+ contact: import("zod").ZodObject<{
40
+ id: import("zod").ZodString;
41
+ createdAt: import("zod").ZodDate;
42
+ updatedAt: import("zod").ZodDate;
43
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
44
+ name: import("zod").ZodString;
45
+ address: import("zod").ZodNullable<import("zod").ZodString>;
46
+ channel: import("zod").ZodNullable<import("zod").ZodString>;
47
+ notes: import("zod").ZodNullable<import("zod").ZodString>;
48
+ contactProfile: import("zod").ZodNullable<import("zod").ZodString>;
49
+ socialProfileUrl: import("zod").ZodNullable<import("zod").ZodString>;
50
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
51
+ id: import("zod").ZodString;
52
+ createdAt: import("zod").ZodDate;
53
+ updatedAt: import("zod").ZodDate;
54
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
55
+ name: import("zod").ZodString;
56
+ }, "strip", import("zod").ZodTypeAny, {
57
+ id: string;
58
+ name: string;
59
+ createdAt: Date;
60
+ updatedAt: Date;
61
+ deletedAt: Date | null;
62
+ }, {
63
+ id: string;
64
+ name: string;
65
+ createdAt: Date;
66
+ updatedAt: Date;
67
+ deletedAt: Date | null;
68
+ }>, "many">;
69
+ company: import("zod").ZodNullable<import("zod").ZodObject<Omit<{
70
+ id: import("zod").ZodString;
71
+ createdAt: import("zod").ZodDate;
72
+ updatedAt: import("zod").ZodDate;
73
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
74
+ name: import("zod").ZodOptional<import("zod").ZodString>;
75
+ phone: import("zod").ZodOptional<import("zod").ZodString>;
76
+ address: import("zod").ZodOptional<import("zod").ZodString>;
77
+ industry: import("zod").ZodOptional<import("zod").ZodString>;
78
+ customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
79
+ id: import("zod").ZodString;
80
+ createdAt: import("zod").ZodDate;
81
+ updatedAt: import("zod").ZodDate;
82
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
83
+ textValue: import("zod").ZodNullable<import("zod").ZodString>;
84
+ booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
85
+ numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
86
+ dateValue: import("zod").ZodNullable<import("zod").ZodString>;
87
+ attribute: import("zod").ZodObject<Omit<{
88
+ id: import("zod").ZodString;
89
+ createdAt: import("zod").ZodDate;
90
+ updatedAt: import("zod").ZodDate;
91
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
92
+ systemName: import("zod").ZodString;
93
+ displayName: import("zod").ZodString;
94
+ type: import("zod").ZodUnion<[import("zod").ZodLiteral<"text">, import("zod").ZodLiteral<"textarea">, import("zod").ZodLiteral<"date">, import("zod").ZodLiteral<"select">, import("zod").ZodLiteral<"link">, import("zod").ZodLiteral<"attachment">]>;
95
+ position: import("zod").ZodNumber;
96
+ isDefault: import("zod").ZodBoolean;
97
+ isArchived: import("zod").ZodBoolean;
98
+ isRequired: import("zod").ZodBoolean;
99
+ isUnique: import("zod").ZodBoolean;
100
+ options: import("zod").ZodArray<import("zod").ZodObject<{
101
+ position: import("zod").ZodNumber;
102
+ value: import("zod").ZodString;
103
+ label: import("zod").ZodString;
104
+ isDefault: import("zod").ZodBoolean;
105
+ id: import("zod").ZodString;
106
+ }, "strip", import("zod").ZodTypeAny, {
107
+ id: string;
108
+ position: number;
109
+ value: string;
110
+ label: string;
111
+ isDefault: boolean;
112
+ }, {
113
+ id: string;
114
+ position: number;
115
+ value: string;
116
+ label: string;
117
+ isDefault: boolean;
118
+ }>, "many">;
119
+ group: import("zod").ZodObject<{
120
+ id: import("zod").ZodString;
121
+ createdAt: import("zod").ZodDate;
122
+ updatedAt: import("zod").ZodDate;
123
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
124
+ systemName: import("zod").ZodString;
125
+ displayName: import("zod").ZodString;
126
+ }, "strip", import("zod").ZodTypeAny, {
127
+ id: string;
128
+ createdAt: Date;
129
+ updatedAt: Date;
130
+ deletedAt: Date | null;
131
+ systemName: string;
132
+ displayName: string;
133
+ }, {
134
+ id: string;
135
+ createdAt: Date;
136
+ updatedAt: Date;
137
+ deletedAt: Date | null;
138
+ systemName: string;
139
+ displayName: string;
140
+ }>;
141
+ }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
142
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
143
+ id: string;
144
+ position: number;
145
+ createdAt: Date;
146
+ updatedAt: Date;
147
+ deletedAt: Date | null;
148
+ isDefault: boolean;
149
+ systemName: string;
150
+ displayName: string;
151
+ isArchived: boolean;
152
+ isRequired: boolean;
153
+ isUnique: boolean;
154
+ }, {
155
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
156
+ id: string;
157
+ position: number;
158
+ createdAt: Date;
159
+ updatedAt: Date;
160
+ deletedAt: Date | null;
161
+ isDefault: boolean;
162
+ systemName: string;
163
+ displayName: string;
164
+ isArchived: boolean;
165
+ isRequired: boolean;
166
+ isUnique: boolean;
167
+ }>;
168
+ }, "strip", import("zod").ZodTypeAny, {
169
+ id: string;
170
+ createdAt: Date;
171
+ updatedAt: Date;
172
+ deletedAt: Date | null;
173
+ attribute: {
174
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
175
+ id: string;
176
+ position: number;
177
+ createdAt: Date;
178
+ updatedAt: Date;
179
+ deletedAt: Date | null;
180
+ isDefault: boolean;
181
+ systemName: string;
182
+ displayName: string;
183
+ isArchived: boolean;
184
+ isRequired: boolean;
185
+ isUnique: boolean;
186
+ };
187
+ textValue: string | null;
188
+ booleanValue: boolean | null;
189
+ numberValue: number | null;
190
+ dateValue: string | null;
191
+ }, {
192
+ id: string;
193
+ createdAt: Date;
194
+ updatedAt: Date;
195
+ deletedAt: Date | null;
196
+ attribute: {
197
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
198
+ id: string;
199
+ position: number;
200
+ createdAt: Date;
201
+ updatedAt: Date;
202
+ deletedAt: Date | null;
203
+ isDefault: boolean;
204
+ systemName: string;
205
+ displayName: string;
206
+ isArchived: boolean;
207
+ isRequired: boolean;
208
+ isUnique: boolean;
209
+ };
210
+ textValue: string | null;
211
+ booleanValue: boolean | null;
212
+ numberValue: number | null;
213
+ dateValue: string | null;
214
+ }>, "many">>;
215
+ }, "customFields">, "strip", import("zod").ZodTypeAny, {
216
+ id: string;
217
+ createdAt: Date;
218
+ updatedAt: Date;
219
+ deletedAt: Date | null;
220
+ address?: string | undefined;
221
+ name?: string | undefined;
222
+ phone?: string | undefined;
223
+ industry?: string | undefined;
224
+ }, {
225
+ id: string;
226
+ createdAt: Date;
227
+ updatedAt: Date;
228
+ deletedAt: Date | null;
229
+ address?: string | undefined;
230
+ name?: string | undefined;
231
+ phone?: string | undefined;
232
+ industry?: string | undefined;
233
+ }>>;
234
+ customFields: import("zod").ZodArray<import("zod").ZodObject<{
235
+ id: import("zod").ZodString;
236
+ createdAt: import("zod").ZodDate;
237
+ updatedAt: import("zod").ZodDate;
238
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
239
+ textValue: import("zod").ZodNullable<import("zod").ZodString>;
240
+ booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
241
+ numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
242
+ dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
243
+ attribute: import("zod").ZodObject<Omit<{
244
+ id: import("zod").ZodString;
245
+ createdAt: import("zod").ZodDate;
246
+ updatedAt: import("zod").ZodDate;
247
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
248
+ systemName: import("zod").ZodString;
249
+ displayName: import("zod").ZodString;
250
+ type: import("zod").ZodUnion<[import("zod").ZodLiteral<"text">, import("zod").ZodLiteral<"textarea">, import("zod").ZodLiteral<"date">, import("zod").ZodLiteral<"select">, import("zod").ZodLiteral<"link">, import("zod").ZodLiteral<"attachment">]>;
251
+ position: import("zod").ZodNumber;
252
+ isDefault: import("zod").ZodBoolean;
253
+ isArchived: import("zod").ZodBoolean;
254
+ isRequired: import("zod").ZodBoolean;
255
+ isUnique: import("zod").ZodBoolean;
256
+ options: import("zod").ZodArray<import("zod").ZodObject<{
257
+ position: import("zod").ZodNumber;
258
+ value: import("zod").ZodString;
259
+ label: import("zod").ZodString;
260
+ isDefault: import("zod").ZodBoolean;
261
+ id: import("zod").ZodString;
262
+ }, "strip", import("zod").ZodTypeAny, {
263
+ id: string;
264
+ position: number;
265
+ value: string;
266
+ label: string;
267
+ isDefault: boolean;
268
+ }, {
269
+ id: string;
270
+ position: number;
271
+ value: string;
272
+ label: string;
273
+ isDefault: boolean;
274
+ }>, "many">;
275
+ group: import("zod").ZodObject<{
276
+ id: import("zod").ZodString;
277
+ createdAt: import("zod").ZodDate;
278
+ updatedAt: import("zod").ZodDate;
279
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
280
+ systemName: import("zod").ZodString;
281
+ displayName: import("zod").ZodString;
282
+ }, "strip", import("zod").ZodTypeAny, {
283
+ id: string;
284
+ createdAt: Date;
285
+ updatedAt: Date;
286
+ deletedAt: Date | null;
287
+ systemName: string;
288
+ displayName: string;
289
+ }, {
290
+ id: string;
291
+ createdAt: Date;
292
+ updatedAt: Date;
293
+ deletedAt: Date | null;
294
+ systemName: string;
295
+ displayName: string;
296
+ }>;
297
+ }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
298
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
299
+ id: string;
300
+ position: number;
301
+ createdAt: Date;
302
+ updatedAt: Date;
303
+ deletedAt: Date | null;
304
+ isDefault: boolean;
305
+ systemName: string;
306
+ displayName: string;
307
+ isArchived: boolean;
308
+ isRequired: boolean;
309
+ isUnique: boolean;
310
+ }, {
311
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
312
+ id: string;
313
+ position: number;
314
+ createdAt: Date;
315
+ updatedAt: Date;
316
+ deletedAt: Date | null;
317
+ isDefault: boolean;
318
+ systemName: string;
319
+ displayName: string;
320
+ isArchived: boolean;
321
+ isRequired: boolean;
322
+ isUnique: boolean;
323
+ }>;
324
+ uploads: import("zod").ZodArray<import("zod").ZodObject<{
325
+ id: import("zod").ZodString;
326
+ createdAt: import("zod").ZodDate;
327
+ updatedAt: import("zod").ZodDate;
328
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
329
+ customFieldId: import("zod").ZodString;
330
+ upload: import("zod").ZodObject<{
331
+ id: import("zod").ZodString;
332
+ createdAt: import("zod").ZodDate;
333
+ updatedAt: import("zod").ZodDate;
334
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
335
+ bucketName: import("zod").ZodString;
336
+ fileName: import("zod").ZodString;
337
+ fileSize: import("zod").ZodNumber;
338
+ fileKey: import("zod").ZodString;
339
+ }, "strip", import("zod").ZodTypeAny, {
340
+ id: string;
341
+ createdAt: Date;
342
+ updatedAt: Date;
343
+ deletedAt: Date | null;
344
+ fileName: string;
345
+ fileKey: string;
346
+ bucketName: string;
347
+ fileSize: number;
348
+ }, {
349
+ id: string;
350
+ createdAt: Date;
351
+ updatedAt: Date;
352
+ deletedAt: Date | null;
353
+ fileName: string;
354
+ fileKey: string;
355
+ bucketName: string;
356
+ fileSize: number;
357
+ }>;
358
+ }, "strip", import("zod").ZodTypeAny, {
359
+ id: string;
360
+ createdAt: Date;
361
+ updatedAt: Date;
362
+ deletedAt: Date | null;
363
+ customFieldId: string;
364
+ upload: {
365
+ id: string;
366
+ createdAt: Date;
367
+ updatedAt: Date;
368
+ deletedAt: Date | null;
369
+ fileName: string;
370
+ fileKey: string;
371
+ bucketName: string;
372
+ fileSize: number;
373
+ };
374
+ }, {
375
+ id: string;
376
+ createdAt: Date;
377
+ updatedAt: Date;
378
+ deletedAt: Date | null;
379
+ customFieldId: string;
380
+ upload: {
381
+ id: string;
382
+ createdAt: Date;
383
+ updatedAt: Date;
384
+ deletedAt: Date | null;
385
+ fileName: string;
386
+ fileKey: string;
387
+ bucketName: string;
388
+ fileSize: number;
389
+ };
390
+ }>, "many">;
391
+ }, "strip", import("zod").ZodTypeAny, {
392
+ id: string;
393
+ createdAt: Date;
394
+ updatedAt: Date;
395
+ deletedAt: Date | null;
396
+ attribute: {
397
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
398
+ id: string;
399
+ position: number;
400
+ createdAt: Date;
401
+ updatedAt: Date;
402
+ deletedAt: Date | null;
403
+ isDefault: boolean;
404
+ systemName: string;
405
+ displayName: string;
406
+ isArchived: boolean;
407
+ isRequired: boolean;
408
+ isUnique: boolean;
409
+ };
410
+ textValue: string | null;
411
+ booleanValue: boolean | null;
412
+ numberValue: number | null;
413
+ dateValue: Date | null;
414
+ uploads: {
415
+ id: string;
416
+ createdAt: Date;
417
+ updatedAt: Date;
418
+ deletedAt: Date | null;
419
+ customFieldId: string;
420
+ upload: {
421
+ id: string;
422
+ createdAt: Date;
423
+ updatedAt: Date;
424
+ deletedAt: Date | null;
425
+ fileName: string;
426
+ fileKey: string;
427
+ bucketName: string;
428
+ fileSize: number;
429
+ };
430
+ }[];
431
+ }, {
432
+ id: string;
433
+ createdAt: Date;
434
+ updatedAt: Date;
435
+ deletedAt: Date | null;
436
+ attribute: {
437
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
438
+ id: string;
439
+ position: number;
440
+ createdAt: Date;
441
+ updatedAt: Date;
442
+ deletedAt: Date | null;
443
+ isDefault: boolean;
444
+ systemName: string;
445
+ displayName: string;
446
+ isArchived: boolean;
447
+ isRequired: boolean;
448
+ isUnique: boolean;
449
+ };
450
+ textValue: string | null;
451
+ booleanValue: boolean | null;
452
+ numberValue: number | null;
453
+ dateValue: Date | null;
454
+ uploads: {
455
+ id: string;
456
+ createdAt: Date;
457
+ updatedAt: Date;
458
+ deletedAt: Date | null;
459
+ customFieldId: string;
460
+ upload: {
461
+ id: string;
462
+ createdAt: Date;
463
+ updatedAt: Date;
464
+ deletedAt: Date | null;
465
+ fileName: string;
466
+ fileKey: string;
467
+ bucketName: string;
468
+ fileSize: number;
469
+ };
470
+ }[];
471
+ }>, "many">;
472
+ contactEmails: import("zod").ZodArray<import("zod").ZodObject<{
473
+ id: import("zod").ZodString;
474
+ createdAt: import("zod").ZodDate;
475
+ updatedAt: import("zod").ZodDate;
476
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
477
+ email: import("zod").ZodString;
478
+ isPrimary: import("zod").ZodBoolean;
479
+ }, "strip", import("zod").ZodTypeAny, {
480
+ id: string;
481
+ isPrimary: boolean;
482
+ email: string;
483
+ createdAt: Date;
484
+ updatedAt: Date;
485
+ deletedAt: Date | null;
486
+ }, {
487
+ id: string;
488
+ isPrimary: boolean;
489
+ email: string;
490
+ createdAt: Date;
491
+ updatedAt: Date;
492
+ deletedAt: Date | null;
493
+ }>, "many">;
494
+ contactPhones: import("zod").ZodArray<import("zod").ZodObject<{
495
+ id: import("zod").ZodString;
496
+ createdAt: import("zod").ZodDate;
497
+ updatedAt: import("zod").ZodDate;
498
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
499
+ phone: import("zod").ZodString;
500
+ isPrimary: import("zod").ZodBoolean;
501
+ }, "strip", import("zod").ZodTypeAny, {
502
+ id: string;
503
+ isPrimary: boolean;
504
+ createdAt: Date;
505
+ updatedAt: Date;
506
+ deletedAt: Date | null;
507
+ phone: string;
508
+ }, {
509
+ id: string;
510
+ isPrimary: boolean;
511
+ createdAt: Date;
512
+ updatedAt: Date;
513
+ deletedAt: Date | null;
514
+ phone: string;
515
+ }>, "many">;
516
+ activityLogs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
517
+ entityId: import("zod").ZodString;
518
+ description: import("zod").ZodString;
519
+ entityType: import("zod").ZodObject<{
520
+ entity: import("zod").ZodString;
521
+ description: import("zod").ZodNullable<import("zod").ZodString>;
522
+ }, "strip", import("zod").ZodTypeAny, {
523
+ description: string | null;
524
+ entity: string;
525
+ }, {
526
+ description: string | null;
527
+ entity: string;
528
+ }>;
529
+ }, "strip", import("zod").ZodTypeAny, {
530
+ description: string;
531
+ entityId: string;
532
+ entityType: {
533
+ description: string | null;
534
+ entity: string;
535
+ };
536
+ }, {
537
+ description: string;
538
+ entityId: string;
539
+ entityType: {
540
+ description: string | null;
541
+ entity: string;
542
+ };
543
+ }>, "many">>;
544
+ }, "strip", import("zod").ZodTypeAny, {
545
+ id: string;
546
+ channel: string | null;
547
+ address: string | null;
548
+ name: string;
549
+ createdAt: Date;
550
+ updatedAt: Date;
551
+ deletedAt: Date | null;
552
+ customFields: {
553
+ id: string;
554
+ createdAt: Date;
555
+ updatedAt: Date;
556
+ deletedAt: Date | null;
557
+ attribute: {
558
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
559
+ id: string;
560
+ position: number;
561
+ createdAt: Date;
562
+ updatedAt: Date;
563
+ deletedAt: Date | null;
564
+ isDefault: boolean;
565
+ systemName: string;
566
+ displayName: string;
567
+ isArchived: boolean;
568
+ isRequired: boolean;
569
+ isUnique: boolean;
570
+ };
571
+ textValue: string | null;
572
+ booleanValue: boolean | null;
573
+ numberValue: number | null;
574
+ dateValue: Date | null;
575
+ uploads: {
576
+ id: string;
577
+ createdAt: Date;
578
+ updatedAt: Date;
579
+ deletedAt: Date | null;
580
+ customFieldId: string;
581
+ upload: {
582
+ id: string;
583
+ createdAt: Date;
584
+ updatedAt: Date;
585
+ deletedAt: Date | null;
586
+ fileName: string;
587
+ fileKey: string;
588
+ bucketName: string;
589
+ fileSize: number;
590
+ };
591
+ }[];
592
+ }[];
593
+ notes: string | null;
594
+ contactProfile: string | null;
595
+ socialProfileUrl: string | null;
596
+ tags: {
597
+ id: string;
598
+ name: string;
599
+ createdAt: Date;
600
+ updatedAt: Date;
601
+ deletedAt: Date | null;
602
+ }[];
603
+ company: {
604
+ id: string;
605
+ createdAt: Date;
606
+ updatedAt: Date;
607
+ deletedAt: Date | null;
608
+ address?: string | undefined;
609
+ name?: string | undefined;
610
+ phone?: string | undefined;
611
+ industry?: string | undefined;
612
+ } | null;
613
+ contactEmails: {
614
+ id: string;
615
+ isPrimary: boolean;
616
+ email: string;
617
+ createdAt: Date;
618
+ updatedAt: Date;
619
+ deletedAt: Date | null;
620
+ }[];
621
+ contactPhones: {
622
+ id: string;
623
+ isPrimary: boolean;
624
+ createdAt: Date;
625
+ updatedAt: Date;
626
+ deletedAt: Date | null;
627
+ phone: string;
628
+ }[];
629
+ activityLogs?: {
630
+ description: string;
631
+ entityId: string;
632
+ entityType: {
633
+ description: string | null;
634
+ entity: string;
635
+ };
636
+ }[] | undefined;
637
+ }, {
638
+ id: string;
639
+ channel: string | null;
640
+ address: string | null;
641
+ name: string;
642
+ createdAt: Date;
643
+ updatedAt: Date;
644
+ deletedAt: Date | null;
645
+ customFields: {
646
+ id: string;
647
+ createdAt: Date;
648
+ updatedAt: Date;
649
+ deletedAt: Date | null;
650
+ attribute: {
651
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
652
+ id: string;
653
+ position: number;
654
+ createdAt: Date;
655
+ updatedAt: Date;
656
+ deletedAt: Date | null;
657
+ isDefault: boolean;
658
+ systemName: string;
659
+ displayName: string;
660
+ isArchived: boolean;
661
+ isRequired: boolean;
662
+ isUnique: boolean;
663
+ };
664
+ textValue: string | null;
665
+ booleanValue: boolean | null;
666
+ numberValue: number | null;
667
+ dateValue: Date | null;
668
+ uploads: {
669
+ id: string;
670
+ createdAt: Date;
671
+ updatedAt: Date;
672
+ deletedAt: Date | null;
673
+ customFieldId: string;
674
+ upload: {
675
+ id: string;
676
+ createdAt: Date;
677
+ updatedAt: Date;
678
+ deletedAt: Date | null;
679
+ fileName: string;
680
+ fileKey: string;
681
+ bucketName: string;
682
+ fileSize: number;
683
+ };
684
+ }[];
685
+ }[];
686
+ notes: string | null;
687
+ contactProfile: string | null;
688
+ socialProfileUrl: string | null;
689
+ tags: {
690
+ id: string;
691
+ name: string;
692
+ createdAt: Date;
693
+ updatedAt: Date;
694
+ deletedAt: Date | null;
695
+ }[];
696
+ company: {
697
+ id: string;
698
+ createdAt: Date;
699
+ updatedAt: Date;
700
+ deletedAt: Date | null;
701
+ address?: string | undefined;
702
+ name?: string | undefined;
703
+ phone?: string | undefined;
704
+ industry?: string | undefined;
705
+ } | null;
706
+ contactEmails: {
707
+ id: string;
708
+ isPrimary: boolean;
709
+ email: string;
710
+ createdAt: Date;
711
+ updatedAt: Date;
712
+ deletedAt: Date | null;
713
+ }[];
714
+ contactPhones: {
715
+ id: string;
716
+ isPrimary: boolean;
717
+ createdAt: Date;
718
+ updatedAt: Date;
719
+ deletedAt: Date | null;
720
+ phone: string;
721
+ }[];
722
+ activityLogs?: {
723
+ description: string;
724
+ entityId: string;
725
+ entityType: {
726
+ description: string | null;
727
+ entity: string;
728
+ };
729
+ }[] | undefined;
730
+ }>;
731
+ }, "strip", import("zod").ZodTypeAny, {
732
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
733
+ id: string;
734
+ metadata: {
735
+ id: string;
736
+ name: string;
737
+ additionalCredentials?: any;
738
+ };
739
+ createdAt: Date;
740
+ updatedAt: Date;
741
+ deletedAt: Date | null;
742
+ contact: {
743
+ id: string;
744
+ channel: string | null;
745
+ address: string | null;
746
+ name: string;
747
+ createdAt: Date;
748
+ updatedAt: Date;
749
+ deletedAt: Date | null;
750
+ customFields: {
751
+ id: string;
752
+ createdAt: Date;
753
+ updatedAt: Date;
754
+ deletedAt: Date | null;
755
+ attribute: {
756
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
757
+ id: string;
758
+ position: number;
759
+ createdAt: Date;
760
+ updatedAt: Date;
761
+ deletedAt: Date | null;
762
+ isDefault: boolean;
763
+ systemName: string;
764
+ displayName: string;
765
+ isArchived: boolean;
766
+ isRequired: boolean;
767
+ isUnique: boolean;
768
+ };
769
+ textValue: string | null;
770
+ booleanValue: boolean | null;
771
+ numberValue: number | null;
772
+ dateValue: Date | null;
773
+ uploads: {
774
+ id: string;
775
+ createdAt: Date;
776
+ updatedAt: Date;
777
+ deletedAt: Date | null;
778
+ customFieldId: string;
779
+ upload: {
780
+ id: string;
781
+ createdAt: Date;
782
+ updatedAt: Date;
783
+ deletedAt: Date | null;
784
+ fileName: string;
785
+ fileKey: string;
786
+ bucketName: string;
787
+ fileSize: number;
788
+ };
789
+ }[];
790
+ }[];
791
+ notes: string | null;
792
+ contactProfile: string | null;
793
+ socialProfileUrl: string | null;
794
+ tags: {
795
+ id: string;
796
+ name: string;
797
+ createdAt: Date;
798
+ updatedAt: Date;
799
+ deletedAt: Date | null;
800
+ }[];
801
+ company: {
802
+ id: string;
803
+ createdAt: Date;
804
+ updatedAt: Date;
805
+ deletedAt: Date | null;
806
+ address?: string | undefined;
807
+ name?: string | undefined;
808
+ phone?: string | undefined;
809
+ industry?: string | undefined;
810
+ } | null;
811
+ contactEmails: {
812
+ id: string;
813
+ isPrimary: boolean;
814
+ email: string;
815
+ createdAt: Date;
816
+ updatedAt: Date;
817
+ deletedAt: Date | null;
818
+ }[];
819
+ contactPhones: {
820
+ id: string;
821
+ isPrimary: boolean;
822
+ createdAt: Date;
823
+ updatedAt: Date;
824
+ deletedAt: Date | null;
825
+ phone: string;
826
+ }[];
827
+ activityLogs?: {
828
+ description: string;
829
+ entityId: string;
830
+ entityType: {
831
+ description: string | null;
832
+ entity: string;
833
+ };
834
+ }[] | undefined;
835
+ };
836
+ channelId: string;
837
+ socialPlatformId: string;
838
+ }, {
839
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
840
+ id: string;
841
+ metadata: {
842
+ id: string;
843
+ name: string;
844
+ additionalCredentials?: any;
845
+ };
846
+ createdAt: Date;
847
+ updatedAt: Date;
848
+ deletedAt: Date | null;
849
+ contact: {
850
+ id: string;
851
+ channel: string | null;
852
+ address: string | null;
853
+ name: string;
854
+ createdAt: Date;
855
+ updatedAt: Date;
856
+ deletedAt: Date | null;
857
+ customFields: {
858
+ id: string;
859
+ createdAt: Date;
860
+ updatedAt: Date;
861
+ deletedAt: Date | null;
862
+ attribute: {
863
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
864
+ id: string;
865
+ position: number;
866
+ createdAt: Date;
867
+ updatedAt: Date;
868
+ deletedAt: Date | null;
869
+ isDefault: boolean;
870
+ systemName: string;
871
+ displayName: string;
872
+ isArchived: boolean;
873
+ isRequired: boolean;
874
+ isUnique: boolean;
875
+ };
876
+ textValue: string | null;
877
+ booleanValue: boolean | null;
878
+ numberValue: number | null;
879
+ dateValue: Date | null;
880
+ uploads: {
881
+ id: string;
882
+ createdAt: Date;
883
+ updatedAt: Date;
884
+ deletedAt: Date | null;
885
+ customFieldId: string;
886
+ upload: {
887
+ id: string;
888
+ createdAt: Date;
889
+ updatedAt: Date;
890
+ deletedAt: Date | null;
891
+ fileName: string;
892
+ fileKey: string;
893
+ bucketName: string;
894
+ fileSize: number;
895
+ };
896
+ }[];
897
+ }[];
898
+ notes: string | null;
899
+ contactProfile: string | null;
900
+ socialProfileUrl: string | null;
901
+ tags: {
902
+ id: string;
903
+ name: string;
904
+ createdAt: Date;
905
+ updatedAt: Date;
906
+ deletedAt: Date | null;
907
+ }[];
908
+ company: {
909
+ id: string;
910
+ createdAt: Date;
911
+ updatedAt: Date;
912
+ deletedAt: Date | null;
913
+ address?: string | undefined;
914
+ name?: string | undefined;
915
+ phone?: string | undefined;
916
+ industry?: string | undefined;
917
+ } | null;
918
+ contactEmails: {
919
+ id: string;
920
+ isPrimary: boolean;
921
+ email: string;
922
+ createdAt: Date;
923
+ updatedAt: Date;
924
+ deletedAt: Date | null;
925
+ }[];
926
+ contactPhones: {
927
+ id: string;
928
+ isPrimary: boolean;
929
+ createdAt: Date;
930
+ updatedAt: Date;
931
+ deletedAt: Date | null;
932
+ phone: string;
933
+ }[];
934
+ activityLogs?: {
935
+ description: string;
936
+ entityId: string;
937
+ entityType: {
938
+ description: string | null;
939
+ entity: string;
940
+ };
941
+ }[] | undefined;
942
+ };
943
+ channelId: string;
944
+ socialPlatformId: string;
945
+ }>;
946
+ actor: import("zod").ZodObject<{
947
+ id: import("zod").ZodString;
948
+ createdAt: import("zod").ZodDate;
949
+ updatedAt: import("zod").ZodDate;
950
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
951
+ name: import("zod").ZodString;
952
+ email: import("zod").ZodString;
953
+ emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
954
+ password: import("zod").ZodString;
955
+ address: import("zod").ZodNullable<import("zod").ZodString>;
956
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
957
+ notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
958
+ roles: import("zod").ZodArray<import("zod").ZodObject<{
959
+ id: import("zod").ZodString;
960
+ createdAt: import("zod").ZodDate;
961
+ updatedAt: import("zod").ZodDate;
962
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
963
+ systemName: import("zod").ZodString;
964
+ displayName: import("zod").ZodString;
965
+ description: import("zod").ZodNullable<import("zod").ZodString>;
966
+ permissions: import("zod").ZodArray<import("zod").ZodObject<{
967
+ id: import("zod").ZodString;
968
+ createdAt: import("zod").ZodDate;
969
+ updatedAt: import("zod").ZodDate;
970
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
971
+ systemName: import("zod").ZodString;
972
+ displayName: import("zod").ZodString;
973
+ description: import("zod").ZodNullable<import("zod").ZodString>;
974
+ }, "strip", import("zod").ZodTypeAny, {
975
+ id: string;
976
+ description: string | null;
977
+ createdAt: Date;
978
+ updatedAt: Date;
979
+ deletedAt: Date | null;
980
+ systemName: string;
981
+ displayName: string;
982
+ }, {
983
+ id: string;
984
+ description: string | null;
985
+ createdAt: Date;
986
+ updatedAt: Date;
987
+ deletedAt: Date | null;
988
+ systemName: string;
989
+ displayName: string;
990
+ }>, "many">;
991
+ }, "strip", import("zod").ZodTypeAny, {
992
+ id: string;
993
+ description: string | null;
994
+ createdAt: Date;
995
+ updatedAt: Date;
996
+ deletedAt: Date | null;
997
+ systemName: string;
998
+ displayName: string;
999
+ permissions: {
1000
+ id: string;
1001
+ description: string | null;
1002
+ createdAt: Date;
1003
+ updatedAt: Date;
1004
+ deletedAt: Date | null;
1005
+ systemName: string;
1006
+ displayName: string;
1007
+ }[];
1008
+ }, {
1009
+ id: string;
1010
+ description: string | null;
1011
+ createdAt: Date;
1012
+ updatedAt: Date;
1013
+ deletedAt: Date | null;
1014
+ systemName: string;
1015
+ displayName: string;
1016
+ permissions: {
1017
+ id: string;
1018
+ description: string | null;
1019
+ createdAt: Date;
1020
+ updatedAt: Date;
1021
+ deletedAt: Date | null;
1022
+ systemName: string;
1023
+ displayName: string;
1024
+ }[];
1025
+ }>, "many">;
1026
+ extension: import("zod").ZodOptional<import("zod").ZodObject<{
1027
+ id: import("zod").ZodString;
1028
+ createdAt: import("zod").ZodDate;
1029
+ updatedAt: import("zod").ZodDate;
1030
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1031
+ userId: import("zod").ZodNullable<import("zod").ZodString>;
1032
+ sipServerUrl: import("zod").ZodString;
1033
+ sipUserName: import("zod").ZodString;
1034
+ extensionId: import("zod").ZodNumber;
1035
+ extensionName: import("zod").ZodString;
1036
+ telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
1037
+ }, "strip", import("zod").ZodTypeAny, {
1038
+ id: string;
1039
+ createdAt: Date;
1040
+ updatedAt: Date;
1041
+ deletedAt: Date | null;
1042
+ userId: string | null;
1043
+ sipServerUrl: string;
1044
+ sipUserName: string;
1045
+ extensionId: number;
1046
+ extensionName: string;
1047
+ telephonySignature: string | null;
1048
+ }, {
1049
+ id: string;
1050
+ createdAt: Date;
1051
+ updatedAt: Date;
1052
+ deletedAt: Date | null;
1053
+ userId: string | null;
1054
+ sipServerUrl: string;
1055
+ sipUserName: string;
1056
+ extensionId: number;
1057
+ extensionName: string;
1058
+ telephonySignature: string | null;
1059
+ }>>;
1060
+ }, "strip", import("zod").ZodTypeAny, {
1061
+ id: string;
1062
+ address: string | null;
1063
+ name: string;
1064
+ email: string;
1065
+ createdAt: Date;
1066
+ updatedAt: Date;
1067
+ deletedAt: Date | null;
1068
+ emailVerifiedAt: Date | null;
1069
+ password: string;
1070
+ phone: string | null;
1071
+ notificationCount: number | null;
1072
+ roles: {
1073
+ id: string;
1074
+ description: string | null;
1075
+ createdAt: Date;
1076
+ updatedAt: Date;
1077
+ deletedAt: Date | null;
1078
+ systemName: string;
1079
+ displayName: string;
1080
+ permissions: {
1081
+ id: string;
1082
+ description: string | null;
1083
+ createdAt: Date;
1084
+ updatedAt: Date;
1085
+ deletedAt: Date | null;
1086
+ systemName: string;
1087
+ displayName: string;
1088
+ }[];
1089
+ }[];
1090
+ extension?: {
1091
+ id: string;
1092
+ createdAt: Date;
1093
+ updatedAt: Date;
1094
+ deletedAt: Date | null;
1095
+ userId: string | null;
1096
+ sipServerUrl: string;
1097
+ sipUserName: string;
1098
+ extensionId: number;
1099
+ extensionName: string;
1100
+ telephonySignature: string | null;
1101
+ } | undefined;
1102
+ }, {
1103
+ id: string;
1104
+ address: string | null;
1105
+ name: string;
1106
+ email: string;
1107
+ createdAt: Date;
1108
+ updatedAt: Date;
1109
+ deletedAt: Date | null;
1110
+ emailVerifiedAt: Date | null;
1111
+ password: string;
1112
+ phone: string | null;
1113
+ notificationCount: number | null;
1114
+ roles: {
1115
+ id: string;
1116
+ description: string | null;
1117
+ createdAt: Date;
1118
+ updatedAt: Date;
1119
+ deletedAt: Date | null;
1120
+ systemName: string;
1121
+ displayName: string;
1122
+ permissions: {
1123
+ id: string;
1124
+ description: string | null;
1125
+ createdAt: Date;
1126
+ updatedAt: Date;
1127
+ deletedAt: Date | null;
1128
+ systemName: string;
1129
+ displayName: string;
1130
+ }[];
1131
+ }[];
1132
+ extension?: {
1133
+ id: string;
1134
+ createdAt: Date;
1135
+ updatedAt: Date;
1136
+ deletedAt: Date | null;
1137
+ userId: string | null;
1138
+ sipServerUrl: string;
1139
+ sipUserName: string;
1140
+ extensionId: number;
1141
+ extensionName: string;
1142
+ telephonySignature: string | null;
1143
+ } | undefined;
1144
+ }>;
1145
+ assignee: import("zod").ZodObject<{
1146
+ id: import("zod").ZodString;
1147
+ createdAt: import("zod").ZodDate;
1148
+ updatedAt: import("zod").ZodDate;
1149
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1150
+ name: import("zod").ZodString;
1151
+ email: import("zod").ZodString;
1152
+ emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1153
+ password: import("zod").ZodString;
1154
+ address: import("zod").ZodNullable<import("zod").ZodString>;
1155
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
1156
+ notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
1157
+ roles: import("zod").ZodArray<import("zod").ZodObject<{
1158
+ id: import("zod").ZodString;
1159
+ createdAt: import("zod").ZodDate;
1160
+ updatedAt: import("zod").ZodDate;
1161
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1162
+ systemName: import("zod").ZodString;
1163
+ displayName: import("zod").ZodString;
1164
+ description: import("zod").ZodNullable<import("zod").ZodString>;
1165
+ permissions: import("zod").ZodArray<import("zod").ZodObject<{
1166
+ id: import("zod").ZodString;
1167
+ createdAt: import("zod").ZodDate;
1168
+ updatedAt: import("zod").ZodDate;
1169
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1170
+ systemName: import("zod").ZodString;
1171
+ displayName: import("zod").ZodString;
1172
+ description: import("zod").ZodNullable<import("zod").ZodString>;
1173
+ }, "strip", import("zod").ZodTypeAny, {
1174
+ id: string;
1175
+ description: string | null;
1176
+ createdAt: Date;
1177
+ updatedAt: Date;
1178
+ deletedAt: Date | null;
1179
+ systemName: string;
1180
+ displayName: string;
1181
+ }, {
1182
+ id: string;
1183
+ description: string | null;
1184
+ createdAt: Date;
1185
+ updatedAt: Date;
1186
+ deletedAt: Date | null;
1187
+ systemName: string;
1188
+ displayName: string;
1189
+ }>, "many">;
1190
+ }, "strip", import("zod").ZodTypeAny, {
1191
+ id: string;
1192
+ description: string | null;
1193
+ createdAt: Date;
1194
+ updatedAt: Date;
1195
+ deletedAt: Date | null;
1196
+ systemName: string;
1197
+ displayName: string;
1198
+ permissions: {
1199
+ id: string;
1200
+ description: string | null;
1201
+ createdAt: Date;
1202
+ updatedAt: Date;
1203
+ deletedAt: Date | null;
1204
+ systemName: string;
1205
+ displayName: string;
1206
+ }[];
1207
+ }, {
1208
+ id: string;
1209
+ description: string | null;
1210
+ createdAt: Date;
1211
+ updatedAt: Date;
1212
+ deletedAt: Date | null;
1213
+ systemName: string;
1214
+ displayName: string;
1215
+ permissions: {
1216
+ id: string;
1217
+ description: string | null;
1218
+ createdAt: Date;
1219
+ updatedAt: Date;
1220
+ deletedAt: Date | null;
1221
+ systemName: string;
1222
+ displayName: string;
1223
+ }[];
1224
+ }>, "many">;
1225
+ extension: import("zod").ZodOptional<import("zod").ZodObject<{
1226
+ id: import("zod").ZodString;
1227
+ createdAt: import("zod").ZodDate;
1228
+ updatedAt: import("zod").ZodDate;
1229
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1230
+ userId: import("zod").ZodNullable<import("zod").ZodString>;
1231
+ sipServerUrl: import("zod").ZodString;
1232
+ sipUserName: import("zod").ZodString;
1233
+ extensionId: import("zod").ZodNumber;
1234
+ extensionName: import("zod").ZodString;
1235
+ telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
1236
+ }, "strip", import("zod").ZodTypeAny, {
1237
+ id: string;
1238
+ createdAt: Date;
1239
+ updatedAt: Date;
1240
+ deletedAt: Date | null;
1241
+ userId: string | null;
1242
+ sipServerUrl: string;
1243
+ sipUserName: string;
1244
+ extensionId: number;
1245
+ extensionName: string;
1246
+ telephonySignature: string | null;
1247
+ }, {
1248
+ id: string;
1249
+ createdAt: Date;
1250
+ updatedAt: Date;
1251
+ deletedAt: Date | null;
1252
+ userId: string | null;
1253
+ sipServerUrl: string;
1254
+ sipUserName: string;
1255
+ extensionId: number;
1256
+ extensionName: string;
1257
+ telephonySignature: string | null;
1258
+ }>>;
1259
+ }, "strip", import("zod").ZodTypeAny, {
1260
+ id: string;
1261
+ address: string | null;
1262
+ name: string;
1263
+ email: string;
1264
+ createdAt: Date;
1265
+ updatedAt: Date;
1266
+ deletedAt: Date | null;
1267
+ emailVerifiedAt: Date | null;
1268
+ password: string;
1269
+ phone: string | null;
1270
+ notificationCount: number | null;
1271
+ roles: {
1272
+ id: string;
1273
+ description: string | null;
1274
+ createdAt: Date;
1275
+ updatedAt: Date;
1276
+ deletedAt: Date | null;
1277
+ systemName: string;
1278
+ displayName: string;
1279
+ permissions: {
1280
+ id: string;
1281
+ description: string | null;
1282
+ createdAt: Date;
1283
+ updatedAt: Date;
1284
+ deletedAt: Date | null;
1285
+ systemName: string;
1286
+ displayName: string;
1287
+ }[];
1288
+ }[];
1289
+ extension?: {
1290
+ id: string;
1291
+ createdAt: Date;
1292
+ updatedAt: Date;
1293
+ deletedAt: Date | null;
1294
+ userId: string | null;
1295
+ sipServerUrl: string;
1296
+ sipUserName: string;
1297
+ extensionId: number;
1298
+ extensionName: string;
1299
+ telephonySignature: string | null;
1300
+ } | undefined;
1301
+ }, {
1302
+ id: string;
1303
+ address: string | null;
1304
+ name: string;
1305
+ email: string;
1306
+ createdAt: Date;
1307
+ updatedAt: Date;
1308
+ deletedAt: Date | null;
1309
+ emailVerifiedAt: Date | null;
1310
+ password: string;
1311
+ phone: string | null;
1312
+ notificationCount: number | null;
1313
+ roles: {
1314
+ id: string;
1315
+ description: string | null;
1316
+ createdAt: Date;
1317
+ updatedAt: Date;
1318
+ deletedAt: Date | null;
1319
+ systemName: string;
1320
+ displayName: string;
1321
+ permissions: {
1322
+ id: string;
1323
+ description: string | null;
1324
+ createdAt: Date;
1325
+ updatedAt: Date;
1326
+ deletedAt: Date | null;
1327
+ systemName: string;
1328
+ displayName: string;
1329
+ }[];
1330
+ }[];
1331
+ extension?: {
1332
+ id: string;
1333
+ createdAt: Date;
1334
+ updatedAt: Date;
1335
+ deletedAt: Date | null;
1336
+ userId: string | null;
1337
+ sipServerUrl: string;
1338
+ sipUserName: string;
1339
+ extensionId: number;
1340
+ extensionName: string;
1341
+ telephonySignature: string | null;
1342
+ } | undefined;
1343
+ }>;
1344
+ channel: import("zod").ZodObject<{
1345
+ id: import("zod").ZodString;
1346
+ createdAt: import("zod").ZodDate;
1347
+ updatedAt: import("zod").ZodDate;
1348
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1349
+ name: import("zod").ZodString;
1350
+ type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"]>;
1351
+ metadata: import("zod").ZodObject<{
1352
+ id: import("zod").ZodString;
1353
+ name: import("zod").ZodString;
1354
+ accessToken: import("zod").ZodString;
1355
+ additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
1356
+ }, "strip", import("zod").ZodTypeAny, {
1357
+ id: string;
1358
+ name: string;
1359
+ accessToken: string;
1360
+ additionalCredentials?: any;
1361
+ }, {
1362
+ id: string;
1363
+ name: string;
1364
+ accessToken: string;
1365
+ additionalCredentials?: any;
1366
+ }>;
1367
+ brandName: import("zod").ZodString;
1368
+ platformId: import("zod").ZodString;
1369
+ status: import("zod").ZodLazy<import("zod").ZodUnion<[import("zod").ZodLiteral<1>, import("zod").ZodLiteral<0>]>>;
1370
+ isReloginRequired: import("zod").ZodBoolean;
1371
+ connectedUserName: import("zod").ZodString;
1372
+ connectedUserId: import("zod").ZodString;
1373
+ actor: import("zod").ZodAny;
1374
+ }, "strip", import("zod").ZodTypeAny, {
1375
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1376
+ id: string;
1377
+ name: string;
1378
+ metadata: {
1379
+ id: string;
1380
+ name: string;
1381
+ accessToken: string;
1382
+ additionalCredentials?: any;
1383
+ };
1384
+ status: 0 | 1;
1385
+ createdAt: Date;
1386
+ updatedAt: Date;
1387
+ deletedAt: Date | null;
1388
+ brandName: string;
1389
+ platformId: string;
1390
+ isReloginRequired: boolean;
1391
+ connectedUserName: string;
1392
+ connectedUserId: string;
1393
+ actor?: any;
1394
+ }, {
1395
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1396
+ id: string;
1397
+ name: string;
1398
+ metadata: {
1399
+ id: string;
1400
+ name: string;
1401
+ accessToken: string;
1402
+ additionalCredentials?: any;
1403
+ };
1404
+ status: 0 | 1;
1405
+ createdAt: Date;
1406
+ updatedAt: Date;
1407
+ deletedAt: Date | null;
1408
+ brandName: string;
1409
+ platformId: string;
1410
+ isReloginRequired: boolean;
1411
+ connectedUserName: string;
1412
+ connectedUserId: string;
1413
+ actor?: any;
1414
+ }>;
1415
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
1416
+ id: import("zod").ZodString;
1417
+ createdAt: import("zod").ZodDate;
1418
+ updatedAt: import("zod").ZodDate;
1419
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1420
+ name: import("zod").ZodString;
1421
+ }, "strip", import("zod").ZodTypeAny, {
1422
+ id: string;
1423
+ name: string;
1424
+ createdAt: Date;
1425
+ updatedAt: Date;
1426
+ deletedAt: Date | null;
1427
+ }, {
1428
+ id: string;
1429
+ name: string;
1430
+ createdAt: Date;
1431
+ updatedAt: Date;
1432
+ deletedAt: Date | null;
1433
+ }>, "many">;
1434
+ }, "strip", import("zod").ZodTypeAny, {
1435
+ id: string;
1436
+ channel: {
1437
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1438
+ id: string;
1439
+ name: string;
1440
+ metadata: {
1441
+ id: string;
1442
+ name: string;
1443
+ accessToken: string;
1444
+ additionalCredentials?: any;
1445
+ };
1446
+ status: 0 | 1;
1447
+ createdAt: Date;
1448
+ updatedAt: Date;
1449
+ deletedAt: Date | null;
1450
+ brandName: string;
1451
+ platformId: string;
1452
+ isReloginRequired: boolean;
1453
+ connectedUserName: string;
1454
+ connectedUserId: string;
1455
+ actor?: any;
1456
+ };
1457
+ direction: "incoming" | "outgoing" | "system";
1458
+ createdAt: Date;
1459
+ updatedAt: Date;
1460
+ deletedAt: Date | null;
1461
+ actor: {
1462
+ id: string;
1463
+ address: string | null;
1464
+ name: string;
1465
+ email: string;
1466
+ createdAt: Date;
1467
+ updatedAt: Date;
1468
+ deletedAt: Date | null;
1469
+ emailVerifiedAt: Date | null;
1470
+ password: string;
1471
+ phone: string | null;
1472
+ notificationCount: number | null;
1473
+ roles: {
1474
+ id: string;
1475
+ description: string | null;
1476
+ createdAt: Date;
1477
+ updatedAt: Date;
1478
+ deletedAt: Date | null;
1479
+ systemName: string;
1480
+ displayName: string;
1481
+ permissions: {
1482
+ id: string;
1483
+ description: string | null;
1484
+ createdAt: Date;
1485
+ updatedAt: Date;
1486
+ deletedAt: Date | null;
1487
+ systemName: string;
1488
+ displayName: string;
1489
+ }[];
1490
+ }[];
1491
+ extension?: {
1492
+ id: string;
1493
+ createdAt: Date;
1494
+ updatedAt: Date;
1495
+ deletedAt: Date | null;
1496
+ userId: string | null;
1497
+ sipServerUrl: string;
1498
+ sipUserName: string;
1499
+ extensionId: number;
1500
+ extensionName: string;
1501
+ telephonySignature: string | null;
1502
+ } | undefined;
1503
+ };
1504
+ notes: string;
1505
+ tags: {
1506
+ id: string;
1507
+ name: string;
1508
+ createdAt: Date;
1509
+ updatedAt: Date;
1510
+ deletedAt: Date | null;
1511
+ }[];
1512
+ lastMessage: string;
1513
+ handleTime: number;
1514
+ isSolved: boolean;
1515
+ closeAt: Date;
1516
+ unreadCount: number;
1517
+ firstResponseTime: Date;
1518
+ isLatest: boolean;
1519
+ platformContact: {
1520
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1521
+ id: string;
1522
+ metadata: {
1523
+ id: string;
1524
+ name: string;
1525
+ additionalCredentials?: any;
1526
+ };
1527
+ createdAt: Date;
1528
+ updatedAt: Date;
1529
+ deletedAt: Date | null;
1530
+ contact: {
1531
+ id: string;
1532
+ channel: string | null;
1533
+ address: string | null;
1534
+ name: string;
1535
+ createdAt: Date;
1536
+ updatedAt: Date;
1537
+ deletedAt: Date | null;
1538
+ customFields: {
1539
+ id: string;
1540
+ createdAt: Date;
1541
+ updatedAt: Date;
1542
+ deletedAt: Date | null;
1543
+ attribute: {
1544
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1545
+ id: string;
1546
+ position: number;
1547
+ createdAt: Date;
1548
+ updatedAt: Date;
1549
+ deletedAt: Date | null;
1550
+ isDefault: boolean;
1551
+ systemName: string;
1552
+ displayName: string;
1553
+ isArchived: boolean;
1554
+ isRequired: boolean;
1555
+ isUnique: boolean;
1556
+ };
1557
+ textValue: string | null;
1558
+ booleanValue: boolean | null;
1559
+ numberValue: number | null;
1560
+ dateValue: Date | null;
1561
+ uploads: {
1562
+ id: string;
1563
+ createdAt: Date;
1564
+ updatedAt: Date;
1565
+ deletedAt: Date | null;
1566
+ customFieldId: string;
1567
+ upload: {
1568
+ id: string;
1569
+ createdAt: Date;
1570
+ updatedAt: Date;
1571
+ deletedAt: Date | null;
1572
+ fileName: string;
1573
+ fileKey: string;
1574
+ bucketName: string;
1575
+ fileSize: number;
1576
+ };
1577
+ }[];
1578
+ }[];
1579
+ notes: string | null;
1580
+ contactProfile: string | null;
1581
+ socialProfileUrl: string | null;
1582
+ tags: {
1583
+ id: string;
1584
+ name: string;
1585
+ createdAt: Date;
1586
+ updatedAt: Date;
1587
+ deletedAt: Date | null;
1588
+ }[];
1589
+ company: {
1590
+ id: string;
1591
+ createdAt: Date;
1592
+ updatedAt: Date;
1593
+ deletedAt: Date | null;
1594
+ address?: string | undefined;
1595
+ name?: string | undefined;
1596
+ phone?: string | undefined;
1597
+ industry?: string | undefined;
1598
+ } | null;
1599
+ contactEmails: {
1600
+ id: string;
1601
+ isPrimary: boolean;
1602
+ email: string;
1603
+ createdAt: Date;
1604
+ updatedAt: Date;
1605
+ deletedAt: Date | null;
1606
+ }[];
1607
+ contactPhones: {
1608
+ id: string;
1609
+ isPrimary: boolean;
1610
+ createdAt: Date;
1611
+ updatedAt: Date;
1612
+ deletedAt: Date | null;
1613
+ phone: string;
1614
+ }[];
1615
+ activityLogs?: {
1616
+ description: string;
1617
+ entityId: string;
1618
+ entityType: {
1619
+ description: string | null;
1620
+ entity: string;
1621
+ };
1622
+ }[] | undefined;
1623
+ };
1624
+ channelId: string;
1625
+ socialPlatformId: string;
1626
+ };
1627
+ assignee: {
1628
+ id: string;
1629
+ address: string | null;
1630
+ name: string;
1631
+ email: string;
1632
+ createdAt: Date;
1633
+ updatedAt: Date;
1634
+ deletedAt: Date | null;
1635
+ emailVerifiedAt: Date | null;
1636
+ password: string;
1637
+ phone: string | null;
1638
+ notificationCount: number | null;
1639
+ roles: {
1640
+ id: string;
1641
+ description: string | null;
1642
+ createdAt: Date;
1643
+ updatedAt: Date;
1644
+ deletedAt: Date | null;
1645
+ systemName: string;
1646
+ displayName: string;
1647
+ permissions: {
1648
+ id: string;
1649
+ description: string | null;
1650
+ createdAt: Date;
1651
+ updatedAt: Date;
1652
+ deletedAt: Date | null;
1653
+ systemName: string;
1654
+ displayName: string;
1655
+ }[];
1656
+ }[];
1657
+ extension?: {
1658
+ id: string;
1659
+ createdAt: Date;
1660
+ updatedAt: Date;
1661
+ deletedAt: Date | null;
1662
+ userId: string | null;
1663
+ sipServerUrl: string;
1664
+ sipUserName: string;
1665
+ extensionId: number;
1666
+ extensionName: string;
1667
+ telephonySignature: string | null;
1668
+ } | undefined;
1669
+ };
1670
+ }, {
1671
+ id: string;
1672
+ channel: {
1673
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1674
+ id: string;
1675
+ name: string;
1676
+ metadata: {
1677
+ id: string;
1678
+ name: string;
1679
+ accessToken: string;
1680
+ additionalCredentials?: any;
1681
+ };
1682
+ status: 0 | 1;
1683
+ createdAt: Date;
1684
+ updatedAt: Date;
1685
+ deletedAt: Date | null;
1686
+ brandName: string;
1687
+ platformId: string;
1688
+ isReloginRequired: boolean;
1689
+ connectedUserName: string;
1690
+ connectedUserId: string;
1691
+ actor?: any;
1692
+ };
1693
+ direction: "incoming" | "outgoing" | "system";
1694
+ createdAt: Date;
1695
+ updatedAt: Date;
1696
+ deletedAt: Date | null;
1697
+ actor: {
1698
+ id: string;
1699
+ address: string | null;
1700
+ name: string;
1701
+ email: string;
1702
+ createdAt: Date;
1703
+ updatedAt: Date;
1704
+ deletedAt: Date | null;
1705
+ emailVerifiedAt: Date | null;
1706
+ password: string;
1707
+ phone: string | null;
1708
+ notificationCount: number | null;
1709
+ roles: {
1710
+ id: string;
1711
+ description: string | null;
1712
+ createdAt: Date;
1713
+ updatedAt: Date;
1714
+ deletedAt: Date | null;
1715
+ systemName: string;
1716
+ displayName: string;
1717
+ permissions: {
1718
+ id: string;
1719
+ description: string | null;
1720
+ createdAt: Date;
1721
+ updatedAt: Date;
1722
+ deletedAt: Date | null;
1723
+ systemName: string;
1724
+ displayName: string;
1725
+ }[];
1726
+ }[];
1727
+ extension?: {
1728
+ id: string;
1729
+ createdAt: Date;
1730
+ updatedAt: Date;
1731
+ deletedAt: Date | null;
1732
+ userId: string | null;
1733
+ sipServerUrl: string;
1734
+ sipUserName: string;
1735
+ extensionId: number;
1736
+ extensionName: string;
1737
+ telephonySignature: string | null;
1738
+ } | undefined;
1739
+ };
1740
+ notes: string;
1741
+ tags: {
1742
+ id: string;
1743
+ name: string;
1744
+ createdAt: Date;
1745
+ updatedAt: Date;
1746
+ deletedAt: Date | null;
1747
+ }[];
1748
+ lastMessage: string;
1749
+ handleTime: number;
1750
+ isSolved: boolean;
1751
+ closeAt: Date;
1752
+ unreadCount: number;
1753
+ firstResponseTime: Date;
1754
+ isLatest: boolean;
1755
+ platformContact: {
1756
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1757
+ id: string;
1758
+ metadata: {
1759
+ id: string;
1760
+ name: string;
1761
+ additionalCredentials?: any;
1762
+ };
1763
+ createdAt: Date;
1764
+ updatedAt: Date;
1765
+ deletedAt: Date | null;
1766
+ contact: {
1767
+ id: string;
1768
+ channel: string | null;
1769
+ address: string | null;
1770
+ name: string;
1771
+ createdAt: Date;
1772
+ updatedAt: Date;
1773
+ deletedAt: Date | null;
1774
+ customFields: {
1775
+ id: string;
1776
+ createdAt: Date;
1777
+ updatedAt: Date;
1778
+ deletedAt: Date | null;
1779
+ attribute: {
1780
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1781
+ id: string;
1782
+ position: number;
1783
+ createdAt: Date;
1784
+ updatedAt: Date;
1785
+ deletedAt: Date | null;
1786
+ isDefault: boolean;
1787
+ systemName: string;
1788
+ displayName: string;
1789
+ isArchived: boolean;
1790
+ isRequired: boolean;
1791
+ isUnique: boolean;
1792
+ };
1793
+ textValue: string | null;
1794
+ booleanValue: boolean | null;
1795
+ numberValue: number | null;
1796
+ dateValue: Date | null;
1797
+ uploads: {
1798
+ id: string;
1799
+ createdAt: Date;
1800
+ updatedAt: Date;
1801
+ deletedAt: Date | null;
1802
+ customFieldId: string;
1803
+ upload: {
1804
+ id: string;
1805
+ createdAt: Date;
1806
+ updatedAt: Date;
1807
+ deletedAt: Date | null;
1808
+ fileName: string;
1809
+ fileKey: string;
1810
+ bucketName: string;
1811
+ fileSize: number;
1812
+ };
1813
+ }[];
1814
+ }[];
1815
+ notes: string | null;
1816
+ contactProfile: string | null;
1817
+ socialProfileUrl: string | null;
1818
+ tags: {
1819
+ id: string;
1820
+ name: string;
1821
+ createdAt: Date;
1822
+ updatedAt: Date;
1823
+ deletedAt: Date | null;
1824
+ }[];
1825
+ company: {
1826
+ id: string;
1827
+ createdAt: Date;
1828
+ updatedAt: Date;
1829
+ deletedAt: Date | null;
1830
+ address?: string | undefined;
1831
+ name?: string | undefined;
1832
+ phone?: string | undefined;
1833
+ industry?: string | undefined;
1834
+ } | null;
1835
+ contactEmails: {
1836
+ id: string;
1837
+ isPrimary: boolean;
1838
+ email: string;
1839
+ createdAt: Date;
1840
+ updatedAt: Date;
1841
+ deletedAt: Date | null;
1842
+ }[];
1843
+ contactPhones: {
1844
+ id: string;
1845
+ isPrimary: boolean;
1846
+ createdAt: Date;
1847
+ updatedAt: Date;
1848
+ deletedAt: Date | null;
1849
+ phone: string;
1850
+ }[];
1851
+ activityLogs?: {
1852
+ description: string;
1853
+ entityId: string;
1854
+ entityType: {
1855
+ description: string | null;
1856
+ entity: string;
1857
+ };
1858
+ }[] | undefined;
1859
+ };
1860
+ channelId: string;
1861
+ socialPlatformId: string;
1862
+ };
1863
+ assignee: {
1864
+ id: string;
1865
+ address: string | null;
1866
+ name: string;
1867
+ email: string;
1868
+ createdAt: Date;
1869
+ updatedAt: Date;
1870
+ deletedAt: Date | null;
1871
+ emailVerifiedAt: Date | null;
1872
+ password: string;
1873
+ phone: string | null;
1874
+ notificationCount: number | null;
1875
+ roles: {
1876
+ id: string;
1877
+ description: string | null;
1878
+ createdAt: Date;
1879
+ updatedAt: Date;
1880
+ deletedAt: Date | null;
1881
+ systemName: string;
1882
+ displayName: string;
1883
+ permissions: {
1884
+ id: string;
1885
+ description: string | null;
1886
+ createdAt: Date;
1887
+ updatedAt: Date;
1888
+ deletedAt: Date | null;
1889
+ systemName: string;
1890
+ displayName: string;
1891
+ }[];
1892
+ }[];
1893
+ extension?: {
1894
+ id: string;
1895
+ createdAt: Date;
1896
+ updatedAt: Date;
1897
+ deletedAt: Date | null;
1898
+ userId: string | null;
1899
+ sipServerUrl: string;
1900
+ sipUserName: string;
1901
+ extensionId: number;
1902
+ extensionName: string;
1903
+ telephonySignature: string | null;
1904
+ } | undefined;
1905
+ };
1906
+ }>;
1907
+ message: import("zod").ZodObject<{
1908
+ id: import("zod").ZodString;
1909
+ createdAt: import("zod").ZodDate;
1910
+ updatedAt: import("zod").ZodDate;
1911
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1912
+ message: import("zod").ZodString;
1913
+ direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
1914
+ type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
1915
+ user: import("zod").ZodObject<{
1916
+ id: import("zod").ZodString;
1917
+ createdAt: import("zod").ZodDate;
1918
+ updatedAt: import("zod").ZodDate;
1919
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1920
+ name: import("zod").ZodString;
1921
+ email: import("zod").ZodString;
1922
+ emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1923
+ password: import("zod").ZodString;
1924
+ address: import("zod").ZodNullable<import("zod").ZodString>;
1925
+ phone: import("zod").ZodNullable<import("zod").ZodString>;
1926
+ notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
1927
+ roles: import("zod").ZodArray<import("zod").ZodObject<{
1928
+ id: import("zod").ZodString;
1929
+ createdAt: import("zod").ZodDate;
1930
+ updatedAt: import("zod").ZodDate;
1931
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1932
+ systemName: import("zod").ZodString;
1933
+ displayName: import("zod").ZodString;
1934
+ description: import("zod").ZodNullable<import("zod").ZodString>;
1935
+ permissions: import("zod").ZodArray<import("zod").ZodObject<{
1936
+ id: import("zod").ZodString;
1937
+ createdAt: import("zod").ZodDate;
1938
+ updatedAt: import("zod").ZodDate;
1939
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1940
+ systemName: import("zod").ZodString;
1941
+ displayName: import("zod").ZodString;
1942
+ description: import("zod").ZodNullable<import("zod").ZodString>;
1943
+ }, "strip", import("zod").ZodTypeAny, {
1944
+ id: string;
1945
+ description: string | null;
1946
+ createdAt: Date;
1947
+ updatedAt: Date;
1948
+ deletedAt: Date | null;
1949
+ systemName: string;
1950
+ displayName: string;
1951
+ }, {
1952
+ id: string;
1953
+ description: string | null;
1954
+ createdAt: Date;
1955
+ updatedAt: Date;
1956
+ deletedAt: Date | null;
1957
+ systemName: string;
1958
+ displayName: string;
1959
+ }>, "many">;
1960
+ }, "strip", import("zod").ZodTypeAny, {
1961
+ id: string;
1962
+ description: string | null;
1963
+ createdAt: Date;
1964
+ updatedAt: Date;
1965
+ deletedAt: Date | null;
1966
+ systemName: string;
1967
+ displayName: string;
1968
+ permissions: {
1969
+ id: string;
1970
+ description: string | null;
1971
+ createdAt: Date;
1972
+ updatedAt: Date;
1973
+ deletedAt: Date | null;
1974
+ systemName: string;
1975
+ displayName: string;
1976
+ }[];
1977
+ }, {
1978
+ id: string;
1979
+ description: string | null;
1980
+ createdAt: Date;
1981
+ updatedAt: Date;
1982
+ deletedAt: Date | null;
1983
+ systemName: string;
1984
+ displayName: string;
1985
+ permissions: {
1986
+ id: string;
1987
+ description: string | null;
1988
+ createdAt: Date;
1989
+ updatedAt: Date;
1990
+ deletedAt: Date | null;
1991
+ systemName: string;
1992
+ displayName: string;
1993
+ }[];
1994
+ }>, "many">;
1995
+ extension: import("zod").ZodOptional<import("zod").ZodObject<{
1996
+ id: import("zod").ZodString;
1997
+ createdAt: import("zod").ZodDate;
1998
+ updatedAt: import("zod").ZodDate;
1999
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2000
+ userId: import("zod").ZodNullable<import("zod").ZodString>;
2001
+ sipServerUrl: import("zod").ZodString;
2002
+ sipUserName: import("zod").ZodString;
2003
+ extensionId: import("zod").ZodNumber;
2004
+ extensionName: import("zod").ZodString;
2005
+ telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
2006
+ }, "strip", import("zod").ZodTypeAny, {
2007
+ id: string;
2008
+ createdAt: Date;
2009
+ updatedAt: Date;
2010
+ deletedAt: Date | null;
2011
+ userId: string | null;
2012
+ sipServerUrl: string;
2013
+ sipUserName: string;
2014
+ extensionId: number;
2015
+ extensionName: string;
2016
+ telephonySignature: string | null;
2017
+ }, {
2018
+ id: string;
2019
+ createdAt: Date;
2020
+ updatedAt: Date;
2021
+ deletedAt: Date | null;
2022
+ userId: string | null;
2023
+ sipServerUrl: string;
2024
+ sipUserName: string;
2025
+ extensionId: number;
2026
+ extensionName: string;
2027
+ telephonySignature: string | null;
2028
+ }>>;
2029
+ }, "strip", import("zod").ZodTypeAny, {
2030
+ id: string;
2031
+ address: string | null;
2032
+ name: string;
2033
+ email: string;
2034
+ createdAt: Date;
2035
+ updatedAt: Date;
2036
+ deletedAt: Date | null;
2037
+ emailVerifiedAt: Date | null;
2038
+ password: string;
2039
+ phone: string | null;
2040
+ notificationCount: number | null;
2041
+ roles: {
2042
+ id: string;
2043
+ description: string | null;
2044
+ createdAt: Date;
2045
+ updatedAt: Date;
2046
+ deletedAt: Date | null;
2047
+ systemName: string;
2048
+ displayName: string;
2049
+ permissions: {
2050
+ id: string;
2051
+ description: string | null;
2052
+ createdAt: Date;
2053
+ updatedAt: Date;
2054
+ deletedAt: Date | null;
2055
+ systemName: string;
2056
+ displayName: string;
2057
+ }[];
2058
+ }[];
2059
+ extension?: {
2060
+ id: string;
2061
+ createdAt: Date;
2062
+ updatedAt: Date;
2063
+ deletedAt: Date | null;
2064
+ userId: string | null;
2065
+ sipServerUrl: string;
2066
+ sipUserName: string;
2067
+ extensionId: number;
2068
+ extensionName: string;
2069
+ telephonySignature: string | null;
2070
+ } | undefined;
2071
+ }, {
2072
+ id: string;
2073
+ address: string | null;
2074
+ name: string;
2075
+ email: string;
2076
+ createdAt: Date;
2077
+ updatedAt: Date;
2078
+ deletedAt: Date | null;
2079
+ emailVerifiedAt: Date | null;
2080
+ password: string;
2081
+ phone: string | null;
2082
+ notificationCount: number | null;
2083
+ roles: {
2084
+ id: string;
2085
+ description: string | null;
2086
+ createdAt: Date;
2087
+ updatedAt: Date;
2088
+ deletedAt: Date | null;
2089
+ systemName: string;
2090
+ displayName: string;
2091
+ permissions: {
2092
+ id: string;
2093
+ description: string | null;
2094
+ createdAt: Date;
2095
+ updatedAt: Date;
2096
+ deletedAt: Date | null;
2097
+ systemName: string;
2098
+ displayName: string;
2099
+ }[];
2100
+ }[];
2101
+ extension?: {
2102
+ id: string;
2103
+ createdAt: Date;
2104
+ updatedAt: Date;
2105
+ deletedAt: Date | null;
2106
+ userId: string | null;
2107
+ sipServerUrl: string;
2108
+ sipUserName: string;
2109
+ extensionId: number;
2110
+ extensionName: string;
2111
+ telephonySignature: string | null;
2112
+ } | undefined;
2113
+ }>;
2114
+ readAt: import("zod").ZodDate;
2115
+ metadata: import("zod").ZodAny;
2116
+ platformId: import("zod").ZodString;
2117
+ replyPlatformMessageId: import("zod").ZodString;
2118
+ platformMessageId: import("zod").ZodString;
2119
+ upload: import("zod").ZodObject<{
2120
+ id: import("zod").ZodString;
2121
+ createdAt: import("zod").ZodDate;
2122
+ updatedAt: import("zod").ZodDate;
2123
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2124
+ bucketName: import("zod").ZodString;
2125
+ fileName: import("zod").ZodString;
2126
+ fileSize: import("zod").ZodNumber;
2127
+ fileKey: import("zod").ZodString;
2128
+ }, "strip", import("zod").ZodTypeAny, {
2129
+ id: string;
2130
+ createdAt: Date;
2131
+ updatedAt: Date;
2132
+ deletedAt: Date | null;
2133
+ fileName: string;
2134
+ fileKey: string;
2135
+ bucketName: string;
2136
+ fileSize: number;
2137
+ }, {
2138
+ id: string;
2139
+ createdAt: Date;
2140
+ updatedAt: Date;
2141
+ deletedAt: Date | null;
2142
+ fileName: string;
2143
+ fileKey: string;
2144
+ bucketName: string;
2145
+ fileSize: number;
2146
+ }>;
2147
+ template: import("zod").ZodAny;
2148
+ locale: import("zod").ZodEnum<["mm", "en", "th"]>;
2149
+ isSent: import("zod").ZodBoolean;
2150
+ }, "strip", import("zod").ZodTypeAny, {
2151
+ type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
2152
+ message: string;
2153
+ id: string;
2154
+ direction: "incoming" | "outgoing" | "system";
2155
+ user: {
2156
+ id: string;
2157
+ address: string | null;
2158
+ name: string;
2159
+ email: string;
2160
+ createdAt: Date;
2161
+ updatedAt: Date;
2162
+ deletedAt: Date | null;
2163
+ emailVerifiedAt: Date | null;
2164
+ password: string;
2165
+ phone: string | null;
2166
+ notificationCount: number | null;
2167
+ roles: {
2168
+ id: string;
2169
+ description: string | null;
2170
+ createdAt: Date;
2171
+ updatedAt: Date;
2172
+ deletedAt: Date | null;
2173
+ systemName: string;
2174
+ displayName: string;
2175
+ permissions: {
2176
+ id: string;
2177
+ description: string | null;
2178
+ createdAt: Date;
2179
+ updatedAt: Date;
2180
+ deletedAt: Date | null;
2181
+ systemName: string;
2182
+ displayName: string;
2183
+ }[];
2184
+ }[];
2185
+ extension?: {
2186
+ id: string;
2187
+ createdAt: Date;
2188
+ updatedAt: Date;
2189
+ deletedAt: Date | null;
2190
+ userId: string | null;
2191
+ sipServerUrl: string;
2192
+ sipUserName: string;
2193
+ extensionId: number;
2194
+ extensionName: string;
2195
+ telephonySignature: string | null;
2196
+ } | undefined;
2197
+ };
2198
+ createdAt: Date;
2199
+ updatedAt: Date;
2200
+ deletedAt: Date | null;
2201
+ platformId: string;
2202
+ upload: {
2203
+ id: string;
2204
+ createdAt: Date;
2205
+ updatedAt: Date;
2206
+ deletedAt: Date | null;
2207
+ fileName: string;
2208
+ fileKey: string;
2209
+ bucketName: string;
2210
+ fileSize: number;
2211
+ };
2212
+ readAt: Date;
2213
+ replyPlatformMessageId: string;
2214
+ platformMessageId: string;
2215
+ locale: "th" | "mm" | "en";
2216
+ isSent: boolean;
2217
+ metadata?: any;
2218
+ template?: any;
2219
+ }, {
2220
+ type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
2221
+ message: string;
2222
+ id: string;
2223
+ direction: "incoming" | "outgoing" | "system";
2224
+ user: {
2225
+ id: string;
2226
+ address: string | null;
2227
+ name: string;
2228
+ email: string;
2229
+ createdAt: Date;
2230
+ updatedAt: Date;
2231
+ deletedAt: Date | null;
2232
+ emailVerifiedAt: Date | null;
2233
+ password: string;
2234
+ phone: string | null;
2235
+ notificationCount: number | null;
2236
+ roles: {
2237
+ id: string;
2238
+ description: string | null;
2239
+ createdAt: Date;
2240
+ updatedAt: Date;
2241
+ deletedAt: Date | null;
2242
+ systemName: string;
2243
+ displayName: string;
2244
+ permissions: {
2245
+ id: string;
2246
+ description: string | null;
2247
+ createdAt: Date;
2248
+ updatedAt: Date;
2249
+ deletedAt: Date | null;
2250
+ systemName: string;
2251
+ displayName: string;
2252
+ }[];
2253
+ }[];
2254
+ extension?: {
2255
+ id: string;
2256
+ createdAt: Date;
2257
+ updatedAt: Date;
2258
+ deletedAt: Date | null;
2259
+ userId: string | null;
2260
+ sipServerUrl: string;
2261
+ sipUserName: string;
2262
+ extensionId: number;
2263
+ extensionName: string;
2264
+ telephonySignature: string | null;
2265
+ } | undefined;
2266
+ };
2267
+ createdAt: Date;
2268
+ updatedAt: Date;
2269
+ deletedAt: Date | null;
2270
+ platformId: string;
2271
+ upload: {
2272
+ id: string;
2273
+ createdAt: Date;
2274
+ updatedAt: Date;
2275
+ deletedAt: Date | null;
2276
+ fileName: string;
2277
+ fileKey: string;
2278
+ bucketName: string;
2279
+ fileSize: number;
2280
+ };
2281
+ readAt: Date;
2282
+ replyPlatformMessageId: string;
2283
+ platformMessageId: string;
2284
+ locale: "th" | "mm" | "en";
2285
+ isSent: boolean;
2286
+ metadata?: any;
2287
+ template?: any;
2288
+ }>;
2289
+ upload: import("zod").ZodObject<{
2290
+ id: import("zod").ZodString;
2291
+ createdAt: import("zod").ZodDate;
2292
+ updatedAt: import("zod").ZodDate;
2293
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2294
+ bucketName: import("zod").ZodString;
2295
+ fileName: import("zod").ZodString;
2296
+ fileSize: import("zod").ZodNumber;
2297
+ fileKey: import("zod").ZodString;
2298
+ }, "strip", import("zod").ZodTypeAny, {
2299
+ id: string;
2300
+ createdAt: Date;
2301
+ updatedAt: Date;
2302
+ deletedAt: Date | null;
2303
+ fileName: string;
2304
+ fileKey: string;
2305
+ bucketName: string;
2306
+ fileSize: number;
2307
+ }, {
2308
+ id: string;
2309
+ createdAt: Date;
2310
+ updatedAt: Date;
2311
+ deletedAt: Date | null;
2312
+ fileName: string;
2313
+ fileKey: string;
2314
+ bucketName: string;
2315
+ fileSize: number;
2316
+ }>;
2317
+ }, "strip", import("zod").ZodTypeAny, {
2318
+ message: {
2319
+ type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
2320
+ message: string;
2321
+ id: string;
2322
+ direction: "incoming" | "outgoing" | "system";
2323
+ user: {
2324
+ id: string;
2325
+ address: string | null;
2326
+ name: string;
2327
+ email: string;
2328
+ createdAt: Date;
2329
+ updatedAt: Date;
2330
+ deletedAt: Date | null;
2331
+ emailVerifiedAt: Date | null;
2332
+ password: string;
2333
+ phone: string | null;
2334
+ notificationCount: number | null;
2335
+ roles: {
2336
+ id: string;
2337
+ description: string | null;
2338
+ createdAt: Date;
2339
+ updatedAt: Date;
2340
+ deletedAt: Date | null;
2341
+ systemName: string;
2342
+ displayName: string;
2343
+ permissions: {
2344
+ id: string;
2345
+ description: string | null;
2346
+ createdAt: Date;
2347
+ updatedAt: Date;
2348
+ deletedAt: Date | null;
2349
+ systemName: string;
2350
+ displayName: string;
2351
+ }[];
2352
+ }[];
2353
+ extension?: {
2354
+ id: string;
2355
+ createdAt: Date;
2356
+ updatedAt: Date;
2357
+ deletedAt: Date | null;
2358
+ userId: string | null;
2359
+ sipServerUrl: string;
2360
+ sipUserName: string;
2361
+ extensionId: number;
2362
+ extensionName: string;
2363
+ telephonySignature: string | null;
2364
+ } | undefined;
2365
+ };
2366
+ createdAt: Date;
2367
+ updatedAt: Date;
2368
+ deletedAt: Date | null;
2369
+ platformId: string;
2370
+ upload: {
2371
+ id: string;
2372
+ createdAt: Date;
2373
+ updatedAt: Date;
2374
+ deletedAt: Date | null;
2375
+ fileName: string;
2376
+ fileKey: string;
2377
+ bucketName: string;
2378
+ fileSize: number;
2379
+ };
2380
+ readAt: Date;
2381
+ replyPlatformMessageId: string;
2382
+ platformMessageId: string;
2383
+ locale: "th" | "mm" | "en";
2384
+ isSent: boolean;
2385
+ metadata?: any;
2386
+ template?: any;
2387
+ };
2388
+ upload: {
2389
+ id: string;
2390
+ createdAt: Date;
2391
+ updatedAt: Date;
2392
+ deletedAt: Date | null;
2393
+ fileName: string;
2394
+ fileKey: string;
2395
+ bucketName: string;
2396
+ fileSize: number;
2397
+ };
2398
+ room: {
2399
+ id: string;
2400
+ channel: {
2401
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2402
+ id: string;
2403
+ name: string;
2404
+ metadata: {
2405
+ id: string;
2406
+ name: string;
2407
+ accessToken: string;
2408
+ additionalCredentials?: any;
2409
+ };
2410
+ status: 0 | 1;
2411
+ createdAt: Date;
2412
+ updatedAt: Date;
2413
+ deletedAt: Date | null;
2414
+ brandName: string;
2415
+ platformId: string;
2416
+ isReloginRequired: boolean;
2417
+ connectedUserName: string;
2418
+ connectedUserId: string;
2419
+ actor?: any;
2420
+ };
2421
+ direction: "incoming" | "outgoing" | "system";
2422
+ createdAt: Date;
2423
+ updatedAt: Date;
2424
+ deletedAt: Date | null;
2425
+ actor: {
2426
+ id: string;
2427
+ address: string | null;
2428
+ name: string;
2429
+ email: string;
2430
+ createdAt: Date;
2431
+ updatedAt: Date;
2432
+ deletedAt: Date | null;
2433
+ emailVerifiedAt: Date | null;
2434
+ password: string;
2435
+ phone: string | null;
2436
+ notificationCount: number | null;
2437
+ roles: {
2438
+ id: string;
2439
+ description: string | null;
2440
+ createdAt: Date;
2441
+ updatedAt: Date;
2442
+ deletedAt: Date | null;
2443
+ systemName: string;
2444
+ displayName: string;
2445
+ permissions: {
2446
+ id: string;
2447
+ description: string | null;
2448
+ createdAt: Date;
2449
+ updatedAt: Date;
2450
+ deletedAt: Date | null;
2451
+ systemName: string;
2452
+ displayName: string;
2453
+ }[];
2454
+ }[];
2455
+ extension?: {
2456
+ id: string;
2457
+ createdAt: Date;
2458
+ updatedAt: Date;
2459
+ deletedAt: Date | null;
2460
+ userId: string | null;
2461
+ sipServerUrl: string;
2462
+ sipUserName: string;
2463
+ extensionId: number;
2464
+ extensionName: string;
2465
+ telephonySignature: string | null;
2466
+ } | undefined;
2467
+ };
2468
+ notes: string;
2469
+ tags: {
2470
+ id: string;
2471
+ name: string;
2472
+ createdAt: Date;
2473
+ updatedAt: Date;
2474
+ deletedAt: Date | null;
2475
+ }[];
2476
+ lastMessage: string;
2477
+ handleTime: number;
2478
+ isSolved: boolean;
2479
+ closeAt: Date;
2480
+ unreadCount: number;
2481
+ firstResponseTime: Date;
2482
+ isLatest: boolean;
2483
+ platformContact: {
2484
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2485
+ id: string;
2486
+ metadata: {
2487
+ id: string;
2488
+ name: string;
2489
+ additionalCredentials?: any;
2490
+ };
2491
+ createdAt: Date;
2492
+ updatedAt: Date;
2493
+ deletedAt: Date | null;
2494
+ contact: {
2495
+ id: string;
2496
+ channel: string | null;
2497
+ address: string | null;
2498
+ name: string;
2499
+ createdAt: Date;
2500
+ updatedAt: Date;
2501
+ deletedAt: Date | null;
2502
+ customFields: {
2503
+ id: string;
2504
+ createdAt: Date;
2505
+ updatedAt: Date;
2506
+ deletedAt: Date | null;
2507
+ attribute: {
2508
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2509
+ id: string;
2510
+ position: number;
2511
+ createdAt: Date;
2512
+ updatedAt: Date;
2513
+ deletedAt: Date | null;
2514
+ isDefault: boolean;
2515
+ systemName: string;
2516
+ displayName: string;
2517
+ isArchived: boolean;
2518
+ isRequired: boolean;
2519
+ isUnique: boolean;
2520
+ };
2521
+ textValue: string | null;
2522
+ booleanValue: boolean | null;
2523
+ numberValue: number | null;
2524
+ dateValue: Date | null;
2525
+ uploads: {
2526
+ id: string;
2527
+ createdAt: Date;
2528
+ updatedAt: Date;
2529
+ deletedAt: Date | null;
2530
+ customFieldId: string;
2531
+ upload: {
2532
+ id: string;
2533
+ createdAt: Date;
2534
+ updatedAt: Date;
2535
+ deletedAt: Date | null;
2536
+ fileName: string;
2537
+ fileKey: string;
2538
+ bucketName: string;
2539
+ fileSize: number;
2540
+ };
2541
+ }[];
2542
+ }[];
2543
+ notes: string | null;
2544
+ contactProfile: string | null;
2545
+ socialProfileUrl: string | null;
2546
+ tags: {
2547
+ id: string;
2548
+ name: string;
2549
+ createdAt: Date;
2550
+ updatedAt: Date;
2551
+ deletedAt: Date | null;
2552
+ }[];
2553
+ company: {
2554
+ id: string;
2555
+ createdAt: Date;
2556
+ updatedAt: Date;
2557
+ deletedAt: Date | null;
2558
+ address?: string | undefined;
2559
+ name?: string | undefined;
2560
+ phone?: string | undefined;
2561
+ industry?: string | undefined;
2562
+ } | null;
2563
+ contactEmails: {
2564
+ id: string;
2565
+ isPrimary: boolean;
2566
+ email: string;
2567
+ createdAt: Date;
2568
+ updatedAt: Date;
2569
+ deletedAt: Date | null;
2570
+ }[];
2571
+ contactPhones: {
2572
+ id: string;
2573
+ isPrimary: boolean;
2574
+ createdAt: Date;
2575
+ updatedAt: Date;
2576
+ deletedAt: Date | null;
2577
+ phone: string;
2578
+ }[];
2579
+ activityLogs?: {
2580
+ description: string;
2581
+ entityId: string;
2582
+ entityType: {
2583
+ description: string | null;
2584
+ entity: string;
2585
+ };
2586
+ }[] | undefined;
2587
+ };
2588
+ channelId: string;
2589
+ socialPlatformId: string;
2590
+ };
2591
+ assignee: {
2592
+ id: string;
2593
+ address: string | null;
2594
+ name: string;
2595
+ email: string;
2596
+ createdAt: Date;
2597
+ updatedAt: Date;
2598
+ deletedAt: Date | null;
2599
+ emailVerifiedAt: Date | null;
2600
+ password: string;
2601
+ phone: string | null;
2602
+ notificationCount: number | null;
2603
+ roles: {
2604
+ id: string;
2605
+ description: string | null;
2606
+ createdAt: Date;
2607
+ updatedAt: Date;
2608
+ deletedAt: Date | null;
2609
+ systemName: string;
2610
+ displayName: string;
2611
+ permissions: {
2612
+ id: string;
2613
+ description: string | null;
2614
+ createdAt: Date;
2615
+ updatedAt: Date;
2616
+ deletedAt: Date | null;
2617
+ systemName: string;
2618
+ displayName: string;
2619
+ }[];
2620
+ }[];
2621
+ extension?: {
2622
+ id: string;
2623
+ createdAt: Date;
2624
+ updatedAt: Date;
2625
+ deletedAt: Date | null;
2626
+ userId: string | null;
2627
+ sipServerUrl: string;
2628
+ sipUserName: string;
2629
+ extensionId: number;
2630
+ extensionName: string;
2631
+ telephonySignature: string | null;
2632
+ } | undefined;
2633
+ };
2634
+ };
2635
+ }, {
2636
+ message: {
2637
+ type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
2638
+ message: string;
2639
+ id: string;
2640
+ direction: "incoming" | "outgoing" | "system";
2641
+ user: {
2642
+ id: string;
2643
+ address: string | null;
2644
+ name: string;
2645
+ email: string;
2646
+ createdAt: Date;
2647
+ updatedAt: Date;
2648
+ deletedAt: Date | null;
2649
+ emailVerifiedAt: Date | null;
2650
+ password: string;
2651
+ phone: string | null;
2652
+ notificationCount: number | null;
2653
+ roles: {
2654
+ id: string;
2655
+ description: string | null;
2656
+ createdAt: Date;
2657
+ updatedAt: Date;
2658
+ deletedAt: Date | null;
2659
+ systemName: string;
2660
+ displayName: string;
2661
+ permissions: {
2662
+ id: string;
2663
+ description: string | null;
2664
+ createdAt: Date;
2665
+ updatedAt: Date;
2666
+ deletedAt: Date | null;
2667
+ systemName: string;
2668
+ displayName: string;
2669
+ }[];
2670
+ }[];
2671
+ extension?: {
2672
+ id: string;
2673
+ createdAt: Date;
2674
+ updatedAt: Date;
2675
+ deletedAt: Date | null;
2676
+ userId: string | null;
2677
+ sipServerUrl: string;
2678
+ sipUserName: string;
2679
+ extensionId: number;
2680
+ extensionName: string;
2681
+ telephonySignature: string | null;
2682
+ } | undefined;
2683
+ };
2684
+ createdAt: Date;
2685
+ updatedAt: Date;
2686
+ deletedAt: Date | null;
2687
+ platformId: string;
2688
+ upload: {
2689
+ id: string;
2690
+ createdAt: Date;
2691
+ updatedAt: Date;
2692
+ deletedAt: Date | null;
2693
+ fileName: string;
2694
+ fileKey: string;
2695
+ bucketName: string;
2696
+ fileSize: number;
2697
+ };
2698
+ readAt: Date;
2699
+ replyPlatformMessageId: string;
2700
+ platformMessageId: string;
2701
+ locale: "th" | "mm" | "en";
2702
+ isSent: boolean;
2703
+ metadata?: any;
2704
+ template?: any;
2705
+ };
2706
+ upload: {
2707
+ id: string;
2708
+ createdAt: Date;
2709
+ updatedAt: Date;
2710
+ deletedAt: Date | null;
2711
+ fileName: string;
2712
+ fileKey: string;
2713
+ bucketName: string;
2714
+ fileSize: number;
2715
+ };
2716
+ room: {
2717
+ id: string;
2718
+ channel: {
2719
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2720
+ id: string;
2721
+ name: string;
2722
+ metadata: {
2723
+ id: string;
2724
+ name: string;
2725
+ accessToken: string;
2726
+ additionalCredentials?: any;
2727
+ };
2728
+ status: 0 | 1;
2729
+ createdAt: Date;
2730
+ updatedAt: Date;
2731
+ deletedAt: Date | null;
2732
+ brandName: string;
2733
+ platformId: string;
2734
+ isReloginRequired: boolean;
2735
+ connectedUserName: string;
2736
+ connectedUserId: string;
2737
+ actor?: any;
2738
+ };
2739
+ direction: "incoming" | "outgoing" | "system";
2740
+ createdAt: Date;
2741
+ updatedAt: Date;
2742
+ deletedAt: Date | null;
2743
+ actor: {
2744
+ id: string;
2745
+ address: string | null;
2746
+ name: string;
2747
+ email: string;
2748
+ createdAt: Date;
2749
+ updatedAt: Date;
2750
+ deletedAt: Date | null;
2751
+ emailVerifiedAt: Date | null;
2752
+ password: string;
2753
+ phone: string | null;
2754
+ notificationCount: number | null;
2755
+ roles: {
2756
+ id: string;
2757
+ description: string | null;
2758
+ createdAt: Date;
2759
+ updatedAt: Date;
2760
+ deletedAt: Date | null;
2761
+ systemName: string;
2762
+ displayName: string;
2763
+ permissions: {
2764
+ id: string;
2765
+ description: string | null;
2766
+ createdAt: Date;
2767
+ updatedAt: Date;
2768
+ deletedAt: Date | null;
2769
+ systemName: string;
2770
+ displayName: string;
2771
+ }[];
2772
+ }[];
2773
+ extension?: {
2774
+ id: string;
2775
+ createdAt: Date;
2776
+ updatedAt: Date;
2777
+ deletedAt: Date | null;
2778
+ userId: string | null;
2779
+ sipServerUrl: string;
2780
+ sipUserName: string;
2781
+ extensionId: number;
2782
+ extensionName: string;
2783
+ telephonySignature: string | null;
2784
+ } | undefined;
2785
+ };
2786
+ notes: string;
2787
+ tags: {
2788
+ id: string;
2789
+ name: string;
2790
+ createdAt: Date;
2791
+ updatedAt: Date;
2792
+ deletedAt: Date | null;
2793
+ }[];
2794
+ lastMessage: string;
2795
+ handleTime: number;
2796
+ isSolved: boolean;
2797
+ closeAt: Date;
2798
+ unreadCount: number;
2799
+ firstResponseTime: Date;
2800
+ isLatest: boolean;
2801
+ platformContact: {
2802
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2803
+ id: string;
2804
+ metadata: {
2805
+ id: string;
2806
+ name: string;
2807
+ additionalCredentials?: any;
2808
+ };
2809
+ createdAt: Date;
2810
+ updatedAt: Date;
2811
+ deletedAt: Date | null;
2812
+ contact: {
2813
+ id: string;
2814
+ channel: string | null;
2815
+ address: string | null;
2816
+ name: string;
2817
+ createdAt: Date;
2818
+ updatedAt: Date;
2819
+ deletedAt: Date | null;
2820
+ customFields: {
2821
+ id: string;
2822
+ createdAt: Date;
2823
+ updatedAt: Date;
2824
+ deletedAt: Date | null;
2825
+ attribute: {
2826
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2827
+ id: string;
2828
+ position: number;
2829
+ createdAt: Date;
2830
+ updatedAt: Date;
2831
+ deletedAt: Date | null;
2832
+ isDefault: boolean;
2833
+ systemName: string;
2834
+ displayName: string;
2835
+ isArchived: boolean;
2836
+ isRequired: boolean;
2837
+ isUnique: boolean;
2838
+ };
2839
+ textValue: string | null;
2840
+ booleanValue: boolean | null;
2841
+ numberValue: number | null;
2842
+ dateValue: Date | null;
2843
+ uploads: {
2844
+ id: string;
2845
+ createdAt: Date;
2846
+ updatedAt: Date;
2847
+ deletedAt: Date | null;
2848
+ customFieldId: string;
2849
+ upload: {
2850
+ id: string;
2851
+ createdAt: Date;
2852
+ updatedAt: Date;
2853
+ deletedAt: Date | null;
2854
+ fileName: string;
2855
+ fileKey: string;
2856
+ bucketName: string;
2857
+ fileSize: number;
2858
+ };
2859
+ }[];
2860
+ }[];
2861
+ notes: string | null;
2862
+ contactProfile: string | null;
2863
+ socialProfileUrl: string | null;
2864
+ tags: {
2865
+ id: string;
2866
+ name: string;
2867
+ createdAt: Date;
2868
+ updatedAt: Date;
2869
+ deletedAt: Date | null;
2870
+ }[];
2871
+ company: {
2872
+ id: string;
2873
+ createdAt: Date;
2874
+ updatedAt: Date;
2875
+ deletedAt: Date | null;
2876
+ address?: string | undefined;
2877
+ name?: string | undefined;
2878
+ phone?: string | undefined;
2879
+ industry?: string | undefined;
2880
+ } | null;
2881
+ contactEmails: {
2882
+ id: string;
2883
+ isPrimary: boolean;
2884
+ email: string;
2885
+ createdAt: Date;
2886
+ updatedAt: Date;
2887
+ deletedAt: Date | null;
2888
+ }[];
2889
+ contactPhones: {
2890
+ id: string;
2891
+ isPrimary: boolean;
2892
+ createdAt: Date;
2893
+ updatedAt: Date;
2894
+ deletedAt: Date | null;
2895
+ phone: string;
2896
+ }[];
2897
+ activityLogs?: {
2898
+ description: string;
2899
+ entityId: string;
2900
+ entityType: {
2901
+ description: string | null;
2902
+ entity: string;
2903
+ };
2904
+ }[] | undefined;
2905
+ };
2906
+ channelId: string;
2907
+ socialPlatformId: string;
2908
+ };
2909
+ assignee: {
2910
+ id: string;
2911
+ address: string | null;
2912
+ name: string;
2913
+ email: string;
2914
+ createdAt: Date;
2915
+ updatedAt: Date;
2916
+ deletedAt: Date | null;
2917
+ emailVerifiedAt: Date | null;
2918
+ password: string;
2919
+ phone: string | null;
2920
+ notificationCount: number | null;
2921
+ roles: {
2922
+ id: string;
2923
+ description: string | null;
2924
+ createdAt: Date;
2925
+ updatedAt: Date;
2926
+ deletedAt: Date | null;
2927
+ systemName: string;
2928
+ displayName: string;
2929
+ permissions: {
2930
+ id: string;
2931
+ description: string | null;
2932
+ createdAt: Date;
2933
+ updatedAt: Date;
2934
+ deletedAt: Date | null;
2935
+ systemName: string;
2936
+ displayName: string;
2937
+ }[];
2938
+ }[];
2939
+ extension?: {
2940
+ id: string;
2941
+ createdAt: Date;
2942
+ updatedAt: Date;
2943
+ deletedAt: Date | null;
2944
+ userId: string | null;
2945
+ sipServerUrl: string;
2946
+ sipUserName: string;
2947
+ extensionId: number;
2948
+ extensionName: string;
2949
+ telephonySignature: string | null;
2950
+ } | undefined;
2951
+ };
2952
+ };
2953
+ }>;
2954
+ method: "POST";
2955
+ responses: {
2956
+ 200: import("zod").ZodObject<{
2957
+ requestId: import("zod").ZodString;
2958
+ }, "strip", import("zod").ZodTypeAny, {
2959
+ requestId: string;
2960
+ }, {
2961
+ requestId: string;
2962
+ }>;
2963
+ };
2964
+ path: "/message";
2965
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
2966
+ 'x-tenant': import("zod").ZodString;
2967
+ authorization: import("zod").ZodString;
2968
+ }, "strip", import("zod").ZodTypeAny, {
2969
+ 'x-tenant': string;
2970
+ authorization: string;
2971
+ }, {
2972
+ 'x-tenant': string;
2973
+ authorization: string;
2974
+ }>>>;
2975
+ };
2976
+ };
2977
+ //# sourceMappingURL=index.d.ts.map