@kl1/contracts 1.1.21-uat → 1.1.21
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/index.js +196 -431
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +196 -430
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +3 -3
- package/dist/src/chat/validation.d.ts +3 -3
- package/dist/src/contract.d.ts +415 -2584
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/line/schema.d.ts.map +1 -1
- package/dist/src/line/validation.d.ts.map +1 -1
- package/dist/src/mail/account-contract.d.ts +1 -71
- package/dist/src/mail/account-contract.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +528 -1969
- package/dist/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/src/mail/message-contract.d.ts +1 -58
- package/dist/src/mail/message-contract.d.ts.map +1 -1
- package/dist/src/mail/room-contract.d.ts +450 -1764
- package/dist/src/mail/room-contract.d.ts.map +1 -1
- package/dist/src/mail/schemas/room-validation.schema.d.ts +6 -316
- package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
- package/dist/src/mail/schemas/room.schema.d.ts +0 -212
- package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
- package/package.json +1 -1
@@ -54,49 +54,19 @@ export declare const mailContract: {
|
|
54
54
|
query: import("zod").ZodObject<{
|
55
55
|
page: import("zod").ZodDefault<import("zod").ZodNumber>;
|
56
56
|
pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
|
57
|
-
keyword: import("zod").ZodOptional<import("zod").
|
58
|
-
value: import("zod").ZodString;
|
59
|
-
category: import("zod").ZodUnion<[import("zod").ZodLiteral<"contact">, import("zod").ZodLiteral<"message">]>;
|
60
|
-
}, "strip", import("zod").ZodTypeAny, {
|
61
|
-
value: string;
|
62
|
-
category: "message" | "contact";
|
63
|
-
}, {
|
64
|
-
value: string;
|
65
|
-
category: "message" | "contact";
|
66
|
-
}>>;
|
67
|
-
contactLabels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
68
|
-
channels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
69
|
-
date: import("zod").ZodOptional<import("zod").ZodString>;
|
70
|
-
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
71
|
-
assignees: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
57
|
+
keyword: import("zod").ZodOptional<import("zod").ZodString>;
|
72
58
|
level1: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"open">, import("zod").ZodLiteral<"close">, import("zod").ZodLiteral<"inbox">, import("zod").ZodLiteral<"sent">, import("zod").ZodLiteral<"scheduled">, import("zod").ZodLiteral<"starred">]>>;
|
73
59
|
level2: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"unassign">, import("zod").ZodLiteral<"mine">, import("zod").ZodLiteral<"other">]>>;
|
74
60
|
}, "strip", import("zod").ZodTypeAny, {
|
75
61
|
page: number;
|
76
62
|
pageSize: number;
|
77
|
-
keyword?:
|
78
|
-
value: string;
|
79
|
-
category: "message" | "contact";
|
80
|
-
} | undefined;
|
81
|
-
contactLabels?: string[] | undefined;
|
82
|
-
channels?: string[] | undefined;
|
83
|
-
date?: string | undefined;
|
84
|
-
contacts?: string[] | undefined;
|
85
|
-
assignees?: string[] | undefined;
|
63
|
+
keyword?: string | undefined;
|
86
64
|
level1?: "open" | "close" | "inbox" | "sent" | "scheduled" | "starred" | undefined;
|
87
65
|
level2?: "all" | "other" | "unassign" | "mine" | undefined;
|
88
66
|
}, {
|
89
67
|
page?: number | undefined;
|
90
68
|
pageSize?: number | undefined;
|
91
|
-
keyword?:
|
92
|
-
value: string;
|
93
|
-
category: "message" | "contact";
|
94
|
-
} | undefined;
|
95
|
-
contactLabels?: string[] | undefined;
|
96
|
-
channels?: string[] | undefined;
|
97
|
-
date?: string | undefined;
|
98
|
-
contacts?: string[] | undefined;
|
99
|
-
assignees?: string[] | undefined;
|
69
|
+
keyword?: string | undefined;
|
100
70
|
level1?: "open" | "close" | "inbox" | "sent" | "scheduled" | "starred" | undefined;
|
101
71
|
level2?: "all" | "other" | "unassign" | "mine" | undefined;
|
102
72
|
}>;
|
@@ -1857,150 +1827,6 @@ export declare const mailContract: {
|
|
1857
1827
|
};
|
1858
1828
|
}>;
|
1859
1829
|
unReadMessageCount: import("zod").ZodNumber;
|
1860
|
-
cxlog: import("zod").ZodObject<{
|
1861
|
-
id: import("zod").ZodString;
|
1862
|
-
createdAt: import("zod").ZodDate;
|
1863
|
-
updatedAt: import("zod").ZodDate;
|
1864
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
1865
|
-
caseId: import("zod").ZodNumber;
|
1866
|
-
entityId: import("zod").ZodString;
|
1867
|
-
entityName: import("zod").ZodString;
|
1868
|
-
contactId: import("zod").ZodNullable<import("zod").ZodString>;
|
1869
|
-
channel: import("zod").ZodNullable<import("zod").ZodString>;
|
1870
|
-
queueId: import("zod").ZodNullable<import("zod").ZodString>;
|
1871
|
-
agentId: import("zod").ZodNullable<import("zod").ZodString>;
|
1872
|
-
direction: import("zod").ZodNullable<import("zod").ZodString>;
|
1873
|
-
startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
|
1874
|
-
handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
1875
|
-
firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
1876
|
-
wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
|
1877
|
-
id: import("zod").ZodString;
|
1878
|
-
createdAt: import("zod").ZodDate;
|
1879
|
-
updatedAt: import("zod").ZodDate;
|
1880
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
1881
|
-
note: import("zod").ZodNullable<import("zod").ZodString>;
|
1882
|
-
disposition: import("zod").ZodNullable<import("zod").ZodString>;
|
1883
|
-
callFrom: import("zod").ZodNullable<import("zod").ZodString>;
|
1884
|
-
callTo: import("zod").ZodNullable<import("zod").ZodString>;
|
1885
|
-
tags: import("zod").ZodArray<import("zod").ZodObject<{
|
1886
|
-
id: import("zod").ZodString;
|
1887
|
-
createdAt: import("zod").ZodDate;
|
1888
|
-
updatedAt: import("zod").ZodDate;
|
1889
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
1890
|
-
name: import("zod").ZodString;
|
1891
|
-
}, "strip", import("zod").ZodTypeAny, {
|
1892
|
-
id: string;
|
1893
|
-
name: string;
|
1894
|
-
createdAt: Date;
|
1895
|
-
updatedAt: Date;
|
1896
|
-
deletedAt: Date | null;
|
1897
|
-
}, {
|
1898
|
-
id: string;
|
1899
|
-
name: string;
|
1900
|
-
createdAt: Date;
|
1901
|
-
updatedAt: Date;
|
1902
|
-
deletedAt: Date | null;
|
1903
|
-
}>, "many">;
|
1904
|
-
}, "strip", import("zod").ZodTypeAny, {
|
1905
|
-
id: string;
|
1906
|
-
disposition: string | null;
|
1907
|
-
createdAt: Date;
|
1908
|
-
updatedAt: Date;
|
1909
|
-
deletedAt: Date | null;
|
1910
|
-
tags: {
|
1911
|
-
id: string;
|
1912
|
-
name: string;
|
1913
|
-
createdAt: Date;
|
1914
|
-
updatedAt: Date;
|
1915
|
-
deletedAt: Date | null;
|
1916
|
-
}[];
|
1917
|
-
callFrom: string | null;
|
1918
|
-
callTo: string | null;
|
1919
|
-
note: string | null;
|
1920
|
-
}, {
|
1921
|
-
id: string;
|
1922
|
-
disposition: string | null;
|
1923
|
-
createdAt: Date;
|
1924
|
-
updatedAt: Date;
|
1925
|
-
deletedAt: Date | null;
|
1926
|
-
tags: {
|
1927
|
-
id: string;
|
1928
|
-
name: string;
|
1929
|
-
createdAt: Date;
|
1930
|
-
updatedAt: Date;
|
1931
|
-
deletedAt: Date | null;
|
1932
|
-
}[];
|
1933
|
-
callFrom: string | null;
|
1934
|
-
callTo: string | null;
|
1935
|
-
note: string | null;
|
1936
|
-
}>>;
|
1937
|
-
}, "strip", import("zod").ZodTypeAny, {
|
1938
|
-
id: string;
|
1939
|
-
channel: string | null;
|
1940
|
-
direction: string | null;
|
1941
|
-
createdAt: Date;
|
1942
|
-
updatedAt: Date;
|
1943
|
-
deletedAt: Date | null;
|
1944
|
-
entityId: string;
|
1945
|
-
queueId: string | null;
|
1946
|
-
contactId: string | null;
|
1947
|
-
caseId: number;
|
1948
|
-
entityName: string;
|
1949
|
-
agentId: string | null;
|
1950
|
-
startedDate: Date | null;
|
1951
|
-
handledTime: number | null;
|
1952
|
-
firstResponseTime: number | null;
|
1953
|
-
wrapUpForm: {
|
1954
|
-
id: string;
|
1955
|
-
disposition: string | null;
|
1956
|
-
createdAt: Date;
|
1957
|
-
updatedAt: Date;
|
1958
|
-
deletedAt: Date | null;
|
1959
|
-
tags: {
|
1960
|
-
id: string;
|
1961
|
-
name: string;
|
1962
|
-
createdAt: Date;
|
1963
|
-
updatedAt: Date;
|
1964
|
-
deletedAt: Date | null;
|
1965
|
-
}[];
|
1966
|
-
callFrom: string | null;
|
1967
|
-
callTo: string | null;
|
1968
|
-
note: string | null;
|
1969
|
-
} | null;
|
1970
|
-
}, {
|
1971
|
-
id: string;
|
1972
|
-
channel: string | null;
|
1973
|
-
direction: string | null;
|
1974
|
-
createdAt: Date;
|
1975
|
-
updatedAt: Date;
|
1976
|
-
deletedAt: Date | null;
|
1977
|
-
entityId: string;
|
1978
|
-
queueId: string | null;
|
1979
|
-
contactId: string | null;
|
1980
|
-
caseId: number;
|
1981
|
-
entityName: string;
|
1982
|
-
agentId: string | null;
|
1983
|
-
startedDate: Date | null;
|
1984
|
-
handledTime: number | null;
|
1985
|
-
firstResponseTime: number | null;
|
1986
|
-
wrapUpForm: {
|
1987
|
-
id: string;
|
1988
|
-
disposition: string | null;
|
1989
|
-
createdAt: Date;
|
1990
|
-
updatedAt: Date;
|
1991
|
-
deletedAt: Date | null;
|
1992
|
-
tags: {
|
1993
|
-
id: string;
|
1994
|
-
name: string;
|
1995
|
-
createdAt: Date;
|
1996
|
-
updatedAt: Date;
|
1997
|
-
deletedAt: Date | null;
|
1998
|
-
}[];
|
1999
|
-
callFrom: string | null;
|
2000
|
-
callTo: string | null;
|
2001
|
-
note: string | null;
|
2002
|
-
} | null;
|
2003
|
-
}>;
|
2004
1830
|
}, "strip", import("zod").ZodTypeAny, {
|
2005
1831
|
id: string;
|
2006
1832
|
direction: string;
|
@@ -2103,40 +1929,6 @@ export declare const mailContract: {
|
|
2103
1929
|
notificationCount: number | null;
|
2104
1930
|
};
|
2105
1931
|
resolved: boolean;
|
2106
|
-
cxlog: {
|
2107
|
-
id: string;
|
2108
|
-
channel: string | null;
|
2109
|
-
direction: string | null;
|
2110
|
-
createdAt: Date;
|
2111
|
-
updatedAt: Date;
|
2112
|
-
deletedAt: Date | null;
|
2113
|
-
entityId: string;
|
2114
|
-
queueId: string | null;
|
2115
|
-
contactId: string | null;
|
2116
|
-
caseId: number;
|
2117
|
-
entityName: string;
|
2118
|
-
agentId: string | null;
|
2119
|
-
startedDate: Date | null;
|
2120
|
-
handledTime: number | null;
|
2121
|
-
firstResponseTime: number | null;
|
2122
|
-
wrapUpForm: {
|
2123
|
-
id: string;
|
2124
|
-
disposition: string | null;
|
2125
|
-
createdAt: Date;
|
2126
|
-
updatedAt: Date;
|
2127
|
-
deletedAt: Date | null;
|
2128
|
-
tags: {
|
2129
|
-
id: string;
|
2130
|
-
name: string;
|
2131
|
-
createdAt: Date;
|
2132
|
-
updatedAt: Date;
|
2133
|
-
deletedAt: Date | null;
|
2134
|
-
}[];
|
2135
|
-
callFrom: string | null;
|
2136
|
-
callTo: string | null;
|
2137
|
-
note: string | null;
|
2138
|
-
} | null;
|
2139
|
-
};
|
2140
1932
|
assigneeId: string | null;
|
2141
1933
|
subject: string;
|
2142
1934
|
from: {
|
@@ -2547,40 +2339,6 @@ export declare const mailContract: {
|
|
2547
2339
|
notificationCount: number | null;
|
2548
2340
|
};
|
2549
2341
|
resolved: boolean;
|
2550
|
-
cxlog: {
|
2551
|
-
id: string;
|
2552
|
-
channel: string | null;
|
2553
|
-
direction: string | null;
|
2554
|
-
createdAt: Date;
|
2555
|
-
updatedAt: Date;
|
2556
|
-
deletedAt: Date | null;
|
2557
|
-
entityId: string;
|
2558
|
-
queueId: string | null;
|
2559
|
-
contactId: string | null;
|
2560
|
-
caseId: number;
|
2561
|
-
entityName: string;
|
2562
|
-
agentId: string | null;
|
2563
|
-
startedDate: Date | null;
|
2564
|
-
handledTime: number | null;
|
2565
|
-
firstResponseTime: number | null;
|
2566
|
-
wrapUpForm: {
|
2567
|
-
id: string;
|
2568
|
-
disposition: string | null;
|
2569
|
-
createdAt: Date;
|
2570
|
-
updatedAt: Date;
|
2571
|
-
deletedAt: Date | null;
|
2572
|
-
tags: {
|
2573
|
-
id: string;
|
2574
|
-
name: string;
|
2575
|
-
createdAt: Date;
|
2576
|
-
updatedAt: Date;
|
2577
|
-
deletedAt: Date | null;
|
2578
|
-
}[];
|
2579
|
-
callFrom: string | null;
|
2580
|
-
callTo: string | null;
|
2581
|
-
note: string | null;
|
2582
|
-
} | null;
|
2583
|
-
};
|
2584
2342
|
assigneeId: string | null;
|
2585
2343
|
subject: string;
|
2586
2344
|
from: {
|
@@ -2996,40 +2754,6 @@ export declare const mailContract: {
|
|
2996
2754
|
notificationCount: number | null;
|
2997
2755
|
};
|
2998
2756
|
resolved: boolean;
|
2999
|
-
cxlog: {
|
3000
|
-
id: string;
|
3001
|
-
channel: string | null;
|
3002
|
-
direction: string | null;
|
3003
|
-
createdAt: Date;
|
3004
|
-
updatedAt: Date;
|
3005
|
-
deletedAt: Date | null;
|
3006
|
-
entityId: string;
|
3007
|
-
queueId: string | null;
|
3008
|
-
contactId: string | null;
|
3009
|
-
caseId: number;
|
3010
|
-
entityName: string;
|
3011
|
-
agentId: string | null;
|
3012
|
-
startedDate: Date | null;
|
3013
|
-
handledTime: number | null;
|
3014
|
-
firstResponseTime: number | null;
|
3015
|
-
wrapUpForm: {
|
3016
|
-
id: string;
|
3017
|
-
disposition: string | null;
|
3018
|
-
createdAt: Date;
|
3019
|
-
updatedAt: Date;
|
3020
|
-
deletedAt: Date | null;
|
3021
|
-
tags: {
|
3022
|
-
id: string;
|
3023
|
-
name: string;
|
3024
|
-
createdAt: Date;
|
3025
|
-
updatedAt: Date;
|
3026
|
-
deletedAt: Date | null;
|
3027
|
-
}[];
|
3028
|
-
callFrom: string | null;
|
3029
|
-
callTo: string | null;
|
3030
|
-
note: string | null;
|
3031
|
-
} | null;
|
3032
|
-
};
|
3033
2757
|
assigneeId: string | null;
|
3034
2758
|
subject: string;
|
3035
2759
|
from: {
|
@@ -3446,40 +3170,6 @@ export declare const mailContract: {
|
|
3446
3170
|
notificationCount: number | null;
|
3447
3171
|
};
|
3448
3172
|
resolved: boolean;
|
3449
|
-
cxlog: {
|
3450
|
-
id: string;
|
3451
|
-
channel: string | null;
|
3452
|
-
direction: string | null;
|
3453
|
-
createdAt: Date;
|
3454
|
-
updatedAt: Date;
|
3455
|
-
deletedAt: Date | null;
|
3456
|
-
entityId: string;
|
3457
|
-
queueId: string | null;
|
3458
|
-
contactId: string | null;
|
3459
|
-
caseId: number;
|
3460
|
-
entityName: string;
|
3461
|
-
agentId: string | null;
|
3462
|
-
startedDate: Date | null;
|
3463
|
-
handledTime: number | null;
|
3464
|
-
firstResponseTime: number | null;
|
3465
|
-
wrapUpForm: {
|
3466
|
-
id: string;
|
3467
|
-
disposition: string | null;
|
3468
|
-
createdAt: Date;
|
3469
|
-
updatedAt: Date;
|
3470
|
-
deletedAt: Date | null;
|
3471
|
-
tags: {
|
3472
|
-
id: string;
|
3473
|
-
name: string;
|
3474
|
-
createdAt: Date;
|
3475
|
-
updatedAt: Date;
|
3476
|
-
deletedAt: Date | null;
|
3477
|
-
}[];
|
3478
|
-
callFrom: string | null;
|
3479
|
-
callTo: string | null;
|
3480
|
-
note: string | null;
|
3481
|
-
} | null;
|
3482
|
-
};
|
3483
3173
|
assigneeId: string | null;
|
3484
3174
|
subject: string;
|
3485
3175
|
from: {
|
@@ -3797,9 +3487,16 @@ export declare const mailContract: {
|
|
3797
3487
|
};
|
3798
3488
|
path: "mail/room";
|
3799
3489
|
};
|
3800
|
-
|
3801
|
-
summary: "Get
|
3490
|
+
getById: {
|
3491
|
+
summary: "Get a mail room by id";
|
3802
3492
|
method: "GET";
|
3493
|
+
pathParams: import("zod").ZodObject<{
|
3494
|
+
id: import("zod").ZodString;
|
3495
|
+
}, "strip", import("zod").ZodTypeAny, {
|
3496
|
+
id: string;
|
3497
|
+
}, {
|
3498
|
+
id: string;
|
3499
|
+
}>;
|
3803
3500
|
responses: {
|
3804
3501
|
401: import("zod").ZodObject<{
|
3805
3502
|
message: import("zod").ZodString;
|
@@ -3834,858 +3531,125 @@ export declare const mailContract: {
|
|
3834
3531
|
200: import("zod").ZodObject<{
|
3835
3532
|
requestId: import("zod").ZodString;
|
3836
3533
|
data: import("zod").ZodObject<{
|
3837
|
-
|
3534
|
+
id: import("zod").ZodString;
|
3535
|
+
createdAt: import("zod").ZodDate;
|
3536
|
+
updatedAt: import("zod").ZodDate;
|
3537
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
3538
|
+
subject: import("zod").ZodString;
|
3539
|
+
resolved: import("zod").ZodBoolean;
|
3540
|
+
assigneeId: import("zod").ZodNullable<import("zod").ZodString>;
|
3541
|
+
note: import("zod").ZodString;
|
3542
|
+
mailId: import("zod").ZodString;
|
3543
|
+
direction: import("zod").ZodString;
|
3544
|
+
lastMessageId: import("zod").ZodString;
|
3545
|
+
firstMessageId: import("zod").ZodString;
|
3546
|
+
from: import("zod").ZodArray<import("zod").ZodObject<{
|
3547
|
+
id: import("zod").ZodString;
|
3548
|
+
createdAt: import("zod").ZodDate;
|
3549
|
+
updatedAt: import("zod").ZodDate;
|
3550
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
3551
|
+
name: import("zod").ZodString;
|
3552
|
+
address: import("zod").ZodString;
|
3553
|
+
}, "strip", import("zod").ZodTypeAny, {
|
3554
|
+
id: string;
|
3555
|
+
address: string;
|
3556
|
+
name: string;
|
3557
|
+
createdAt: Date;
|
3558
|
+
updatedAt: Date;
|
3559
|
+
deletedAt: Date | null;
|
3560
|
+
}, {
|
3561
|
+
id: string;
|
3562
|
+
address: string;
|
3563
|
+
name: string;
|
3564
|
+
createdAt: Date;
|
3565
|
+
updatedAt: Date;
|
3566
|
+
deletedAt: Date | null;
|
3567
|
+
}>, "many">;
|
3568
|
+
to: import("zod").ZodArray<import("zod").ZodObject<{
|
3569
|
+
id: import("zod").ZodString;
|
3570
|
+
createdAt: import("zod").ZodDate;
|
3571
|
+
updatedAt: import("zod").ZodDate;
|
3572
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
3573
|
+
name: import("zod").ZodString;
|
3574
|
+
address: import("zod").ZodString;
|
3575
|
+
}, "strip", import("zod").ZodTypeAny, {
|
3576
|
+
id: string;
|
3577
|
+
address: string;
|
3578
|
+
name: string;
|
3579
|
+
createdAt: Date;
|
3580
|
+
updatedAt: Date;
|
3581
|
+
deletedAt: Date | null;
|
3582
|
+
}, {
|
3583
|
+
id: string;
|
3584
|
+
address: string;
|
3585
|
+
name: string;
|
3586
|
+
createdAt: Date;
|
3587
|
+
updatedAt: Date;
|
3588
|
+
deletedAt: Date | null;
|
3589
|
+
}>, "many">;
|
3590
|
+
cc: import("zod").ZodArray<import("zod").ZodObject<{
|
3591
|
+
id: import("zod").ZodString;
|
3592
|
+
createdAt: import("zod").ZodDate;
|
3593
|
+
updatedAt: import("zod").ZodDate;
|
3594
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
3595
|
+
name: import("zod").ZodString;
|
3596
|
+
address: import("zod").ZodString;
|
3597
|
+
}, "strip", import("zod").ZodTypeAny, {
|
3598
|
+
id: string;
|
3599
|
+
address: string;
|
3600
|
+
name: string;
|
3601
|
+
createdAt: Date;
|
3602
|
+
updatedAt: Date;
|
3603
|
+
deletedAt: Date | null;
|
3604
|
+
}, {
|
3605
|
+
id: string;
|
3606
|
+
address: string;
|
3607
|
+
name: string;
|
3608
|
+
createdAt: Date;
|
3609
|
+
updatedAt: Date;
|
3610
|
+
deletedAt: Date | null;
|
3611
|
+
}>, "many">;
|
3612
|
+
bcc: import("zod").ZodArray<import("zod").ZodObject<{
|
3613
|
+
id: import("zod").ZodString;
|
3614
|
+
createdAt: import("zod").ZodDate;
|
3615
|
+
updatedAt: import("zod").ZodDate;
|
3616
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
3838
3617
|
name: import("zod").ZodString;
|
3839
|
-
|
3840
|
-
unReadMessagesCount: import("zod").ZodNumber;
|
3618
|
+
address: import("zod").ZodString;
|
3841
3619
|
}, "strip", import("zod").ZodTypeAny, {
|
3620
|
+
id: string;
|
3621
|
+
address: string;
|
3842
3622
|
name: string;
|
3843
|
-
|
3844
|
-
|
3623
|
+
createdAt: Date;
|
3624
|
+
updatedAt: Date;
|
3625
|
+
deletedAt: Date | null;
|
3845
3626
|
}, {
|
3627
|
+
id: string;
|
3628
|
+
address: string;
|
3846
3629
|
name: string;
|
3847
|
-
|
3848
|
-
|
3630
|
+
createdAt: Date;
|
3631
|
+
updatedAt: Date;
|
3632
|
+
deletedAt: Date | null;
|
3849
3633
|
}>, "many">;
|
3850
|
-
|
3851
|
-
|
3852
|
-
|
3853
|
-
|
3854
|
-
|
3855
|
-
|
3856
|
-
|
3857
|
-
|
3858
|
-
|
3859
|
-
|
3860
|
-
|
3861
|
-
|
3862
|
-
|
3863
|
-
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
useTlsForSmtp: import("zod").ZodBoolean;
|
3870
|
-
imapHost: import("zod").ZodString;
|
3871
|
-
imapPort: import("zod").ZodNumber;
|
3872
|
-
imapTlsPort: import("zod").ZodNumber;
|
3873
|
-
useTlsForImap: import("zod").ZodBoolean;
|
3874
|
-
}, "strip", import("zod").ZodTypeAny, {
|
3875
|
-
id: string;
|
3876
|
-
name: string;
|
3877
|
-
createdAt: Date;
|
3878
|
-
updatedAt: Date;
|
3879
|
-
deletedAt: Date | null;
|
3880
|
-
smtpHost: string;
|
3881
|
-
smtpPort: number;
|
3882
|
-
smtpTlsPort: number;
|
3883
|
-
useTlsForSmtp: boolean;
|
3884
|
-
imapHost: string;
|
3885
|
-
imapPort: number;
|
3886
|
-
imapTlsPort: number;
|
3887
|
-
useTlsForImap: boolean;
|
3888
|
-
}, {
|
3889
|
-
id: string;
|
3890
|
-
name: string;
|
3891
|
-
createdAt: Date;
|
3892
|
-
updatedAt: Date;
|
3893
|
-
deletedAt: Date | null;
|
3894
|
-
smtpHost: string;
|
3895
|
-
smtpPort: number;
|
3896
|
-
smtpTlsPort: number;
|
3897
|
-
useTlsForSmtp: boolean;
|
3898
|
-
imapHost: string;
|
3899
|
-
imapPort: number;
|
3900
|
-
imapTlsPort: number;
|
3901
|
-
useTlsForImap: boolean;
|
3902
|
-
}>;
|
3903
|
-
state: import("zod").ZodUnion<[import("zod").ZodLiteral<"init">, import("zod").ZodLiteral<"syncing">, import("zod").ZodLiteral<"connecting">, import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">, import("zod").ZodLiteral<"authenticationError">, import("zod").ZodLiteral<"connectError">, import("zod").ZodLiteral<"unset">]>;
|
3904
|
-
}, "strip", import("zod").ZodTypeAny, {
|
3905
|
-
id: string;
|
3906
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
3907
|
-
address: string;
|
3908
|
-
name: string;
|
3909
|
-
createdAt: Date;
|
3910
|
-
updatedAt: Date;
|
3911
|
-
deletedAt: Date | null;
|
3912
|
-
accountId: string;
|
3913
|
-
mailServerId: string;
|
3914
|
-
mailServer: {
|
3915
|
-
id: string;
|
3916
|
-
name: string;
|
3917
|
-
createdAt: Date;
|
3918
|
-
updatedAt: Date;
|
3919
|
-
deletedAt: Date | null;
|
3920
|
-
smtpHost: string;
|
3921
|
-
smtpPort: number;
|
3922
|
-
smtpTlsPort: number;
|
3923
|
-
useTlsForSmtp: boolean;
|
3924
|
-
imapHost: string;
|
3925
|
-
imapPort: number;
|
3926
|
-
imapTlsPort: number;
|
3927
|
-
useTlsForImap: boolean;
|
3928
|
-
};
|
3929
|
-
}, {
|
3930
|
-
id: string;
|
3931
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
3932
|
-
address: string;
|
3933
|
-
name: string;
|
3934
|
-
createdAt: Date;
|
3935
|
-
updatedAt: Date;
|
3936
|
-
deletedAt: Date | null;
|
3937
|
-
accountId: string;
|
3938
|
-
mailServerId: string;
|
3939
|
-
mailServer: {
|
3940
|
-
id: string;
|
3941
|
-
name: string;
|
3942
|
-
createdAt: Date;
|
3943
|
-
updatedAt: Date;
|
3944
|
-
deletedAt: Date | null;
|
3945
|
-
smtpHost: string;
|
3946
|
-
smtpPort: number;
|
3947
|
-
smtpTlsPort: number;
|
3948
|
-
useTlsForSmtp: boolean;
|
3949
|
-
imapHost: string;
|
3950
|
-
imapPort: number;
|
3951
|
-
imapTlsPort: number;
|
3952
|
-
useTlsForImap: boolean;
|
3953
|
-
};
|
3954
|
-
}>;
|
3955
|
-
count: import("zod").ZodNumber;
|
3956
|
-
}, "strip", import("zod").ZodTypeAny, {
|
3957
|
-
channel: {
|
3958
|
-
id: string;
|
3959
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
3960
|
-
address: string;
|
3961
|
-
name: string;
|
3962
|
-
createdAt: Date;
|
3963
|
-
updatedAt: Date;
|
3964
|
-
deletedAt: Date | null;
|
3965
|
-
accountId: string;
|
3966
|
-
mailServerId: string;
|
3967
|
-
mailServer: {
|
3968
|
-
id: string;
|
3969
|
-
name: string;
|
3970
|
-
createdAt: Date;
|
3971
|
-
updatedAt: Date;
|
3972
|
-
deletedAt: Date | null;
|
3973
|
-
smtpHost: string;
|
3974
|
-
smtpPort: number;
|
3975
|
-
smtpTlsPort: number;
|
3976
|
-
useTlsForSmtp: boolean;
|
3977
|
-
imapHost: string;
|
3978
|
-
imapPort: number;
|
3979
|
-
imapTlsPort: number;
|
3980
|
-
useTlsForImap: boolean;
|
3981
|
-
};
|
3982
|
-
};
|
3983
|
-
count: number;
|
3984
|
-
}, {
|
3985
|
-
channel: {
|
3986
|
-
id: string;
|
3987
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
3988
|
-
address: string;
|
3989
|
-
name: string;
|
3990
|
-
createdAt: Date;
|
3991
|
-
updatedAt: Date;
|
3992
|
-
deletedAt: Date | null;
|
3993
|
-
accountId: string;
|
3994
|
-
mailServerId: string;
|
3995
|
-
mailServer: {
|
3996
|
-
id: string;
|
3997
|
-
name: string;
|
3998
|
-
createdAt: Date;
|
3999
|
-
updatedAt: Date;
|
4000
|
-
deletedAt: Date | null;
|
4001
|
-
smtpHost: string;
|
4002
|
-
smtpPort: number;
|
4003
|
-
smtpTlsPort: number;
|
4004
|
-
useTlsForSmtp: boolean;
|
4005
|
-
imapHost: string;
|
4006
|
-
imapPort: number;
|
4007
|
-
imapTlsPort: number;
|
4008
|
-
useTlsForImap: boolean;
|
4009
|
-
};
|
4010
|
-
};
|
4011
|
-
count: number;
|
4012
|
-
}>, "many">;
|
4013
|
-
contactLabels: import("zod").ZodArray<import("zod").ZodObject<{
|
4014
|
-
label: import("zod").ZodObject<{
|
4015
|
-
id: import("zod").ZodString;
|
4016
|
-
createdAt: import("zod").ZodDate;
|
4017
|
-
updatedAt: import("zod").ZodDate;
|
4018
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
4019
|
-
name: import("zod").ZodString;
|
4020
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4021
|
-
id: string;
|
4022
|
-
name: string;
|
4023
|
-
createdAt: Date;
|
4024
|
-
updatedAt: Date;
|
4025
|
-
deletedAt: Date | null;
|
4026
|
-
}, {
|
4027
|
-
id: string;
|
4028
|
-
name: string;
|
4029
|
-
createdAt: Date;
|
4030
|
-
updatedAt: Date;
|
4031
|
-
deletedAt: Date | null;
|
4032
|
-
}>;
|
4033
|
-
count: import("zod").ZodNumber;
|
4034
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4035
|
-
label: {
|
4036
|
-
id: string;
|
4037
|
-
name: string;
|
4038
|
-
createdAt: Date;
|
4039
|
-
updatedAt: Date;
|
4040
|
-
deletedAt: Date | null;
|
4041
|
-
};
|
4042
|
-
count: number;
|
4043
|
-
}, {
|
4044
|
-
label: {
|
4045
|
-
id: string;
|
4046
|
-
name: string;
|
4047
|
-
createdAt: Date;
|
4048
|
-
updatedAt: Date;
|
4049
|
-
deletedAt: Date | null;
|
4050
|
-
};
|
4051
|
-
count: number;
|
4052
|
-
}>, "many">;
|
4053
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4054
|
-
general: {
|
4055
|
-
name: string;
|
4056
|
-
count: number;
|
4057
|
-
unReadMessagesCount: number;
|
4058
|
-
}[];
|
4059
|
-
channels: {
|
4060
|
-
channel: {
|
4061
|
-
id: string;
|
4062
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
4063
|
-
address: string;
|
4064
|
-
name: string;
|
4065
|
-
createdAt: Date;
|
4066
|
-
updatedAt: Date;
|
4067
|
-
deletedAt: Date | null;
|
4068
|
-
accountId: string;
|
4069
|
-
mailServerId: string;
|
4070
|
-
mailServer: {
|
4071
|
-
id: string;
|
4072
|
-
name: string;
|
4073
|
-
createdAt: Date;
|
4074
|
-
updatedAt: Date;
|
4075
|
-
deletedAt: Date | null;
|
4076
|
-
smtpHost: string;
|
4077
|
-
smtpPort: number;
|
4078
|
-
smtpTlsPort: number;
|
4079
|
-
useTlsForSmtp: boolean;
|
4080
|
-
imapHost: string;
|
4081
|
-
imapPort: number;
|
4082
|
-
imapTlsPort: number;
|
4083
|
-
useTlsForImap: boolean;
|
4084
|
-
};
|
4085
|
-
};
|
4086
|
-
count: number;
|
4087
|
-
}[];
|
4088
|
-
contactLabels: {
|
4089
|
-
label: {
|
4090
|
-
id: string;
|
4091
|
-
name: string;
|
4092
|
-
createdAt: Date;
|
4093
|
-
updatedAt: Date;
|
4094
|
-
deletedAt: Date | null;
|
4095
|
-
};
|
4096
|
-
count: number;
|
4097
|
-
}[];
|
4098
|
-
}, {
|
4099
|
-
general: {
|
4100
|
-
name: string;
|
4101
|
-
count: number;
|
4102
|
-
unReadMessagesCount: number;
|
4103
|
-
}[];
|
4104
|
-
channels: {
|
4105
|
-
channel: {
|
4106
|
-
id: string;
|
4107
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
4108
|
-
address: string;
|
4109
|
-
name: string;
|
4110
|
-
createdAt: Date;
|
4111
|
-
updatedAt: Date;
|
4112
|
-
deletedAt: Date | null;
|
4113
|
-
accountId: string;
|
4114
|
-
mailServerId: string;
|
4115
|
-
mailServer: {
|
4116
|
-
id: string;
|
4117
|
-
name: string;
|
4118
|
-
createdAt: Date;
|
4119
|
-
updatedAt: Date;
|
4120
|
-
deletedAt: Date | null;
|
4121
|
-
smtpHost: string;
|
4122
|
-
smtpPort: number;
|
4123
|
-
smtpTlsPort: number;
|
4124
|
-
useTlsForSmtp: boolean;
|
4125
|
-
imapHost: string;
|
4126
|
-
imapPort: number;
|
4127
|
-
imapTlsPort: number;
|
4128
|
-
useTlsForImap: boolean;
|
4129
|
-
};
|
4130
|
-
};
|
4131
|
-
count: number;
|
4132
|
-
}[];
|
4133
|
-
contactLabels: {
|
4134
|
-
label: {
|
4135
|
-
id: string;
|
4136
|
-
name: string;
|
4137
|
-
createdAt: Date;
|
4138
|
-
updatedAt: Date;
|
4139
|
-
deletedAt: Date | null;
|
4140
|
-
};
|
4141
|
-
count: number;
|
4142
|
-
}[];
|
4143
|
-
}>;
|
4144
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4145
|
-
data: {
|
4146
|
-
general: {
|
4147
|
-
name: string;
|
4148
|
-
count: number;
|
4149
|
-
unReadMessagesCount: number;
|
4150
|
-
}[];
|
4151
|
-
channels: {
|
4152
|
-
channel: {
|
4153
|
-
id: string;
|
4154
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
4155
|
-
address: string;
|
4156
|
-
name: string;
|
4157
|
-
createdAt: Date;
|
4158
|
-
updatedAt: Date;
|
4159
|
-
deletedAt: Date | null;
|
4160
|
-
accountId: string;
|
4161
|
-
mailServerId: string;
|
4162
|
-
mailServer: {
|
4163
|
-
id: string;
|
4164
|
-
name: string;
|
4165
|
-
createdAt: Date;
|
4166
|
-
updatedAt: Date;
|
4167
|
-
deletedAt: Date | null;
|
4168
|
-
smtpHost: string;
|
4169
|
-
smtpPort: number;
|
4170
|
-
smtpTlsPort: number;
|
4171
|
-
useTlsForSmtp: boolean;
|
4172
|
-
imapHost: string;
|
4173
|
-
imapPort: number;
|
4174
|
-
imapTlsPort: number;
|
4175
|
-
useTlsForImap: boolean;
|
4176
|
-
};
|
4177
|
-
};
|
4178
|
-
count: number;
|
4179
|
-
}[];
|
4180
|
-
contactLabels: {
|
4181
|
-
label: {
|
4182
|
-
id: string;
|
4183
|
-
name: string;
|
4184
|
-
createdAt: Date;
|
4185
|
-
updatedAt: Date;
|
4186
|
-
deletedAt: Date | null;
|
4187
|
-
};
|
4188
|
-
count: number;
|
4189
|
-
}[];
|
4190
|
-
};
|
4191
|
-
requestId: string;
|
4192
|
-
}, {
|
4193
|
-
data: {
|
4194
|
-
general: {
|
4195
|
-
name: string;
|
4196
|
-
count: number;
|
4197
|
-
unReadMessagesCount: number;
|
4198
|
-
}[];
|
4199
|
-
channels: {
|
4200
|
-
channel: {
|
4201
|
-
id: string;
|
4202
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
4203
|
-
address: string;
|
4204
|
-
name: string;
|
4205
|
-
createdAt: Date;
|
4206
|
-
updatedAt: Date;
|
4207
|
-
deletedAt: Date | null;
|
4208
|
-
accountId: string;
|
4209
|
-
mailServerId: string;
|
4210
|
-
mailServer: {
|
4211
|
-
id: string;
|
4212
|
-
name: string;
|
4213
|
-
createdAt: Date;
|
4214
|
-
updatedAt: Date;
|
4215
|
-
deletedAt: Date | null;
|
4216
|
-
smtpHost: string;
|
4217
|
-
smtpPort: number;
|
4218
|
-
smtpTlsPort: number;
|
4219
|
-
useTlsForSmtp: boolean;
|
4220
|
-
imapHost: string;
|
4221
|
-
imapPort: number;
|
4222
|
-
imapTlsPort: number;
|
4223
|
-
useTlsForImap: boolean;
|
4224
|
-
};
|
4225
|
-
};
|
4226
|
-
count: number;
|
4227
|
-
}[];
|
4228
|
-
contactLabels: {
|
4229
|
-
label: {
|
4230
|
-
id: string;
|
4231
|
-
name: string;
|
4232
|
-
createdAt: Date;
|
4233
|
-
updatedAt: Date;
|
4234
|
-
deletedAt: Date | null;
|
4235
|
-
};
|
4236
|
-
count: number;
|
4237
|
-
}[];
|
4238
|
-
};
|
4239
|
-
requestId: string;
|
4240
|
-
}>;
|
4241
|
-
};
|
4242
|
-
path: "mail/room/count_rooms/all";
|
4243
|
-
};
|
4244
|
-
getAttachments: {
|
4245
|
-
summary: "Get all the attachments of a room";
|
4246
|
-
method: "GET";
|
4247
|
-
pathParams: import("zod").ZodObject<{
|
4248
|
-
id: import("zod").ZodString;
|
4249
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4250
|
-
id: string;
|
4251
|
-
}, {
|
4252
|
-
id: string;
|
4253
|
-
}>;
|
4254
|
-
responses: {
|
4255
|
-
401: import("zod").ZodObject<{
|
4256
|
-
message: import("zod").ZodString;
|
4257
|
-
error: import("zod").ZodAny;
|
4258
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4259
|
-
message: string;
|
4260
|
-
error?: any;
|
4261
|
-
}, {
|
4262
|
-
message: string;
|
4263
|
-
error?: any;
|
4264
|
-
}>;
|
4265
|
-
404: import("zod").ZodObject<{
|
4266
|
-
message: import("zod").ZodString;
|
4267
|
-
error: import("zod").ZodAny;
|
4268
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4269
|
-
message: string;
|
4270
|
-
error?: any;
|
4271
|
-
}, {
|
4272
|
-
message: string;
|
4273
|
-
error?: any;
|
4274
|
-
}>;
|
4275
|
-
422: import("zod").ZodObject<{
|
4276
|
-
message: import("zod").ZodString;
|
4277
|
-
error: import("zod").ZodAny;
|
4278
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4279
|
-
message: string;
|
4280
|
-
error?: any;
|
4281
|
-
}, {
|
4282
|
-
message: string;
|
4283
|
-
error?: any;
|
4284
|
-
}>;
|
4285
|
-
200: import("zod").ZodObject<{
|
4286
|
-
requestId: import("zod").ZodString;
|
4287
|
-
data: import("zod").ZodArray<import("zod").ZodObject<{
|
4288
|
-
fileName: import("zod").ZodString;
|
4289
|
-
fileType: import("zod").ZodString;
|
4290
|
-
emailEngineAttachmentId: import("zod").ZodString;
|
4291
|
-
uploadId: import("zod").ZodString;
|
4292
|
-
messageId: import("zod").ZodString;
|
4293
|
-
roomId: import("zod").ZodString;
|
4294
|
-
upload: import("zod").ZodObject<{
|
4295
|
-
id: import("zod").ZodString;
|
4296
|
-
createdAt: import("zod").ZodDate;
|
4297
|
-
updatedAt: import("zod").ZodDate;
|
4298
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
4299
|
-
bucketName: import("zod").ZodString;
|
4300
|
-
fileName: import("zod").ZodString;
|
4301
|
-
fileSize: import("zod").ZodNumber;
|
4302
|
-
fileKey: import("zod").ZodString;
|
4303
|
-
fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
4304
|
-
status: import("zod").ZodOptional<import("zod").ZodString>;
|
4305
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4306
|
-
id: string;
|
4307
|
-
createdAt: Date;
|
4308
|
-
updatedAt: Date;
|
4309
|
-
deletedAt: Date | null;
|
4310
|
-
fileName: string;
|
4311
|
-
fileKey: string;
|
4312
|
-
bucketName: string;
|
4313
|
-
fileSize: number;
|
4314
|
-
fileUrl: string | null;
|
4315
|
-
status?: string | undefined;
|
4316
|
-
}, {
|
4317
|
-
id: string;
|
4318
|
-
createdAt: Date;
|
4319
|
-
updatedAt: Date;
|
4320
|
-
deletedAt: Date | null;
|
4321
|
-
fileName: string;
|
4322
|
-
fileKey: string;
|
4323
|
-
bucketName: string;
|
4324
|
-
fileSize: number;
|
4325
|
-
fileUrl: string | null;
|
4326
|
-
status?: string | undefined;
|
4327
|
-
}>;
|
4328
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4329
|
-
fileName: string;
|
4330
|
-
fileType: string;
|
4331
|
-
uploadId: string;
|
4332
|
-
upload: {
|
4333
|
-
id: string;
|
4334
|
-
createdAt: Date;
|
4335
|
-
updatedAt: Date;
|
4336
|
-
deletedAt: Date | null;
|
4337
|
-
fileName: string;
|
4338
|
-
fileKey: string;
|
4339
|
-
bucketName: string;
|
4340
|
-
fileSize: number;
|
4341
|
-
fileUrl: string | null;
|
4342
|
-
status?: string | undefined;
|
4343
|
-
};
|
4344
|
-
roomId: string;
|
4345
|
-
messageId: string;
|
4346
|
-
emailEngineAttachmentId: string;
|
4347
|
-
}, {
|
4348
|
-
fileName: string;
|
4349
|
-
fileType: string;
|
4350
|
-
uploadId: string;
|
4351
|
-
upload: {
|
4352
|
-
id: string;
|
4353
|
-
createdAt: Date;
|
4354
|
-
updatedAt: Date;
|
4355
|
-
deletedAt: Date | null;
|
4356
|
-
fileName: string;
|
4357
|
-
fileKey: string;
|
4358
|
-
bucketName: string;
|
4359
|
-
fileSize: number;
|
4360
|
-
fileUrl: string | null;
|
4361
|
-
status?: string | undefined;
|
4362
|
-
};
|
4363
|
-
roomId: string;
|
4364
|
-
messageId: string;
|
4365
|
-
emailEngineAttachmentId: string;
|
4366
|
-
}>, "many">;
|
4367
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4368
|
-
data: {
|
4369
|
-
fileName: string;
|
4370
|
-
fileType: string;
|
4371
|
-
uploadId: string;
|
4372
|
-
upload: {
|
4373
|
-
id: string;
|
4374
|
-
createdAt: Date;
|
4375
|
-
updatedAt: Date;
|
4376
|
-
deletedAt: Date | null;
|
4377
|
-
fileName: string;
|
4378
|
-
fileKey: string;
|
4379
|
-
bucketName: string;
|
4380
|
-
fileSize: number;
|
4381
|
-
fileUrl: string | null;
|
4382
|
-
status?: string | undefined;
|
4383
|
-
};
|
4384
|
-
roomId: string;
|
4385
|
-
messageId: string;
|
4386
|
-
emailEngineAttachmentId: string;
|
4387
|
-
}[];
|
4388
|
-
requestId: string;
|
4389
|
-
}, {
|
4390
|
-
data: {
|
4391
|
-
fileName: string;
|
4392
|
-
fileType: string;
|
4393
|
-
uploadId: string;
|
4394
|
-
upload: {
|
4395
|
-
id: string;
|
4396
|
-
createdAt: Date;
|
4397
|
-
updatedAt: Date;
|
4398
|
-
deletedAt: Date | null;
|
4399
|
-
fileName: string;
|
4400
|
-
fileKey: string;
|
4401
|
-
bucketName: string;
|
4402
|
-
fileSize: number;
|
4403
|
-
fileUrl: string | null;
|
4404
|
-
status?: string | undefined;
|
4405
|
-
};
|
4406
|
-
roomId: string;
|
4407
|
-
messageId: string;
|
4408
|
-
emailEngineAttachmentId: string;
|
4409
|
-
}[];
|
4410
|
-
requestId: string;
|
4411
|
-
}>;
|
4412
|
-
};
|
4413
|
-
path: "mail/room/:id/attachments";
|
4414
|
-
};
|
4415
|
-
getParticipants: {
|
4416
|
-
summary: "Get all the attachments of a room";
|
4417
|
-
method: "GET";
|
4418
|
-
pathParams: import("zod").ZodObject<{
|
4419
|
-
id: import("zod").ZodString;
|
4420
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4421
|
-
id: string;
|
4422
|
-
}, {
|
4423
|
-
id: string;
|
4424
|
-
}>;
|
4425
|
-
responses: {
|
4426
|
-
401: import("zod").ZodObject<{
|
4427
|
-
message: import("zod").ZodString;
|
4428
|
-
error: import("zod").ZodAny;
|
4429
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4430
|
-
message: string;
|
4431
|
-
error?: any;
|
4432
|
-
}, {
|
4433
|
-
message: string;
|
4434
|
-
error?: any;
|
4435
|
-
}>;
|
4436
|
-
404: import("zod").ZodObject<{
|
4437
|
-
message: import("zod").ZodString;
|
4438
|
-
error: import("zod").ZodAny;
|
4439
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4440
|
-
message: string;
|
4441
|
-
error?: any;
|
4442
|
-
}, {
|
4443
|
-
message: string;
|
4444
|
-
error?: any;
|
4445
|
-
}>;
|
4446
|
-
422: import("zod").ZodObject<{
|
4447
|
-
message: import("zod").ZodString;
|
4448
|
-
error: import("zod").ZodAny;
|
4449
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4450
|
-
message: string;
|
4451
|
-
error?: any;
|
4452
|
-
}, {
|
4453
|
-
message: string;
|
4454
|
-
error?: any;
|
4455
|
-
}>;
|
4456
|
-
200: import("zod").ZodObject<{
|
4457
|
-
requestId: import("zod").ZodString;
|
4458
|
-
data: import("zod").ZodArray<import("zod").ZodObject<{
|
4459
|
-
id: import("zod").ZodString;
|
4460
|
-
createdAt: import("zod").ZodDate;
|
4461
|
-
updatedAt: import("zod").ZodDate;
|
4462
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
4463
|
-
name: import("zod").ZodString;
|
4464
|
-
address: import("zod").ZodString;
|
4465
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4466
|
-
id: string;
|
4467
|
-
address: string;
|
4468
|
-
name: string;
|
4469
|
-
createdAt: Date;
|
4470
|
-
updatedAt: Date;
|
4471
|
-
deletedAt: Date | null;
|
4472
|
-
}, {
|
4473
|
-
id: string;
|
4474
|
-
address: string;
|
4475
|
-
name: string;
|
4476
|
-
createdAt: Date;
|
4477
|
-
updatedAt: Date;
|
4478
|
-
deletedAt: Date | null;
|
4479
|
-
}>, "many">;
|
4480
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4481
|
-
data: {
|
4482
|
-
id: string;
|
4483
|
-
address: string;
|
4484
|
-
name: string;
|
4485
|
-
createdAt: Date;
|
4486
|
-
updatedAt: Date;
|
4487
|
-
deletedAt: Date | null;
|
4488
|
-
}[];
|
4489
|
-
requestId: string;
|
4490
|
-
}, {
|
4491
|
-
data: {
|
4492
|
-
id: string;
|
4493
|
-
address: string;
|
4494
|
-
name: string;
|
4495
|
-
createdAt: Date;
|
4496
|
-
updatedAt: Date;
|
4497
|
-
deletedAt: Date | null;
|
4498
|
-
}[];
|
4499
|
-
requestId: string;
|
4500
|
-
}>;
|
4501
|
-
};
|
4502
|
-
path: "mail/room/:id/participants";
|
4503
|
-
};
|
4504
|
-
update: {
|
4505
|
-
body: import("zod").ZodObject<{
|
4506
|
-
disposition: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"resolved">, import("zod").ZodLiteral<"follow up">, import("zod").ZodLiteral<"escalated">, import("zod").ZodLiteral<"dropped">, import("zod").ZodLiteral<"prank">, import("zod").ZodLiteral<"blank">]>>>;
|
4507
|
-
assigneeId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
4508
|
-
note: import("zod").ZodOptional<import("zod").ZodString>;
|
4509
|
-
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
4510
|
-
handover: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
|
4511
|
-
selfAssign: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
|
4512
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4513
|
-
disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
|
4514
|
-
assigneeId?: string | null | undefined;
|
4515
|
-
note?: string | undefined;
|
4516
|
-
tags?: string[] | undefined;
|
4517
|
-
handover?: boolean | null | undefined;
|
4518
|
-
selfAssign?: boolean | null | undefined;
|
4519
|
-
}, {
|
4520
|
-
disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
|
4521
|
-
assigneeId?: string | null | undefined;
|
4522
|
-
note?: string | undefined;
|
4523
|
-
tags?: string[] | undefined;
|
4524
|
-
handover?: boolean | "false" | "true" | null | undefined;
|
4525
|
-
selfAssign?: boolean | "false" | "true" | null | undefined;
|
4526
|
-
}>;
|
4527
|
-
summary: "Update a mail room by id";
|
4528
|
-
method: "PATCH";
|
4529
|
-
pathParams: import("zod").ZodObject<{
|
4530
|
-
id: import("zod").ZodString;
|
4531
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4532
|
-
id: string;
|
4533
|
-
}, {
|
4534
|
-
id: string;
|
4535
|
-
}>;
|
4536
|
-
responses: {
|
4537
|
-
401: import("zod").ZodObject<{
|
4538
|
-
message: import("zod").ZodString;
|
4539
|
-
error: import("zod").ZodAny;
|
4540
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4541
|
-
message: string;
|
4542
|
-
error?: any;
|
4543
|
-
}, {
|
4544
|
-
message: string;
|
4545
|
-
error?: any;
|
4546
|
-
}>;
|
4547
|
-
404: import("zod").ZodObject<{
|
4548
|
-
message: import("zod").ZodString;
|
4549
|
-
error: import("zod").ZodAny;
|
4550
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4551
|
-
message: string;
|
4552
|
-
error?: any;
|
4553
|
-
}, {
|
4554
|
-
message: string;
|
4555
|
-
error?: any;
|
4556
|
-
}>;
|
4557
|
-
422: import("zod").ZodObject<{
|
4558
|
-
message: import("zod").ZodString;
|
4559
|
-
error: import("zod").ZodAny;
|
4560
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4561
|
-
message: string;
|
4562
|
-
error?: any;
|
4563
|
-
}, {
|
4564
|
-
message: string;
|
4565
|
-
error?: any;
|
4566
|
-
}>;
|
4567
|
-
200: import("zod").ZodObject<{
|
4568
|
-
requestId: import("zod").ZodString;
|
4569
|
-
data: import("zod").ZodObject<{
|
4570
|
-
id: import("zod").ZodString;
|
4571
|
-
createdAt: import("zod").ZodDate;
|
4572
|
-
updatedAt: import("zod").ZodDate;
|
4573
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
4574
|
-
subject: import("zod").ZodString;
|
4575
|
-
resolved: import("zod").ZodBoolean;
|
4576
|
-
assigneeId: import("zod").ZodNullable<import("zod").ZodString>;
|
4577
|
-
note: import("zod").ZodString;
|
4578
|
-
mailId: import("zod").ZodString;
|
4579
|
-
direction: import("zod").ZodString;
|
4580
|
-
lastMessageId: import("zod").ZodString;
|
4581
|
-
firstMessageId: import("zod").ZodString;
|
4582
|
-
from: import("zod").ZodArray<import("zod").ZodObject<{
|
4583
|
-
id: import("zod").ZodString;
|
4584
|
-
createdAt: import("zod").ZodDate;
|
4585
|
-
updatedAt: import("zod").ZodDate;
|
4586
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
4587
|
-
name: import("zod").ZodString;
|
4588
|
-
address: import("zod").ZodString;
|
4589
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4590
|
-
id: string;
|
4591
|
-
address: string;
|
4592
|
-
name: string;
|
4593
|
-
createdAt: Date;
|
4594
|
-
updatedAt: Date;
|
4595
|
-
deletedAt: Date | null;
|
4596
|
-
}, {
|
4597
|
-
id: string;
|
4598
|
-
address: string;
|
4599
|
-
name: string;
|
4600
|
-
createdAt: Date;
|
4601
|
-
updatedAt: Date;
|
4602
|
-
deletedAt: Date | null;
|
4603
|
-
}>, "many">;
|
4604
|
-
to: import("zod").ZodArray<import("zod").ZodObject<{
|
4605
|
-
id: import("zod").ZodString;
|
4606
|
-
createdAt: import("zod").ZodDate;
|
4607
|
-
updatedAt: import("zod").ZodDate;
|
4608
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
4609
|
-
name: import("zod").ZodString;
|
4610
|
-
address: import("zod").ZodString;
|
4611
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4612
|
-
id: string;
|
4613
|
-
address: string;
|
4614
|
-
name: string;
|
4615
|
-
createdAt: Date;
|
4616
|
-
updatedAt: Date;
|
4617
|
-
deletedAt: Date | null;
|
4618
|
-
}, {
|
4619
|
-
id: string;
|
4620
|
-
address: string;
|
4621
|
-
name: string;
|
4622
|
-
createdAt: Date;
|
4623
|
-
updatedAt: Date;
|
4624
|
-
deletedAt: Date | null;
|
4625
|
-
}>, "many">;
|
4626
|
-
cc: import("zod").ZodArray<import("zod").ZodObject<{
|
4627
|
-
id: import("zod").ZodString;
|
4628
|
-
createdAt: import("zod").ZodDate;
|
4629
|
-
updatedAt: import("zod").ZodDate;
|
4630
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
4631
|
-
name: import("zod").ZodString;
|
4632
|
-
address: import("zod").ZodString;
|
4633
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4634
|
-
id: string;
|
4635
|
-
address: string;
|
4636
|
-
name: string;
|
4637
|
-
createdAt: Date;
|
4638
|
-
updatedAt: Date;
|
4639
|
-
deletedAt: Date | null;
|
4640
|
-
}, {
|
4641
|
-
id: string;
|
4642
|
-
address: string;
|
4643
|
-
name: string;
|
4644
|
-
createdAt: Date;
|
4645
|
-
updatedAt: Date;
|
4646
|
-
deletedAt: Date | null;
|
4647
|
-
}>, "many">;
|
4648
|
-
bcc: import("zod").ZodArray<import("zod").ZodObject<{
|
4649
|
-
id: import("zod").ZodString;
|
4650
|
-
createdAt: import("zod").ZodDate;
|
4651
|
-
updatedAt: import("zod").ZodDate;
|
4652
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
4653
|
-
name: import("zod").ZodString;
|
4654
|
-
address: import("zod").ZodString;
|
4655
|
-
}, "strip", import("zod").ZodTypeAny, {
|
4656
|
-
id: string;
|
4657
|
-
address: string;
|
4658
|
-
name: string;
|
4659
|
-
createdAt: Date;
|
4660
|
-
updatedAt: Date;
|
4661
|
-
deletedAt: Date | null;
|
4662
|
-
}, {
|
4663
|
-
id: string;
|
4664
|
-
address: string;
|
4665
|
-
name: string;
|
4666
|
-
createdAt: Date;
|
4667
|
-
updatedAt: Date;
|
4668
|
-
deletedAt: Date | null;
|
4669
|
-
}>, "many">;
|
4670
|
-
firstMessage: import("zod").ZodObject<{
|
4671
|
-
id: import("zod").ZodString;
|
4672
|
-
createdAt: import("zod").ZodDate;
|
4673
|
-
updatedAt: import("zod").ZodDate;
|
4674
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
4675
|
-
roomId: import("zod").ZodString;
|
4676
|
-
subject: import("zod").ZodString;
|
4677
|
-
textPlain: import("zod").ZodString;
|
4678
|
-
textHtml: import("zod").ZodString;
|
4679
|
-
textId: import("zod").ZodString;
|
4680
|
-
emailEngineEmailId: import("zod").ZodString;
|
4681
|
-
emailEngineMessageId: import("zod").ZodString;
|
4682
|
-
emailEngineReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
|
4683
|
-
direction: import("zod").ZodString;
|
4684
|
-
date: import("zod").ZodDate;
|
4685
|
-
action: import("zod").ZodString;
|
4686
|
-
unseen: import("zod").ZodBoolean;
|
4687
|
-
seemsLikeNew: import("zod").ZodBoolean;
|
4688
|
-
from: import("zod").ZodArray<import("zod").ZodObject<{
|
3634
|
+
firstMessage: import("zod").ZodObject<{
|
3635
|
+
id: import("zod").ZodString;
|
3636
|
+
createdAt: import("zod").ZodDate;
|
3637
|
+
updatedAt: import("zod").ZodDate;
|
3638
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
3639
|
+
roomId: import("zod").ZodString;
|
3640
|
+
subject: import("zod").ZodString;
|
3641
|
+
textPlain: import("zod").ZodString;
|
3642
|
+
textHtml: import("zod").ZodString;
|
3643
|
+
textId: import("zod").ZodString;
|
3644
|
+
emailEngineEmailId: import("zod").ZodString;
|
3645
|
+
emailEngineMessageId: import("zod").ZodString;
|
3646
|
+
emailEngineReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
|
3647
|
+
direction: import("zod").ZodString;
|
3648
|
+
date: import("zod").ZodDate;
|
3649
|
+
action: import("zod").ZodString;
|
3650
|
+
unseen: import("zod").ZodBoolean;
|
3651
|
+
seemsLikeNew: import("zod").ZodBoolean;
|
3652
|
+
from: import("zod").ZodArray<import("zod").ZodObject<{
|
4689
3653
|
id: import("zod").ZodString;
|
4690
3654
|
createdAt: import("zod").ZodDate;
|
4691
3655
|
updatedAt: import("zod").ZodDate;
|
@@ -6235,205 +5199,61 @@ export declare const mailContract: {
|
|
6235
5199
|
imapHost: string;
|
6236
5200
|
imapPort: number;
|
6237
5201
|
imapTlsPort: number;
|
6238
|
-
useTlsForImap: boolean;
|
6239
|
-
}>;
|
6240
|
-
state: import("zod").ZodUnion<[import("zod").ZodLiteral<"init">, import("zod").ZodLiteral<"syncing">, import("zod").ZodLiteral<"connecting">, import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">, import("zod").ZodLiteral<"authenticationError">, import("zod").ZodLiteral<"connectError">, import("zod").ZodLiteral<"unset">]>;
|
6241
|
-
}, "strip", import("zod").ZodTypeAny, {
|
6242
|
-
id: string;
|
6243
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
6244
|
-
address: string;
|
6245
|
-
name: string;
|
6246
|
-
createdAt: Date;
|
6247
|
-
updatedAt: Date;
|
6248
|
-
deletedAt: Date | null;
|
6249
|
-
accountId: string;
|
6250
|
-
mailServerId: string;
|
6251
|
-
mailServer: {
|
6252
|
-
id: string;
|
6253
|
-
name: string;
|
6254
|
-
createdAt: Date;
|
6255
|
-
updatedAt: Date;
|
6256
|
-
deletedAt: Date | null;
|
6257
|
-
smtpHost: string;
|
6258
|
-
smtpPort: number;
|
6259
|
-
smtpTlsPort: number;
|
6260
|
-
useTlsForSmtp: boolean;
|
6261
|
-
imapHost: string;
|
6262
|
-
imapPort: number;
|
6263
|
-
imapTlsPort: number;
|
6264
|
-
useTlsForImap: boolean;
|
6265
|
-
};
|
6266
|
-
}, {
|
6267
|
-
id: string;
|
6268
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
6269
|
-
address: string;
|
6270
|
-
name: string;
|
6271
|
-
createdAt: Date;
|
6272
|
-
updatedAt: Date;
|
6273
|
-
deletedAt: Date | null;
|
6274
|
-
accountId: string;
|
6275
|
-
mailServerId: string;
|
6276
|
-
mailServer: {
|
6277
|
-
id: string;
|
6278
|
-
name: string;
|
6279
|
-
createdAt: Date;
|
6280
|
-
updatedAt: Date;
|
6281
|
-
deletedAt: Date | null;
|
6282
|
-
smtpHost: string;
|
6283
|
-
smtpPort: number;
|
6284
|
-
smtpTlsPort: number;
|
6285
|
-
useTlsForSmtp: boolean;
|
6286
|
-
imapHost: string;
|
6287
|
-
imapPort: number;
|
6288
|
-
imapTlsPort: number;
|
6289
|
-
useTlsForImap: boolean;
|
6290
|
-
};
|
6291
|
-
}>;
|
6292
|
-
unReadMessageCount: import("zod").ZodNumber;
|
6293
|
-
cxlog: import("zod").ZodObject<{
|
6294
|
-
id: import("zod").ZodString;
|
6295
|
-
createdAt: import("zod").ZodDate;
|
6296
|
-
updatedAt: import("zod").ZodDate;
|
6297
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
6298
|
-
caseId: import("zod").ZodNumber;
|
6299
|
-
entityId: import("zod").ZodString;
|
6300
|
-
entityName: import("zod").ZodString;
|
6301
|
-
contactId: import("zod").ZodNullable<import("zod").ZodString>;
|
6302
|
-
channel: import("zod").ZodNullable<import("zod").ZodString>;
|
6303
|
-
queueId: import("zod").ZodNullable<import("zod").ZodString>;
|
6304
|
-
agentId: import("zod").ZodNullable<import("zod").ZodString>;
|
6305
|
-
direction: import("zod").ZodNullable<import("zod").ZodString>;
|
6306
|
-
startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
|
6307
|
-
handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
6308
|
-
firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
6309
|
-
wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
|
6310
|
-
id: import("zod").ZodString;
|
6311
|
-
createdAt: import("zod").ZodDate;
|
6312
|
-
updatedAt: import("zod").ZodDate;
|
6313
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
6314
|
-
note: import("zod").ZodNullable<import("zod").ZodString>;
|
6315
|
-
disposition: import("zod").ZodNullable<import("zod").ZodString>;
|
6316
|
-
callFrom: import("zod").ZodNullable<import("zod").ZodString>;
|
6317
|
-
callTo: import("zod").ZodNullable<import("zod").ZodString>;
|
6318
|
-
tags: import("zod").ZodArray<import("zod").ZodObject<{
|
6319
|
-
id: import("zod").ZodString;
|
6320
|
-
createdAt: import("zod").ZodDate;
|
6321
|
-
updatedAt: import("zod").ZodDate;
|
6322
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
6323
|
-
name: import("zod").ZodString;
|
6324
|
-
}, "strip", import("zod").ZodTypeAny, {
|
6325
|
-
id: string;
|
6326
|
-
name: string;
|
6327
|
-
createdAt: Date;
|
6328
|
-
updatedAt: Date;
|
6329
|
-
deletedAt: Date | null;
|
6330
|
-
}, {
|
6331
|
-
id: string;
|
6332
|
-
name: string;
|
6333
|
-
createdAt: Date;
|
6334
|
-
updatedAt: Date;
|
6335
|
-
deletedAt: Date | null;
|
6336
|
-
}>, "many">;
|
6337
|
-
}, "strip", import("zod").ZodTypeAny, {
|
6338
|
-
id: string;
|
6339
|
-
disposition: string | null;
|
6340
|
-
createdAt: Date;
|
6341
|
-
updatedAt: Date;
|
6342
|
-
deletedAt: Date | null;
|
6343
|
-
tags: {
|
6344
|
-
id: string;
|
6345
|
-
name: string;
|
6346
|
-
createdAt: Date;
|
6347
|
-
updatedAt: Date;
|
6348
|
-
deletedAt: Date | null;
|
6349
|
-
}[];
|
6350
|
-
callFrom: string | null;
|
6351
|
-
callTo: string | null;
|
6352
|
-
note: string | null;
|
6353
|
-
}, {
|
6354
|
-
id: string;
|
6355
|
-
disposition: string | null;
|
6356
|
-
createdAt: Date;
|
6357
|
-
updatedAt: Date;
|
6358
|
-
deletedAt: Date | null;
|
6359
|
-
tags: {
|
6360
|
-
id: string;
|
6361
|
-
name: string;
|
6362
|
-
createdAt: Date;
|
6363
|
-
updatedAt: Date;
|
6364
|
-
deletedAt: Date | null;
|
6365
|
-
}[];
|
6366
|
-
callFrom: string | null;
|
6367
|
-
callTo: string | null;
|
6368
|
-
note: string | null;
|
6369
|
-
}>>;
|
5202
|
+
useTlsForImap: boolean;
|
5203
|
+
}>;
|
5204
|
+
state: import("zod").ZodUnion<[import("zod").ZodLiteral<"init">, import("zod").ZodLiteral<"syncing">, import("zod").ZodLiteral<"connecting">, import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">, import("zod").ZodLiteral<"authenticationError">, import("zod").ZodLiteral<"connectError">, import("zod").ZodLiteral<"unset">]>;
|
6370
5205
|
}, "strip", import("zod").ZodTypeAny, {
|
6371
5206
|
id: string;
|
6372
|
-
|
6373
|
-
|
5207
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
5208
|
+
address: string;
|
5209
|
+
name: string;
|
6374
5210
|
createdAt: Date;
|
6375
5211
|
updatedAt: Date;
|
6376
5212
|
deletedAt: Date | null;
|
6377
|
-
|
6378
|
-
|
6379
|
-
|
6380
|
-
caseId: number;
|
6381
|
-
entityName: string;
|
6382
|
-
agentId: string | null;
|
6383
|
-
startedDate: Date | null;
|
6384
|
-
handledTime: number | null;
|
6385
|
-
firstResponseTime: number | null;
|
6386
|
-
wrapUpForm: {
|
5213
|
+
accountId: string;
|
5214
|
+
mailServerId: string;
|
5215
|
+
mailServer: {
|
6387
5216
|
id: string;
|
6388
|
-
|
5217
|
+
name: string;
|
6389
5218
|
createdAt: Date;
|
6390
5219
|
updatedAt: Date;
|
6391
5220
|
deletedAt: Date | null;
|
6392
|
-
|
6393
|
-
|
6394
|
-
|
6395
|
-
|
6396
|
-
|
6397
|
-
|
6398
|
-
|
6399
|
-
|
6400
|
-
|
6401
|
-
note: string | null;
|
6402
|
-
} | null;
|
5221
|
+
smtpHost: string;
|
5222
|
+
smtpPort: number;
|
5223
|
+
smtpTlsPort: number;
|
5224
|
+
useTlsForSmtp: boolean;
|
5225
|
+
imapHost: string;
|
5226
|
+
imapPort: number;
|
5227
|
+
imapTlsPort: number;
|
5228
|
+
useTlsForImap: boolean;
|
5229
|
+
};
|
6403
5230
|
}, {
|
6404
5231
|
id: string;
|
6405
|
-
|
6406
|
-
|
5232
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
5233
|
+
address: string;
|
5234
|
+
name: string;
|
6407
5235
|
createdAt: Date;
|
6408
5236
|
updatedAt: Date;
|
6409
5237
|
deletedAt: Date | null;
|
6410
|
-
|
6411
|
-
|
6412
|
-
|
6413
|
-
caseId: number;
|
6414
|
-
entityName: string;
|
6415
|
-
agentId: string | null;
|
6416
|
-
startedDate: Date | null;
|
6417
|
-
handledTime: number | null;
|
6418
|
-
firstResponseTime: number | null;
|
6419
|
-
wrapUpForm: {
|
5238
|
+
accountId: string;
|
5239
|
+
mailServerId: string;
|
5240
|
+
mailServer: {
|
6420
5241
|
id: string;
|
6421
|
-
|
5242
|
+
name: string;
|
6422
5243
|
createdAt: Date;
|
6423
5244
|
updatedAt: Date;
|
6424
5245
|
deletedAt: Date | null;
|
6425
|
-
|
6426
|
-
|
6427
|
-
|
6428
|
-
|
6429
|
-
|
6430
|
-
|
6431
|
-
|
6432
|
-
|
6433
|
-
|
6434
|
-
note: string | null;
|
6435
|
-
} | null;
|
5246
|
+
smtpHost: string;
|
5247
|
+
smtpPort: number;
|
5248
|
+
smtpTlsPort: number;
|
5249
|
+
useTlsForSmtp: boolean;
|
5250
|
+
imapHost: string;
|
5251
|
+
imapPort: number;
|
5252
|
+
imapTlsPort: number;
|
5253
|
+
useTlsForImap: boolean;
|
5254
|
+
};
|
6436
5255
|
}>;
|
5256
|
+
unReadMessageCount: import("zod").ZodNumber;
|
6437
5257
|
}, "strip", import("zod").ZodTypeAny, {
|
6438
5258
|
id: string;
|
6439
5259
|
direction: string;
|
@@ -6536,40 +5356,6 @@ export declare const mailContract: {
|
|
6536
5356
|
notificationCount: number | null;
|
6537
5357
|
};
|
6538
5358
|
resolved: boolean;
|
6539
|
-
cxlog: {
|
6540
|
-
id: string;
|
6541
|
-
channel: string | null;
|
6542
|
-
direction: string | null;
|
6543
|
-
createdAt: Date;
|
6544
|
-
updatedAt: Date;
|
6545
|
-
deletedAt: Date | null;
|
6546
|
-
entityId: string;
|
6547
|
-
queueId: string | null;
|
6548
|
-
contactId: string | null;
|
6549
|
-
caseId: number;
|
6550
|
-
entityName: string;
|
6551
|
-
agentId: string | null;
|
6552
|
-
startedDate: Date | null;
|
6553
|
-
handledTime: number | null;
|
6554
|
-
firstResponseTime: number | null;
|
6555
|
-
wrapUpForm: {
|
6556
|
-
id: string;
|
6557
|
-
disposition: string | null;
|
6558
|
-
createdAt: Date;
|
6559
|
-
updatedAt: Date;
|
6560
|
-
deletedAt: Date | null;
|
6561
|
-
tags: {
|
6562
|
-
id: string;
|
6563
|
-
name: string;
|
6564
|
-
createdAt: Date;
|
6565
|
-
updatedAt: Date;
|
6566
|
-
deletedAt: Date | null;
|
6567
|
-
}[];
|
6568
|
-
callFrom: string | null;
|
6569
|
-
callTo: string | null;
|
6570
|
-
note: string | null;
|
6571
|
-
} | null;
|
6572
|
-
};
|
6573
5359
|
assigneeId: string | null;
|
6574
5360
|
subject: string;
|
6575
5361
|
from: {
|
@@ -6980,40 +5766,6 @@ export declare const mailContract: {
|
|
6980
5766
|
notificationCount: number | null;
|
6981
5767
|
};
|
6982
5768
|
resolved: boolean;
|
6983
|
-
cxlog: {
|
6984
|
-
id: string;
|
6985
|
-
channel: string | null;
|
6986
|
-
direction: string | null;
|
6987
|
-
createdAt: Date;
|
6988
|
-
updatedAt: Date;
|
6989
|
-
deletedAt: Date | null;
|
6990
|
-
entityId: string;
|
6991
|
-
queueId: string | null;
|
6992
|
-
contactId: string | null;
|
6993
|
-
caseId: number;
|
6994
|
-
entityName: string;
|
6995
|
-
agentId: string | null;
|
6996
|
-
startedDate: Date | null;
|
6997
|
-
handledTime: number | null;
|
6998
|
-
firstResponseTime: number | null;
|
6999
|
-
wrapUpForm: {
|
7000
|
-
id: string;
|
7001
|
-
disposition: string | null;
|
7002
|
-
createdAt: Date;
|
7003
|
-
updatedAt: Date;
|
7004
|
-
deletedAt: Date | null;
|
7005
|
-
tags: {
|
7006
|
-
id: string;
|
7007
|
-
name: string;
|
7008
|
-
createdAt: Date;
|
7009
|
-
updatedAt: Date;
|
7010
|
-
deletedAt: Date | null;
|
7011
|
-
}[];
|
7012
|
-
callFrom: string | null;
|
7013
|
-
callTo: string | null;
|
7014
|
-
note: string | null;
|
7015
|
-
} | null;
|
7016
|
-
};
|
7017
5769
|
assigneeId: string | null;
|
7018
5770
|
subject: string;
|
7019
5771
|
from: {
|
@@ -7426,40 +6178,6 @@ export declare const mailContract: {
|
|
7426
6178
|
notificationCount: number | null;
|
7427
6179
|
};
|
7428
6180
|
resolved: boolean;
|
7429
|
-
cxlog: {
|
7430
|
-
id: string;
|
7431
|
-
channel: string | null;
|
7432
|
-
direction: string | null;
|
7433
|
-
createdAt: Date;
|
7434
|
-
updatedAt: Date;
|
7435
|
-
deletedAt: Date | null;
|
7436
|
-
entityId: string;
|
7437
|
-
queueId: string | null;
|
7438
|
-
contactId: string | null;
|
7439
|
-
caseId: number;
|
7440
|
-
entityName: string;
|
7441
|
-
agentId: string | null;
|
7442
|
-
startedDate: Date | null;
|
7443
|
-
handledTime: number | null;
|
7444
|
-
firstResponseTime: number | null;
|
7445
|
-
wrapUpForm: {
|
7446
|
-
id: string;
|
7447
|
-
disposition: string | null;
|
7448
|
-
createdAt: Date;
|
7449
|
-
updatedAt: Date;
|
7450
|
-
deletedAt: Date | null;
|
7451
|
-
tags: {
|
7452
|
-
id: string;
|
7453
|
-
name: string;
|
7454
|
-
createdAt: Date;
|
7455
|
-
updatedAt: Date;
|
7456
|
-
deletedAt: Date | null;
|
7457
|
-
}[];
|
7458
|
-
callFrom: string | null;
|
7459
|
-
callTo: string | null;
|
7460
|
-
note: string | null;
|
7461
|
-
} | null;
|
7462
|
-
};
|
7463
6181
|
assigneeId: string | null;
|
7464
6182
|
subject: string;
|
7465
6183
|
from: {
|
@@ -7873,40 +6591,6 @@ export declare const mailContract: {
|
|
7873
6591
|
notificationCount: number | null;
|
7874
6592
|
};
|
7875
6593
|
resolved: boolean;
|
7876
|
-
cxlog: {
|
7877
|
-
id: string;
|
7878
|
-
channel: string | null;
|
7879
|
-
direction: string | null;
|
7880
|
-
createdAt: Date;
|
7881
|
-
updatedAt: Date;
|
7882
|
-
deletedAt: Date | null;
|
7883
|
-
entityId: string;
|
7884
|
-
queueId: string | null;
|
7885
|
-
contactId: string | null;
|
7886
|
-
caseId: number;
|
7887
|
-
entityName: string;
|
7888
|
-
agentId: string | null;
|
7889
|
-
startedDate: Date | null;
|
7890
|
-
handledTime: number | null;
|
7891
|
-
firstResponseTime: number | null;
|
7892
|
-
wrapUpForm: {
|
7893
|
-
id: string;
|
7894
|
-
disposition: string | null;
|
7895
|
-
createdAt: Date;
|
7896
|
-
updatedAt: Date;
|
7897
|
-
deletedAt: Date | null;
|
7898
|
-
tags: {
|
7899
|
-
id: string;
|
7900
|
-
name: string;
|
7901
|
-
createdAt: Date;
|
7902
|
-
updatedAt: Date;
|
7903
|
-
deletedAt: Date | null;
|
7904
|
-
}[];
|
7905
|
-
callFrom: string | null;
|
7906
|
-
callTo: string | null;
|
7907
|
-
note: string | null;
|
7908
|
-
} | null;
|
7909
|
-
};
|
7910
6594
|
assigneeId: string | null;
|
7911
6595
|
subject: string;
|
7912
6596
|
from: {
|
@@ -8170,67 +6854,238 @@ export declare const mailContract: {
|
|
8170
6854
|
}[];
|
8171
6855
|
} | {
|
8172
6856
|
id: string;
|
8173
|
-
description: string;
|
6857
|
+
description: string;
|
6858
|
+
createdAt: Date;
|
6859
|
+
updatedAt: Date;
|
6860
|
+
deletedAt: string | null;
|
6861
|
+
actor: {
|
6862
|
+
id: string;
|
6863
|
+
address: string | null;
|
6864
|
+
name: string;
|
6865
|
+
email: string;
|
6866
|
+
createdAt: Date;
|
6867
|
+
updatedAt: Date;
|
6868
|
+
deletedAt: Date | null;
|
6869
|
+
phone: string | null;
|
6870
|
+
notificationCount: number | null;
|
6871
|
+
};
|
6872
|
+
roomId: string;
|
6873
|
+
actorId: string;
|
6874
|
+
})[];
|
6875
|
+
mail: {
|
6876
|
+
id: string;
|
6877
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
6878
|
+
address: string;
|
6879
|
+
name: string;
|
6880
|
+
createdAt: Date;
|
6881
|
+
updatedAt: Date;
|
6882
|
+
deletedAt: Date | null;
|
6883
|
+
accountId: string;
|
6884
|
+
mailServerId: string;
|
6885
|
+
mailServer: {
|
6886
|
+
id: string;
|
6887
|
+
name: string;
|
6888
|
+
createdAt: Date;
|
6889
|
+
updatedAt: Date;
|
6890
|
+
deletedAt: Date | null;
|
6891
|
+
smtpHost: string;
|
6892
|
+
smtpPort: number;
|
6893
|
+
smtpTlsPort: number;
|
6894
|
+
useTlsForSmtp: boolean;
|
6895
|
+
imapHost: string;
|
6896
|
+
imapPort: number;
|
6897
|
+
imapTlsPort: number;
|
6898
|
+
useTlsForImap: boolean;
|
6899
|
+
};
|
6900
|
+
};
|
6901
|
+
unReadMessageCount: number;
|
6902
|
+
};
|
6903
|
+
requestId: string;
|
6904
|
+
}>;
|
6905
|
+
};
|
6906
|
+
path: "mail/room/:id";
|
6907
|
+
};
|
6908
|
+
getAttachments: {
|
6909
|
+
summary: "Get all the attachments of a room";
|
6910
|
+
method: "GET";
|
6911
|
+
pathParams: import("zod").ZodObject<{
|
6912
|
+
id: import("zod").ZodString;
|
6913
|
+
}, "strip", import("zod").ZodTypeAny, {
|
6914
|
+
id: string;
|
6915
|
+
}, {
|
6916
|
+
id: string;
|
6917
|
+
}>;
|
6918
|
+
responses: {
|
6919
|
+
401: import("zod").ZodObject<{
|
6920
|
+
message: import("zod").ZodString;
|
6921
|
+
error: import("zod").ZodAny;
|
6922
|
+
}, "strip", import("zod").ZodTypeAny, {
|
6923
|
+
message: string;
|
6924
|
+
error?: any;
|
6925
|
+
}, {
|
6926
|
+
message: string;
|
6927
|
+
error?: any;
|
6928
|
+
}>;
|
6929
|
+
404: import("zod").ZodObject<{
|
6930
|
+
message: import("zod").ZodString;
|
6931
|
+
error: import("zod").ZodAny;
|
6932
|
+
}, "strip", import("zod").ZodTypeAny, {
|
6933
|
+
message: string;
|
6934
|
+
error?: any;
|
6935
|
+
}, {
|
6936
|
+
message: string;
|
6937
|
+
error?: any;
|
6938
|
+
}>;
|
6939
|
+
422: import("zod").ZodObject<{
|
6940
|
+
message: import("zod").ZodString;
|
6941
|
+
error: import("zod").ZodAny;
|
6942
|
+
}, "strip", import("zod").ZodTypeAny, {
|
6943
|
+
message: string;
|
6944
|
+
error?: any;
|
6945
|
+
}, {
|
6946
|
+
message: string;
|
6947
|
+
error?: any;
|
6948
|
+
}>;
|
6949
|
+
200: import("zod").ZodObject<{
|
6950
|
+
requestId: import("zod").ZodString;
|
6951
|
+
data: import("zod").ZodArray<import("zod").ZodObject<{
|
6952
|
+
fileName: import("zod").ZodString;
|
6953
|
+
fileType: import("zod").ZodString;
|
6954
|
+
emailEngineAttachmentId: import("zod").ZodString;
|
6955
|
+
uploadId: import("zod").ZodString;
|
6956
|
+
messageId: import("zod").ZodString;
|
6957
|
+
roomId: import("zod").ZodString;
|
6958
|
+
upload: import("zod").ZodObject<{
|
6959
|
+
id: import("zod").ZodString;
|
6960
|
+
createdAt: import("zod").ZodDate;
|
6961
|
+
updatedAt: import("zod").ZodDate;
|
6962
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
6963
|
+
bucketName: import("zod").ZodString;
|
6964
|
+
fileName: import("zod").ZodString;
|
6965
|
+
fileSize: import("zod").ZodNumber;
|
6966
|
+
fileKey: import("zod").ZodString;
|
6967
|
+
fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
6968
|
+
status: import("zod").ZodOptional<import("zod").ZodString>;
|
6969
|
+
}, "strip", import("zod").ZodTypeAny, {
|
6970
|
+
id: string;
|
6971
|
+
createdAt: Date;
|
6972
|
+
updatedAt: Date;
|
6973
|
+
deletedAt: Date | null;
|
6974
|
+
fileName: string;
|
6975
|
+
fileKey: string;
|
6976
|
+
bucketName: string;
|
6977
|
+
fileSize: number;
|
6978
|
+
fileUrl: string | null;
|
6979
|
+
status?: string | undefined;
|
6980
|
+
}, {
|
6981
|
+
id: string;
|
6982
|
+
createdAt: Date;
|
6983
|
+
updatedAt: Date;
|
6984
|
+
deletedAt: Date | null;
|
6985
|
+
fileName: string;
|
6986
|
+
fileKey: string;
|
6987
|
+
bucketName: string;
|
6988
|
+
fileSize: number;
|
6989
|
+
fileUrl: string | null;
|
6990
|
+
status?: string | undefined;
|
6991
|
+
}>;
|
6992
|
+
}, "strip", import("zod").ZodTypeAny, {
|
6993
|
+
fileName: string;
|
6994
|
+
fileType: string;
|
6995
|
+
uploadId: string;
|
6996
|
+
upload: {
|
6997
|
+
id: string;
|
6998
|
+
createdAt: Date;
|
6999
|
+
updatedAt: Date;
|
7000
|
+
deletedAt: Date | null;
|
7001
|
+
fileName: string;
|
7002
|
+
fileKey: string;
|
7003
|
+
bucketName: string;
|
7004
|
+
fileSize: number;
|
7005
|
+
fileUrl: string | null;
|
7006
|
+
status?: string | undefined;
|
7007
|
+
};
|
7008
|
+
roomId: string;
|
7009
|
+
messageId: string;
|
7010
|
+
emailEngineAttachmentId: string;
|
7011
|
+
}, {
|
7012
|
+
fileName: string;
|
7013
|
+
fileType: string;
|
7014
|
+
uploadId: string;
|
7015
|
+
upload: {
|
7016
|
+
id: string;
|
8174
7017
|
createdAt: Date;
|
8175
7018
|
updatedAt: Date;
|
8176
|
-
deletedAt:
|
8177
|
-
|
8178
|
-
|
8179
|
-
|
8180
|
-
|
8181
|
-
|
8182
|
-
|
8183
|
-
|
8184
|
-
|
8185
|
-
|
8186
|
-
|
8187
|
-
|
8188
|
-
|
8189
|
-
|
8190
|
-
|
8191
|
-
|
7019
|
+
deletedAt: Date | null;
|
7020
|
+
fileName: string;
|
7021
|
+
fileKey: string;
|
7022
|
+
bucketName: string;
|
7023
|
+
fileSize: number;
|
7024
|
+
fileUrl: string | null;
|
7025
|
+
status?: string | undefined;
|
7026
|
+
};
|
7027
|
+
roomId: string;
|
7028
|
+
messageId: string;
|
7029
|
+
emailEngineAttachmentId: string;
|
7030
|
+
}>, "many">;
|
7031
|
+
}, "strip", import("zod").ZodTypeAny, {
|
7032
|
+
data: {
|
7033
|
+
fileName: string;
|
7034
|
+
fileType: string;
|
7035
|
+
uploadId: string;
|
7036
|
+
upload: {
|
8192
7037
|
id: string;
|
8193
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
8194
|
-
address: string;
|
8195
|
-
name: string;
|
8196
7038
|
createdAt: Date;
|
8197
7039
|
updatedAt: Date;
|
8198
7040
|
deletedAt: Date | null;
|
8199
|
-
|
8200
|
-
|
8201
|
-
|
8202
|
-
|
8203
|
-
|
8204
|
-
|
8205
|
-
updatedAt: Date;
|
8206
|
-
deletedAt: Date | null;
|
8207
|
-
smtpHost: string;
|
8208
|
-
smtpPort: number;
|
8209
|
-
smtpTlsPort: number;
|
8210
|
-
useTlsForSmtp: boolean;
|
8211
|
-
imapHost: string;
|
8212
|
-
imapPort: number;
|
8213
|
-
imapTlsPort: number;
|
8214
|
-
useTlsForImap: boolean;
|
8215
|
-
};
|
7041
|
+
fileName: string;
|
7042
|
+
fileKey: string;
|
7043
|
+
bucketName: string;
|
7044
|
+
fileSize: number;
|
7045
|
+
fileUrl: string | null;
|
7046
|
+
status?: string | undefined;
|
8216
7047
|
};
|
8217
|
-
|
8218
|
-
|
7048
|
+
roomId: string;
|
7049
|
+
messageId: string;
|
7050
|
+
emailEngineAttachmentId: string;
|
7051
|
+
}[];
|
7052
|
+
requestId: string;
|
7053
|
+
}, {
|
7054
|
+
data: {
|
7055
|
+
fileName: string;
|
7056
|
+
fileType: string;
|
7057
|
+
uploadId: string;
|
7058
|
+
upload: {
|
7059
|
+
id: string;
|
7060
|
+
createdAt: Date;
|
7061
|
+
updatedAt: Date;
|
7062
|
+
deletedAt: Date | null;
|
7063
|
+
fileName: string;
|
7064
|
+
fileKey: string;
|
7065
|
+
bucketName: string;
|
7066
|
+
fileSize: number;
|
7067
|
+
fileUrl: string | null;
|
7068
|
+
status?: string | undefined;
|
7069
|
+
};
|
7070
|
+
roomId: string;
|
7071
|
+
messageId: string;
|
7072
|
+
emailEngineAttachmentId: string;
|
7073
|
+
}[];
|
8219
7074
|
requestId: string;
|
8220
7075
|
}>;
|
8221
7076
|
};
|
8222
|
-
path: "mail/room/:id";
|
7077
|
+
path: "mail/room/:id/attachments";
|
8223
7078
|
};
|
8224
|
-
|
8225
|
-
|
7079
|
+
getParticipants: {
|
7080
|
+
summary: "Get all the attachments of a room";
|
7081
|
+
method: "GET";
|
7082
|
+
pathParams: import("zod").ZodObject<{
|
8226
7083
|
id: import("zod").ZodString;
|
8227
7084
|
}, "strip", import("zod").ZodTypeAny, {
|
8228
7085
|
id: string;
|
8229
7086
|
}, {
|
8230
7087
|
id: string;
|
8231
7088
|
}>;
|
8232
|
-
summary: "Mark all the unread messages of a room as read";
|
8233
|
-
method: "POST";
|
8234
7089
|
responses: {
|
8235
7090
|
401: import("zod").ZodObject<{
|
8236
7091
|
message: import("zod").ZodString;
|
@@ -8264,20 +7119,77 @@ export declare const mailContract: {
|
|
8264
7119
|
}>;
|
8265
7120
|
200: import("zod").ZodObject<{
|
8266
7121
|
requestId: import("zod").ZodString;
|
8267
|
-
|
7122
|
+
data: import("zod").ZodArray<import("zod").ZodObject<{
|
7123
|
+
id: import("zod").ZodString;
|
7124
|
+
createdAt: import("zod").ZodDate;
|
7125
|
+
updatedAt: import("zod").ZodDate;
|
7126
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
7127
|
+
name: import("zod").ZodString;
|
7128
|
+
address: import("zod").ZodString;
|
7129
|
+
}, "strip", import("zod").ZodTypeAny, {
|
7130
|
+
id: string;
|
7131
|
+
address: string;
|
7132
|
+
name: string;
|
7133
|
+
createdAt: Date;
|
7134
|
+
updatedAt: Date;
|
7135
|
+
deletedAt: Date | null;
|
7136
|
+
}, {
|
7137
|
+
id: string;
|
7138
|
+
address: string;
|
7139
|
+
name: string;
|
7140
|
+
createdAt: Date;
|
7141
|
+
updatedAt: Date;
|
7142
|
+
deletedAt: Date | null;
|
7143
|
+
}>, "many">;
|
8268
7144
|
}, "strip", import("zod").ZodTypeAny, {
|
8269
|
-
|
7145
|
+
data: {
|
7146
|
+
id: string;
|
7147
|
+
address: string;
|
7148
|
+
name: string;
|
7149
|
+
createdAt: Date;
|
7150
|
+
updatedAt: Date;
|
7151
|
+
deletedAt: Date | null;
|
7152
|
+
}[];
|
8270
7153
|
requestId: string;
|
8271
7154
|
}, {
|
8272
|
-
|
7155
|
+
data: {
|
7156
|
+
id: string;
|
7157
|
+
address: string;
|
7158
|
+
name: string;
|
7159
|
+
createdAt: Date;
|
7160
|
+
updatedAt: Date;
|
7161
|
+
deletedAt: Date | null;
|
7162
|
+
}[];
|
8273
7163
|
requestId: string;
|
8274
7164
|
}>;
|
8275
7165
|
};
|
8276
|
-
path: "mail/room/
|
7166
|
+
path: "mail/room/:id/participants";
|
8277
7167
|
};
|
8278
|
-
|
8279
|
-
|
8280
|
-
|
7168
|
+
update: {
|
7169
|
+
body: import("zod").ZodObject<{
|
7170
|
+
resolved: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
|
7171
|
+
assigneeId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
7172
|
+
note: import("zod").ZodOptional<import("zod").ZodString>;
|
7173
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
7174
|
+
handover: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
|
7175
|
+
selfAssign: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
|
7176
|
+
}, "strip", import("zod").ZodTypeAny, {
|
7177
|
+
resolved?: boolean | null | undefined;
|
7178
|
+
assigneeId?: string | null | undefined;
|
7179
|
+
note?: string | undefined;
|
7180
|
+
tags?: string[] | undefined;
|
7181
|
+
handover?: boolean | null | undefined;
|
7182
|
+
selfAssign?: boolean | null | undefined;
|
7183
|
+
}, {
|
7184
|
+
resolved?: boolean | "false" | "true" | null | undefined;
|
7185
|
+
assigneeId?: string | null | undefined;
|
7186
|
+
note?: string | undefined;
|
7187
|
+
tags?: string[] | undefined;
|
7188
|
+
handover?: boolean | "false" | "true" | null | undefined;
|
7189
|
+
selfAssign?: boolean | "false" | "true" | null | undefined;
|
7190
|
+
}>;
|
7191
|
+
summary: "Update a mail room by id";
|
7192
|
+
method: "PATCH";
|
8281
7193
|
pathParams: import("zod").ZodObject<{
|
8282
7194
|
id: import("zod").ZodString;
|
8283
7195
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -9993,199 +8905,55 @@ export declare const mailContract: {
|
|
9993
8905
|
}, "strip", import("zod").ZodTypeAny, {
|
9994
8906
|
id: string;
|
9995
8907
|
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
9996
|
-
address: string;
|
9997
|
-
name: string;
|
9998
|
-
createdAt: Date;
|
9999
|
-
updatedAt: Date;
|
10000
|
-
deletedAt: Date | null;
|
10001
|
-
accountId: string;
|
10002
|
-
mailServerId: string;
|
10003
|
-
mailServer: {
|
10004
|
-
id: string;
|
10005
|
-
name: string;
|
10006
|
-
createdAt: Date;
|
10007
|
-
updatedAt: Date;
|
10008
|
-
deletedAt: Date | null;
|
10009
|
-
smtpHost: string;
|
10010
|
-
smtpPort: number;
|
10011
|
-
smtpTlsPort: number;
|
10012
|
-
useTlsForSmtp: boolean;
|
10013
|
-
imapHost: string;
|
10014
|
-
imapPort: number;
|
10015
|
-
imapTlsPort: number;
|
10016
|
-
useTlsForImap: boolean;
|
10017
|
-
};
|
10018
|
-
}, {
|
10019
|
-
id: string;
|
10020
|
-
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
10021
|
-
address: string;
|
10022
|
-
name: string;
|
10023
|
-
createdAt: Date;
|
10024
|
-
updatedAt: Date;
|
10025
|
-
deletedAt: Date | null;
|
10026
|
-
accountId: string;
|
10027
|
-
mailServerId: string;
|
10028
|
-
mailServer: {
|
10029
|
-
id: string;
|
10030
|
-
name: string;
|
10031
|
-
createdAt: Date;
|
10032
|
-
updatedAt: Date;
|
10033
|
-
deletedAt: Date | null;
|
10034
|
-
smtpHost: string;
|
10035
|
-
smtpPort: number;
|
10036
|
-
smtpTlsPort: number;
|
10037
|
-
useTlsForSmtp: boolean;
|
10038
|
-
imapHost: string;
|
10039
|
-
imapPort: number;
|
10040
|
-
imapTlsPort: number;
|
10041
|
-
useTlsForImap: boolean;
|
10042
|
-
};
|
10043
|
-
}>;
|
10044
|
-
unReadMessageCount: import("zod").ZodNumber;
|
10045
|
-
cxlog: import("zod").ZodObject<{
|
10046
|
-
id: import("zod").ZodString;
|
10047
|
-
createdAt: import("zod").ZodDate;
|
10048
|
-
updatedAt: import("zod").ZodDate;
|
10049
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
10050
|
-
caseId: import("zod").ZodNumber;
|
10051
|
-
entityId: import("zod").ZodString;
|
10052
|
-
entityName: import("zod").ZodString;
|
10053
|
-
contactId: import("zod").ZodNullable<import("zod").ZodString>;
|
10054
|
-
channel: import("zod").ZodNullable<import("zod").ZodString>;
|
10055
|
-
queueId: import("zod").ZodNullable<import("zod").ZodString>;
|
10056
|
-
agentId: import("zod").ZodNullable<import("zod").ZodString>;
|
10057
|
-
direction: import("zod").ZodNullable<import("zod").ZodString>;
|
10058
|
-
startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
|
10059
|
-
handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
10060
|
-
firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
10061
|
-
wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
|
10062
|
-
id: import("zod").ZodString;
|
10063
|
-
createdAt: import("zod").ZodDate;
|
10064
|
-
updatedAt: import("zod").ZodDate;
|
10065
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
10066
|
-
note: import("zod").ZodNullable<import("zod").ZodString>;
|
10067
|
-
disposition: import("zod").ZodNullable<import("zod").ZodString>;
|
10068
|
-
callFrom: import("zod").ZodNullable<import("zod").ZodString>;
|
10069
|
-
callTo: import("zod").ZodNullable<import("zod").ZodString>;
|
10070
|
-
tags: import("zod").ZodArray<import("zod").ZodObject<{
|
10071
|
-
id: import("zod").ZodString;
|
10072
|
-
createdAt: import("zod").ZodDate;
|
10073
|
-
updatedAt: import("zod").ZodDate;
|
10074
|
-
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
10075
|
-
name: import("zod").ZodString;
|
10076
|
-
}, "strip", import("zod").ZodTypeAny, {
|
10077
|
-
id: string;
|
10078
|
-
name: string;
|
10079
|
-
createdAt: Date;
|
10080
|
-
updatedAt: Date;
|
10081
|
-
deletedAt: Date | null;
|
10082
|
-
}, {
|
10083
|
-
id: string;
|
10084
|
-
name: string;
|
10085
|
-
createdAt: Date;
|
10086
|
-
updatedAt: Date;
|
10087
|
-
deletedAt: Date | null;
|
10088
|
-
}>, "many">;
|
10089
|
-
}, "strip", import("zod").ZodTypeAny, {
|
10090
|
-
id: string;
|
10091
|
-
disposition: string | null;
|
10092
|
-
createdAt: Date;
|
10093
|
-
updatedAt: Date;
|
10094
|
-
deletedAt: Date | null;
|
10095
|
-
tags: {
|
10096
|
-
id: string;
|
10097
|
-
name: string;
|
10098
|
-
createdAt: Date;
|
10099
|
-
updatedAt: Date;
|
10100
|
-
deletedAt: Date | null;
|
10101
|
-
}[];
|
10102
|
-
callFrom: string | null;
|
10103
|
-
callTo: string | null;
|
10104
|
-
note: string | null;
|
10105
|
-
}, {
|
10106
|
-
id: string;
|
10107
|
-
disposition: string | null;
|
10108
|
-
createdAt: Date;
|
10109
|
-
updatedAt: Date;
|
10110
|
-
deletedAt: Date | null;
|
10111
|
-
tags: {
|
10112
|
-
id: string;
|
10113
|
-
name: string;
|
10114
|
-
createdAt: Date;
|
10115
|
-
updatedAt: Date;
|
10116
|
-
deletedAt: Date | null;
|
10117
|
-
}[];
|
10118
|
-
callFrom: string | null;
|
10119
|
-
callTo: string | null;
|
10120
|
-
note: string | null;
|
10121
|
-
}>>;
|
10122
|
-
}, "strip", import("zod").ZodTypeAny, {
|
10123
|
-
id: string;
|
10124
|
-
channel: string | null;
|
10125
|
-
direction: string | null;
|
8908
|
+
address: string;
|
8909
|
+
name: string;
|
10126
8910
|
createdAt: Date;
|
10127
8911
|
updatedAt: Date;
|
10128
8912
|
deletedAt: Date | null;
|
10129
|
-
|
10130
|
-
|
10131
|
-
|
10132
|
-
caseId: number;
|
10133
|
-
entityName: string;
|
10134
|
-
agentId: string | null;
|
10135
|
-
startedDate: Date | null;
|
10136
|
-
handledTime: number | null;
|
10137
|
-
firstResponseTime: number | null;
|
10138
|
-
wrapUpForm: {
|
8913
|
+
accountId: string;
|
8914
|
+
mailServerId: string;
|
8915
|
+
mailServer: {
|
10139
8916
|
id: string;
|
10140
|
-
|
8917
|
+
name: string;
|
10141
8918
|
createdAt: Date;
|
10142
8919
|
updatedAt: Date;
|
10143
8920
|
deletedAt: Date | null;
|
10144
|
-
|
10145
|
-
|
10146
|
-
|
10147
|
-
|
10148
|
-
|
10149
|
-
|
10150
|
-
|
10151
|
-
|
10152
|
-
|
10153
|
-
note: string | null;
|
10154
|
-
} | null;
|
8921
|
+
smtpHost: string;
|
8922
|
+
smtpPort: number;
|
8923
|
+
smtpTlsPort: number;
|
8924
|
+
useTlsForSmtp: boolean;
|
8925
|
+
imapHost: string;
|
8926
|
+
imapPort: number;
|
8927
|
+
imapTlsPort: number;
|
8928
|
+
useTlsForImap: boolean;
|
8929
|
+
};
|
10155
8930
|
}, {
|
10156
8931
|
id: string;
|
10157
|
-
|
10158
|
-
|
8932
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
8933
|
+
address: string;
|
8934
|
+
name: string;
|
10159
8935
|
createdAt: Date;
|
10160
8936
|
updatedAt: Date;
|
10161
8937
|
deletedAt: Date | null;
|
10162
|
-
|
10163
|
-
|
10164
|
-
|
10165
|
-
caseId: number;
|
10166
|
-
entityName: string;
|
10167
|
-
agentId: string | null;
|
10168
|
-
startedDate: Date | null;
|
10169
|
-
handledTime: number | null;
|
10170
|
-
firstResponseTime: number | null;
|
10171
|
-
wrapUpForm: {
|
8938
|
+
accountId: string;
|
8939
|
+
mailServerId: string;
|
8940
|
+
mailServer: {
|
10172
8941
|
id: string;
|
10173
|
-
|
8942
|
+
name: string;
|
10174
8943
|
createdAt: Date;
|
10175
8944
|
updatedAt: Date;
|
10176
8945
|
deletedAt: Date | null;
|
10177
|
-
|
10178
|
-
|
10179
|
-
|
10180
|
-
|
10181
|
-
|
10182
|
-
|
10183
|
-
|
10184
|
-
|
10185
|
-
|
10186
|
-
note: string | null;
|
10187
|
-
} | null;
|
8946
|
+
smtpHost: string;
|
8947
|
+
smtpPort: number;
|
8948
|
+
smtpTlsPort: number;
|
8949
|
+
useTlsForSmtp: boolean;
|
8950
|
+
imapHost: string;
|
8951
|
+
imapPort: number;
|
8952
|
+
imapTlsPort: number;
|
8953
|
+
useTlsForImap: boolean;
|
8954
|
+
};
|
10188
8955
|
}>;
|
8956
|
+
unReadMessageCount: import("zod").ZodNumber;
|
10189
8957
|
}, "strip", import("zod").ZodTypeAny, {
|
10190
8958
|
id: string;
|
10191
8959
|
direction: string;
|
@@ -10288,40 +9056,6 @@ export declare const mailContract: {
|
|
10288
9056
|
notificationCount: number | null;
|
10289
9057
|
};
|
10290
9058
|
resolved: boolean;
|
10291
|
-
cxlog: {
|
10292
|
-
id: string;
|
10293
|
-
channel: string | null;
|
10294
|
-
direction: string | null;
|
10295
|
-
createdAt: Date;
|
10296
|
-
updatedAt: Date;
|
10297
|
-
deletedAt: Date | null;
|
10298
|
-
entityId: string;
|
10299
|
-
queueId: string | null;
|
10300
|
-
contactId: string | null;
|
10301
|
-
caseId: number;
|
10302
|
-
entityName: string;
|
10303
|
-
agentId: string | null;
|
10304
|
-
startedDate: Date | null;
|
10305
|
-
handledTime: number | null;
|
10306
|
-
firstResponseTime: number | null;
|
10307
|
-
wrapUpForm: {
|
10308
|
-
id: string;
|
10309
|
-
disposition: string | null;
|
10310
|
-
createdAt: Date;
|
10311
|
-
updatedAt: Date;
|
10312
|
-
deletedAt: Date | null;
|
10313
|
-
tags: {
|
10314
|
-
id: string;
|
10315
|
-
name: string;
|
10316
|
-
createdAt: Date;
|
10317
|
-
updatedAt: Date;
|
10318
|
-
deletedAt: Date | null;
|
10319
|
-
}[];
|
10320
|
-
callFrom: string | null;
|
10321
|
-
callTo: string | null;
|
10322
|
-
note: string | null;
|
10323
|
-
} | null;
|
10324
|
-
};
|
10325
9059
|
assigneeId: string | null;
|
10326
9060
|
subject: string;
|
10327
9061
|
from: {
|
@@ -10732,40 +9466,6 @@ export declare const mailContract: {
|
|
10732
9466
|
notificationCount: number | null;
|
10733
9467
|
};
|
10734
9468
|
resolved: boolean;
|
10735
|
-
cxlog: {
|
10736
|
-
id: string;
|
10737
|
-
channel: string | null;
|
10738
|
-
direction: string | null;
|
10739
|
-
createdAt: Date;
|
10740
|
-
updatedAt: Date;
|
10741
|
-
deletedAt: Date | null;
|
10742
|
-
entityId: string;
|
10743
|
-
queueId: string | null;
|
10744
|
-
contactId: string | null;
|
10745
|
-
caseId: number;
|
10746
|
-
entityName: string;
|
10747
|
-
agentId: string | null;
|
10748
|
-
startedDate: Date | null;
|
10749
|
-
handledTime: number | null;
|
10750
|
-
firstResponseTime: number | null;
|
10751
|
-
wrapUpForm: {
|
10752
|
-
id: string;
|
10753
|
-
disposition: string | null;
|
10754
|
-
createdAt: Date;
|
10755
|
-
updatedAt: Date;
|
10756
|
-
deletedAt: Date | null;
|
10757
|
-
tags: {
|
10758
|
-
id: string;
|
10759
|
-
name: string;
|
10760
|
-
createdAt: Date;
|
10761
|
-
updatedAt: Date;
|
10762
|
-
deletedAt: Date | null;
|
10763
|
-
}[];
|
10764
|
-
callFrom: string | null;
|
10765
|
-
callTo: string | null;
|
10766
|
-
note: string | null;
|
10767
|
-
} | null;
|
10768
|
-
};
|
10769
9469
|
assigneeId: string | null;
|
10770
9470
|
subject: string;
|
10771
9471
|
from: {
|
@@ -11178,40 +9878,6 @@ export declare const mailContract: {
|
|
11178
9878
|
notificationCount: number | null;
|
11179
9879
|
};
|
11180
9880
|
resolved: boolean;
|
11181
|
-
cxlog: {
|
11182
|
-
id: string;
|
11183
|
-
channel: string | null;
|
11184
|
-
direction: string | null;
|
11185
|
-
createdAt: Date;
|
11186
|
-
updatedAt: Date;
|
11187
|
-
deletedAt: Date | null;
|
11188
|
-
entityId: string;
|
11189
|
-
queueId: string | null;
|
11190
|
-
contactId: string | null;
|
11191
|
-
caseId: number;
|
11192
|
-
entityName: string;
|
11193
|
-
agentId: string | null;
|
11194
|
-
startedDate: Date | null;
|
11195
|
-
handledTime: number | null;
|
11196
|
-
firstResponseTime: number | null;
|
11197
|
-
wrapUpForm: {
|
11198
|
-
id: string;
|
11199
|
-
disposition: string | null;
|
11200
|
-
createdAt: Date;
|
11201
|
-
updatedAt: Date;
|
11202
|
-
deletedAt: Date | null;
|
11203
|
-
tags: {
|
11204
|
-
id: string;
|
11205
|
-
name: string;
|
11206
|
-
createdAt: Date;
|
11207
|
-
updatedAt: Date;
|
11208
|
-
deletedAt: Date | null;
|
11209
|
-
}[];
|
11210
|
-
callFrom: string | null;
|
11211
|
-
callTo: string | null;
|
11212
|
-
note: string | null;
|
11213
|
-
} | null;
|
11214
|
-
};
|
11215
9881
|
assigneeId: string | null;
|
11216
9882
|
subject: string;
|
11217
9883
|
from: {
|
@@ -11625,40 +10291,6 @@ export declare const mailContract: {
|
|
11625
10291
|
notificationCount: number | null;
|
11626
10292
|
};
|
11627
10293
|
resolved: boolean;
|
11628
|
-
cxlog: {
|
11629
|
-
id: string;
|
11630
|
-
channel: string | null;
|
11631
|
-
direction: string | null;
|
11632
|
-
createdAt: Date;
|
11633
|
-
updatedAt: Date;
|
11634
|
-
deletedAt: Date | null;
|
11635
|
-
entityId: string;
|
11636
|
-
queueId: string | null;
|
11637
|
-
contactId: string | null;
|
11638
|
-
caseId: number;
|
11639
|
-
entityName: string;
|
11640
|
-
agentId: string | null;
|
11641
|
-
startedDate: Date | null;
|
11642
|
-
handledTime: number | null;
|
11643
|
-
firstResponseTime: number | null;
|
11644
|
-
wrapUpForm: {
|
11645
|
-
id: string;
|
11646
|
-
disposition: string | null;
|
11647
|
-
createdAt: Date;
|
11648
|
-
updatedAt: Date;
|
11649
|
-
deletedAt: Date | null;
|
11650
|
-
tags: {
|
11651
|
-
id: string;
|
11652
|
-
name: string;
|
11653
|
-
createdAt: Date;
|
11654
|
-
updatedAt: Date;
|
11655
|
-
deletedAt: Date | null;
|
11656
|
-
}[];
|
11657
|
-
callFrom: string | null;
|
11658
|
-
callTo: string | null;
|
11659
|
-
note: string | null;
|
11660
|
-
} | null;
|
11661
|
-
};
|
11662
10294
|
assigneeId: string | null;
|
11663
10295
|
subject: string;
|
11664
10296
|
from: {
|
@@ -11973,6 +10605,60 @@ export declare const mailContract: {
|
|
11973
10605
|
};
|
11974
10606
|
path: "mail/room/:id";
|
11975
10607
|
};
|
10608
|
+
markAsRead: {
|
10609
|
+
summary: "Mark all the un read messages as read";
|
10610
|
+
method: "GET";
|
10611
|
+
pathParams: import("zod").ZodObject<{
|
10612
|
+
id: import("zod").ZodString;
|
10613
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10614
|
+
id: string;
|
10615
|
+
}, {
|
10616
|
+
id: string;
|
10617
|
+
}>;
|
10618
|
+
responses: {
|
10619
|
+
401: import("zod").ZodObject<{
|
10620
|
+
message: import("zod").ZodString;
|
10621
|
+
error: import("zod").ZodAny;
|
10622
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10623
|
+
message: string;
|
10624
|
+
error?: any;
|
10625
|
+
}, {
|
10626
|
+
message: string;
|
10627
|
+
error?: any;
|
10628
|
+
}>;
|
10629
|
+
404: import("zod").ZodObject<{
|
10630
|
+
message: import("zod").ZodString;
|
10631
|
+
error: import("zod").ZodAny;
|
10632
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10633
|
+
message: string;
|
10634
|
+
error?: any;
|
10635
|
+
}, {
|
10636
|
+
message: string;
|
10637
|
+
error?: any;
|
10638
|
+
}>;
|
10639
|
+
422: import("zod").ZodObject<{
|
10640
|
+
message: import("zod").ZodString;
|
10641
|
+
error: import("zod").ZodAny;
|
10642
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10643
|
+
message: string;
|
10644
|
+
error?: any;
|
10645
|
+
}, {
|
10646
|
+
message: string;
|
10647
|
+
error?: any;
|
10648
|
+
}>;
|
10649
|
+
200: import("zod").ZodObject<{
|
10650
|
+
requestId: import("zod").ZodString;
|
10651
|
+
message: import("zod").ZodString;
|
10652
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10653
|
+
message: string;
|
10654
|
+
requestId: string;
|
10655
|
+
}, {
|
10656
|
+
message: string;
|
10657
|
+
requestId: string;
|
10658
|
+
}>;
|
10659
|
+
};
|
10660
|
+
path: "mail/room/:id";
|
10661
|
+
};
|
11976
10662
|
};
|
11977
10663
|
message: {
|
11978
10664
|
submit: {
|
@@ -12117,7 +10803,7 @@ export declare const mailContract: {
|
|
12117
10803
|
presignedUrl: string;
|
12118
10804
|
}[] | undefined;
|
12119
10805
|
}>;
|
12120
|
-
summary: "Submit a message such
|
10806
|
+
summary: "Submit a message such compose, reply or forward";
|
12121
10807
|
method: "POST";
|
12122
10808
|
responses: {
|
12123
10809
|
500: import("zod").ZodObject<{
|
@@ -12198,63 +10884,6 @@ export declare const mailContract: {
|
|
12198
10884
|
};
|
12199
10885
|
path: "mail/message/submit";
|
12200
10886
|
};
|
12201
|
-
getTotalUnreadMessageCount: {
|
12202
|
-
summary: "Get total unread messages counts";
|
12203
|
-
method: "GET";
|
12204
|
-
responses: {
|
12205
|
-
401: import("zod").ZodObject<{
|
12206
|
-
message: import("zod").ZodString;
|
12207
|
-
error: import("zod").ZodAny;
|
12208
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12209
|
-
message: string;
|
12210
|
-
error?: any;
|
12211
|
-
}, {
|
12212
|
-
message: string;
|
12213
|
-
error?: any;
|
12214
|
-
}>;
|
12215
|
-
404: import("zod").ZodObject<{
|
12216
|
-
message: import("zod").ZodString;
|
12217
|
-
error: import("zod").ZodAny;
|
12218
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12219
|
-
message: string;
|
12220
|
-
error?: any;
|
12221
|
-
}, {
|
12222
|
-
message: string;
|
12223
|
-
error?: any;
|
12224
|
-
}>;
|
12225
|
-
422: import("zod").ZodObject<{
|
12226
|
-
message: import("zod").ZodString;
|
12227
|
-
error: import("zod").ZodAny;
|
12228
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12229
|
-
message: string;
|
12230
|
-
error?: any;
|
12231
|
-
}, {
|
12232
|
-
message: string;
|
12233
|
-
error?: any;
|
12234
|
-
}>;
|
12235
|
-
200: import("zod").ZodObject<{
|
12236
|
-
requestId: import("zod").ZodString;
|
12237
|
-
data: import("zod").ZodObject<{
|
12238
|
-
count: import("zod").ZodNumber;
|
12239
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12240
|
-
count: number;
|
12241
|
-
}, {
|
12242
|
-
count: number;
|
12243
|
-
}>;
|
12244
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12245
|
-
data: {
|
12246
|
-
count: number;
|
12247
|
-
};
|
12248
|
-
requestId: string;
|
12249
|
-
}, {
|
12250
|
-
data: {
|
12251
|
-
count: number;
|
12252
|
-
};
|
12253
|
-
requestId: string;
|
12254
|
-
}>;
|
12255
|
-
};
|
12256
|
-
path: "mail/message/new_message_count";
|
12257
|
-
};
|
12258
10887
|
getById: {
|
12259
10888
|
summary: "Get a message by id";
|
12260
10889
|
method: "GET";
|
@@ -12905,71 +11534,8 @@ export declare const mailContract: {
|
|
12905
11534
|
'x-client-timezone'?: string | undefined;
|
12906
11535
|
}>>>;
|
12907
11536
|
};
|
12908
|
-
sync: {
|
12909
|
-
summary: "Sync all accounts state from email engine to system";
|
12910
|
-
method: "GET";
|
12911
|
-
responses: {
|
12912
|
-
401: import("zod").ZodObject<{
|
12913
|
-
message: import("zod").ZodString;
|
12914
|
-
error: import("zod").ZodAny;
|
12915
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12916
|
-
message: string;
|
12917
|
-
error?: any;
|
12918
|
-
}, {
|
12919
|
-
message: string;
|
12920
|
-
error?: any;
|
12921
|
-
}>;
|
12922
|
-
404: import("zod").ZodObject<{
|
12923
|
-
message: import("zod").ZodString;
|
12924
|
-
error: import("zod").ZodAny;
|
12925
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12926
|
-
message: string;
|
12927
|
-
error?: any;
|
12928
|
-
}, {
|
12929
|
-
message: string;
|
12930
|
-
error?: any;
|
12931
|
-
}>;
|
12932
|
-
422: import("zod").ZodObject<{
|
12933
|
-
message: import("zod").ZodString;
|
12934
|
-
error: import("zod").ZodAny;
|
12935
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12936
|
-
message: string;
|
12937
|
-
error?: any;
|
12938
|
-
}, {
|
12939
|
-
message: string;
|
12940
|
-
error?: any;
|
12941
|
-
}>;
|
12942
|
-
200: import("zod").ZodObject<{
|
12943
|
-
requestId: import("zod").ZodString;
|
12944
|
-
message: import("zod").ZodString;
|
12945
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12946
|
-
message: string;
|
12947
|
-
requestId: string;
|
12948
|
-
}, {
|
12949
|
-
message: string;
|
12950
|
-
requestId: string;
|
12951
|
-
}>;
|
12952
|
-
};
|
12953
|
-
path: "mail/account/sync";
|
12954
|
-
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
12955
|
-
'x-tenant': import("zod").ZodString;
|
12956
|
-
authorization: import("zod").ZodString;
|
12957
|
-
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
12958
|
-
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
12959
|
-
}, "strip", import("zod").ZodTypeAny, {
|
12960
|
-
'x-tenant': string;
|
12961
|
-
authorization: string;
|
12962
|
-
'x-client-timezone': string;
|
12963
|
-
'x-code'?: string | undefined;
|
12964
|
-
}, {
|
12965
|
-
'x-tenant': string;
|
12966
|
-
authorization: string;
|
12967
|
-
'x-code'?: string | undefined;
|
12968
|
-
'x-client-timezone'?: string | undefined;
|
12969
|
-
}>>>;
|
12970
|
-
};
|
12971
11537
|
getById: {
|
12972
|
-
summary: "Get
|
11538
|
+
summary: "Get a account by id";
|
12973
11539
|
method: "GET";
|
12974
11540
|
pathParams: import("zod").ZodObject<{
|
12975
11541
|
id: import("zod").ZodString;
|
@@ -13194,13 +11760,6 @@ export declare const mailContract: {
|
|
13194
11760
|
getAll: {
|
13195
11761
|
summary: "Get all accounts";
|
13196
11762
|
method: "GET";
|
13197
|
-
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
13198
|
-
state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">]>>;
|
13199
|
-
}, "strip", import("zod").ZodTypeAny, {
|
13200
|
-
state?: "connected" | "disconnected" | undefined;
|
13201
|
-
}, {
|
13202
|
-
state?: "connected" | "disconnected" | undefined;
|
13203
|
-
}>>;
|
13204
11763
|
responses: {
|
13205
11764
|
401: import("zod").ZodObject<{
|
13206
11765
|
message: import("zod").ZodString;
|