@kl1/contracts 1.3.48 → 1.3.49
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.
- package/dist/api-contracts/src/channel/index.d.ts +832 -1
- package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
- package/dist/api-contracts/src/channel/validation.d.ts +10 -0
- package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/index.d.ts +233 -211
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/schema.d.ts +60 -63
- package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/validation.d.ts +85 -69
- package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +3070 -1829
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/index.d.ts +13 -2
- package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/schema.d.ts +4 -1
- package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/validation.d.ts +3 -0
- package/dist/api-contracts/src/cx-log/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/index.d.ts +53 -53
- package/dist/api-contracts/src/facebook-feed/schema.d.ts +3 -3
- package/dist/api-contracts/src/index.d.ts +1 -0
- package/dist/api-contracts/src/index.d.ts.map +1 -1
- package/dist/api-contracts/src/instagram/index.d.ts +41 -41
- package/dist/api-contracts/src/line/index.d.ts +48 -48
- package/dist/api-contracts/src/line/validation.d.ts +7 -7
- package/dist/api-contracts/src/messenger/index.d.ts +41 -41
- package/dist/api-contracts/src/presence-status/index.d.ts +1 -1
- package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/sms/index.d.ts +7 -7
- package/dist/api-contracts/src/telegram/index.d.ts +41 -41
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +0 -430
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +0 -3
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts +0 -3
- package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/viber/index.d.ts +41 -41
- package/dist/api-contracts/src/webchat/index.d.ts +41 -41
- package/dist/api-contracts/src/whatsapp/index.d.ts +41 -41
- package/dist/api-contracts/src/workflow-rule/index.d.ts +17 -17
- package/dist/index.js +1610 -1598
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1609 -1598
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -224,6 +224,8 @@ export declare const MessageAttachmentSchema: z.ZodObject<{
|
|
224
224
|
url: z.ZodNullable<z.ZodString>;
|
225
225
|
fileType: z.ZodString;
|
226
226
|
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
227
|
+
width: z.ZodOptional<z.ZodString>;
|
228
|
+
height: z.ZodOptional<z.ZodString>;
|
227
229
|
}, "strip", z.ZodTypeAny, {
|
228
230
|
url: string | null;
|
229
231
|
fileName: string;
|
@@ -232,6 +234,8 @@ export declare const MessageAttachmentSchema: z.ZodObject<{
|
|
232
234
|
bucketName: string;
|
233
235
|
fileSize: number;
|
234
236
|
thumbnailUrl?: string | undefined;
|
237
|
+
width?: string | undefined;
|
238
|
+
height?: string | undefined;
|
235
239
|
}, {
|
236
240
|
url: string | null;
|
237
241
|
fileName: string;
|
@@ -240,6 +244,8 @@ export declare const MessageAttachmentSchema: z.ZodObject<{
|
|
240
244
|
bucketName: string;
|
241
245
|
fileSize: number;
|
242
246
|
thumbnailUrl?: string | undefined;
|
247
|
+
width?: string | undefined;
|
248
|
+
height?: string | undefined;
|
243
249
|
}>;
|
244
250
|
export declare const StickerSchema: z.ZodObject<{
|
245
251
|
packageId: z.ZodNumber;
|
@@ -264,7 +270,7 @@ export declare const ActionMessageSchema: z.ZodObject<{
|
|
264
270
|
}>;
|
265
271
|
export declare const SendMessageSchema: z.ZodObject<{
|
266
272
|
roomId: z.ZodString;
|
267
|
-
messageType: z.
|
273
|
+
messageType: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
268
274
|
message: z.ZodOptional<z.ZodString>;
|
269
275
|
messageAttachments: z.ZodOptional<z.ZodObject<{
|
270
276
|
bucketName: z.ZodString;
|
@@ -274,6 +280,8 @@ export declare const SendMessageSchema: z.ZodObject<{
|
|
274
280
|
url: z.ZodNullable<z.ZodString>;
|
275
281
|
fileType: z.ZodString;
|
276
282
|
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
283
|
+
width: z.ZodOptional<z.ZodString>;
|
284
|
+
height: z.ZodOptional<z.ZodString>;
|
277
285
|
}, "strip", z.ZodTypeAny, {
|
278
286
|
url: string | null;
|
279
287
|
fileName: string;
|
@@ -282,6 +290,8 @@ export declare const SendMessageSchema: z.ZodObject<{
|
|
282
290
|
bucketName: string;
|
283
291
|
fileSize: number;
|
284
292
|
thumbnailUrl?: string | undefined;
|
293
|
+
width?: string | undefined;
|
294
|
+
height?: string | undefined;
|
285
295
|
}, {
|
286
296
|
url: string | null;
|
287
297
|
fileName: string;
|
@@ -290,6 +300,8 @@ export declare const SendMessageSchema: z.ZodObject<{
|
|
290
300
|
bucketName: string;
|
291
301
|
fileSize: number;
|
292
302
|
thumbnailUrl?: string | undefined;
|
303
|
+
width?: string | undefined;
|
304
|
+
height?: string | undefined;
|
293
305
|
}>>;
|
294
306
|
user: z.ZodOptional<z.ZodObject<{
|
295
307
|
name: z.ZodString;
|
@@ -523,7 +535,7 @@ export declare const SendMessageSchema: z.ZodObject<{
|
|
523
535
|
mentions?: string[] | undefined;
|
524
536
|
}>>;
|
525
537
|
}, "strip", z.ZodTypeAny, {
|
526
|
-
messageType:
|
538
|
+
messageType: string;
|
527
539
|
roomId: string;
|
528
540
|
message?: string | undefined;
|
529
541
|
messageAttachments?: {
|
@@ -534,6 +546,8 @@ export declare const SendMessageSchema: z.ZodObject<{
|
|
534
546
|
bucketName: string;
|
535
547
|
fileSize: number;
|
536
548
|
thumbnailUrl?: string | undefined;
|
549
|
+
width?: string | undefined;
|
550
|
+
height?: string | undefined;
|
537
551
|
} | undefined;
|
538
552
|
user?: {
|
539
553
|
name: string;
|
@@ -595,7 +609,7 @@ export declare const SendMessageSchema: z.ZodObject<{
|
|
595
609
|
mentions?: string[] | undefined;
|
596
610
|
} | undefined;
|
597
611
|
}, {
|
598
|
-
messageType:
|
612
|
+
messageType: string;
|
599
613
|
roomId: string;
|
600
614
|
message?: string | undefined;
|
601
615
|
messageAttachments?: {
|
@@ -606,6 +620,8 @@ export declare const SendMessageSchema: z.ZodObject<{
|
|
606
620
|
bucketName: string;
|
607
621
|
fileSize: number;
|
608
622
|
thumbnailUrl?: string | undefined;
|
623
|
+
width?: string | undefined;
|
624
|
+
height?: string | undefined;
|
609
625
|
} | undefined;
|
610
626
|
user?: {
|
611
627
|
name: string;
|
@@ -673,17 +689,17 @@ export declare const InitiateMessageSchema: z.ZodObject<{
|
|
673
689
|
contactId: z.ZodOptional<z.ZodString>;
|
674
690
|
message: z.ZodObject<{
|
675
691
|
message: z.ZodOptional<z.ZodString>;
|
676
|
-
messageType: z.
|
692
|
+
messageType: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
677
693
|
}, "strip", z.ZodTypeAny, {
|
678
|
-
messageType:
|
694
|
+
messageType: string;
|
679
695
|
message?: string | undefined;
|
680
696
|
}, {
|
681
|
-
messageType:
|
697
|
+
messageType: string;
|
682
698
|
message?: string | undefined;
|
683
699
|
}>;
|
684
700
|
}, "strip", z.ZodTypeAny, {
|
685
701
|
message: {
|
686
|
-
messageType:
|
702
|
+
messageType: string;
|
687
703
|
message?: string | undefined;
|
688
704
|
};
|
689
705
|
channelId: string;
|
@@ -691,7 +707,7 @@ export declare const InitiateMessageSchema: z.ZodObject<{
|
|
691
707
|
contactId?: string | undefined;
|
692
708
|
}, {
|
693
709
|
message: {
|
694
|
-
messageType:
|
710
|
+
messageType: string;
|
695
711
|
message?: string | undefined;
|
696
712
|
};
|
697
713
|
channelId: string;
|
@@ -1723,8 +1739,8 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
|
|
1723
1739
|
message: z.ZodObject<{
|
1724
1740
|
id: z.ZodOptional<z.ZodString>;
|
1725
1741
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1726
|
-
direction: z.
|
1727
|
-
type: z.
|
1742
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
1743
|
+
type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
1728
1744
|
readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
1729
1745
|
metadata: z.ZodOptional<z.ZodAny>;
|
1730
1746
|
platformId: z.ZodOptional<z.ZodString>;
|
@@ -1776,7 +1792,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
|
|
1776
1792
|
parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1777
1793
|
feedPostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1778
1794
|
}, "strip", z.ZodTypeAny, {
|
1779
|
-
type:
|
1795
|
+
type: string;
|
1780
1796
|
direction: "incoming" | "outgoing" | "system";
|
1781
1797
|
id?: string | undefined;
|
1782
1798
|
message?: string | null | undefined;
|
@@ -1807,7 +1823,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
|
|
1807
1823
|
parentMessageId?: string | null | undefined;
|
1808
1824
|
feedPostId?: string | null | undefined;
|
1809
1825
|
}, {
|
1810
|
-
type:
|
1826
|
+
type: string;
|
1811
1827
|
direction: "incoming" | "outgoing" | "system";
|
1812
1828
|
id?: string | undefined;
|
1813
1829
|
message?: string | null | undefined;
|
@@ -1840,7 +1856,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
|
|
1840
1856
|
}>;
|
1841
1857
|
}, "strip", z.ZodTypeAny, {
|
1842
1858
|
message: {
|
1843
|
-
type:
|
1859
|
+
type: string;
|
1844
1860
|
direction: "incoming" | "outgoing" | "system";
|
1845
1861
|
id?: string | undefined;
|
1846
1862
|
message?: string | null | undefined;
|
@@ -1929,7 +1945,7 @@ export declare const DeleteMessageToPlatformSchema: z.ZodObject<{
|
|
1929
1945
|
};
|
1930
1946
|
}, {
|
1931
1947
|
message: {
|
1932
|
-
type:
|
1948
|
+
type: string;
|
1933
1949
|
direction: "incoming" | "outgoing" | "system";
|
1934
1950
|
id?: string | undefined;
|
1935
1951
|
message?: string | null | undefined;
|
@@ -2024,7 +2040,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
2024
2040
|
lastMessage: z.ZodOptional<z.ZodString>;
|
2025
2041
|
handleTime: z.ZodOptional<z.ZodNumber>;
|
2026
2042
|
isLatest: z.ZodBoolean;
|
2027
|
-
direction: z.
|
2043
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
2028
2044
|
metadata: z.ZodOptional<z.ZodAny>;
|
2029
2045
|
createdAt: z.ZodString;
|
2030
2046
|
updatedAt: z.ZodString;
|
@@ -2620,8 +2636,8 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
2620
2636
|
message: z.ZodObject<{
|
2621
2637
|
id: z.ZodOptional<z.ZodString>;
|
2622
2638
|
message: z.ZodOptional<z.ZodString>;
|
2623
|
-
direction: z.
|
2624
|
-
type: z.
|
2639
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
2640
|
+
type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
2625
2641
|
readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
2626
2642
|
metadata: z.ZodOptional<z.ZodAny>;
|
2627
2643
|
platformId: z.ZodOptional<z.ZodString>;
|
@@ -2677,7 +2693,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
2677
2693
|
editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
2678
2694
|
label: z.ZodOptional<z.ZodString>;
|
2679
2695
|
}, "strip", z.ZodTypeAny, {
|
2680
|
-
type:
|
2696
|
+
type: string;
|
2681
2697
|
direction: "incoming" | "outgoing" | "system";
|
2682
2698
|
id?: string | undefined;
|
2683
2699
|
message?: string | undefined;
|
@@ -2712,7 +2728,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
2712
2728
|
editedAt?: string | Date | null | undefined;
|
2713
2729
|
label?: string | undefined;
|
2714
2730
|
}, {
|
2715
|
-
type:
|
2731
|
+
type: string;
|
2716
2732
|
direction: "incoming" | "outgoing" | "system";
|
2717
2733
|
id?: string | undefined;
|
2718
2734
|
message?: string | undefined;
|
@@ -2749,7 +2765,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
2749
2765
|
}>;
|
2750
2766
|
}, "strip", z.ZodTypeAny, {
|
2751
2767
|
message: {
|
2752
|
-
type:
|
2768
|
+
type: string;
|
2753
2769
|
direction: "incoming" | "outgoing" | "system";
|
2754
2770
|
id?: string | undefined;
|
2755
2771
|
message?: string | undefined;
|
@@ -2885,7 +2901,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
2885
2901
|
isBot: boolean | null;
|
2886
2902
|
}, {
|
2887
2903
|
message: {
|
2888
|
-
type:
|
2904
|
+
type: string;
|
2889
2905
|
direction: "incoming" | "outgoing" | "system";
|
2890
2906
|
id?: string | undefined;
|
2891
2907
|
message?: string | undefined;
|
@@ -3024,8 +3040,8 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
|
|
3024
3040
|
message: z.ZodObject<{
|
3025
3041
|
id: z.ZodOptional<z.ZodString>;
|
3026
3042
|
message: z.ZodOptional<z.ZodString>;
|
3027
|
-
direction: z.
|
3028
|
-
type: z.
|
3043
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
3044
|
+
type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
3029
3045
|
readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
3030
3046
|
metadata: z.ZodOptional<z.ZodAny>;
|
3031
3047
|
platformId: z.ZodOptional<z.ZodString>;
|
@@ -3081,7 +3097,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
|
|
3081
3097
|
editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
3082
3098
|
label: z.ZodOptional<z.ZodString>;
|
3083
3099
|
}, "strip", z.ZodTypeAny, {
|
3084
|
-
type:
|
3100
|
+
type: string;
|
3085
3101
|
direction: "incoming" | "outgoing" | "system";
|
3086
3102
|
id?: string | undefined;
|
3087
3103
|
message?: string | undefined;
|
@@ -3116,7 +3132,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
|
|
3116
3132
|
editedAt?: string | Date | null | undefined;
|
3117
3133
|
label?: string | undefined;
|
3118
3134
|
}, {
|
3119
|
-
type:
|
3135
|
+
type: string;
|
3120
3136
|
direction: "incoming" | "outgoing" | "system";
|
3121
3137
|
id?: string | undefined;
|
3122
3138
|
message?: string | undefined;
|
@@ -3156,7 +3172,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
|
|
3156
3172
|
lastMessage: z.ZodOptional<z.ZodString>;
|
3157
3173
|
handleTime: z.ZodOptional<z.ZodNumber>;
|
3158
3174
|
isLatest: z.ZodBoolean;
|
3159
|
-
direction: z.
|
3175
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
3160
3176
|
metadata: z.ZodOptional<z.ZodAny>;
|
3161
3177
|
createdAt: z.ZodString;
|
3162
3178
|
updatedAt: z.ZodString;
|
@@ -3762,7 +3778,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
|
|
3762
3778
|
}>>;
|
3763
3779
|
}, "strip", z.ZodTypeAny, {
|
3764
3780
|
message: {
|
3765
|
-
type:
|
3781
|
+
type: string;
|
3766
3782
|
direction: "incoming" | "outgoing" | "system";
|
3767
3783
|
id?: string | undefined;
|
3768
3784
|
message?: string | undefined;
|
@@ -3902,7 +3918,7 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
|
|
3902
3918
|
} | undefined;
|
3903
3919
|
}, {
|
3904
3920
|
message: {
|
3905
|
-
type:
|
3921
|
+
type: string;
|
3906
3922
|
direction: "incoming" | "outgoing" | "system";
|
3907
3923
|
id?: string | undefined;
|
3908
3924
|
message?: string | undefined;
|
@@ -4044,11 +4060,11 @@ export declare const SendMessageWithActionTypeSchema: z.ZodObject<{
|
|
4044
4060
|
export declare const SendMessageResponseSchema: z.ZodObject<{
|
4045
4061
|
requestId: z.ZodString;
|
4046
4062
|
data: z.ZodObject<{
|
4047
|
-
type: z.
|
4063
|
+
type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
4048
4064
|
message: z.ZodString;
|
4049
4065
|
id: z.ZodString;
|
4050
4066
|
url: z.ZodString;
|
4051
|
-
direction: z.
|
4067
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
4052
4068
|
label: z.ZodOptional<z.ZodString>;
|
4053
4069
|
template: z.ZodAny;
|
4054
4070
|
metadata: z.ZodAny;
|
@@ -4513,7 +4529,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
4513
4529
|
firstResponseTime: z.ZodNumber;
|
4514
4530
|
isLatest: z.ZodBoolean;
|
4515
4531
|
isBotRoom: z.ZodBoolean;
|
4516
|
-
direction: z.
|
4532
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
4517
4533
|
platformContact: z.ZodObject<{
|
4518
4534
|
id: z.ZodString;
|
4519
4535
|
createdAt: z.ZodDate;
|
@@ -8026,8 +8042,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
8026
8042
|
updatedAt: z.ZodDate;
|
8027
8043
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
8028
8044
|
message: z.ZodString;
|
8029
|
-
direction: z.
|
8030
|
-
type: z.
|
8045
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
8046
|
+
type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
8031
8047
|
readAt: z.ZodDate;
|
8032
8048
|
metadata: z.ZodAny;
|
8033
8049
|
platformId: z.ZodString;
|
@@ -8685,7 +8701,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
8685
8701
|
};
|
8686
8702
|
}>;
|
8687
8703
|
}, "strip", z.ZodTypeAny, {
|
8688
|
-
type:
|
8704
|
+
type: string;
|
8689
8705
|
message: string;
|
8690
8706
|
id: string;
|
8691
8707
|
url: string;
|
@@ -8847,7 +8863,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
8847
8863
|
metadata?: any;
|
8848
8864
|
template?: any;
|
8849
8865
|
}, {
|
8850
|
-
type:
|
8866
|
+
type: string;
|
8851
8867
|
message: string;
|
8852
8868
|
id: string;
|
8853
8869
|
url: string;
|
@@ -9220,8 +9236,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
9220
9236
|
updatedAt: z.ZodDate;
|
9221
9237
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
9222
9238
|
message: z.ZodString;
|
9223
|
-
direction: z.
|
9224
|
-
type: z.
|
9239
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
9240
|
+
type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
9225
9241
|
readAt: z.ZodDate;
|
9226
9242
|
metadata: z.ZodAny;
|
9227
9243
|
platformId: z.ZodString;
|
@@ -9247,7 +9263,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
9247
9263
|
firstResponseTime: z.ZodNumber;
|
9248
9264
|
isLatest: z.ZodBoolean;
|
9249
9265
|
isBotRoom: z.ZodBoolean;
|
9250
|
-
direction: z.
|
9266
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
9251
9267
|
platformContact: z.ZodObject<{
|
9252
9268
|
id: z.ZodString;
|
9253
9269
|
createdAt: z.ZodDate;
|
@@ -12763,8 +12779,8 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
12763
12779
|
updatedAt: z.ZodDate;
|
12764
12780
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
12765
12781
|
message: z.ZodString;
|
12766
|
-
direction: z.
|
12767
|
-
type: z.
|
12782
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
12783
|
+
type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
12768
12784
|
readAt: z.ZodDate;
|
12769
12785
|
metadata: z.ZodAny;
|
12770
12786
|
platformId: z.ZodString;
|
@@ -13422,7 +13438,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
13422
13438
|
};
|
13423
13439
|
}>;
|
13424
13440
|
}, "strip", z.ZodTypeAny, {
|
13425
|
-
type:
|
13441
|
+
type: string;
|
13426
13442
|
message: string;
|
13427
13443
|
id: string;
|
13428
13444
|
url: string;
|
@@ -13584,7 +13600,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
13584
13600
|
metadata?: any;
|
13585
13601
|
template?: any;
|
13586
13602
|
}, {
|
13587
|
-
type:
|
13603
|
+
type: string;
|
13588
13604
|
message: string;
|
13589
13605
|
id: string;
|
13590
13606
|
url: string;
|
@@ -14386,7 +14402,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
14386
14402
|
editedMessageid: z.ZodString;
|
14387
14403
|
label: z.ZodOptional<z.ZodString>;
|
14388
14404
|
}, "strip", z.ZodTypeAny, {
|
14389
|
-
type:
|
14405
|
+
type: string;
|
14390
14406
|
message: string;
|
14391
14407
|
id: string;
|
14392
14408
|
url: string;
|
@@ -14948,7 +14964,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
14948
14964
|
previewUrl: string;
|
14949
14965
|
imageSetId: string;
|
14950
14966
|
repliedMessage: {
|
14951
|
-
type:
|
14967
|
+
type: string;
|
14952
14968
|
message: string;
|
14953
14969
|
id: string;
|
14954
14970
|
url: string;
|
@@ -15159,7 +15175,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
15159
15175
|
template?: any;
|
15160
15176
|
label?: string | undefined;
|
15161
15177
|
}, {
|
15162
|
-
type:
|
15178
|
+
type: string;
|
15163
15179
|
message: string;
|
15164
15180
|
id: string;
|
15165
15181
|
url: string;
|
@@ -15721,7 +15737,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
15721
15737
|
previewUrl: string;
|
15722
15738
|
imageSetId: string;
|
15723
15739
|
repliedMessage: {
|
15724
|
-
type:
|
15740
|
+
type: string;
|
15725
15741
|
message: string;
|
15726
15742
|
id: string;
|
15727
15743
|
url: string;
|
@@ -15933,7 +15949,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
15933
15949
|
label?: string | undefined;
|
15934
15950
|
}>>>;
|
15935
15951
|
}, "strip", z.ZodTypeAny, {
|
15936
|
-
type:
|
15952
|
+
type: string;
|
15937
15953
|
message: string;
|
15938
15954
|
id: string;
|
15939
15955
|
url: string;
|
@@ -16495,7 +16511,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
16495
16511
|
previewUrl: string;
|
16496
16512
|
imageSetId: string;
|
16497
16513
|
repliedMessage: {
|
16498
|
-
type:
|
16514
|
+
type: string;
|
16499
16515
|
message: string;
|
16500
16516
|
id: string;
|
16501
16517
|
url: string;
|
@@ -16706,7 +16722,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
16706
16722
|
template?: any;
|
16707
16723
|
metadata?: any;
|
16708
16724
|
fromMessage?: {
|
16709
|
-
type:
|
16725
|
+
type: string;
|
16710
16726
|
message: string;
|
16711
16727
|
id: string;
|
16712
16728
|
url: string;
|
@@ -17268,7 +17284,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
17268
17284
|
previewUrl: string;
|
17269
17285
|
imageSetId: string;
|
17270
17286
|
repliedMessage: {
|
17271
|
-
type:
|
17287
|
+
type: string;
|
17272
17288
|
message: string;
|
17273
17289
|
id: string;
|
17274
17290
|
url: string;
|
@@ -17480,7 +17496,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
17480
17496
|
label?: string | undefined;
|
17481
17497
|
} | null | undefined;
|
17482
17498
|
}, {
|
17483
|
-
type:
|
17499
|
+
type: string;
|
17484
17500
|
message: string;
|
17485
17501
|
id: string;
|
17486
17502
|
url: string;
|
@@ -18042,7 +18058,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
18042
18058
|
previewUrl: string;
|
18043
18059
|
imageSetId: string;
|
18044
18060
|
repliedMessage: {
|
18045
|
-
type:
|
18061
|
+
type: string;
|
18046
18062
|
message: string;
|
18047
18063
|
id: string;
|
18048
18064
|
url: string;
|
@@ -18253,7 +18269,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
18253
18269
|
template?: any;
|
18254
18270
|
metadata?: any;
|
18255
18271
|
fromMessage?: {
|
18256
|
-
type:
|
18272
|
+
type: string;
|
18257
18273
|
message: string;
|
18258
18274
|
id: string;
|
18259
18275
|
url: string;
|
@@ -18815,7 +18831,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
18815
18831
|
previewUrl: string;
|
18816
18832
|
imageSetId: string;
|
18817
18833
|
repliedMessage: {
|
18818
|
-
type:
|
18834
|
+
type: string;
|
18819
18835
|
message: string;
|
18820
18836
|
id: string;
|
18821
18837
|
url: string;
|
@@ -19029,7 +19045,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
19029
19045
|
}>;
|
19030
19046
|
}, "strip", z.ZodTypeAny, {
|
19031
19047
|
data: {
|
19032
|
-
type:
|
19048
|
+
type: string;
|
19033
19049
|
message: string;
|
19034
19050
|
id: string;
|
19035
19051
|
url: string;
|
@@ -19591,7 +19607,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
19591
19607
|
previewUrl: string;
|
19592
19608
|
imageSetId: string;
|
19593
19609
|
repliedMessage: {
|
19594
|
-
type:
|
19610
|
+
type: string;
|
19595
19611
|
message: string;
|
19596
19612
|
id: string;
|
19597
19613
|
url: string;
|
@@ -19802,7 +19818,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
19802
19818
|
template?: any;
|
19803
19819
|
metadata?: any;
|
19804
19820
|
fromMessage?: {
|
19805
|
-
type:
|
19821
|
+
type: string;
|
19806
19822
|
message: string;
|
19807
19823
|
id: string;
|
19808
19824
|
url: string;
|
@@ -20364,7 +20380,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
20364
20380
|
previewUrl: string;
|
20365
20381
|
imageSetId: string;
|
20366
20382
|
repliedMessage: {
|
20367
|
-
type:
|
20383
|
+
type: string;
|
20368
20384
|
message: string;
|
20369
20385
|
id: string;
|
20370
20386
|
url: string;
|
@@ -20579,7 +20595,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
20579
20595
|
requestId: string;
|
20580
20596
|
}, {
|
20581
20597
|
data: {
|
20582
|
-
type:
|
20598
|
+
type: string;
|
20583
20599
|
message: string;
|
20584
20600
|
id: string;
|
20585
20601
|
url: string;
|
@@ -21141,7 +21157,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
21141
21157
|
previewUrl: string;
|
21142
21158
|
imageSetId: string;
|
21143
21159
|
repliedMessage: {
|
21144
|
-
type:
|
21160
|
+
type: string;
|
21145
21161
|
message: string;
|
21146
21162
|
id: string;
|
21147
21163
|
url: string;
|
@@ -21352,7 +21368,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
21352
21368
|
template?: any;
|
21353
21369
|
metadata?: any;
|
21354
21370
|
fromMessage?: {
|
21355
|
-
type:
|
21371
|
+
type: string;
|
21356
21372
|
message: string;
|
21357
21373
|
id: string;
|
21358
21374
|
url: string;
|
@@ -21914,7 +21930,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
21914
21930
|
previewUrl: string;
|
21915
21931
|
imageSetId: string;
|
21916
21932
|
repliedMessage: {
|
21917
|
-
type:
|
21933
|
+
type: string;
|
21918
21934
|
message: string;
|
21919
21935
|
id: string;
|
21920
21936
|
url: string;
|
@@ -22525,8 +22541,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
22525
22541
|
updatedAt: z.ZodString;
|
22526
22542
|
deletedAt: z.ZodNullable<z.ZodString>;
|
22527
22543
|
message: z.ZodOptional<z.ZodString>;
|
22528
|
-
direction: z.
|
22529
|
-
type: z.
|
22544
|
+
direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
|
22545
|
+
type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
|
22530
22546
|
metadata: z.ZodAny;
|
22531
22547
|
platformId: z.ZodString;
|
22532
22548
|
platformMessageId: z.ZodString;
|
@@ -22548,7 +22564,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
22548
22564
|
firstResponseAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
22549
22565
|
firstResponseTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
22550
22566
|
isLatest: z.ZodOptional<z.ZodBoolean>;
|
22551
|
-
direction: z.ZodOptional<z.
|
22567
|
+
direction: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>>;
|
22552
22568
|
platformContact: z.ZodOptional<z.ZodObject<{
|
22553
22569
|
id: z.ZodString;
|
22554
22570
|
createdAt: z.ZodString;
|
@@ -26066,7 +26082,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
26066
26082
|
}>>>;
|
26067
26083
|
label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
26068
26084
|
}, "strip", z.ZodTypeAny, {
|
26069
|
-
type:
|
26085
|
+
type: string;
|
26070
26086
|
id: string;
|
26071
26087
|
direction: "incoming" | "outgoing" | "system";
|
26072
26088
|
createdAt: string;
|
@@ -26586,7 +26602,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
26586
26602
|
} | null | undefined;
|
26587
26603
|
label?: string | null | undefined;
|
26588
26604
|
}, {
|
26589
|
-
type:
|
26605
|
+
type: string;
|
26590
26606
|
id: string;
|
26591
26607
|
direction: "incoming" | "outgoing" | "system";
|
26592
26608
|
createdAt: string;
|
@@ -27108,7 +27124,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
27108
27124
|
}>;
|
27109
27125
|
}, "strip", z.ZodTypeAny, {
|
27110
27126
|
message: {
|
27111
|
-
type:
|
27127
|
+
type: string;
|
27112
27128
|
id: string;
|
27113
27129
|
direction: "incoming" | "outgoing" | "system";
|
27114
27130
|
createdAt: string;
|
@@ -27630,7 +27646,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
27630
27646
|
};
|
27631
27647
|
}, {
|
27632
27648
|
message: {
|
27633
|
-
type:
|
27649
|
+
type: string;
|
27634
27650
|
id: string;
|
27635
27651
|
direction: "incoming" | "outgoing" | "system";
|
27636
27652
|
createdAt: string;
|