@kl1/contracts 1.0.29 → 1.0.30

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.
@@ -23,10 +23,8 @@ export declare const channelContract: {
23
23
  additionalCredentials?: any;
24
24
  }>;
25
25
  platformId: z.ZodString;
26
- brandName: z.ZodString;
27
- connectedUserName: z.ZodString;
28
26
  connectedUserId: z.ZodString;
29
- actor: z.ZodObject<{
27
+ actor: z.ZodOptional<z.ZodObject<{
30
28
  id: z.ZodString;
31
29
  createdAt: z.ZodDate;
32
30
  updatedAt: z.ZodDate;
@@ -224,7 +222,7 @@ export declare const channelContract: {
224
222
  extensionName: string;
225
223
  telephonySignature: string | null;
226
224
  } | undefined;
227
- }>;
225
+ }>>;
228
226
  }, "strip", z.ZodTypeAny, {
229
227
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
230
228
  name: string;
@@ -234,11 +232,9 @@ export declare const channelContract: {
234
232
  accessToken: string;
235
233
  additionalCredentials?: any;
236
234
  };
237
- brandName: string;
238
235
  platformId: string;
239
- connectedUserName: string;
240
236
  connectedUserId: string;
241
- actor: {
237
+ actor?: {
242
238
  id: string;
243
239
  address: string | null;
244
240
  name: string;
@@ -280,7 +276,7 @@ export declare const channelContract: {
280
276
  extensionName: string;
281
277
  telephonySignature: string | null;
282
278
  } | undefined;
283
- };
279
+ } | undefined;
284
280
  }, {
285
281
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
286
282
  name: string;
@@ -290,11 +286,9 @@ export declare const channelContract: {
290
286
  accessToken: string;
291
287
  additionalCredentials?: any;
292
288
  };
293
- brandName: string;
294
289
  platformId: string;
295
- connectedUserName: string;
296
290
  connectedUserId: string;
297
- actor: {
291
+ actor?: {
298
292
  id: string;
299
293
  address: string | null;
300
294
  name: string;
@@ -336,14 +330,14 @@ export declare const channelContract: {
336
330
  extensionName: string;
337
331
  telephonySignature: string | null;
338
332
  } | undefined;
339
- };
333
+ } | undefined;
340
334
  }>;
341
335
  summary: "Connect message channel";
342
336
  method: "POST";
343
337
  responses: {
344
338
  200: z.ZodObject<{
345
339
  requestId: z.ZodString;
346
- channel: z.ZodArray<z.ZodOptional<z.ZodObject<{
340
+ channel: z.ZodOptional<z.ZodObject<{
347
341
  id: z.ZodOptional<z.ZodString>;
348
342
  createdAt: z.ZodOptional<z.ZodDate>;
349
343
  updatedAt: z.ZodOptional<z.ZodDate>;
@@ -695,9 +689,10 @@ export declare const channelContract: {
695
689
  telephonySignature: string | null;
696
690
  } | undefined;
697
691
  } | undefined;
698
- }>>, "many">;
692
+ }>>;
699
693
  }, "strip", z.ZodTypeAny, {
700
- channel: ({
694
+ requestId: string;
695
+ channel?: {
701
696
  id?: string | undefined;
702
697
  createdAt?: Date | undefined;
703
698
  updatedAt?: Date | undefined;
@@ -759,10 +754,10 @@ export declare const channelContract: {
759
754
  telephonySignature: string | null;
760
755
  } | undefined;
761
756
  } | undefined;
762
- } | undefined)[];
763
- requestId: string;
757
+ } | undefined;
764
758
  }, {
765
- channel: ({
759
+ requestId: string;
760
+ channel?: {
766
761
  id?: string | undefined;
767
762
  createdAt?: Date | undefined;
768
763
  updatedAt?: Date | undefined;
@@ -824,8 +819,7 @@ export declare const channelContract: {
824
819
  telephonySignature: string | null;
825
820
  } | undefined;
826
821
  } | undefined;
827
- } | undefined)[];
828
- requestId: string;
822
+ } | undefined;
829
823
  }>;
830
824
  408: z.ZodObject<{
831
825
  message: z.ZodString;
@@ -862,7 +856,7 @@ export declare const channelContract: {
862
856
  responses: {
863
857
  200: z.ZodObject<{
864
858
  requestId: z.ZodString;
865
- channels: z.ZodOptional<z.ZodObject<{
859
+ channels: z.ZodArray<z.ZodOptional<z.ZodObject<{
866
860
  id: z.ZodOptional<z.ZodString>;
867
861
  createdAt: z.ZodOptional<z.ZodDate>;
868
862
  updatedAt: z.ZodOptional<z.ZodDate>;
@@ -1214,10 +1208,10 @@ export declare const channelContract: {
1214
1208
  telephonySignature: string | null;
1215
1209
  } | undefined;
1216
1210
  } | undefined;
1217
- }>>;
1211
+ }>>, "many">;
1218
1212
  }, "strip", z.ZodTypeAny, {
1219
1213
  requestId: string;
1220
- channels?: {
1214
+ channels: ({
1221
1215
  id?: string | undefined;
1222
1216
  createdAt?: Date | undefined;
1223
1217
  updatedAt?: Date | undefined;
@@ -1279,10 +1273,10 @@ export declare const channelContract: {
1279
1273
  telephonySignature: string | null;
1280
1274
  } | undefined;
1281
1275
  } | undefined;
1282
- } | undefined;
1276
+ } | undefined)[];
1283
1277
  }, {
1284
1278
  requestId: string;
1285
- channels?: {
1279
+ channels: ({
1286
1280
  id?: string | undefined;
1287
1281
  createdAt?: Date | undefined;
1288
1282
  updatedAt?: Date | undefined;
@@ -1344,7 +1338,7 @@ export declare const channelContract: {
1344
1338
  telephonySignature: string | null;
1345
1339
  } | undefined;
1346
1340
  } | undefined;
1347
- } | undefined;
1341
+ } | undefined)[];
1348
1342
  }>;
1349
1343
  };
1350
1344
  path: "channel/";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/channel/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAWpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAqB1E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;CA+B3B,CAAC"}
@@ -19,10 +19,8 @@ export declare const ConnectChannelSchema: z.ZodObject<{
19
19
  additionalCredentials?: any;
20
20
  }>;
21
21
  platformId: z.ZodString;
22
- brandName: z.ZodString;
23
- connectedUserName: z.ZodString;
24
22
  connectedUserId: z.ZodString;
25
- actor: z.ZodObject<{
23
+ actor: z.ZodOptional<z.ZodObject<{
26
24
  id: z.ZodString;
27
25
  createdAt: z.ZodDate;
28
26
  updatedAt: z.ZodDate;
@@ -220,7 +218,7 @@ export declare const ConnectChannelSchema: z.ZodObject<{
220
218
  extensionName: string;
221
219
  telephonySignature: string | null;
222
220
  } | undefined;
223
- }>;
221
+ }>>;
224
222
  }, "strip", z.ZodTypeAny, {
225
223
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
226
224
  name: string;
@@ -230,11 +228,9 @@ export declare const ConnectChannelSchema: z.ZodObject<{
230
228
  accessToken: string;
231
229
  additionalCredentials?: any;
232
230
  };
233
- brandName: string;
234
231
  platformId: string;
235
- connectedUserName: string;
236
232
  connectedUserId: string;
237
- actor: {
233
+ actor?: {
238
234
  id: string;
239
235
  address: string | null;
240
236
  name: string;
@@ -276,7 +272,7 @@ export declare const ConnectChannelSchema: z.ZodObject<{
276
272
  extensionName: string;
277
273
  telephonySignature: string | null;
278
274
  } | undefined;
279
- };
275
+ } | undefined;
280
276
  }, {
281
277
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
282
278
  name: string;
@@ -286,11 +282,9 @@ export declare const ConnectChannelSchema: z.ZodObject<{
286
282
  accessToken: string;
287
283
  additionalCredentials?: any;
288
284
  };
289
- brandName: string;
290
285
  platformId: string;
291
- connectedUserName: string;
292
286
  connectedUserId: string;
293
- actor: {
287
+ actor?: {
294
288
  id: string;
295
289
  address: string | null;
296
290
  name: string;
@@ -332,6 +326,6 @@ export declare const ConnectChannelSchema: z.ZodObject<{
332
326
  extensionName: string;
333
327
  telephonySignature: string | null;
334
328
  } | undefined;
335
- };
329
+ } | undefined;
336
330
  }>;
337
331
  //# sourceMappingURL=validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/channel/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS/B,CAAC"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/channel/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC"}
@@ -7588,7 +7588,7 @@ export declare const mainChatContract: {
7588
7588
  sendMessage: {
7589
7589
  body: z.ZodObject<{
7590
7590
  roomId: z.ZodString;
7591
- messageType: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
7591
+ messageType: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
7592
7592
  message: z.ZodOptional<z.ZodString>;
7593
7593
  messageAttachments: z.ZodOptional<z.ZodObject<{
7594
7594
  bucketName: z.ZodString;
@@ -7596,12 +7596,12 @@ export declare const mainChatContract: {
7596
7596
  fileName: z.ZodString;
7597
7597
  fileSize: z.ZodNumber;
7598
7598
  url: z.ZodString;
7599
- fileType: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
7599
+ fileType: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
7600
7600
  thumbnailUrl: z.ZodOptional<z.ZodString>;
7601
7601
  }, "strip", z.ZodTypeAny, {
7602
7602
  url: string;
7603
7603
  fileName: string;
7604
- fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
7604
+ fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
7605
7605
  fileKey: string;
7606
7606
  bucketName: string;
7607
7607
  fileSize: number;
@@ -7609,7 +7609,7 @@ export declare const mainChatContract: {
7609
7609
  }, {
7610
7610
  url: string;
7611
7611
  fileName: string;
7612
- fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
7612
+ fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
7613
7613
  fileKey: string;
7614
7614
  bucketName: string;
7615
7615
  fileSize: number;
@@ -7817,13 +7817,13 @@ export declare const mainChatContract: {
7817
7817
  packageId: z.ZodOptional<z.ZodNumber>;
7818
7818
  stickerId: z.ZodOptional<z.ZodNumber>;
7819
7819
  }, "strip", z.ZodTypeAny, {
7820
- messageType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
7820
+ messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
7821
7821
  roomId: string;
7822
7822
  message?: string | undefined;
7823
7823
  messageAttachments?: {
7824
7824
  url: string;
7825
7825
  fileName: string;
7826
- fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
7826
+ fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
7827
7827
  fileKey: string;
7828
7828
  bucketName: string;
7829
7829
  fileSize: number;
@@ -7875,13 +7875,13 @@ export declare const mainChatContract: {
7875
7875
  packageId?: number | undefined;
7876
7876
  stickerId?: number | undefined;
7877
7877
  }, {
7878
- messageType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
7878
+ messageType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
7879
7879
  roomId: string;
7880
7880
  message?: string | undefined;
7881
7881
  messageAttachments?: {
7882
7882
  url: string;
7883
7883
  fileName: string;
7884
- fileType: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
7884
+ fileType: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
7885
7885
  fileKey: string;
7886
7886
  bucketName: string;
7887
7887
  fileSize: number;
@@ -7945,7 +7945,7 @@ export declare const mainChatContract: {
7945
7945
  deletedAt: z.ZodNullable<z.ZodDate>;
7946
7946
  message: z.ZodString;
7947
7947
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
7948
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
7948
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
7949
7949
  readAt: z.ZodDate;
7950
7950
  metadata: z.ZodAny;
7951
7951
  platformId: z.ZodString;
@@ -11119,7 +11119,7 @@ export declare const mainChatContract: {
11119
11119
  } | undefined;
11120
11120
  }>;
11121
11121
  }, "strip", z.ZodTypeAny, {
11122
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
11122
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
11123
11123
  message: string;
11124
11124
  id: string;
11125
11125
  url: string;
@@ -11591,7 +11591,7 @@ export declare const mainChatContract: {
11591
11591
  metadata?: any;
11592
11592
  template?: any;
11593
11593
  }, {
11594
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
11594
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
11595
11595
  message: string;
11596
11596
  id: string;
11597
11597
  url: string;
@@ -12065,7 +12065,7 @@ export declare const mainChatContract: {
12065
12065
  }>;
12066
12066
  }, "strip", z.ZodTypeAny, {
12067
12067
  data: {
12068
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
12068
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
12069
12069
  message: string;
12070
12070
  id: string;
12071
12071
  url: string;
@@ -12540,7 +12540,7 @@ export declare const mainChatContract: {
12540
12540
  requestId: string;
12541
12541
  }, {
12542
12542
  data: {
12543
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
12543
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
12544
12544
  message: string;
12545
12545
  id: string;
12546
12546
  url: string;
@@ -13052,7 +13052,7 @@ export declare const mainChatContract: {
13052
13052
  deletedAt: z.ZodNullable<z.ZodDate>;
13053
13053
  message: z.ZodString;
13054
13054
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
13055
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
13055
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
13056
13056
  readAt: z.ZodDate;
13057
13057
  metadata: z.ZodAny;
13058
13058
  platformId: z.ZodString;
@@ -16226,7 +16226,7 @@ export declare const mainChatContract: {
16226
16226
  } | undefined;
16227
16227
  }>;
16228
16228
  }, "strip", z.ZodTypeAny, {
16229
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
16229
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
16230
16230
  message: string;
16231
16231
  id: string;
16232
16232
  url: string;
@@ -16698,7 +16698,7 @@ export declare const mainChatContract: {
16698
16698
  metadata?: any;
16699
16699
  template?: any;
16700
16700
  }, {
16701
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
16701
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
16702
16702
  message: string;
16703
16703
  id: string;
16704
16704
  url: string;
@@ -17172,7 +17172,7 @@ export declare const mainChatContract: {
17172
17172
  }>;
17173
17173
  }, "strip", z.ZodTypeAny, {
17174
17174
  message: {
17175
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
17175
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
17176
17176
  message: string;
17177
17177
  id: string;
17178
17178
  url: string;
@@ -17646,7 +17646,7 @@ export declare const mainChatContract: {
17646
17646
  };
17647
17647
  }, {
17648
17648
  message: {
17649
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
17649
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
17650
17650
  message: string;
17651
17651
  id: string;
17652
17652
  url: string;
@@ -18154,24 +18154,24 @@ export declare const mainChatContract: {
18154
18154
  responses: {
18155
18155
  200: z.ZodObject<{
18156
18156
  requestId: z.ZodString;
18157
- data: z.ZodObject<{
18158
- id: z.ZodArray<z.ZodString, "many">;
18157
+ data: z.ZodArray<z.ZodObject<{
18158
+ id: z.ZodString;
18159
18159
  }, "strip", z.ZodTypeAny, {
18160
- id: string[];
18160
+ id: string;
18161
18161
  }, {
18162
- id: string[];
18163
- }>;
18162
+ id: string;
18163
+ }>, "many">;
18164
18164
  total: z.ZodNumber;
18165
18165
  }, "strip", z.ZodTypeAny, {
18166
18166
  data: {
18167
- id: string[];
18168
- };
18167
+ id: string;
18168
+ }[];
18169
18169
  total: number;
18170
18170
  requestId: string;
18171
18171
  }, {
18172
18172
  data: {
18173
- id: string[];
18174
- };
18173
+ id: string;
18174
+ }[];
18175
18175
  total: number;
18176
18176
  requestId: string;
18177
18177
  }>;
@@ -18227,7 +18227,7 @@ export declare const mainChatContract: {
18227
18227
  deletedAt: z.ZodNullable<z.ZodDate>;
18228
18228
  message: z.ZodString;
18229
18229
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
18230
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
18230
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
18231
18231
  readAt: z.ZodDate;
18232
18232
  metadata: z.ZodAny;
18233
18233
  platformId: z.ZodString;
@@ -21401,7 +21401,7 @@ export declare const mainChatContract: {
21401
21401
  } | undefined;
21402
21402
  }>;
21403
21403
  }, "strip", z.ZodTypeAny, {
21404
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
21404
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
21405
21405
  message: string;
21406
21406
  id: string;
21407
21407
  url: string;
@@ -21873,7 +21873,7 @@ export declare const mainChatContract: {
21873
21873
  metadata?: any;
21874
21874
  template?: any;
21875
21875
  }, {
21876
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
21876
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
21877
21877
  message: string;
21878
21878
  id: string;
21879
21879
  url: string;
@@ -22347,7 +22347,7 @@ export declare const mainChatContract: {
22347
22347
  }>, "many">;
22348
22348
  }, "strip", z.ZodTypeAny, {
22349
22349
  data: {
22350
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
22350
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
22351
22351
  message: string;
22352
22352
  id: string;
22353
22353
  url: string;
@@ -22825,7 +22825,7 @@ export declare const mainChatContract: {
22825
22825
  requestId: string;
22826
22826
  }, {
22827
22827
  data: {
22828
- type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
22828
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
22829
22829
  message: string;
22830
22830
  id: string;
22831
22831
  url: string;