@kl1/contracts 1.0.32 → 1.0.33

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 (57) hide show
  1. package/dist/index.js +1809 -1627
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1807 -1627
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/attribute/validation.d.ts.map +1 -1
  6. package/dist/src/call-log/validation.d.ts +2 -2
  7. package/dist/src/channel/index.d.ts +721 -299
  8. package/dist/src/channel/index.d.ts.map +1 -1
  9. package/dist/src/channel/validation.d.ts +0 -291
  10. package/dist/src/channel/validation.d.ts.map +1 -1
  11. package/dist/src/chat/index.d.ts +105 -104
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +16 -16
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +193 -67
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/company/index.d.ts +8 -85
  18. package/dist/src/company/index.d.ts.map +1 -1
  19. package/dist/src/company/schema.d.ts +137 -0
  20. package/dist/src/company/schema.d.ts.map +1 -1
  21. package/dist/src/company/validation.d.ts +0 -40
  22. package/dist/src/company/validation.d.ts.map +1 -1
  23. package/dist/src/contact/index.d.ts +1191 -1191
  24. package/dist/src/contract.d.ts +3159 -2340
  25. package/dist/src/contract.d.ts.map +1 -1
  26. package/dist/src/cx-log/index.d.ts +22 -22
  27. package/dist/src/cx-log/schema.d.ts +16 -16
  28. package/dist/src/dashboard/index.d.ts +11 -7
  29. package/dist/src/dashboard/index.d.ts.map +1 -1
  30. package/dist/src/dashboard/schema.d.ts +127 -2
  31. package/dist/src/dashboard/schema.d.ts.map +1 -1
  32. package/dist/src/evaluate-form/schema.d.ts +6 -6
  33. package/dist/src/index.d.ts +2 -0
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/mail/mail-contract.d.ts +42 -42
  36. package/dist/src/mail/room-contract.d.ts +42 -42
  37. package/dist/src/mail/schemas/room-validation.schema.d.ts +14 -14
  38. package/dist/src/mail/schemas/room.schema.d.ts +10 -10
  39. package/dist/src/messenger/index.d.ts +1212 -707
  40. package/dist/src/messenger/index.d.ts.map +1 -1
  41. package/dist/src/messenger/validation.d.ts +108 -1
  42. package/dist/src/messenger/validation.d.ts.map +1 -1
  43. package/dist/src/ticket/index.d.ts +207 -342
  44. package/dist/src/ticket/index.d.ts.map +1 -1
  45. package/dist/src/ticket/validation.d.ts +168 -338
  46. package/dist/src/ticket/validation.d.ts.map +1 -1
  47. package/dist/src/widget/index.d.ts +72 -1
  48. package/dist/src/widget/index.d.ts.map +1 -1
  49. package/dist/src/widget/validation.d.ts +10 -0
  50. package/dist/src/widget/validation.d.ts.map +1 -1
  51. package/package.json +47 -46
  52. package/dist/src/app/index.d.ts +0 -17
  53. package/dist/src/app/index.d.ts.map +0 -1
  54. package/dist/src/mail/mail-server.d.ts +0 -216
  55. package/dist/src/mail/mail-server.d.ts.map +0 -1
  56. package/dist/src/platform-contact/schema.d.ts +0 -30
  57. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -1,22 +1,26 @@
1
+ import z from 'zod';
2
+ import { GetFacebookPagesQuerySchema, GetFacebookPagesSchema } from './validation';
3
+ export type GetFacebookPagesResponse = z.infer<typeof GetFacebookPagesSchema>;
4
+ export type GetFacebookPagesQuery = z.infer<typeof GetFacebookPagesQuerySchema>;
1
5
  export declare const messengerContract: {
2
6
  sendMessage: {
3
- body: import("zod").ZodObject<{
4
- room: import("zod").ZodObject<{
5
- id: import("zod").ZodString;
6
- lastMessage: import("zod").ZodOptional<import("zod").ZodString>;
7
- handleTime: import("zod").ZodOptional<import("zod").ZodNumber>;
8
- isLatest: import("zod").ZodBoolean;
9
- direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
10
- platformContact: import("zod").ZodObject<{
11
- channelId: import("zod").ZodString;
12
- socialPlatformId: import("zod").ZodNullable<import("zod").ZodString>;
13
- type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
14
- metadata: import("zod").ZodObject<{
15
- id: import("zod").ZodString;
16
- name: import("zod").ZodString;
17
- picture: import("zod").ZodOptional<import("zod").ZodString>;
18
- additionalCredentials: import("zod").ZodAny;
19
- }, "strip", import("zod").ZodTypeAny, {
7
+ body: z.ZodObject<{
8
+ room: z.ZodObject<{
9
+ id: z.ZodString;
10
+ lastMessage: z.ZodOptional<z.ZodString>;
11
+ handleTime: z.ZodOptional<z.ZodNumber>;
12
+ isLatest: z.ZodBoolean;
13
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
14
+ platformContact: z.ZodObject<{
15
+ channelId: z.ZodString;
16
+ socialPlatformId: z.ZodNullable<z.ZodString>;
17
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
18
+ metadata: z.ZodObject<{
19
+ id: z.ZodString;
20
+ name: z.ZodString;
21
+ picture: z.ZodOptional<z.ZodString>;
22
+ additionalCredentials: z.ZodAny;
23
+ }, "strip", z.ZodTypeAny, {
20
24
  id: string;
21
25
  name: string;
22
26
  picture?: string | undefined;
@@ -27,14 +31,14 @@ export declare const messengerContract: {
27
31
  picture?: string | undefined;
28
32
  additionalCredentials?: any;
29
33
  }>;
30
- contact: import("zod").ZodObject<{
31
- name: import("zod").ZodString;
32
- address: import("zod").ZodNullable<import("zod").ZodString>;
33
- channel: import("zod").ZodNullable<import("zod").ZodString>;
34
- notes: import("zod").ZodNullable<import("zod").ZodString>;
35
- contactProfile: import("zod").ZodNullable<import("zod").ZodString>;
36
- socialProfileUrl: import("zod").ZodNullable<import("zod").ZodString>;
37
- }, "strip", import("zod").ZodTypeAny, {
34
+ contact: z.ZodObject<{
35
+ name: z.ZodString;
36
+ address: z.ZodNullable<z.ZodString>;
37
+ channel: z.ZodNullable<z.ZodString>;
38
+ notes: z.ZodNullable<z.ZodString>;
39
+ contactProfile: z.ZodNullable<z.ZodString>;
40
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
41
+ }, "strip", z.ZodTypeAny, {
38
42
  channel: string | null;
39
43
  address: string | null;
40
44
  name: string;
@@ -49,7 +53,7 @@ export declare const messengerContract: {
49
53
  contactProfile: string | null;
50
54
  socialProfileUrl: string | null;
51
55
  }>;
52
- }, "strip", import("zod").ZodTypeAny, {
56
+ }, "strip", z.ZodTypeAny, {
53
57
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
54
58
  metadata: {
55
59
  id: string;
@@ -57,6 +61,7 @@ export declare const messengerContract: {
57
61
  picture?: string | undefined;
58
62
  additionalCredentials?: any;
59
63
  };
64
+ channelId: string;
60
65
  contact: {
61
66
  channel: string | null;
62
67
  address: string | null;
@@ -65,7 +70,6 @@ export declare const messengerContract: {
65
70
  contactProfile: string | null;
66
71
  socialProfileUrl: string | null;
67
72
  };
68
- channelId: string;
69
73
  socialPlatformId: string | null;
70
74
  }, {
71
75
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -75,6 +79,7 @@ export declare const messengerContract: {
75
79
  picture?: string | undefined;
76
80
  additionalCredentials?: any;
77
81
  };
82
+ channelId: string;
78
83
  contact: {
79
84
  channel: string | null;
80
85
  address: string | null;
@@ -83,15 +88,14 @@ export declare const messengerContract: {
83
88
  contactProfile: string | null;
84
89
  socialProfileUrl: string | null;
85
90
  };
86
- channelId: string;
87
91
  socialPlatformId: string | null;
88
92
  }>;
89
- actor: import("zod").ZodNullable<import("zod").ZodObject<{
90
- name: import("zod").ZodString;
91
- email: import("zod").ZodString;
92
- address: import("zod").ZodNullable<import("zod").ZodString>;
93
- phone: import("zod").ZodNullable<import("zod").ZodString>;
94
- }, "strip", import("zod").ZodTypeAny, {
93
+ actor: z.ZodNullable<z.ZodObject<{
94
+ name: z.ZodString;
95
+ email: z.ZodString;
96
+ address: z.ZodNullable<z.ZodString>;
97
+ phone: z.ZodNullable<z.ZodString>;
98
+ }, "strip", z.ZodTypeAny, {
95
99
  address: string | null;
96
100
  name: string;
97
101
  email: string;
@@ -102,15 +106,15 @@ export declare const messengerContract: {
102
106
  email: string;
103
107
  phone: string | null;
104
108
  }>>;
105
- channel: import("zod").ZodObject<{
106
- name: import("zod").ZodString;
107
- type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
108
- metadata: import("zod").ZodObject<{
109
- id: import("zod").ZodString;
110
- name: import("zod").ZodString;
111
- accessToken: import("zod").ZodString;
112
- additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
113
- }, "strip", import("zod").ZodTypeAny, {
109
+ channel: z.ZodObject<{
110
+ name: z.ZodString;
111
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
112
+ metadata: z.ZodObject<{
113
+ id: z.ZodString;
114
+ name: z.ZodString;
115
+ accessToken: z.ZodString;
116
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
117
+ }, "strip", z.ZodTypeAny, {
114
118
  id: string;
115
119
  name: string;
116
120
  accessToken: string;
@@ -121,13 +125,31 @@ export declare const messengerContract: {
121
125
  accessToken: string;
122
126
  additionalCredentials?: any;
123
127
  }>;
124
- brandName: import("zod").ZodString;
125
- platformId: import("zod").ZodString;
126
- status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
127
- isReloginRequired: import("zod").ZodBoolean;
128
- connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
129
- connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
130
- }, "strip", import("zod").ZodTypeAny, {
128
+ platformId: z.ZodString;
129
+ brandName: z.ZodString;
130
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
131
+ connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
132
+ connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
133
+ actor: z.ZodObject<{
134
+ id: z.ZodString;
135
+ name: z.ZodString;
136
+ email: z.ZodString;
137
+ address: z.ZodNullable<z.ZodString>;
138
+ phone: z.ZodNullable<z.ZodString>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ id: string;
141
+ address: string | null;
142
+ name: string;
143
+ email: string;
144
+ phone: string | null;
145
+ }, {
146
+ id: string;
147
+ address: string | null;
148
+ name: string;
149
+ email: string;
150
+ phone: string | null;
151
+ }>;
152
+ }, "strip", z.ZodTypeAny, {
131
153
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
132
154
  name: string;
133
155
  metadata: {
@@ -139,7 +161,13 @@ export declare const messengerContract: {
139
161
  status: boolean;
140
162
  brandName: string;
141
163
  platformId: string;
142
- isReloginRequired: boolean;
164
+ actor: {
165
+ id: string;
166
+ address: string | null;
167
+ name: string;
168
+ email: string;
169
+ phone: string | null;
170
+ };
143
171
  connectedUserName?: string | null | undefined;
144
172
  connectedUserId?: string | null | undefined;
145
173
  }, {
@@ -154,11 +182,17 @@ export declare const messengerContract: {
154
182
  status: boolean;
155
183
  brandName: string;
156
184
  platformId: string;
157
- isReloginRequired: boolean;
185
+ actor: {
186
+ id: string;
187
+ address: string | null;
188
+ name: string;
189
+ email: string;
190
+ phone: string | null;
191
+ };
158
192
  connectedUserName?: string | null | undefined;
159
193
  connectedUserId?: string | null | undefined;
160
194
  }>;
161
- }, "strip", import("zod").ZodTypeAny, {
195
+ }, "strip", z.ZodTypeAny, {
162
196
  id: string;
163
197
  channel: {
164
198
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -172,7 +206,13 @@ export declare const messengerContract: {
172
206
  status: boolean;
173
207
  brandName: string;
174
208
  platformId: string;
175
- isReloginRequired: boolean;
209
+ actor: {
210
+ id: string;
211
+ address: string | null;
212
+ name: string;
213
+ email: string;
214
+ phone: string | null;
215
+ };
176
216
  connectedUserName?: string | null | undefined;
177
217
  connectedUserId?: string | null | undefined;
178
218
  };
@@ -192,6 +232,7 @@ export declare const messengerContract: {
192
232
  picture?: string | undefined;
193
233
  additionalCredentials?: any;
194
234
  };
235
+ channelId: string;
195
236
  contact: {
196
237
  channel: string | null;
197
238
  address: string | null;
@@ -200,7 +241,6 @@ export declare const messengerContract: {
200
241
  contactProfile: string | null;
201
242
  socialProfileUrl: string | null;
202
243
  };
203
- channelId: string;
204
244
  socialPlatformId: string | null;
205
245
  };
206
246
  lastMessage?: string | undefined;
@@ -219,7 +259,13 @@ export declare const messengerContract: {
219
259
  status: boolean;
220
260
  brandName: string;
221
261
  platformId: string;
222
- isReloginRequired: boolean;
262
+ actor: {
263
+ id: string;
264
+ address: string | null;
265
+ name: string;
266
+ email: string;
267
+ phone: string | null;
268
+ };
223
269
  connectedUserName?: string | null | undefined;
224
270
  connectedUserId?: string | null | undefined;
225
271
  };
@@ -239,6 +285,7 @@ export declare const messengerContract: {
239
285
  picture?: string | undefined;
240
286
  additionalCredentials?: any;
241
287
  };
288
+ channelId: string;
242
289
  contact: {
243
290
  channel: string | null;
244
291
  address: string | null;
@@ -247,36 +294,35 @@ export declare const messengerContract: {
247
294
  contactProfile: string | null;
248
295
  socialProfileUrl: string | null;
249
296
  };
250
- channelId: string;
251
297
  socialPlatformId: string | null;
252
298
  };
253
299
  lastMessage?: string | undefined;
254
300
  handleTime?: number | undefined;
255
301
  }>;
256
- message: import("zod").ZodObject<{
257
- message: import("zod").ZodOptional<import("zod").ZodString>;
258
- direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
259
- type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
260
- readAt: import("zod").ZodOptional<import("zod").ZodDate>;
261
- metadata: import("zod").ZodOptional<import("zod").ZodAny>;
262
- platformId: import("zod").ZodOptional<import("zod").ZodString>;
263
- platformMessageId: import("zod").ZodOptional<import("zod").ZodString>;
264
- replyPlatformMessageId: import("zod").ZodOptional<import("zod").ZodString>;
265
- template: import("zod").ZodOptional<import("zod").ZodAny>;
266
- locale: import("zod").ZodOptional<import("zod").ZodEnum<["mm", "en", "th", ""]>>;
267
- url: import("zod").ZodOptional<import("zod").ZodString>;
268
- previewUrl: import("zod").ZodOptional<import("zod").ZodString>;
269
- imageSetId: import("zod").ZodOptional<import("zod").ZodString>;
270
- upload: import("zod").ZodOptional<import("zod").ZodObject<{
271
- id: import("zod").ZodString;
272
- createdAt: import("zod").ZodDate;
273
- updatedAt: import("zod").ZodDate;
274
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
275
- bucketName: import("zod").ZodString;
276
- fileName: import("zod").ZodString;
277
- fileSize: import("zod").ZodNumber;
278
- fileKey: import("zod").ZodString;
279
- }, "strip", import("zod").ZodTypeAny, {
302
+ message: z.ZodObject<{
303
+ message: z.ZodOptional<z.ZodString>;
304
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
305
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
306
+ readAt: z.ZodOptional<z.ZodDate>;
307
+ metadata: z.ZodOptional<z.ZodAny>;
308
+ platformId: z.ZodOptional<z.ZodString>;
309
+ platformMessageId: z.ZodOptional<z.ZodString>;
310
+ replyPlatformMessageId: z.ZodOptional<z.ZodString>;
311
+ template: z.ZodOptional<z.ZodAny>;
312
+ locale: z.ZodOptional<z.ZodEnum<["mm", "en", "th", ""]>>;
313
+ url: z.ZodOptional<z.ZodString>;
314
+ previewUrl: z.ZodOptional<z.ZodString>;
315
+ imageSetId: z.ZodOptional<z.ZodString>;
316
+ upload: z.ZodOptional<z.ZodObject<{
317
+ id: z.ZodString;
318
+ createdAt: z.ZodDate;
319
+ updatedAt: z.ZodDate;
320
+ deletedAt: z.ZodNullable<z.ZodDate>;
321
+ bucketName: z.ZodString;
322
+ fileName: z.ZodString;
323
+ fileSize: z.ZodNumber;
324
+ fileKey: z.ZodString;
325
+ }, "strip", z.ZodTypeAny, {
280
326
  id: string;
281
327
  createdAt: Date;
282
328
  updatedAt: Date;
@@ -295,12 +341,12 @@ export declare const messengerContract: {
295
341
  bucketName: string;
296
342
  fileSize: number;
297
343
  }>>;
298
- sender: import("zod").ZodObject<{
299
- name: import("zod").ZodString;
300
- email: import("zod").ZodString;
301
- address: import("zod").ZodNullable<import("zod").ZodString>;
302
- phone: import("zod").ZodNullable<import("zod").ZodString>;
303
- }, "strip", import("zod").ZodTypeAny, {
344
+ sender: z.ZodObject<{
345
+ name: z.ZodString;
346
+ email: z.ZodString;
347
+ address: z.ZodNullable<z.ZodString>;
348
+ phone: z.ZodNullable<z.ZodString>;
349
+ }, "strip", z.ZodTypeAny, {
304
350
  address: string | null;
305
351
  name: string;
306
352
  email: string;
@@ -311,8 +357,8 @@ export declare const messengerContract: {
311
357
  email: string;
312
358
  phone: string | null;
313
359
  }>;
314
- }, "strip", import("zod").ZodTypeAny, {
315
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
360
+ }, "strip", z.ZodTypeAny, {
361
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
316
362
  direction: "incoming" | "outgoing" | "system";
317
363
  sender: {
318
364
  address: string | null;
@@ -342,7 +388,7 @@ export declare const messengerContract: {
342
388
  fileSize: number;
343
389
  } | undefined;
344
390
  }, {
345
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
391
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
346
392
  direction: "incoming" | "outgoing" | "system";
347
393
  sender: {
348
394
  address: string | null;
@@ -372,9 +418,9 @@ export declare const messengerContract: {
372
418
  fileSize: number;
373
419
  } | undefined;
374
420
  }>;
375
- }, "strip", import("zod").ZodTypeAny, {
421
+ }, "strip", z.ZodTypeAny, {
376
422
  message: {
377
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
423
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
378
424
  direction: "incoming" | "outgoing" | "system";
379
425
  sender: {
380
426
  address: string | null;
@@ -418,7 +464,13 @@ export declare const messengerContract: {
418
464
  status: boolean;
419
465
  brandName: string;
420
466
  platformId: string;
421
- isReloginRequired: boolean;
467
+ actor: {
468
+ id: string;
469
+ address: string | null;
470
+ name: string;
471
+ email: string;
472
+ phone: string | null;
473
+ };
422
474
  connectedUserName?: string | null | undefined;
423
475
  connectedUserId?: string | null | undefined;
424
476
  };
@@ -438,6 +490,7 @@ export declare const messengerContract: {
438
490
  picture?: string | undefined;
439
491
  additionalCredentials?: any;
440
492
  };
493
+ channelId: string;
441
494
  contact: {
442
495
  channel: string | null;
443
496
  address: string | null;
@@ -446,7 +499,6 @@ export declare const messengerContract: {
446
499
  contactProfile: string | null;
447
500
  socialProfileUrl: string | null;
448
501
  };
449
- channelId: string;
450
502
  socialPlatformId: string | null;
451
503
  };
452
504
  lastMessage?: string | undefined;
@@ -454,7 +506,7 @@ export declare const messengerContract: {
454
506
  };
455
507
  }, {
456
508
  message: {
457
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
509
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
458
510
  direction: "incoming" | "outgoing" | "system";
459
511
  sender: {
460
512
  address: string | null;
@@ -498,7 +550,13 @@ export declare const messengerContract: {
498
550
  status: boolean;
499
551
  brandName: string;
500
552
  platformId: string;
501
- isReloginRequired: boolean;
553
+ actor: {
554
+ id: string;
555
+ address: string | null;
556
+ name: string;
557
+ email: string;
558
+ phone: string | null;
559
+ };
502
560
  connectedUserName?: string | null | undefined;
503
561
  connectedUserId?: string | null | undefined;
504
562
  };
@@ -518,6 +576,7 @@ export declare const messengerContract: {
518
576
  picture?: string | undefined;
519
577
  additionalCredentials?: any;
520
578
  };
579
+ channelId: string;
521
580
  contact: {
522
581
  channel: string | null;
523
582
  address: string | null;
@@ -526,7 +585,6 @@ export declare const messengerContract: {
526
585
  contactProfile: string | null;
527
586
  socialProfileUrl: string | null;
528
587
  };
529
- channelId: string;
530
588
  socialPlatformId: string | null;
531
589
  };
532
590
  lastMessage?: string | undefined;
@@ -535,53 +593,53 @@ export declare const messengerContract: {
535
593
  }>;
536
594
  method: "POST";
537
595
  responses: {
538
- 200: import("zod").ZodObject<{
539
- requestId: import("zod").ZodString;
540
- data: import("zod").ZodObject<{
541
- id: import("zod").ZodString;
542
- createdAt: import("zod").ZodDate;
543
- updatedAt: import("zod").ZodDate;
544
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
545
- message: import("zod").ZodString;
546
- direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
547
- type: import("zod").ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
548
- readAt: import("zod").ZodDate;
549
- metadata: import("zod").ZodAny;
550
- platformId: import("zod").ZodString;
551
- platformMessageId: import("zod").ZodString;
552
- replyPlatformMessageId: import("zod").ZodString;
553
- template: import("zod").ZodAny;
554
- locale: import("zod").ZodEnum<["mm", "en", "th", ""]>;
555
- url: import("zod").ZodString;
556
- previewUrl: import("zod").ZodString;
557
- imageSetId: import("zod").ZodString;
558
- room: import("zod").ZodObject<{
559
- id: import("zod").ZodString;
560
- createdAt: import("zod").ZodDate;
561
- updatedAt: import("zod").ZodDate;
562
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
563
- lastMessage: import("zod").ZodString;
564
- handleTime: import("zod").ZodNumber;
565
- closeAt: import("zod").ZodDate;
566
- unreadCount: import("zod").ZodNumber;
567
- firstResponseAt: import("zod").ZodDate;
568
- firstResponseTime: import("zod").ZodNumber;
569
- isLatest: import("zod").ZodBoolean;
570
- direction: import("zod").ZodEnum<["incoming", "outgoing", "system"]>;
571
- platformContact: import("zod").ZodObject<{
572
- id: import("zod").ZodString;
573
- createdAt: import("zod").ZodDate;
574
- updatedAt: import("zod").ZodDate;
575
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
576
- channelId: import("zod").ZodString;
577
- socialPlatformId: import("zod").ZodString;
578
- type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
579
- metadata: import("zod").ZodObject<{
580
- id: import("zod").ZodString;
581
- name: import("zod").ZodString;
582
- picture: import("zod").ZodOptional<import("zod").ZodString>;
583
- additionalCredentials: import("zod").ZodAny;
584
- }, "strip", import("zod").ZodTypeAny, {
596
+ 200: z.ZodObject<{
597
+ requestId: z.ZodString;
598
+ data: z.ZodObject<{
599
+ id: z.ZodString;
600
+ createdAt: z.ZodDate;
601
+ updatedAt: z.ZodDate;
602
+ deletedAt: z.ZodNullable<z.ZodDate>;
603
+ message: z.ZodString;
604
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
605
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
606
+ readAt: z.ZodDate;
607
+ metadata: z.ZodAny;
608
+ platformId: z.ZodString;
609
+ platformMessageId: z.ZodString;
610
+ replyPlatformMessageId: z.ZodString;
611
+ template: z.ZodAny;
612
+ locale: z.ZodEnum<["mm", "en", "th", ""]>;
613
+ url: z.ZodString;
614
+ previewUrl: z.ZodString;
615
+ imageSetId: z.ZodString;
616
+ room: z.ZodObject<{
617
+ id: z.ZodString;
618
+ createdAt: z.ZodDate;
619
+ updatedAt: z.ZodDate;
620
+ deletedAt: z.ZodNullable<z.ZodDate>;
621
+ lastMessage: z.ZodString;
622
+ handleTime: z.ZodNumber;
623
+ closeAt: z.ZodDate;
624
+ unreadCount: z.ZodNumber;
625
+ firstResponseAt: z.ZodDate;
626
+ firstResponseTime: z.ZodNumber;
627
+ isLatest: z.ZodBoolean;
628
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
629
+ platformContact: z.ZodObject<{
630
+ id: z.ZodString;
631
+ createdAt: z.ZodDate;
632
+ updatedAt: z.ZodDate;
633
+ deletedAt: z.ZodNullable<z.ZodDate>;
634
+ channelId: z.ZodString;
635
+ socialPlatformId: z.ZodString;
636
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
637
+ metadata: z.ZodObject<{
638
+ id: z.ZodString;
639
+ name: z.ZodString;
640
+ picture: z.ZodOptional<z.ZodString>;
641
+ additionalCredentials: z.ZodAny;
642
+ }, "strip", z.ZodTypeAny, {
585
643
  id: string;
586
644
  name: string;
587
645
  picture?: string | undefined;
@@ -592,24 +650,24 @@ export declare const messengerContract: {
592
650
  picture?: string | undefined;
593
651
  additionalCredentials?: any;
594
652
  }>;
595
- contact: import("zod").ZodObject<{
596
- id: import("zod").ZodString;
597
- createdAt: import("zod").ZodDate;
598
- updatedAt: import("zod").ZodDate;
599
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
600
- name: import("zod").ZodString;
601
- address: import("zod").ZodNullable<import("zod").ZodString>;
602
- channel: import("zod").ZodNullable<import("zod").ZodString>;
603
- notes: import("zod").ZodNullable<import("zod").ZodString>;
604
- contactProfile: import("zod").ZodNullable<import("zod").ZodString>;
605
- socialProfileUrl: import("zod").ZodNullable<import("zod").ZodString>;
606
- tags: import("zod").ZodArray<import("zod").ZodObject<{
607
- id: import("zod").ZodString;
608
- createdAt: import("zod").ZodDate;
609
- updatedAt: import("zod").ZodDate;
610
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
611
- name: import("zod").ZodString;
612
- }, "strip", import("zod").ZodTypeAny, {
653
+ contact: z.ZodObject<{
654
+ id: z.ZodString;
655
+ createdAt: z.ZodDate;
656
+ updatedAt: z.ZodDate;
657
+ deletedAt: z.ZodNullable<z.ZodDate>;
658
+ name: z.ZodString;
659
+ address: z.ZodNullable<z.ZodString>;
660
+ channel: z.ZodNullable<z.ZodString>;
661
+ notes: z.ZodNullable<z.ZodString>;
662
+ contactProfile: z.ZodNullable<z.ZodString>;
663
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
664
+ tags: z.ZodArray<z.ZodObject<{
665
+ id: z.ZodString;
666
+ createdAt: z.ZodDate;
667
+ updatedAt: z.ZodDate;
668
+ deletedAt: z.ZodNullable<z.ZodDate>;
669
+ name: z.ZodString;
670
+ }, "strip", z.ZodTypeAny, {
613
671
  id: string;
614
672
  name: string;
615
673
  createdAt: Date;
@@ -622,44 +680,44 @@ export declare const messengerContract: {
622
680
  updatedAt: Date;
623
681
  deletedAt: Date | null;
624
682
  }>, "many">;
625
- company: import("zod").ZodNullable<import("zod").ZodObject<Omit<{
626
- id: import("zod").ZodString;
627
- createdAt: import("zod").ZodDate;
628
- updatedAt: import("zod").ZodDate;
629
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
630
- name: import("zod").ZodOptional<import("zod").ZodString>;
631
- phone: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
632
- address: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
633
- industry: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
634
- customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
635
- id: import("zod").ZodString;
636
- createdAt: import("zod").ZodDate;
637
- updatedAt: import("zod").ZodDate;
638
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
639
- textValue: import("zod").ZodNullable<import("zod").ZodString>;
640
- booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
641
- numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
642
- dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
643
- attribute: import("zod").ZodObject<Omit<{
644
- id: import("zod").ZodString;
645
- createdAt: import("zod").ZodDate;
646
- updatedAt: import("zod").ZodDate;
647
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
648
- systemName: import("zod").ZodString;
649
- displayName: import("zod").ZodString;
650
- 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">]>;
651
- position: import("zod").ZodNumber;
652
- isDefault: import("zod").ZodBoolean;
653
- isArchived: import("zod").ZodBoolean;
654
- isRequired: import("zod").ZodBoolean;
655
- isUnique: import("zod").ZodBoolean;
656
- options: import("zod").ZodArray<import("zod").ZodObject<{
657
- position: import("zod").ZodNumber;
658
- value: import("zod").ZodString;
659
- label: import("zod").ZodString;
660
- isDefault: import("zod").ZodBoolean;
661
- id: import("zod").ZodString;
662
- }, "strip", import("zod").ZodTypeAny, {
683
+ company: z.ZodNullable<z.ZodObject<Omit<{
684
+ id: z.ZodString;
685
+ createdAt: z.ZodDate;
686
+ updatedAt: z.ZodDate;
687
+ deletedAt: z.ZodNullable<z.ZodDate>;
688
+ name: z.ZodOptional<z.ZodString>;
689
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
691
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
692
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
693
+ id: z.ZodString;
694
+ createdAt: z.ZodDate;
695
+ updatedAt: z.ZodDate;
696
+ deletedAt: z.ZodNullable<z.ZodDate>;
697
+ textValue: z.ZodNullable<z.ZodString>;
698
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
699
+ numberValue: z.ZodNullable<z.ZodNumber>;
700
+ dateValue: z.ZodNullable<z.ZodDate>;
701
+ attribute: z.ZodObject<Omit<{
702
+ id: z.ZodString;
703
+ createdAt: z.ZodDate;
704
+ updatedAt: z.ZodDate;
705
+ deletedAt: z.ZodNullable<z.ZodDate>;
706
+ systemName: z.ZodString;
707
+ displayName: z.ZodString;
708
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
709
+ position: z.ZodNumber;
710
+ isDefault: z.ZodBoolean;
711
+ isArchived: z.ZodBoolean;
712
+ isRequired: z.ZodBoolean;
713
+ isUnique: z.ZodBoolean;
714
+ options: z.ZodArray<z.ZodObject<{
715
+ position: z.ZodNumber;
716
+ value: z.ZodString;
717
+ label: z.ZodString;
718
+ isDefault: z.ZodBoolean;
719
+ id: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
663
721
  id: string;
664
722
  position: number;
665
723
  value: string;
@@ -672,14 +730,14 @@ export declare const messengerContract: {
672
730
  label: string;
673
731
  isDefault: boolean;
674
732
  }>, "many">;
675
- group: import("zod").ZodObject<{
676
- id: import("zod").ZodString;
677
- createdAt: import("zod").ZodDate;
678
- updatedAt: import("zod").ZodDate;
679
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
680
- systemName: import("zod").ZodString;
681
- displayName: import("zod").ZodString;
682
- }, "strip", import("zod").ZodTypeAny, {
733
+ group: z.ZodObject<{
734
+ id: z.ZodString;
735
+ createdAt: z.ZodDate;
736
+ updatedAt: z.ZodDate;
737
+ deletedAt: z.ZodNullable<z.ZodDate>;
738
+ systemName: z.ZodString;
739
+ displayName: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
683
741
  id: string;
684
742
  createdAt: Date;
685
743
  updatedAt: Date;
@@ -694,7 +752,7 @@ export declare const messengerContract: {
694
752
  systemName: string;
695
753
  displayName: string;
696
754
  }>;
697
- }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
755
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
698
756
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
699
757
  id: string;
700
758
  position: number;
@@ -721,7 +779,7 @@ export declare const messengerContract: {
721
779
  isRequired: boolean;
722
780
  isUnique: boolean;
723
781
  }>;
724
- }, "strip", import("zod").ZodTypeAny, {
782
+ }, "strip", z.ZodTypeAny, {
725
783
  id: string;
726
784
  createdAt: Date;
727
785
  updatedAt: Date;
@@ -768,7 +826,7 @@ export declare const messengerContract: {
768
826
  numberValue: number | null;
769
827
  dateValue: Date | null;
770
828
  }>, "many">>;
771
- }, "customFields">, "strip", import("zod").ZodTypeAny, {
829
+ }, "customFields">, "strip", z.ZodTypeAny, {
772
830
  id: string;
773
831
  createdAt: Date;
774
832
  updatedAt: Date;
@@ -787,35 +845,35 @@ export declare const messengerContract: {
787
845
  phone?: string | null | undefined;
788
846
  industry?: string | null | undefined;
789
847
  }>>;
790
- customFields: import("zod").ZodArray<import("zod").ZodObject<{
791
- id: import("zod").ZodString;
792
- createdAt: import("zod").ZodDate;
793
- updatedAt: import("zod").ZodDate;
794
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
795
- textValue: import("zod").ZodNullable<import("zod").ZodString>;
796
- booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
797
- numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
798
- dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
799
- attribute: import("zod").ZodObject<Omit<{
800
- id: import("zod").ZodString;
801
- createdAt: import("zod").ZodDate;
802
- updatedAt: import("zod").ZodDate;
803
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
804
- systemName: import("zod").ZodString;
805
- displayName: import("zod").ZodString;
806
- 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">]>;
807
- position: import("zod").ZodNumber;
808
- isDefault: import("zod").ZodBoolean;
809
- isArchived: import("zod").ZodBoolean;
810
- isRequired: import("zod").ZodBoolean;
811
- isUnique: import("zod").ZodBoolean;
812
- options: import("zod").ZodArray<import("zod").ZodObject<{
813
- position: import("zod").ZodNumber;
814
- value: import("zod").ZodString;
815
- label: import("zod").ZodString;
816
- isDefault: import("zod").ZodBoolean;
817
- id: import("zod").ZodString;
818
- }, "strip", import("zod").ZodTypeAny, {
848
+ customFields: z.ZodArray<z.ZodObject<{
849
+ id: z.ZodString;
850
+ createdAt: z.ZodDate;
851
+ updatedAt: z.ZodDate;
852
+ deletedAt: z.ZodNullable<z.ZodDate>;
853
+ textValue: z.ZodNullable<z.ZodString>;
854
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
855
+ numberValue: z.ZodNullable<z.ZodNumber>;
856
+ dateValue: z.ZodNullable<z.ZodDate>;
857
+ attribute: z.ZodObject<Omit<{
858
+ id: z.ZodString;
859
+ createdAt: z.ZodDate;
860
+ updatedAt: z.ZodDate;
861
+ deletedAt: z.ZodNullable<z.ZodDate>;
862
+ systemName: z.ZodString;
863
+ displayName: z.ZodString;
864
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
865
+ position: z.ZodNumber;
866
+ isDefault: z.ZodBoolean;
867
+ isArchived: z.ZodBoolean;
868
+ isRequired: z.ZodBoolean;
869
+ isUnique: z.ZodBoolean;
870
+ options: z.ZodArray<z.ZodObject<{
871
+ position: z.ZodNumber;
872
+ value: z.ZodString;
873
+ label: z.ZodString;
874
+ isDefault: z.ZodBoolean;
875
+ id: z.ZodString;
876
+ }, "strip", z.ZodTypeAny, {
819
877
  id: string;
820
878
  position: number;
821
879
  value: string;
@@ -828,14 +886,14 @@ export declare const messengerContract: {
828
886
  label: string;
829
887
  isDefault: boolean;
830
888
  }>, "many">;
831
- group: import("zod").ZodObject<{
832
- id: import("zod").ZodString;
833
- createdAt: import("zod").ZodDate;
834
- updatedAt: import("zod").ZodDate;
835
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
836
- systemName: import("zod").ZodString;
837
- displayName: import("zod").ZodString;
838
- }, "strip", import("zod").ZodTypeAny, {
889
+ group: z.ZodObject<{
890
+ id: z.ZodString;
891
+ createdAt: z.ZodDate;
892
+ updatedAt: z.ZodDate;
893
+ deletedAt: z.ZodNullable<z.ZodDate>;
894
+ systemName: z.ZodString;
895
+ displayName: z.ZodString;
896
+ }, "strip", z.ZodTypeAny, {
839
897
  id: string;
840
898
  createdAt: Date;
841
899
  updatedAt: Date;
@@ -850,7 +908,7 @@ export declare const messengerContract: {
850
908
  systemName: string;
851
909
  displayName: string;
852
910
  }>;
853
- }, "options" | "group">, "strip", import("zod").ZodTypeAny, {
911
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
854
912
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
855
913
  id: string;
856
914
  position: number;
@@ -877,22 +935,22 @@ export declare const messengerContract: {
877
935
  isRequired: boolean;
878
936
  isUnique: boolean;
879
937
  }>;
880
- uploads: import("zod").ZodArray<import("zod").ZodObject<{
881
- id: import("zod").ZodString;
882
- createdAt: import("zod").ZodDate;
883
- updatedAt: import("zod").ZodDate;
884
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
885
- customFieldId: import("zod").ZodString;
886
- upload: import("zod").ZodObject<{
887
- id: import("zod").ZodString;
888
- createdAt: import("zod").ZodDate;
889
- updatedAt: import("zod").ZodDate;
890
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
891
- bucketName: import("zod").ZodString;
892
- fileName: import("zod").ZodString;
893
- fileSize: import("zod").ZodNumber;
894
- fileKey: import("zod").ZodString;
895
- }, "strip", import("zod").ZodTypeAny, {
938
+ uploads: z.ZodArray<z.ZodObject<{
939
+ id: z.ZodString;
940
+ createdAt: z.ZodDate;
941
+ updatedAt: z.ZodDate;
942
+ deletedAt: z.ZodNullable<z.ZodDate>;
943
+ customFieldId: z.ZodString;
944
+ upload: z.ZodObject<{
945
+ id: z.ZodString;
946
+ createdAt: z.ZodDate;
947
+ updatedAt: z.ZodDate;
948
+ deletedAt: z.ZodNullable<z.ZodDate>;
949
+ bucketName: z.ZodString;
950
+ fileName: z.ZodString;
951
+ fileSize: z.ZodNumber;
952
+ fileKey: z.ZodString;
953
+ }, "strip", z.ZodTypeAny, {
896
954
  id: string;
897
955
  createdAt: Date;
898
956
  updatedAt: Date;
@@ -911,7 +969,7 @@ export declare const messengerContract: {
911
969
  bucketName: string;
912
970
  fileSize: number;
913
971
  }>;
914
- }, "strip", import("zod").ZodTypeAny, {
972
+ }, "strip", z.ZodTypeAny, {
915
973
  id: string;
916
974
  createdAt: Date;
917
975
  updatedAt: Date;
@@ -944,7 +1002,7 @@ export declare const messengerContract: {
944
1002
  fileSize: number;
945
1003
  };
946
1004
  }>, "many">;
947
- }, "strip", import("zod").ZodTypeAny, {
1005
+ }, "strip", z.ZodTypeAny, {
948
1006
  id: string;
949
1007
  createdAt: Date;
950
1008
  updatedAt: Date;
@@ -1025,14 +1083,14 @@ export declare const messengerContract: {
1025
1083
  };
1026
1084
  }[];
1027
1085
  }>, "many">;
1028
- contactEmails: import("zod").ZodArray<import("zod").ZodObject<{
1029
- id: import("zod").ZodString;
1030
- createdAt: import("zod").ZodDate;
1031
- updatedAt: import("zod").ZodDate;
1032
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1033
- email: import("zod").ZodString;
1034
- isPrimary: import("zod").ZodBoolean;
1035
- }, "strip", import("zod").ZodTypeAny, {
1086
+ contactEmails: z.ZodArray<z.ZodObject<{
1087
+ id: z.ZodString;
1088
+ createdAt: z.ZodDate;
1089
+ updatedAt: z.ZodDate;
1090
+ deletedAt: z.ZodNullable<z.ZodDate>;
1091
+ email: z.ZodString;
1092
+ isPrimary: z.ZodBoolean;
1093
+ }, "strip", z.ZodTypeAny, {
1036
1094
  id: string;
1037
1095
  isPrimary: boolean;
1038
1096
  email: string;
@@ -1047,14 +1105,14 @@ export declare const messengerContract: {
1047
1105
  updatedAt: Date;
1048
1106
  deletedAt: Date | null;
1049
1107
  }>, "many">;
1050
- contactPhones: import("zod").ZodArray<import("zod").ZodObject<{
1051
- id: import("zod").ZodString;
1052
- createdAt: import("zod").ZodDate;
1053
- updatedAt: import("zod").ZodDate;
1054
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1055
- phone: import("zod").ZodString;
1056
- isPrimary: import("zod").ZodBoolean;
1057
- }, "strip", import("zod").ZodTypeAny, {
1108
+ contactPhones: z.ZodArray<z.ZodObject<{
1109
+ id: z.ZodString;
1110
+ createdAt: z.ZodDate;
1111
+ updatedAt: z.ZodDate;
1112
+ deletedAt: z.ZodNullable<z.ZodDate>;
1113
+ phone: z.ZodString;
1114
+ isPrimary: z.ZodBoolean;
1115
+ }, "strip", z.ZodTypeAny, {
1058
1116
  id: string;
1059
1117
  isPrimary: boolean;
1060
1118
  createdAt: Date;
@@ -1069,21 +1127,21 @@ export declare const messengerContract: {
1069
1127
  deletedAt: Date | null;
1070
1128
  phone: string;
1071
1129
  }>, "many">;
1072
- activityLogs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1073
- id: import("zod").ZodString;
1074
- createdAt: import("zod").ZodDate;
1075
- updatedAt: import("zod").ZodDate;
1076
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1077
- entityId: import("zod").ZodString;
1078
- description: import("zod").ZodString;
1079
- entityType: import("zod").ZodObject<{
1080
- id: import("zod").ZodString;
1081
- createdAt: import("zod").ZodDate;
1082
- updatedAt: import("zod").ZodDate;
1083
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1084
- entity: import("zod").ZodString;
1085
- description: import("zod").ZodNullable<import("zod").ZodString>;
1086
- }, "strip", import("zod").ZodTypeAny, {
1130
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1131
+ id: z.ZodString;
1132
+ createdAt: z.ZodDate;
1133
+ updatedAt: z.ZodDate;
1134
+ deletedAt: z.ZodNullable<z.ZodDate>;
1135
+ entityId: z.ZodString;
1136
+ description: z.ZodString;
1137
+ entityType: z.ZodObject<{
1138
+ id: z.ZodString;
1139
+ createdAt: z.ZodDate;
1140
+ updatedAt: z.ZodDate;
1141
+ deletedAt: z.ZodNullable<z.ZodDate>;
1142
+ entity: z.ZodString;
1143
+ description: z.ZodNullable<z.ZodString>;
1144
+ }, "strip", z.ZodTypeAny, {
1087
1145
  id: string;
1088
1146
  description: string | null;
1089
1147
  createdAt: Date;
@@ -1098,7 +1156,7 @@ export declare const messengerContract: {
1098
1156
  deletedAt: Date | null;
1099
1157
  entity: string;
1100
1158
  }>;
1101
- }, "strip", import("zod").ZodTypeAny, {
1159
+ }, "strip", z.ZodTypeAny, {
1102
1160
  id: string;
1103
1161
  description: string;
1104
1162
  createdAt: Date;
@@ -1129,7 +1187,7 @@ export declare const messengerContract: {
1129
1187
  entity: string;
1130
1188
  };
1131
1189
  }>, "many">>;
1132
- }, "strip", import("zod").ZodTypeAny, {
1190
+ }, "strip", z.ZodTypeAny, {
1133
1191
  id: string;
1134
1192
  channel: string | null;
1135
1193
  address: string | null;
@@ -1332,7 +1390,7 @@ export declare const messengerContract: {
1332
1390
  };
1333
1391
  }[] | undefined;
1334
1392
  }>;
1335
- }, "strip", import("zod").ZodTypeAny, {
1393
+ }, "strip", z.ZodTypeAny, {
1336
1394
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1337
1395
  id: string;
1338
1396
  metadata: {
@@ -1344,6 +1402,7 @@ export declare const messengerContract: {
1344
1402
  createdAt: Date;
1345
1403
  updatedAt: Date;
1346
1404
  deletedAt: Date | null;
1405
+ channelId: string;
1347
1406
  contact: {
1348
1407
  id: string;
1349
1408
  channel: string | null;
@@ -1446,7 +1505,6 @@ export declare const messengerContract: {
1446
1505
  };
1447
1506
  }[] | undefined;
1448
1507
  };
1449
- channelId: string;
1450
1508
  socialPlatformId: string;
1451
1509
  }, {
1452
1510
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
@@ -1460,6 +1518,7 @@ export declare const messengerContract: {
1460
1518
  createdAt: Date;
1461
1519
  updatedAt: Date;
1462
1520
  deletedAt: Date | null;
1521
+ channelId: string;
1463
1522
  contact: {
1464
1523
  id: string;
1465
1524
  channel: string | null;
@@ -1562,38 +1621,37 @@ export declare const messengerContract: {
1562
1621
  };
1563
1622
  }[] | undefined;
1564
1623
  };
1565
- channelId: string;
1566
1624
  socialPlatformId: string;
1567
1625
  }>;
1568
- actor: import("zod").ZodObject<{
1569
- id: import("zod").ZodString;
1570
- createdAt: import("zod").ZodDate;
1571
- updatedAt: import("zod").ZodDate;
1572
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1573
- name: import("zod").ZodString;
1574
- email: import("zod").ZodString;
1575
- emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1576
- password: import("zod").ZodString;
1577
- address: import("zod").ZodNullable<import("zod").ZodString>;
1578
- phone: import("zod").ZodNullable<import("zod").ZodString>;
1579
- notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
1580
- roles: import("zod").ZodArray<import("zod").ZodObject<{
1581
- id: import("zod").ZodString;
1582
- createdAt: import("zod").ZodDate;
1583
- updatedAt: import("zod").ZodDate;
1584
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1585
- systemName: import("zod").ZodString;
1586
- displayName: import("zod").ZodString;
1587
- description: import("zod").ZodNullable<import("zod").ZodString>;
1588
- permissions: import("zod").ZodArray<import("zod").ZodObject<{
1589
- id: import("zod").ZodString;
1590
- createdAt: import("zod").ZodDate;
1591
- updatedAt: import("zod").ZodDate;
1592
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1593
- systemName: import("zod").ZodString;
1594
- displayName: import("zod").ZodString;
1595
- description: import("zod").ZodNullable<import("zod").ZodString>;
1596
- }, "strip", import("zod").ZodTypeAny, {
1626
+ actor: z.ZodObject<{
1627
+ id: z.ZodString;
1628
+ createdAt: z.ZodDate;
1629
+ updatedAt: z.ZodDate;
1630
+ deletedAt: z.ZodNullable<z.ZodDate>;
1631
+ name: z.ZodString;
1632
+ email: z.ZodString;
1633
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1634
+ password: z.ZodString;
1635
+ address: z.ZodNullable<z.ZodString>;
1636
+ phone: z.ZodNullable<z.ZodString>;
1637
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1638
+ roles: z.ZodArray<z.ZodObject<{
1639
+ id: z.ZodString;
1640
+ createdAt: z.ZodDate;
1641
+ updatedAt: z.ZodDate;
1642
+ deletedAt: z.ZodNullable<z.ZodDate>;
1643
+ systemName: z.ZodString;
1644
+ displayName: z.ZodString;
1645
+ description: z.ZodNullable<z.ZodString>;
1646
+ permissions: z.ZodArray<z.ZodObject<{
1647
+ id: z.ZodString;
1648
+ createdAt: z.ZodDate;
1649
+ updatedAt: z.ZodDate;
1650
+ deletedAt: z.ZodNullable<z.ZodDate>;
1651
+ systemName: z.ZodString;
1652
+ displayName: z.ZodString;
1653
+ description: z.ZodNullable<z.ZodString>;
1654
+ }, "strip", z.ZodTypeAny, {
1597
1655
  id: string;
1598
1656
  description: string | null;
1599
1657
  createdAt: Date;
@@ -1610,7 +1668,7 @@ export declare const messengerContract: {
1610
1668
  systemName: string;
1611
1669
  displayName: string;
1612
1670
  }>, "many">;
1613
- }, "strip", import("zod").ZodTypeAny, {
1671
+ }, "strip", z.ZodTypeAny, {
1614
1672
  id: string;
1615
1673
  description: string | null;
1616
1674
  createdAt: Date;
@@ -1645,18 +1703,18 @@ export declare const messengerContract: {
1645
1703
  displayName: string;
1646
1704
  }[];
1647
1705
  }>, "many">;
1648
- extension: import("zod").ZodOptional<import("zod").ZodObject<{
1649
- id: import("zod").ZodString;
1650
- createdAt: import("zod").ZodDate;
1651
- updatedAt: import("zod").ZodDate;
1652
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1653
- userId: import("zod").ZodNullable<import("zod").ZodString>;
1654
- sipServerUrl: import("zod").ZodString;
1655
- sipUserName: import("zod").ZodString;
1656
- extensionId: import("zod").ZodNumber;
1657
- extensionName: import("zod").ZodString;
1658
- telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
1659
- }, "strip", import("zod").ZodTypeAny, {
1706
+ extension: z.ZodOptional<z.ZodObject<{
1707
+ id: z.ZodString;
1708
+ createdAt: z.ZodDate;
1709
+ updatedAt: z.ZodDate;
1710
+ deletedAt: z.ZodNullable<z.ZodDate>;
1711
+ userId: z.ZodNullable<z.ZodString>;
1712
+ sipServerUrl: z.ZodString;
1713
+ sipUserName: z.ZodString;
1714
+ extensionId: z.ZodNumber;
1715
+ extensionName: z.ZodString;
1716
+ telephonySignature: z.ZodNullable<z.ZodString>;
1717
+ }, "strip", z.ZodTypeAny, {
1660
1718
  id: string;
1661
1719
  createdAt: Date;
1662
1720
  updatedAt: Date;
@@ -1679,7 +1737,7 @@ export declare const messengerContract: {
1679
1737
  extensionName: string;
1680
1738
  telephonySignature: string | null;
1681
1739
  }>>;
1682
- }, "strip", import("zod").ZodTypeAny, {
1740
+ }, "strip", z.ZodTypeAny, {
1683
1741
  id: string;
1684
1742
  address: string | null;
1685
1743
  name: string;
@@ -1764,35 +1822,35 @@ export declare const messengerContract: {
1764
1822
  telephonySignature: string | null;
1765
1823
  } | undefined;
1766
1824
  }>;
1767
- assignee: import("zod").ZodObject<{
1768
- id: import("zod").ZodString;
1769
- createdAt: import("zod").ZodDate;
1770
- updatedAt: import("zod").ZodDate;
1771
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1772
- name: import("zod").ZodString;
1773
- email: import("zod").ZodString;
1774
- emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1775
- password: import("zod").ZodString;
1776
- address: import("zod").ZodNullable<import("zod").ZodString>;
1777
- phone: import("zod").ZodNullable<import("zod").ZodString>;
1778
- notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
1779
- roles: import("zod").ZodArray<import("zod").ZodObject<{
1780
- id: import("zod").ZodString;
1781
- createdAt: import("zod").ZodDate;
1782
- updatedAt: import("zod").ZodDate;
1783
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1784
- systemName: import("zod").ZodString;
1785
- displayName: import("zod").ZodString;
1786
- description: import("zod").ZodNullable<import("zod").ZodString>;
1787
- permissions: import("zod").ZodArray<import("zod").ZodObject<{
1788
- id: import("zod").ZodString;
1789
- createdAt: import("zod").ZodDate;
1790
- updatedAt: import("zod").ZodDate;
1791
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1792
- systemName: import("zod").ZodString;
1793
- displayName: import("zod").ZodString;
1794
- description: import("zod").ZodNullable<import("zod").ZodString>;
1795
- }, "strip", import("zod").ZodTypeAny, {
1825
+ assignee: z.ZodObject<{
1826
+ id: z.ZodString;
1827
+ createdAt: z.ZodDate;
1828
+ updatedAt: z.ZodDate;
1829
+ deletedAt: z.ZodNullable<z.ZodDate>;
1830
+ name: z.ZodString;
1831
+ email: z.ZodString;
1832
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1833
+ password: z.ZodString;
1834
+ address: z.ZodNullable<z.ZodString>;
1835
+ phone: z.ZodNullable<z.ZodString>;
1836
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1837
+ roles: z.ZodArray<z.ZodObject<{
1838
+ id: z.ZodString;
1839
+ createdAt: z.ZodDate;
1840
+ updatedAt: z.ZodDate;
1841
+ deletedAt: z.ZodNullable<z.ZodDate>;
1842
+ systemName: z.ZodString;
1843
+ displayName: z.ZodString;
1844
+ description: z.ZodNullable<z.ZodString>;
1845
+ permissions: z.ZodArray<z.ZodObject<{
1846
+ id: z.ZodString;
1847
+ createdAt: z.ZodDate;
1848
+ updatedAt: z.ZodDate;
1849
+ deletedAt: z.ZodNullable<z.ZodDate>;
1850
+ systemName: z.ZodString;
1851
+ displayName: z.ZodString;
1852
+ description: z.ZodNullable<z.ZodString>;
1853
+ }, "strip", z.ZodTypeAny, {
1796
1854
  id: string;
1797
1855
  description: string | null;
1798
1856
  createdAt: Date;
@@ -1809,7 +1867,7 @@ export declare const messengerContract: {
1809
1867
  systemName: string;
1810
1868
  displayName: string;
1811
1869
  }>, "many">;
1812
- }, "strip", import("zod").ZodTypeAny, {
1870
+ }, "strip", z.ZodTypeAny, {
1813
1871
  id: string;
1814
1872
  description: string | null;
1815
1873
  createdAt: Date;
@@ -1844,18 +1902,18 @@ export declare const messengerContract: {
1844
1902
  displayName: string;
1845
1903
  }[];
1846
1904
  }>, "many">;
1847
- extension: import("zod").ZodOptional<import("zod").ZodObject<{
1848
- id: import("zod").ZodString;
1849
- createdAt: import("zod").ZodDate;
1850
- updatedAt: import("zod").ZodDate;
1851
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
1852
- userId: import("zod").ZodNullable<import("zod").ZodString>;
1853
- sipServerUrl: import("zod").ZodString;
1854
- sipUserName: import("zod").ZodString;
1855
- extensionId: import("zod").ZodNumber;
1856
- extensionName: import("zod").ZodString;
1857
- telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
1858
- }, "strip", import("zod").ZodTypeAny, {
1905
+ extension: z.ZodOptional<z.ZodObject<{
1906
+ id: z.ZodString;
1907
+ createdAt: z.ZodDate;
1908
+ updatedAt: z.ZodDate;
1909
+ deletedAt: z.ZodNullable<z.ZodDate>;
1910
+ userId: z.ZodNullable<z.ZodString>;
1911
+ sipServerUrl: z.ZodString;
1912
+ sipUserName: z.ZodString;
1913
+ extensionId: z.ZodNumber;
1914
+ extensionName: z.ZodString;
1915
+ telephonySignature: z.ZodNullable<z.ZodString>;
1916
+ }, "strip", z.ZodTypeAny, {
1859
1917
  id: string;
1860
1918
  createdAt: Date;
1861
1919
  updatedAt: Date;
@@ -1878,7 +1936,7 @@ export declare const messengerContract: {
1878
1936
  extensionName: string;
1879
1937
  telephonySignature: string | null;
1880
1938
  }>>;
1881
- }, "strip", import("zod").ZodTypeAny, {
1939
+ }, "strip", z.ZodTypeAny, {
1882
1940
  id: string;
1883
1941
  address: string | null;
1884
1942
  name: string;
@@ -1963,19 +2021,19 @@ export declare const messengerContract: {
1963
2021
  telephonySignature: string | null;
1964
2022
  } | undefined;
1965
2023
  }>;
1966
- channel: import("zod").ZodOptional<import("zod").ZodObject<{
1967
- id: import("zod").ZodOptional<import("zod").ZodString>;
1968
- createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
1969
- updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
1970
- deletedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodDate>>;
1971
- name: import("zod").ZodOptional<import("zod").ZodString>;
1972
- type: import("zod").ZodOptional<import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
1973
- metadata: import("zod").ZodOptional<import("zod").ZodObject<{
1974
- id: import("zod").ZodString;
1975
- name: import("zod").ZodString;
1976
- accessToken: import("zod").ZodString;
1977
- additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
1978
- }, "strip", import("zod").ZodTypeAny, {
2024
+ channel: z.ZodOptional<z.ZodObject<{
2025
+ id: z.ZodOptional<z.ZodString>;
2026
+ createdAt: z.ZodOptional<z.ZodDate>;
2027
+ updatedAt: z.ZodOptional<z.ZodDate>;
2028
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2029
+ name: z.ZodOptional<z.ZodString>;
2030
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
2031
+ metadata: z.ZodOptional<z.ZodObject<{
2032
+ id: z.ZodString;
2033
+ name: z.ZodString;
2034
+ accessToken: z.ZodString;
2035
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
2036
+ }, "strip", z.ZodTypeAny, {
1979
2037
  id: string;
1980
2038
  name: string;
1981
2039
  accessToken: string;
@@ -1986,41 +2044,41 @@ export declare const messengerContract: {
1986
2044
  accessToken: string;
1987
2045
  additionalCredentials?: any;
1988
2046
  }>>;
1989
- brandName: import("zod").ZodOptional<import("zod").ZodString>;
1990
- platformId: import("zod").ZodOptional<import("zod").ZodString>;
1991
- status: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>>;
1992
- isReloginRequired: import("zod").ZodOptional<import("zod").ZodBoolean>;
1993
- connectedUserName: import("zod").ZodOptional<import("zod").ZodString>;
1994
- connectedUserId: import("zod").ZodOptional<import("zod").ZodString>;
1995
- actor: 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
- name: import("zod").ZodString;
2001
- email: import("zod").ZodString;
2002
- emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2003
- password: import("zod").ZodString;
2004
- address: import("zod").ZodNullable<import("zod").ZodString>;
2005
- phone: import("zod").ZodNullable<import("zod").ZodString>;
2006
- notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
2007
- roles: import("zod").ZodArray<import("zod").ZodObject<{
2008
- id: import("zod").ZodString;
2009
- createdAt: import("zod").ZodDate;
2010
- updatedAt: import("zod").ZodDate;
2011
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2012
- systemName: import("zod").ZodString;
2013
- displayName: import("zod").ZodString;
2014
- description: import("zod").ZodNullable<import("zod").ZodString>;
2015
- permissions: import("zod").ZodArray<import("zod").ZodObject<{
2016
- id: import("zod").ZodString;
2017
- createdAt: import("zod").ZodDate;
2018
- updatedAt: import("zod").ZodDate;
2019
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2020
- systemName: import("zod").ZodString;
2021
- displayName: import("zod").ZodString;
2022
- description: import("zod").ZodNullable<import("zod").ZodString>;
2023
- }, "strip", import("zod").ZodTypeAny, {
2047
+ brandName: z.ZodOptional<z.ZodString>;
2048
+ platformId: z.ZodOptional<z.ZodString>;
2049
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
2050
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
2051
+ connectedUserName: z.ZodOptional<z.ZodString>;
2052
+ connectedUserId: z.ZodOptional<z.ZodString>;
2053
+ actor: z.ZodOptional<z.ZodObject<{
2054
+ id: z.ZodString;
2055
+ createdAt: z.ZodDate;
2056
+ updatedAt: z.ZodDate;
2057
+ deletedAt: z.ZodNullable<z.ZodDate>;
2058
+ name: z.ZodString;
2059
+ email: z.ZodString;
2060
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2061
+ password: z.ZodString;
2062
+ address: z.ZodNullable<z.ZodString>;
2063
+ phone: z.ZodNullable<z.ZodString>;
2064
+ notificationCount: z.ZodNullable<z.ZodNumber>;
2065
+ roles: z.ZodArray<z.ZodObject<{
2066
+ id: z.ZodString;
2067
+ createdAt: z.ZodDate;
2068
+ updatedAt: z.ZodDate;
2069
+ deletedAt: z.ZodNullable<z.ZodDate>;
2070
+ systemName: z.ZodString;
2071
+ displayName: z.ZodString;
2072
+ description: z.ZodNullable<z.ZodString>;
2073
+ permissions: z.ZodArray<z.ZodObject<{
2074
+ id: z.ZodString;
2075
+ createdAt: z.ZodDate;
2076
+ updatedAt: z.ZodDate;
2077
+ deletedAt: z.ZodNullable<z.ZodDate>;
2078
+ systemName: z.ZodString;
2079
+ displayName: z.ZodString;
2080
+ description: z.ZodNullable<z.ZodString>;
2081
+ }, "strip", z.ZodTypeAny, {
2024
2082
  id: string;
2025
2083
  description: string | null;
2026
2084
  createdAt: Date;
@@ -2037,7 +2095,7 @@ export declare const messengerContract: {
2037
2095
  systemName: string;
2038
2096
  displayName: string;
2039
2097
  }>, "many">;
2040
- }, "strip", import("zod").ZodTypeAny, {
2098
+ }, "strip", z.ZodTypeAny, {
2041
2099
  id: string;
2042
2100
  description: string | null;
2043
2101
  createdAt: Date;
@@ -2072,18 +2130,18 @@ export declare const messengerContract: {
2072
2130
  displayName: string;
2073
2131
  }[];
2074
2132
  }>, "many">;
2075
- extension: import("zod").ZodOptional<import("zod").ZodObject<{
2076
- id: import("zod").ZodString;
2077
- createdAt: import("zod").ZodDate;
2078
- updatedAt: import("zod").ZodDate;
2079
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2080
- userId: import("zod").ZodNullable<import("zod").ZodString>;
2081
- sipServerUrl: import("zod").ZodString;
2082
- sipUserName: import("zod").ZodString;
2083
- extensionId: import("zod").ZodNumber;
2084
- extensionName: import("zod").ZodString;
2085
- telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
2086
- }, "strip", import("zod").ZodTypeAny, {
2133
+ extension: z.ZodOptional<z.ZodObject<{
2134
+ id: z.ZodString;
2135
+ createdAt: z.ZodDate;
2136
+ updatedAt: z.ZodDate;
2137
+ deletedAt: z.ZodNullable<z.ZodDate>;
2138
+ userId: z.ZodNullable<z.ZodString>;
2139
+ sipServerUrl: z.ZodString;
2140
+ sipUserName: z.ZodString;
2141
+ extensionId: z.ZodNumber;
2142
+ extensionName: z.ZodString;
2143
+ telephonySignature: z.ZodNullable<z.ZodString>;
2144
+ }, "strip", z.ZodTypeAny, {
2087
2145
  id: string;
2088
2146
  createdAt: Date;
2089
2147
  updatedAt: Date;
@@ -2106,7 +2164,7 @@ export declare const messengerContract: {
2106
2164
  extensionName: string;
2107
2165
  telephonySignature: string | null;
2108
2166
  }>>;
2109
- }, "strip", import("zod").ZodTypeAny, {
2167
+ }, "strip", z.ZodTypeAny, {
2110
2168
  id: string;
2111
2169
  address: string | null;
2112
2170
  name: string;
@@ -2191,7 +2249,7 @@ export declare const messengerContract: {
2191
2249
  telephonySignature: string | null;
2192
2250
  } | undefined;
2193
2251
  }>>;
2194
- }, "strip", import("zod").ZodTypeAny, {
2252
+ }, "strip", z.ZodTypeAny, {
2195
2253
  id?: string | undefined;
2196
2254
  createdAt?: Date | undefined;
2197
2255
  updatedAt?: Date | undefined;
@@ -2316,39 +2374,39 @@ export declare const messengerContract: {
2316
2374
  } | undefined;
2317
2375
  } | undefined;
2318
2376
  }>>;
2319
- cxlog: import("zod").ZodObject<{
2320
- id: import("zod").ZodString;
2321
- createdAt: import("zod").ZodDate;
2322
- updatedAt: import("zod").ZodDate;
2323
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2324
- caseId: import("zod").ZodNumber;
2325
- entityId: import("zod").ZodString;
2326
- entityName: import("zod").ZodString;
2327
- contactId: import("zod").ZodNullable<import("zod").ZodString>;
2328
- channel: import("zod").ZodNullable<import("zod").ZodString>;
2329
- queueId: import("zod").ZodNullable<import("zod").ZodString>;
2330
- agentId: import("zod").ZodNullable<import("zod").ZodString>;
2331
- direction: import("zod").ZodNullable<import("zod").ZodString>;
2332
- startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
2333
- handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
2334
- firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
2335
- disposition: import("zod").ZodNullable<import("zod").ZodString>;
2336
- wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
2337
- id: import("zod").ZodString;
2338
- createdAt: import("zod").ZodDate;
2339
- updatedAt: import("zod").ZodDate;
2340
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2341
- note: import("zod").ZodNullable<import("zod").ZodString>;
2342
- disposition: import("zod").ZodNullable<import("zod").ZodString>;
2343
- callFrom: import("zod").ZodNullable<import("zod").ZodString>;
2344
- callTo: import("zod").ZodNullable<import("zod").ZodString>;
2345
- tags: import("zod").ZodArray<import("zod").ZodObject<{
2346
- id: import("zod").ZodString;
2347
- createdAt: import("zod").ZodDate;
2348
- updatedAt: import("zod").ZodDate;
2349
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2350
- name: import("zod").ZodString;
2351
- }, "strip", import("zod").ZodTypeAny, {
2377
+ cxlog: z.ZodObject<{
2378
+ id: z.ZodString;
2379
+ createdAt: z.ZodDate;
2380
+ updatedAt: z.ZodDate;
2381
+ deletedAt: z.ZodNullable<z.ZodDate>;
2382
+ caseId: z.ZodNumber;
2383
+ entityId: z.ZodString;
2384
+ entityName: z.ZodString;
2385
+ contactId: z.ZodNullable<z.ZodString>;
2386
+ channel: z.ZodNullable<z.ZodString>;
2387
+ queueId: z.ZodNullable<z.ZodString>;
2388
+ agentId: z.ZodNullable<z.ZodString>;
2389
+ direction: z.ZodNullable<z.ZodString>;
2390
+ startedDate: z.ZodNullable<z.ZodDate>;
2391
+ handledTime: z.ZodNullable<z.ZodNumber>;
2392
+ firstResponseTime: z.ZodNullable<z.ZodNumber>;
2393
+ disposition: z.ZodNullable<z.ZodString>;
2394
+ wrapUpForm: z.ZodNullable<z.ZodObject<{
2395
+ id: z.ZodString;
2396
+ createdAt: z.ZodDate;
2397
+ updatedAt: z.ZodDate;
2398
+ deletedAt: z.ZodNullable<z.ZodDate>;
2399
+ note: z.ZodNullable<z.ZodString>;
2400
+ disposition: z.ZodNullable<z.ZodString>;
2401
+ callFrom: z.ZodNullable<z.ZodString>;
2402
+ callTo: z.ZodNullable<z.ZodString>;
2403
+ tags: z.ZodArray<z.ZodObject<{
2404
+ id: z.ZodString;
2405
+ createdAt: z.ZodDate;
2406
+ updatedAt: z.ZodDate;
2407
+ deletedAt: z.ZodNullable<z.ZodDate>;
2408
+ name: z.ZodString;
2409
+ }, "strip", z.ZodTypeAny, {
2352
2410
  id: string;
2353
2411
  name: string;
2354
2412
  createdAt: Date;
@@ -2361,7 +2419,7 @@ export declare const messengerContract: {
2361
2419
  updatedAt: Date;
2362
2420
  deletedAt: Date | null;
2363
2421
  }>, "many">;
2364
- }, "strip", import("zod").ZodTypeAny, {
2422
+ }, "strip", z.ZodTypeAny, {
2365
2423
  id: string;
2366
2424
  disposition: string | null;
2367
2425
  createdAt: Date;
@@ -2394,7 +2452,7 @@ export declare const messengerContract: {
2394
2452
  callTo: string | null;
2395
2453
  note: string | null;
2396
2454
  }>>;
2397
- }, "strip", import("zod").ZodTypeAny, {
2455
+ }, "strip", z.ZodTypeAny, {
2398
2456
  id: string;
2399
2457
  channel: string | null;
2400
2458
  disposition: string | null;
@@ -2463,7 +2521,7 @@ export declare const messengerContract: {
2463
2521
  note: string | null;
2464
2522
  } | null;
2465
2523
  }>;
2466
- }, "strip", import("zod").ZodTypeAny, {
2524
+ }, "strip", z.ZodTypeAny, {
2467
2525
  id: string;
2468
2526
  direction: "incoming" | "outgoing" | "system";
2469
2527
  createdAt: Date;
@@ -2531,6 +2589,7 @@ export declare const messengerContract: {
2531
2589
  createdAt: Date;
2532
2590
  updatedAt: Date;
2533
2591
  deletedAt: Date | null;
2592
+ channelId: string;
2534
2593
  contact: {
2535
2594
  id: string;
2536
2595
  channel: string | null;
@@ -2633,7 +2692,6 @@ export declare const messengerContract: {
2633
2692
  };
2634
2693
  }[] | undefined;
2635
2694
  };
2636
- channelId: string;
2637
2695
  socialPlatformId: string;
2638
2696
  };
2639
2697
  assignee: {
@@ -2845,6 +2903,7 @@ export declare const messengerContract: {
2845
2903
  createdAt: Date;
2846
2904
  updatedAt: Date;
2847
2905
  deletedAt: Date | null;
2906
+ channelId: string;
2848
2907
  contact: {
2849
2908
  id: string;
2850
2909
  channel: string | null;
@@ -2947,7 +3006,6 @@ export declare const messengerContract: {
2947
3006
  };
2948
3007
  }[] | undefined;
2949
3008
  };
2950
- channelId: string;
2951
3009
  socialPlatformId: string;
2952
3010
  };
2953
3011
  assignee: {
@@ -3092,16 +3150,16 @@ export declare const messengerContract: {
3092
3150
  } | undefined;
3093
3151
  } | undefined;
3094
3152
  }>;
3095
- upload: import("zod").ZodObject<{
3096
- id: import("zod").ZodString;
3097
- createdAt: import("zod").ZodDate;
3098
- updatedAt: import("zod").ZodDate;
3099
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3100
- bucketName: import("zod").ZodString;
3101
- fileName: import("zod").ZodString;
3102
- fileSize: import("zod").ZodNumber;
3103
- fileKey: import("zod").ZodString;
3104
- }, "strip", import("zod").ZodTypeAny, {
3153
+ upload: z.ZodObject<{
3154
+ id: z.ZodString;
3155
+ createdAt: z.ZodDate;
3156
+ updatedAt: z.ZodDate;
3157
+ deletedAt: z.ZodNullable<z.ZodDate>;
3158
+ bucketName: z.ZodString;
3159
+ fileName: z.ZodString;
3160
+ fileSize: z.ZodNumber;
3161
+ fileKey: z.ZodString;
3162
+ }, "strip", z.ZodTypeAny, {
3105
3163
  id: string;
3106
3164
  createdAt: Date;
3107
3165
  updatedAt: Date;
@@ -3120,35 +3178,35 @@ export declare const messengerContract: {
3120
3178
  bucketName: string;
3121
3179
  fileSize: number;
3122
3180
  }>;
3123
- actor: import("zod").ZodObject<{
3124
- id: import("zod").ZodString;
3125
- createdAt: import("zod").ZodDate;
3126
- updatedAt: import("zod").ZodDate;
3127
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3128
- name: import("zod").ZodString;
3129
- email: import("zod").ZodString;
3130
- emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3131
- password: import("zod").ZodString;
3132
- address: import("zod").ZodNullable<import("zod").ZodString>;
3133
- phone: import("zod").ZodNullable<import("zod").ZodString>;
3134
- notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
3135
- roles: import("zod").ZodArray<import("zod").ZodObject<{
3136
- id: import("zod").ZodString;
3137
- createdAt: import("zod").ZodDate;
3138
- updatedAt: import("zod").ZodDate;
3139
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3140
- systemName: import("zod").ZodString;
3141
- displayName: import("zod").ZodString;
3142
- description: import("zod").ZodNullable<import("zod").ZodString>;
3143
- permissions: import("zod").ZodArray<import("zod").ZodObject<{
3144
- id: import("zod").ZodString;
3145
- createdAt: import("zod").ZodDate;
3146
- updatedAt: import("zod").ZodDate;
3147
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3148
- systemName: import("zod").ZodString;
3149
- displayName: import("zod").ZodString;
3150
- description: import("zod").ZodNullable<import("zod").ZodString>;
3151
- }, "strip", import("zod").ZodTypeAny, {
3181
+ actor: z.ZodObject<{
3182
+ id: z.ZodString;
3183
+ createdAt: z.ZodDate;
3184
+ updatedAt: z.ZodDate;
3185
+ deletedAt: z.ZodNullable<z.ZodDate>;
3186
+ name: z.ZodString;
3187
+ email: z.ZodString;
3188
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3189
+ password: z.ZodString;
3190
+ address: z.ZodNullable<z.ZodString>;
3191
+ phone: z.ZodNullable<z.ZodString>;
3192
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3193
+ roles: z.ZodArray<z.ZodObject<{
3194
+ id: z.ZodString;
3195
+ createdAt: z.ZodDate;
3196
+ updatedAt: z.ZodDate;
3197
+ deletedAt: z.ZodNullable<z.ZodDate>;
3198
+ systemName: z.ZodString;
3199
+ displayName: z.ZodString;
3200
+ description: z.ZodNullable<z.ZodString>;
3201
+ permissions: z.ZodArray<z.ZodObject<{
3202
+ id: z.ZodString;
3203
+ createdAt: z.ZodDate;
3204
+ updatedAt: z.ZodDate;
3205
+ deletedAt: z.ZodNullable<z.ZodDate>;
3206
+ systemName: z.ZodString;
3207
+ displayName: z.ZodString;
3208
+ description: z.ZodNullable<z.ZodString>;
3209
+ }, "strip", z.ZodTypeAny, {
3152
3210
  id: string;
3153
3211
  description: string | null;
3154
3212
  createdAt: Date;
@@ -3165,7 +3223,7 @@ export declare const messengerContract: {
3165
3223
  systemName: string;
3166
3224
  displayName: string;
3167
3225
  }>, "many">;
3168
- }, "strip", import("zod").ZodTypeAny, {
3226
+ }, "strip", z.ZodTypeAny, {
3169
3227
  id: string;
3170
3228
  description: string | null;
3171
3229
  createdAt: Date;
@@ -3200,18 +3258,18 @@ export declare const messengerContract: {
3200
3258
  displayName: string;
3201
3259
  }[];
3202
3260
  }>, "many">;
3203
- extension: import("zod").ZodOptional<import("zod").ZodObject<{
3204
- id: import("zod").ZodString;
3205
- createdAt: import("zod").ZodDate;
3206
- updatedAt: import("zod").ZodDate;
3207
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3208
- userId: import("zod").ZodNullable<import("zod").ZodString>;
3209
- sipServerUrl: import("zod").ZodString;
3210
- sipUserName: import("zod").ZodString;
3211
- extensionId: import("zod").ZodNumber;
3212
- extensionName: import("zod").ZodString;
3213
- telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
3214
- }, "strip", import("zod").ZodTypeAny, {
3261
+ extension: z.ZodOptional<z.ZodObject<{
3262
+ id: z.ZodString;
3263
+ createdAt: z.ZodDate;
3264
+ updatedAt: z.ZodDate;
3265
+ deletedAt: z.ZodNullable<z.ZodDate>;
3266
+ userId: z.ZodNullable<z.ZodString>;
3267
+ sipServerUrl: z.ZodString;
3268
+ sipUserName: z.ZodString;
3269
+ extensionId: z.ZodNumber;
3270
+ extensionName: z.ZodString;
3271
+ telephonySignature: z.ZodNullable<z.ZodString>;
3272
+ }, "strip", z.ZodTypeAny, {
3215
3273
  id: string;
3216
3274
  createdAt: Date;
3217
3275
  updatedAt: Date;
@@ -3234,7 +3292,7 @@ export declare const messengerContract: {
3234
3292
  extensionName: string;
3235
3293
  telephonySignature: string | null;
3236
3294
  }>>;
3237
- }, "strip", import("zod").ZodTypeAny, {
3295
+ }, "strip", z.ZodTypeAny, {
3238
3296
  id: string;
3239
3297
  address: string | null;
3240
3298
  name: string;
@@ -3319,35 +3377,35 @@ export declare const messengerContract: {
3319
3377
  telephonySignature: string | null;
3320
3378
  } | undefined;
3321
3379
  }>;
3322
- assignee: import("zod").ZodObject<{
3323
- id: import("zod").ZodString;
3324
- createdAt: import("zod").ZodDate;
3325
- updatedAt: import("zod").ZodDate;
3326
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3327
- name: import("zod").ZodString;
3328
- email: import("zod").ZodString;
3329
- emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3330
- password: import("zod").ZodString;
3331
- address: import("zod").ZodNullable<import("zod").ZodString>;
3332
- phone: import("zod").ZodNullable<import("zod").ZodString>;
3333
- notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
3334
- roles: import("zod").ZodArray<import("zod").ZodObject<{
3335
- id: import("zod").ZodString;
3336
- createdAt: import("zod").ZodDate;
3337
- updatedAt: import("zod").ZodDate;
3338
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3339
- systemName: import("zod").ZodString;
3340
- displayName: import("zod").ZodString;
3341
- description: import("zod").ZodNullable<import("zod").ZodString>;
3342
- permissions: import("zod").ZodArray<import("zod").ZodObject<{
3343
- id: import("zod").ZodString;
3344
- createdAt: import("zod").ZodDate;
3345
- updatedAt: import("zod").ZodDate;
3346
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3347
- systemName: import("zod").ZodString;
3348
- displayName: import("zod").ZodString;
3349
- description: import("zod").ZodNullable<import("zod").ZodString>;
3350
- }, "strip", import("zod").ZodTypeAny, {
3380
+ assignee: z.ZodObject<{
3381
+ id: z.ZodString;
3382
+ createdAt: z.ZodDate;
3383
+ updatedAt: z.ZodDate;
3384
+ deletedAt: z.ZodNullable<z.ZodDate>;
3385
+ name: z.ZodString;
3386
+ email: z.ZodString;
3387
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3388
+ password: z.ZodString;
3389
+ address: z.ZodNullable<z.ZodString>;
3390
+ phone: z.ZodNullable<z.ZodString>;
3391
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3392
+ roles: z.ZodArray<z.ZodObject<{
3393
+ id: z.ZodString;
3394
+ createdAt: z.ZodDate;
3395
+ updatedAt: z.ZodDate;
3396
+ deletedAt: z.ZodNullable<z.ZodDate>;
3397
+ systemName: z.ZodString;
3398
+ displayName: z.ZodString;
3399
+ description: z.ZodNullable<z.ZodString>;
3400
+ permissions: z.ZodArray<z.ZodObject<{
3401
+ id: z.ZodString;
3402
+ createdAt: z.ZodDate;
3403
+ updatedAt: z.ZodDate;
3404
+ deletedAt: z.ZodNullable<z.ZodDate>;
3405
+ systemName: z.ZodString;
3406
+ displayName: z.ZodString;
3407
+ description: z.ZodNullable<z.ZodString>;
3408
+ }, "strip", z.ZodTypeAny, {
3351
3409
  id: string;
3352
3410
  description: string | null;
3353
3411
  createdAt: Date;
@@ -3364,7 +3422,7 @@ export declare const messengerContract: {
3364
3422
  systemName: string;
3365
3423
  displayName: string;
3366
3424
  }>, "many">;
3367
- }, "strip", import("zod").ZodTypeAny, {
3425
+ }, "strip", z.ZodTypeAny, {
3368
3426
  id: string;
3369
3427
  description: string | null;
3370
3428
  createdAt: Date;
@@ -3399,18 +3457,18 @@ export declare const messengerContract: {
3399
3457
  displayName: string;
3400
3458
  }[];
3401
3459
  }>, "many">;
3402
- extension: import("zod").ZodOptional<import("zod").ZodObject<{
3403
- id: import("zod").ZodString;
3404
- createdAt: import("zod").ZodDate;
3405
- updatedAt: import("zod").ZodDate;
3406
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3407
- userId: import("zod").ZodNullable<import("zod").ZodString>;
3408
- sipServerUrl: import("zod").ZodString;
3409
- sipUserName: import("zod").ZodString;
3410
- extensionId: import("zod").ZodNumber;
3411
- extensionName: import("zod").ZodString;
3412
- telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
3413
- }, "strip", import("zod").ZodTypeAny, {
3460
+ extension: z.ZodOptional<z.ZodObject<{
3461
+ id: z.ZodString;
3462
+ createdAt: z.ZodDate;
3463
+ updatedAt: z.ZodDate;
3464
+ deletedAt: z.ZodNullable<z.ZodDate>;
3465
+ userId: z.ZodNullable<z.ZodString>;
3466
+ sipServerUrl: z.ZodString;
3467
+ sipUserName: z.ZodString;
3468
+ extensionId: z.ZodNumber;
3469
+ extensionName: z.ZodString;
3470
+ telephonySignature: z.ZodNullable<z.ZodString>;
3471
+ }, "strip", z.ZodTypeAny, {
3414
3472
  id: string;
3415
3473
  createdAt: Date;
3416
3474
  updatedAt: Date;
@@ -3433,7 +3491,7 @@ export declare const messengerContract: {
3433
3491
  extensionName: string;
3434
3492
  telephonySignature: string | null;
3435
3493
  }>>;
3436
- }, "strip", import("zod").ZodTypeAny, {
3494
+ }, "strip", z.ZodTypeAny, {
3437
3495
  id: string;
3438
3496
  address: string | null;
3439
3497
  name: string;
@@ -3518,35 +3576,35 @@ export declare const messengerContract: {
3518
3576
  telephonySignature: string | null;
3519
3577
  } | undefined;
3520
3578
  }>;
3521
- sender: import("zod").ZodObject<{
3522
- id: import("zod").ZodString;
3523
- createdAt: import("zod").ZodDate;
3524
- updatedAt: import("zod").ZodDate;
3525
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3526
- name: import("zod").ZodString;
3527
- email: import("zod").ZodString;
3528
- emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3529
- password: import("zod").ZodString;
3530
- address: import("zod").ZodNullable<import("zod").ZodString>;
3531
- phone: import("zod").ZodNullable<import("zod").ZodString>;
3532
- notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
3533
- roles: import("zod").ZodArray<import("zod").ZodObject<{
3534
- id: import("zod").ZodString;
3535
- createdAt: import("zod").ZodDate;
3536
- updatedAt: import("zod").ZodDate;
3537
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3538
- systemName: import("zod").ZodString;
3539
- displayName: import("zod").ZodString;
3540
- description: import("zod").ZodNullable<import("zod").ZodString>;
3541
- permissions: import("zod").ZodArray<import("zod").ZodObject<{
3542
- id: import("zod").ZodString;
3543
- createdAt: import("zod").ZodDate;
3544
- updatedAt: import("zod").ZodDate;
3545
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3546
- systemName: import("zod").ZodString;
3547
- displayName: import("zod").ZodString;
3548
- description: import("zod").ZodNullable<import("zod").ZodString>;
3549
- }, "strip", import("zod").ZodTypeAny, {
3579
+ sender: z.ZodObject<{
3580
+ id: z.ZodString;
3581
+ createdAt: z.ZodDate;
3582
+ updatedAt: z.ZodDate;
3583
+ deletedAt: z.ZodNullable<z.ZodDate>;
3584
+ name: z.ZodString;
3585
+ email: z.ZodString;
3586
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3587
+ password: z.ZodString;
3588
+ address: z.ZodNullable<z.ZodString>;
3589
+ phone: z.ZodNullable<z.ZodString>;
3590
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3591
+ roles: z.ZodArray<z.ZodObject<{
3592
+ id: z.ZodString;
3593
+ createdAt: z.ZodDate;
3594
+ updatedAt: z.ZodDate;
3595
+ deletedAt: z.ZodNullable<z.ZodDate>;
3596
+ systemName: z.ZodString;
3597
+ displayName: z.ZodString;
3598
+ description: z.ZodNullable<z.ZodString>;
3599
+ permissions: z.ZodArray<z.ZodObject<{
3600
+ id: z.ZodString;
3601
+ createdAt: z.ZodDate;
3602
+ updatedAt: z.ZodDate;
3603
+ deletedAt: z.ZodNullable<z.ZodDate>;
3604
+ systemName: z.ZodString;
3605
+ displayName: z.ZodString;
3606
+ description: z.ZodNullable<z.ZodString>;
3607
+ }, "strip", z.ZodTypeAny, {
3550
3608
  id: string;
3551
3609
  description: string | null;
3552
3610
  createdAt: Date;
@@ -3563,7 +3621,7 @@ export declare const messengerContract: {
3563
3621
  systemName: string;
3564
3622
  displayName: string;
3565
3623
  }>, "many">;
3566
- }, "strip", import("zod").ZodTypeAny, {
3624
+ }, "strip", z.ZodTypeAny, {
3567
3625
  id: string;
3568
3626
  description: string | null;
3569
3627
  createdAt: Date;
@@ -3598,18 +3656,18 @@ export declare const messengerContract: {
3598
3656
  displayName: string;
3599
3657
  }[];
3600
3658
  }>, "many">;
3601
- extension: import("zod").ZodOptional<import("zod").ZodObject<{
3602
- id: import("zod").ZodString;
3603
- createdAt: import("zod").ZodDate;
3604
- updatedAt: import("zod").ZodDate;
3605
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
3606
- userId: import("zod").ZodNullable<import("zod").ZodString>;
3607
- sipServerUrl: import("zod").ZodString;
3608
- sipUserName: import("zod").ZodString;
3609
- extensionId: import("zod").ZodNumber;
3610
- extensionName: import("zod").ZodString;
3611
- telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
3612
- }, "strip", import("zod").ZodTypeAny, {
3659
+ extension: z.ZodOptional<z.ZodObject<{
3660
+ id: z.ZodString;
3661
+ createdAt: z.ZodDate;
3662
+ updatedAt: z.ZodDate;
3663
+ deletedAt: z.ZodNullable<z.ZodDate>;
3664
+ userId: z.ZodNullable<z.ZodString>;
3665
+ sipServerUrl: z.ZodString;
3666
+ sipUserName: z.ZodString;
3667
+ extensionId: z.ZodNumber;
3668
+ extensionName: z.ZodString;
3669
+ telephonySignature: z.ZodNullable<z.ZodString>;
3670
+ }, "strip", z.ZodTypeAny, {
3613
3671
  id: string;
3614
3672
  createdAt: Date;
3615
3673
  updatedAt: Date;
@@ -3632,7 +3690,7 @@ export declare const messengerContract: {
3632
3690
  extensionName: string;
3633
3691
  telephonySignature: string | null;
3634
3692
  }>>;
3635
- }, "strip", import("zod").ZodTypeAny, {
3693
+ }, "strip", z.ZodTypeAny, {
3636
3694
  id: string;
3637
3695
  address: string | null;
3638
3696
  name: string;
@@ -3717,8 +3775,8 @@ export declare const messengerContract: {
3717
3775
  telephonySignature: string | null;
3718
3776
  } | undefined;
3719
3777
  }>;
3720
- }, "strip", import("zod").ZodTypeAny, {
3721
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
3778
+ }, "strip", z.ZodTypeAny, {
3779
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
3722
3780
  message: string;
3723
3781
  id: string;
3724
3782
  url: string;
@@ -3891,6 +3949,7 @@ export declare const messengerContract: {
3891
3949
  createdAt: Date;
3892
3950
  updatedAt: Date;
3893
3951
  deletedAt: Date | null;
3952
+ channelId: string;
3894
3953
  contact: {
3895
3954
  id: string;
3896
3955
  channel: string | null;
@@ -3993,7 +4052,6 @@ export declare const messengerContract: {
3993
4052
  };
3994
4053
  }[] | undefined;
3995
4054
  };
3996
- channelId: string;
3997
4055
  socialPlatformId: string;
3998
4056
  };
3999
4057
  assignee: {
@@ -4190,7 +4248,7 @@ export declare const messengerContract: {
4190
4248
  metadata?: any;
4191
4249
  template?: any;
4192
4250
  }, {
4193
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
4251
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
4194
4252
  message: string;
4195
4253
  id: string;
4196
4254
  url: string;
@@ -4363,6 +4421,7 @@ export declare const messengerContract: {
4363
4421
  createdAt: Date;
4364
4422
  updatedAt: Date;
4365
4423
  deletedAt: Date | null;
4424
+ channelId: string;
4366
4425
  contact: {
4367
4426
  id: string;
4368
4427
  channel: string | null;
@@ -4465,7 +4524,6 @@ export declare const messengerContract: {
4465
4524
  };
4466
4525
  }[] | undefined;
4467
4526
  };
4468
- channelId: string;
4469
4527
  socialPlatformId: string;
4470
4528
  };
4471
4529
  assignee: {
@@ -4662,9 +4720,9 @@ export declare const messengerContract: {
4662
4720
  metadata?: any;
4663
4721
  template?: any;
4664
4722
  }>;
4665
- }, "strip", import("zod").ZodTypeAny, {
4723
+ }, "strip", z.ZodTypeAny, {
4666
4724
  data: {
4667
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
4725
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
4668
4726
  message: string;
4669
4727
  id: string;
4670
4728
  url: string;
@@ -4837,6 +4895,7 @@ export declare const messengerContract: {
4837
4895
  createdAt: Date;
4838
4896
  updatedAt: Date;
4839
4897
  deletedAt: Date | null;
4898
+ channelId: string;
4840
4899
  contact: {
4841
4900
  id: string;
4842
4901
  channel: string | null;
@@ -4939,7 +4998,6 @@ export declare const messengerContract: {
4939
4998
  };
4940
4999
  }[] | undefined;
4941
5000
  };
4942
- channelId: string;
4943
5001
  socialPlatformId: string;
4944
5002
  };
4945
5003
  assignee: {
@@ -5139,7 +5197,7 @@ export declare const messengerContract: {
5139
5197
  requestId: string;
5140
5198
  }, {
5141
5199
  data: {
5142
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
5200
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
5143
5201
  message: string;
5144
5202
  id: string;
5145
5203
  url: string;
@@ -5312,6 +5370,7 @@ export declare const messengerContract: {
5312
5370
  createdAt: Date;
5313
5371
  updatedAt: Date;
5314
5372
  deletedAt: Date | null;
5373
+ channelId: string;
5315
5374
  contact: {
5316
5375
  id: string;
5317
5376
  channel: string | null;
@@ -5414,7 +5473,6 @@ export declare const messengerContract: {
5414
5473
  };
5415
5474
  }[] | undefined;
5416
5475
  };
5417
- channelId: string;
5418
5476
  socialPlatformId: string;
5419
5477
  };
5420
5478
  assignee: {
@@ -5613,10 +5671,10 @@ export declare const messengerContract: {
5613
5671
  };
5614
5672
  requestId: string;
5615
5673
  }>;
5616
- 500: import("zod").ZodObject<{
5617
- message: import("zod").ZodString;
5618
- error: import("zod").ZodAny;
5619
- }, "strip", import("zod").ZodTypeAny, {
5674
+ 500: z.ZodObject<{
5675
+ message: z.ZodString;
5676
+ error: z.ZodAny;
5677
+ }, "strip", z.ZodTypeAny, {
5620
5678
  message: string;
5621
5679
  error?: any;
5622
5680
  }, {
@@ -5627,15 +5685,15 @@ export declare const messengerContract: {
5627
5685
  path: "/message";
5628
5686
  };
5629
5687
  connectToService: {
5630
- body: import("zod").ZodObject<{
5631
- name: import("zod").ZodString;
5632
- type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
5633
- metadata: import("zod").ZodObject<{
5634
- id: import("zod").ZodString;
5635
- name: import("zod").ZodString;
5636
- accessToken: import("zod").ZodString;
5637
- additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
5638
- }, "strip", import("zod").ZodTypeAny, {
5688
+ body: z.ZodObject<{
5689
+ name: z.ZodOptional<z.ZodString>;
5690
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
5691
+ metadata: z.ZodOptional<z.ZodObject<{
5692
+ id: z.ZodString;
5693
+ name: z.ZodString;
5694
+ accessToken: z.ZodString;
5695
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
5696
+ }, "strip", z.ZodTypeAny, {
5639
5697
  id: string;
5640
5698
  name: string;
5641
5699
  accessToken: string;
@@ -5645,57 +5703,87 @@ export declare const messengerContract: {
5645
5703
  name: string;
5646
5704
  accessToken: string;
5647
5705
  additionalCredentials?: any;
5648
- }>;
5649
- brandName: import("zod").ZodString;
5650
- platformId: import("zod").ZodString;
5651
- status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
5652
- isReloginRequired: import("zod").ZodBoolean;
5653
- connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
5654
- connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
5655
- }, "strip", import("zod").ZodTypeAny, {
5656
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5657
- name: string;
5658
- metadata: {
5706
+ }>>;
5707
+ platformId: z.ZodOptional<z.ZodString>;
5708
+ brandName: z.ZodOptional<z.ZodString>;
5709
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
5710
+ connectedUserName: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5711
+ connectedUserId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5712
+ actor: z.ZodOptional<z.ZodObject<{
5713
+ id: z.ZodString;
5714
+ name: z.ZodString;
5715
+ email: z.ZodString;
5716
+ address: z.ZodNullable<z.ZodString>;
5717
+ phone: z.ZodNullable<z.ZodString>;
5718
+ }, "strip", z.ZodTypeAny, {
5719
+ id: string;
5720
+ address: string | null;
5721
+ name: string;
5722
+ email: string;
5723
+ phone: string | null;
5724
+ }, {
5725
+ id: string;
5726
+ address: string | null;
5727
+ name: string;
5728
+ email: string;
5729
+ phone: string | null;
5730
+ }>>;
5731
+ }, "strip", z.ZodTypeAny, {
5732
+ name?: string | undefined;
5733
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5734
+ metadata?: {
5659
5735
  id: string;
5660
5736
  name: string;
5661
5737
  accessToken: string;
5662
5738
  additionalCredentials?: any;
5663
- };
5664
- status: boolean;
5665
- brandName: string;
5666
- platformId: string;
5667
- isReloginRequired: boolean;
5739
+ } | undefined;
5740
+ platformId?: string | undefined;
5741
+ brandName?: string | undefined;
5742
+ status?: boolean | undefined;
5668
5743
  connectedUserName?: string | null | undefined;
5669
5744
  connectedUserId?: string | null | undefined;
5745
+ actor?: {
5746
+ id: string;
5747
+ address: string | null;
5748
+ name: string;
5749
+ email: string;
5750
+ phone: string | null;
5751
+ } | undefined;
5670
5752
  }, {
5671
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5672
- name: string;
5673
- metadata: {
5753
+ name?: string | undefined;
5754
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5755
+ metadata?: {
5674
5756
  id: string;
5675
5757
  name: string;
5676
5758
  accessToken: string;
5677
5759
  additionalCredentials?: any;
5678
- };
5679
- status: boolean;
5680
- brandName: string;
5681
- platformId: string;
5682
- isReloginRequired: boolean;
5760
+ } | undefined;
5761
+ platformId?: string | undefined;
5762
+ brandName?: string | undefined;
5763
+ status?: boolean | undefined;
5683
5764
  connectedUserName?: string | null | undefined;
5684
5765
  connectedUserId?: string | null | undefined;
5766
+ actor?: {
5767
+ id: string;
5768
+ address: string | null;
5769
+ name: string;
5770
+ email: string;
5771
+ phone: string | null;
5772
+ } | undefined;
5685
5773
  }>;
5686
5774
  method: "POST";
5687
5775
  responses: {
5688
- 200: import("zod").ZodObject<{
5689
- requestId: import("zod").ZodString;
5690
- data: import("zod").ZodObject<{
5691
- name: import("zod").ZodString;
5692
- type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
5693
- metadata: import("zod").ZodObject<{
5694
- id: import("zod").ZodString;
5695
- name: import("zod").ZodString;
5696
- accessToken: import("zod").ZodString;
5697
- additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
5698
- }, "strip", import("zod").ZodTypeAny, {
5776
+ 200: z.ZodObject<{
5777
+ requestId: z.ZodString;
5778
+ data: z.ZodObject<{
5779
+ name: z.ZodString;
5780
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
5781
+ metadata: z.ZodObject<{
5782
+ id: z.ZodString;
5783
+ name: z.ZodString;
5784
+ accessToken: z.ZodString;
5785
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
5786
+ }, "strip", z.ZodTypeAny, {
5699
5787
  id: string;
5700
5788
  name: string;
5701
5789
  accessToken: string;
@@ -5706,13 +5794,31 @@ export declare const messengerContract: {
5706
5794
  accessToken: string;
5707
5795
  additionalCredentials?: any;
5708
5796
  }>;
5709
- brandName: import("zod").ZodString;
5710
- platformId: import("zod").ZodString;
5711
- status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
5712
- isReloginRequired: import("zod").ZodBoolean;
5713
- connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
5714
- connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
5715
- }, "strip", import("zod").ZodTypeAny, {
5797
+ platformId: z.ZodString;
5798
+ brandName: z.ZodString;
5799
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
5800
+ connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5801
+ connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5802
+ actor: z.ZodObject<{
5803
+ id: z.ZodString;
5804
+ name: z.ZodString;
5805
+ email: z.ZodString;
5806
+ address: z.ZodNullable<z.ZodString>;
5807
+ phone: z.ZodNullable<z.ZodString>;
5808
+ }, "strip", z.ZodTypeAny, {
5809
+ id: string;
5810
+ address: string | null;
5811
+ name: string;
5812
+ email: string;
5813
+ phone: string | null;
5814
+ }, {
5815
+ id: string;
5816
+ address: string | null;
5817
+ name: string;
5818
+ email: string;
5819
+ phone: string | null;
5820
+ }>;
5821
+ }, "strip", z.ZodTypeAny, {
5716
5822
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5717
5823
  name: string;
5718
5824
  metadata: {
@@ -5724,7 +5830,13 @@ export declare const messengerContract: {
5724
5830
  status: boolean;
5725
5831
  brandName: string;
5726
5832
  platformId: string;
5727
- isReloginRequired: boolean;
5833
+ actor: {
5834
+ id: string;
5835
+ address: string | null;
5836
+ name: string;
5837
+ email: string;
5838
+ phone: string | null;
5839
+ };
5728
5840
  connectedUserName?: string | null | undefined;
5729
5841
  connectedUserId?: string | null | undefined;
5730
5842
  }, {
@@ -5739,11 +5851,17 @@ export declare const messengerContract: {
5739
5851
  status: boolean;
5740
5852
  brandName: string;
5741
5853
  platformId: string;
5742
- isReloginRequired: boolean;
5854
+ actor: {
5855
+ id: string;
5856
+ address: string | null;
5857
+ name: string;
5858
+ email: string;
5859
+ phone: string | null;
5860
+ };
5743
5861
  connectedUserName?: string | null | undefined;
5744
5862
  connectedUserId?: string | null | undefined;
5745
5863
  }>;
5746
- }, "strip", import("zod").ZodTypeAny, {
5864
+ }, "strip", z.ZodTypeAny, {
5747
5865
  data: {
5748
5866
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5749
5867
  name: string;
@@ -5756,7 +5874,13 @@ export declare const messengerContract: {
5756
5874
  status: boolean;
5757
5875
  brandName: string;
5758
5876
  platformId: string;
5759
- isReloginRequired: boolean;
5877
+ actor: {
5878
+ id: string;
5879
+ address: string | null;
5880
+ name: string;
5881
+ email: string;
5882
+ phone: string | null;
5883
+ };
5760
5884
  connectedUserName?: string | null | undefined;
5761
5885
  connectedUserId?: string | null | undefined;
5762
5886
  };
@@ -5774,26 +5898,32 @@ export declare const messengerContract: {
5774
5898
  status: boolean;
5775
5899
  brandName: string;
5776
5900
  platformId: string;
5777
- isReloginRequired: boolean;
5901
+ actor: {
5902
+ id: string;
5903
+ address: string | null;
5904
+ name: string;
5905
+ email: string;
5906
+ phone: string | null;
5907
+ };
5778
5908
  connectedUserName?: string | null | undefined;
5779
5909
  connectedUserId?: string | null | undefined;
5780
5910
  };
5781
5911
  requestId: string;
5782
5912
  }>;
5783
- 500: import("zod").ZodObject<{
5784
- message: import("zod").ZodString;
5785
- error: import("zod").ZodAny;
5786
- }, "strip", import("zod").ZodTypeAny, {
5913
+ 500: z.ZodObject<{
5914
+ message: z.ZodString;
5915
+ error: z.ZodAny;
5916
+ }, "strip", z.ZodTypeAny, {
5787
5917
  message: string;
5788
5918
  error?: any;
5789
5919
  }, {
5790
5920
  message: string;
5791
5921
  error?: any;
5792
5922
  }>;
5793
- 400: import("zod").ZodObject<{
5794
- message: import("zod").ZodString;
5795
- error: import("zod").ZodAny;
5796
- }, "strip", import("zod").ZodTypeAny, {
5923
+ 400: z.ZodObject<{
5924
+ message: z.ZodString;
5925
+ error: z.ZodAny;
5926
+ }, "strip", z.ZodTypeAny, {
5797
5927
  message: string;
5798
5928
  error?: any;
5799
5929
  }, {
@@ -5803,5 +5933,380 @@ export declare const messengerContract: {
5803
5933
  };
5804
5934
  path: "/connect";
5805
5935
  };
5936
+ disconnectToService: {
5937
+ body: z.ZodObject<{
5938
+ name: z.ZodOptional<z.ZodString>;
5939
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
5940
+ metadata: z.ZodOptional<z.ZodObject<{
5941
+ id: z.ZodString;
5942
+ name: z.ZodString;
5943
+ accessToken: z.ZodString;
5944
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
5945
+ }, "strip", z.ZodTypeAny, {
5946
+ id: string;
5947
+ name: string;
5948
+ accessToken: string;
5949
+ additionalCredentials?: any;
5950
+ }, {
5951
+ id: string;
5952
+ name: string;
5953
+ accessToken: string;
5954
+ additionalCredentials?: any;
5955
+ }>>;
5956
+ platformId: z.ZodOptional<z.ZodString>;
5957
+ brandName: z.ZodOptional<z.ZodString>;
5958
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
5959
+ connectedUserName: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5960
+ connectedUserId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5961
+ actor: z.ZodOptional<z.ZodObject<{
5962
+ id: z.ZodString;
5963
+ name: z.ZodString;
5964
+ email: z.ZodString;
5965
+ address: z.ZodNullable<z.ZodString>;
5966
+ phone: z.ZodNullable<z.ZodString>;
5967
+ }, "strip", z.ZodTypeAny, {
5968
+ id: string;
5969
+ address: string | null;
5970
+ name: string;
5971
+ email: string;
5972
+ phone: string | null;
5973
+ }, {
5974
+ id: string;
5975
+ address: string | null;
5976
+ name: string;
5977
+ email: string;
5978
+ phone: string | null;
5979
+ }>>;
5980
+ }, "strip", z.ZodTypeAny, {
5981
+ name?: string | undefined;
5982
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5983
+ metadata?: {
5984
+ id: string;
5985
+ name: string;
5986
+ accessToken: string;
5987
+ additionalCredentials?: any;
5988
+ } | undefined;
5989
+ platformId?: string | undefined;
5990
+ brandName?: string | undefined;
5991
+ status?: boolean | undefined;
5992
+ connectedUserName?: string | null | undefined;
5993
+ connectedUserId?: string | null | undefined;
5994
+ actor?: {
5995
+ id: string;
5996
+ address: string | null;
5997
+ name: string;
5998
+ email: string;
5999
+ phone: string | null;
6000
+ } | undefined;
6001
+ }, {
6002
+ name?: string | undefined;
6003
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
6004
+ metadata?: {
6005
+ id: string;
6006
+ name: string;
6007
+ accessToken: string;
6008
+ additionalCredentials?: any;
6009
+ } | undefined;
6010
+ platformId?: string | undefined;
6011
+ brandName?: string | undefined;
6012
+ status?: boolean | undefined;
6013
+ connectedUserName?: string | null | undefined;
6014
+ connectedUserId?: string | null | undefined;
6015
+ actor?: {
6016
+ id: string;
6017
+ address: string | null;
6018
+ name: string;
6019
+ email: string;
6020
+ phone: string | null;
6021
+ } | undefined;
6022
+ }>;
6023
+ method: "POST";
6024
+ responses: {
6025
+ 200: z.ZodObject<{
6026
+ requestId: z.ZodString;
6027
+ data: z.ZodObject<{
6028
+ name: z.ZodString;
6029
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
6030
+ metadata: z.ZodObject<{
6031
+ id: z.ZodString;
6032
+ name: z.ZodString;
6033
+ accessToken: z.ZodString;
6034
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
6035
+ }, "strip", z.ZodTypeAny, {
6036
+ id: string;
6037
+ name: string;
6038
+ accessToken: string;
6039
+ additionalCredentials?: any;
6040
+ }, {
6041
+ id: string;
6042
+ name: string;
6043
+ accessToken: string;
6044
+ additionalCredentials?: any;
6045
+ }>;
6046
+ platformId: z.ZodString;
6047
+ brandName: z.ZodString;
6048
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
6049
+ connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6050
+ connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6051
+ actor: z.ZodObject<{
6052
+ id: z.ZodString;
6053
+ name: z.ZodString;
6054
+ email: z.ZodString;
6055
+ address: z.ZodNullable<z.ZodString>;
6056
+ phone: z.ZodNullable<z.ZodString>;
6057
+ }, "strip", z.ZodTypeAny, {
6058
+ id: string;
6059
+ address: string | null;
6060
+ name: string;
6061
+ email: string;
6062
+ phone: string | null;
6063
+ }, {
6064
+ id: string;
6065
+ address: string | null;
6066
+ name: string;
6067
+ email: string;
6068
+ phone: string | null;
6069
+ }>;
6070
+ }, "strip", z.ZodTypeAny, {
6071
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6072
+ name: string;
6073
+ metadata: {
6074
+ id: string;
6075
+ name: string;
6076
+ accessToken: string;
6077
+ additionalCredentials?: any;
6078
+ };
6079
+ status: boolean;
6080
+ brandName: string;
6081
+ platformId: string;
6082
+ actor: {
6083
+ id: string;
6084
+ address: string | null;
6085
+ name: string;
6086
+ email: string;
6087
+ phone: string | null;
6088
+ };
6089
+ connectedUserName?: string | null | undefined;
6090
+ connectedUserId?: string | null | undefined;
6091
+ }, {
6092
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6093
+ name: string;
6094
+ metadata: {
6095
+ id: string;
6096
+ name: string;
6097
+ accessToken: string;
6098
+ additionalCredentials?: any;
6099
+ };
6100
+ status: boolean;
6101
+ brandName: string;
6102
+ platformId: string;
6103
+ actor: {
6104
+ id: string;
6105
+ address: string | null;
6106
+ name: string;
6107
+ email: string;
6108
+ phone: string | null;
6109
+ };
6110
+ connectedUserName?: string | null | undefined;
6111
+ connectedUserId?: string | null | undefined;
6112
+ }>;
6113
+ }, "strip", z.ZodTypeAny, {
6114
+ data: {
6115
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6116
+ name: string;
6117
+ metadata: {
6118
+ id: string;
6119
+ name: string;
6120
+ accessToken: string;
6121
+ additionalCredentials?: any;
6122
+ };
6123
+ status: boolean;
6124
+ brandName: string;
6125
+ platformId: string;
6126
+ actor: {
6127
+ id: string;
6128
+ address: string | null;
6129
+ name: string;
6130
+ email: string;
6131
+ phone: string | null;
6132
+ };
6133
+ connectedUserName?: string | null | undefined;
6134
+ connectedUserId?: string | null | undefined;
6135
+ };
6136
+ requestId: string;
6137
+ }, {
6138
+ data: {
6139
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6140
+ name: string;
6141
+ metadata: {
6142
+ id: string;
6143
+ name: string;
6144
+ accessToken: string;
6145
+ additionalCredentials?: any;
6146
+ };
6147
+ status: boolean;
6148
+ brandName: string;
6149
+ platformId: string;
6150
+ actor: {
6151
+ id: string;
6152
+ address: string | null;
6153
+ name: string;
6154
+ email: string;
6155
+ phone: string | null;
6156
+ };
6157
+ connectedUserName?: string | null | undefined;
6158
+ connectedUserId?: string | null | undefined;
6159
+ };
6160
+ requestId: string;
6161
+ }>;
6162
+ 500: z.ZodObject<{
6163
+ message: z.ZodString;
6164
+ error: z.ZodAny;
6165
+ }, "strip", z.ZodTypeAny, {
6166
+ message: string;
6167
+ error?: any;
6168
+ }, {
6169
+ message: string;
6170
+ error?: any;
6171
+ }>;
6172
+ 400: z.ZodObject<{
6173
+ message: z.ZodString;
6174
+ error: z.ZodAny;
6175
+ }, "strip", z.ZodTypeAny, {
6176
+ message: string;
6177
+ error?: any;
6178
+ }, {
6179
+ message: string;
6180
+ error?: any;
6181
+ }>;
6182
+ };
6183
+ path: "/disconnect";
6184
+ };
6185
+ getFacebookPages: {
6186
+ method: "GET";
6187
+ query: z.ZodObject<{
6188
+ accessToken: z.ZodString;
6189
+ userId: z.ZodString;
6190
+ }, "strip", z.ZodTypeAny, {
6191
+ userId: string;
6192
+ accessToken: string;
6193
+ }, {
6194
+ userId: string;
6195
+ accessToken: string;
6196
+ }>;
6197
+ responses: {
6198
+ 200: z.ZodObject<{
6199
+ requestId: z.ZodString;
6200
+ data: z.ZodArray<z.ZodObject<{
6201
+ access_token: z.ZodString;
6202
+ category: z.ZodString;
6203
+ category_list: z.ZodArray<z.ZodObject<{
6204
+ id: z.ZodString;
6205
+ name: z.ZodString;
6206
+ }, "strip", z.ZodTypeAny, {
6207
+ id: string;
6208
+ name: string;
6209
+ }, {
6210
+ id: string;
6211
+ name: string;
6212
+ }>, "many">;
6213
+ id: z.ZodString;
6214
+ name: z.ZodString;
6215
+ tasks: z.ZodArray<z.ZodString, "many">;
6216
+ }, "strip", z.ZodTypeAny, {
6217
+ id: string;
6218
+ name: string;
6219
+ category: string;
6220
+ access_token: string;
6221
+ category_list: {
6222
+ id: string;
6223
+ name: string;
6224
+ }[];
6225
+ tasks: string[];
6226
+ }, {
6227
+ id: string;
6228
+ name: string;
6229
+ category: string;
6230
+ access_token: string;
6231
+ category_list: {
6232
+ id: string;
6233
+ name: string;
6234
+ }[];
6235
+ tasks: string[];
6236
+ }>, "many">;
6237
+ paging: z.ZodOptional<z.ZodObject<{
6238
+ cursors: z.ZodObject<{
6239
+ before: z.ZodOptional<z.ZodString>;
6240
+ after: z.ZodOptional<z.ZodString>;
6241
+ }, "strip", z.ZodTypeAny, {
6242
+ before?: string | undefined;
6243
+ after?: string | undefined;
6244
+ }, {
6245
+ before?: string | undefined;
6246
+ after?: string | undefined;
6247
+ }>;
6248
+ }, "strip", z.ZodTypeAny, {
6249
+ cursors: {
6250
+ before?: string | undefined;
6251
+ after?: string | undefined;
6252
+ };
6253
+ }, {
6254
+ cursors: {
6255
+ before?: string | undefined;
6256
+ after?: string | undefined;
6257
+ };
6258
+ }>>;
6259
+ }, "strip", z.ZodTypeAny, {
6260
+ data: {
6261
+ id: string;
6262
+ name: string;
6263
+ category: string;
6264
+ access_token: string;
6265
+ category_list: {
6266
+ id: string;
6267
+ name: string;
6268
+ }[];
6269
+ tasks: string[];
6270
+ }[];
6271
+ requestId: string;
6272
+ paging?: {
6273
+ cursors: {
6274
+ before?: string | undefined;
6275
+ after?: string | undefined;
6276
+ };
6277
+ } | undefined;
6278
+ }, {
6279
+ data: {
6280
+ id: string;
6281
+ name: string;
6282
+ category: string;
6283
+ access_token: string;
6284
+ category_list: {
6285
+ id: string;
6286
+ name: string;
6287
+ }[];
6288
+ tasks: string[];
6289
+ }[];
6290
+ requestId: string;
6291
+ paging?: {
6292
+ cursors: {
6293
+ before?: string | undefined;
6294
+ after?: string | undefined;
6295
+ };
6296
+ } | undefined;
6297
+ }>;
6298
+ 500: z.ZodObject<{
6299
+ message: z.ZodString;
6300
+ error: z.ZodAny;
6301
+ }, "strip", z.ZodTypeAny, {
6302
+ message: string;
6303
+ error?: any;
6304
+ }, {
6305
+ message: string;
6306
+ error?: any;
6307
+ }>;
6308
+ };
6309
+ path: "/pages";
6310
+ };
5806
6311
  };
5807
6312
  //# sourceMappingURL=index.d.ts.map