@kl1/contracts 1.1.5 → 1.1.16-uat
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 +455 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +454 -17
- package/dist/index.mjs.map +1 -1
- package/dist/src/contract.d.ts +6433 -8
- package/dist/src/contract.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 +71 -1
- package/dist/src/mail/account-contract.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +602 -8
- package/dist/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/src/mail/message-contract.d.ts +495 -1
- package/dist/src/mail/message-contract.d.ts.map +1 -1
- package/dist/src/mail/room-contract.d.ts +36 -6
- package/dist/src/mail/room-contract.d.ts.map +1 -1
- package/dist/src/mail/schemas/room-validation.schema.d.ts +36 -6
- package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
- package/dist/src/public-api/index.d.ts +5843 -0
- package/dist/src/{chatwoot → public-api}/index.d.ts.map +1 -1
- package/dist/src/public-api/schema.d.ts +1010 -0
- package/dist/src/public-api/schema.d.ts.map +1 -0
- package/dist/src/public-api/validation.d.ts +1822 -0
- package/dist/src/public-api/validation.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/src/app/index.d.ts +0 -17
- package/dist/src/app/index.d.ts.map +0 -1
- package/dist/src/chatwoot/index.d.ts +0 -7527
- package/dist/src/chatwoot/schema.d.ts +0 -79
- package/dist/src/chatwoot/schema.d.ts.map +0 -1
- package/dist/src/chatwoot/validation.d.ts +0 -53
- package/dist/src/chatwoot/validation.d.ts.map +0 -1
- package/dist/src/mail/mail-server.d.ts +0 -216
- package/dist/src/mail/mail-server.d.ts.map +0 -1
- package/dist/src/platform-contact/schema.d.ts +0 -30
- package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -54,19 +54,49 @@ 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").
|
57
|
+
keyword: import("zod").ZodOptional<import("zod").ZodObject<{
|
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">>;
|
58
72
|
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">]>>;
|
59
73
|
level2: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"unassign">, import("zod").ZodLiteral<"mine">, import("zod").ZodLiteral<"other">]>>;
|
60
74
|
}, "strip", import("zod").ZodTypeAny, {
|
61
75
|
page: number;
|
62
76
|
pageSize: number;
|
63
|
-
keyword?:
|
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;
|
64
86
|
level1?: "open" | "close" | "inbox" | "sent" | "scheduled" | "starred" | undefined;
|
65
87
|
level2?: "all" | "other" | "unassign" | "mine" | undefined;
|
66
88
|
}, {
|
67
89
|
page?: number | undefined;
|
68
90
|
pageSize?: number | undefined;
|
69
|
-
keyword?:
|
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;
|
70
100
|
level1?: "open" | "close" | "inbox" | "sent" | "scheduled" | "starred" | undefined;
|
71
101
|
level2?: "all" | "other" | "unassign" | "mine" | undefined;
|
72
102
|
}>;
|
@@ -7167,21 +7197,21 @@ export declare const mailContract: {
|
|
7167
7197
|
};
|
7168
7198
|
update: {
|
7169
7199
|
body: import("zod").ZodObject<{
|
7170
|
-
|
7200
|
+
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">]>>>;
|
7171
7201
|
assigneeId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
7172
7202
|
note: import("zod").ZodOptional<import("zod").ZodString>;
|
7173
7203
|
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
7174
7204
|
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
7205
|
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
7206
|
}, "strip", import("zod").ZodTypeAny, {
|
7177
|
-
|
7207
|
+
disposition?: "resolved" | "follow_up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
|
7178
7208
|
assigneeId?: string | null | undefined;
|
7179
7209
|
note?: string | undefined;
|
7180
7210
|
tags?: string[] | undefined;
|
7181
7211
|
handover?: boolean | null | undefined;
|
7182
7212
|
selfAssign?: boolean | null | undefined;
|
7183
7213
|
}, {
|
7184
|
-
|
7214
|
+
disposition?: "resolved" | "follow_up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
|
7185
7215
|
assigneeId?: string | null | undefined;
|
7186
7216
|
note?: string | undefined;
|
7187
7217
|
tags?: string[] | undefined;
|
@@ -10803,7 +10833,7 @@ export declare const mailContract: {
|
|
10803
10833
|
presignedUrl: string;
|
10804
10834
|
}[] | undefined;
|
10805
10835
|
}>;
|
10806
|
-
summary: "Submit a message such compose, reply or forward";
|
10836
|
+
summary: "Submit a message such as compose, reply or forward";
|
10807
10837
|
method: "POST";
|
10808
10838
|
responses: {
|
10809
10839
|
500: import("zod").ZodObject<{
|
@@ -10884,6 +10914,500 @@ export declare const mailContract: {
|
|
10884
10914
|
};
|
10885
10915
|
path: "mail/message/submit";
|
10886
10916
|
};
|
10917
|
+
getRoomCounts: {
|
10918
|
+
summary: "Get unread message counts for filter like \"open\", \"close\", \"inbox\" and etc...";
|
10919
|
+
method: "GET";
|
10920
|
+
responses: {
|
10921
|
+
401: import("zod").ZodObject<{
|
10922
|
+
message: import("zod").ZodString;
|
10923
|
+
error: import("zod").ZodAny;
|
10924
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10925
|
+
message: string;
|
10926
|
+
error?: any;
|
10927
|
+
}, {
|
10928
|
+
message: string;
|
10929
|
+
error?: any;
|
10930
|
+
}>;
|
10931
|
+
404: import("zod").ZodObject<{
|
10932
|
+
message: import("zod").ZodString;
|
10933
|
+
error: import("zod").ZodAny;
|
10934
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10935
|
+
message: string;
|
10936
|
+
error?: any;
|
10937
|
+
}, {
|
10938
|
+
message: string;
|
10939
|
+
error?: any;
|
10940
|
+
}>;
|
10941
|
+
422: import("zod").ZodObject<{
|
10942
|
+
message: import("zod").ZodString;
|
10943
|
+
error: import("zod").ZodAny;
|
10944
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10945
|
+
message: string;
|
10946
|
+
error?: any;
|
10947
|
+
}, {
|
10948
|
+
message: string;
|
10949
|
+
error?: any;
|
10950
|
+
}>;
|
10951
|
+
200: import("zod").ZodObject<{
|
10952
|
+
requestId: import("zod").ZodString;
|
10953
|
+
data: import("zod").ZodObject<{
|
10954
|
+
general: import("zod").ZodArray<import("zod").ZodObject<{
|
10955
|
+
name: import("zod").ZodString;
|
10956
|
+
count: import("zod").ZodNumber;
|
10957
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10958
|
+
name: string;
|
10959
|
+
count: number;
|
10960
|
+
}, {
|
10961
|
+
name: string;
|
10962
|
+
count: number;
|
10963
|
+
}>, "many">;
|
10964
|
+
channels: import("zod").ZodArray<import("zod").ZodObject<{
|
10965
|
+
channel: import("zod").ZodObject<{
|
10966
|
+
id: import("zod").ZodString;
|
10967
|
+
createdAt: import("zod").ZodDate;
|
10968
|
+
updatedAt: import("zod").ZodDate;
|
10969
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
10970
|
+
name: import("zod").ZodString;
|
10971
|
+
address: import("zod").ZodString;
|
10972
|
+
accountId: import("zod").ZodString;
|
10973
|
+
mailServerId: import("zod").ZodString;
|
10974
|
+
mailServer: import("zod").ZodObject<{
|
10975
|
+
id: import("zod").ZodString;
|
10976
|
+
createdAt: import("zod").ZodDate;
|
10977
|
+
updatedAt: import("zod").ZodDate;
|
10978
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
10979
|
+
name: import("zod").ZodString;
|
10980
|
+
smtpHost: import("zod").ZodString;
|
10981
|
+
smtpPort: import("zod").ZodNumber;
|
10982
|
+
smtpTlsPort: import("zod").ZodNumber;
|
10983
|
+
useTlsForSmtp: import("zod").ZodBoolean;
|
10984
|
+
imapHost: import("zod").ZodString;
|
10985
|
+
imapPort: import("zod").ZodNumber;
|
10986
|
+
imapTlsPort: import("zod").ZodNumber;
|
10987
|
+
useTlsForImap: import("zod").ZodBoolean;
|
10988
|
+
}, "strip", import("zod").ZodTypeAny, {
|
10989
|
+
id: string;
|
10990
|
+
name: string;
|
10991
|
+
createdAt: Date;
|
10992
|
+
updatedAt: Date;
|
10993
|
+
deletedAt: Date | null;
|
10994
|
+
smtpHost: string;
|
10995
|
+
smtpPort: number;
|
10996
|
+
smtpTlsPort: number;
|
10997
|
+
useTlsForSmtp: boolean;
|
10998
|
+
imapHost: string;
|
10999
|
+
imapPort: number;
|
11000
|
+
imapTlsPort: number;
|
11001
|
+
useTlsForImap: boolean;
|
11002
|
+
}, {
|
11003
|
+
id: string;
|
11004
|
+
name: string;
|
11005
|
+
createdAt: Date;
|
11006
|
+
updatedAt: Date;
|
11007
|
+
deletedAt: Date | null;
|
11008
|
+
smtpHost: string;
|
11009
|
+
smtpPort: number;
|
11010
|
+
smtpTlsPort: number;
|
11011
|
+
useTlsForSmtp: boolean;
|
11012
|
+
imapHost: string;
|
11013
|
+
imapPort: number;
|
11014
|
+
imapTlsPort: number;
|
11015
|
+
useTlsForImap: boolean;
|
11016
|
+
}>;
|
11017
|
+
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">]>;
|
11018
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11019
|
+
id: string;
|
11020
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
11021
|
+
address: string;
|
11022
|
+
name: string;
|
11023
|
+
createdAt: Date;
|
11024
|
+
updatedAt: Date;
|
11025
|
+
deletedAt: Date | null;
|
11026
|
+
accountId: string;
|
11027
|
+
mailServerId: string;
|
11028
|
+
mailServer: {
|
11029
|
+
id: string;
|
11030
|
+
name: string;
|
11031
|
+
createdAt: Date;
|
11032
|
+
updatedAt: Date;
|
11033
|
+
deletedAt: Date | null;
|
11034
|
+
smtpHost: string;
|
11035
|
+
smtpPort: number;
|
11036
|
+
smtpTlsPort: number;
|
11037
|
+
useTlsForSmtp: boolean;
|
11038
|
+
imapHost: string;
|
11039
|
+
imapPort: number;
|
11040
|
+
imapTlsPort: number;
|
11041
|
+
useTlsForImap: boolean;
|
11042
|
+
};
|
11043
|
+
}, {
|
11044
|
+
id: string;
|
11045
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
11046
|
+
address: string;
|
11047
|
+
name: string;
|
11048
|
+
createdAt: Date;
|
11049
|
+
updatedAt: Date;
|
11050
|
+
deletedAt: Date | null;
|
11051
|
+
accountId: string;
|
11052
|
+
mailServerId: string;
|
11053
|
+
mailServer: {
|
11054
|
+
id: string;
|
11055
|
+
name: string;
|
11056
|
+
createdAt: Date;
|
11057
|
+
updatedAt: Date;
|
11058
|
+
deletedAt: Date | null;
|
11059
|
+
smtpHost: string;
|
11060
|
+
smtpPort: number;
|
11061
|
+
smtpTlsPort: number;
|
11062
|
+
useTlsForSmtp: boolean;
|
11063
|
+
imapHost: string;
|
11064
|
+
imapPort: number;
|
11065
|
+
imapTlsPort: number;
|
11066
|
+
useTlsForImap: boolean;
|
11067
|
+
};
|
11068
|
+
}>;
|
11069
|
+
count: import("zod").ZodNumber;
|
11070
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11071
|
+
channel: {
|
11072
|
+
id: string;
|
11073
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
11074
|
+
address: string;
|
11075
|
+
name: string;
|
11076
|
+
createdAt: Date;
|
11077
|
+
updatedAt: Date;
|
11078
|
+
deletedAt: Date | null;
|
11079
|
+
accountId: string;
|
11080
|
+
mailServerId: string;
|
11081
|
+
mailServer: {
|
11082
|
+
id: string;
|
11083
|
+
name: string;
|
11084
|
+
createdAt: Date;
|
11085
|
+
updatedAt: Date;
|
11086
|
+
deletedAt: Date | null;
|
11087
|
+
smtpHost: string;
|
11088
|
+
smtpPort: number;
|
11089
|
+
smtpTlsPort: number;
|
11090
|
+
useTlsForSmtp: boolean;
|
11091
|
+
imapHost: string;
|
11092
|
+
imapPort: number;
|
11093
|
+
imapTlsPort: number;
|
11094
|
+
useTlsForImap: boolean;
|
11095
|
+
};
|
11096
|
+
};
|
11097
|
+
count: number;
|
11098
|
+
}, {
|
11099
|
+
channel: {
|
11100
|
+
id: string;
|
11101
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
11102
|
+
address: string;
|
11103
|
+
name: string;
|
11104
|
+
createdAt: Date;
|
11105
|
+
updatedAt: Date;
|
11106
|
+
deletedAt: Date | null;
|
11107
|
+
accountId: string;
|
11108
|
+
mailServerId: string;
|
11109
|
+
mailServer: {
|
11110
|
+
id: string;
|
11111
|
+
name: string;
|
11112
|
+
createdAt: Date;
|
11113
|
+
updatedAt: Date;
|
11114
|
+
deletedAt: Date | null;
|
11115
|
+
smtpHost: string;
|
11116
|
+
smtpPort: number;
|
11117
|
+
smtpTlsPort: number;
|
11118
|
+
useTlsForSmtp: boolean;
|
11119
|
+
imapHost: string;
|
11120
|
+
imapPort: number;
|
11121
|
+
imapTlsPort: number;
|
11122
|
+
useTlsForImap: boolean;
|
11123
|
+
};
|
11124
|
+
};
|
11125
|
+
count: number;
|
11126
|
+
}>, "many">;
|
11127
|
+
contactLabels: import("zod").ZodArray<import("zod").ZodObject<{
|
11128
|
+
label: import("zod").ZodObject<{
|
11129
|
+
id: import("zod").ZodString;
|
11130
|
+
createdAt: import("zod").ZodDate;
|
11131
|
+
updatedAt: import("zod").ZodDate;
|
11132
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
11133
|
+
name: import("zod").ZodString;
|
11134
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11135
|
+
id: string;
|
11136
|
+
name: string;
|
11137
|
+
createdAt: Date;
|
11138
|
+
updatedAt: Date;
|
11139
|
+
deletedAt: Date | null;
|
11140
|
+
}, {
|
11141
|
+
id: string;
|
11142
|
+
name: string;
|
11143
|
+
createdAt: Date;
|
11144
|
+
updatedAt: Date;
|
11145
|
+
deletedAt: Date | null;
|
11146
|
+
}>;
|
11147
|
+
count: import("zod").ZodNumber;
|
11148
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11149
|
+
label: {
|
11150
|
+
id: string;
|
11151
|
+
name: string;
|
11152
|
+
createdAt: Date;
|
11153
|
+
updatedAt: Date;
|
11154
|
+
deletedAt: Date | null;
|
11155
|
+
};
|
11156
|
+
count: number;
|
11157
|
+
}, {
|
11158
|
+
label: {
|
11159
|
+
id: string;
|
11160
|
+
name: string;
|
11161
|
+
createdAt: Date;
|
11162
|
+
updatedAt: Date;
|
11163
|
+
deletedAt: Date | null;
|
11164
|
+
};
|
11165
|
+
count: number;
|
11166
|
+
}>, "many">;
|
11167
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11168
|
+
general: {
|
11169
|
+
name: string;
|
11170
|
+
count: number;
|
11171
|
+
}[];
|
11172
|
+
channels: {
|
11173
|
+
channel: {
|
11174
|
+
id: string;
|
11175
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
11176
|
+
address: string;
|
11177
|
+
name: string;
|
11178
|
+
createdAt: Date;
|
11179
|
+
updatedAt: Date;
|
11180
|
+
deletedAt: Date | null;
|
11181
|
+
accountId: string;
|
11182
|
+
mailServerId: string;
|
11183
|
+
mailServer: {
|
11184
|
+
id: string;
|
11185
|
+
name: string;
|
11186
|
+
createdAt: Date;
|
11187
|
+
updatedAt: Date;
|
11188
|
+
deletedAt: Date | null;
|
11189
|
+
smtpHost: string;
|
11190
|
+
smtpPort: number;
|
11191
|
+
smtpTlsPort: number;
|
11192
|
+
useTlsForSmtp: boolean;
|
11193
|
+
imapHost: string;
|
11194
|
+
imapPort: number;
|
11195
|
+
imapTlsPort: number;
|
11196
|
+
useTlsForImap: boolean;
|
11197
|
+
};
|
11198
|
+
};
|
11199
|
+
count: number;
|
11200
|
+
}[];
|
11201
|
+
contactLabels: {
|
11202
|
+
label: {
|
11203
|
+
id: string;
|
11204
|
+
name: string;
|
11205
|
+
createdAt: Date;
|
11206
|
+
updatedAt: Date;
|
11207
|
+
deletedAt: Date | null;
|
11208
|
+
};
|
11209
|
+
count: number;
|
11210
|
+
}[];
|
11211
|
+
}, {
|
11212
|
+
general: {
|
11213
|
+
name: string;
|
11214
|
+
count: number;
|
11215
|
+
}[];
|
11216
|
+
channels: {
|
11217
|
+
channel: {
|
11218
|
+
id: string;
|
11219
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
11220
|
+
address: string;
|
11221
|
+
name: string;
|
11222
|
+
createdAt: Date;
|
11223
|
+
updatedAt: Date;
|
11224
|
+
deletedAt: Date | null;
|
11225
|
+
accountId: string;
|
11226
|
+
mailServerId: string;
|
11227
|
+
mailServer: {
|
11228
|
+
id: string;
|
11229
|
+
name: string;
|
11230
|
+
createdAt: Date;
|
11231
|
+
updatedAt: Date;
|
11232
|
+
deletedAt: Date | null;
|
11233
|
+
smtpHost: string;
|
11234
|
+
smtpPort: number;
|
11235
|
+
smtpTlsPort: number;
|
11236
|
+
useTlsForSmtp: boolean;
|
11237
|
+
imapHost: string;
|
11238
|
+
imapPort: number;
|
11239
|
+
imapTlsPort: number;
|
11240
|
+
useTlsForImap: boolean;
|
11241
|
+
};
|
11242
|
+
};
|
11243
|
+
count: number;
|
11244
|
+
}[];
|
11245
|
+
contactLabels: {
|
11246
|
+
label: {
|
11247
|
+
id: string;
|
11248
|
+
name: string;
|
11249
|
+
createdAt: Date;
|
11250
|
+
updatedAt: Date;
|
11251
|
+
deletedAt: Date | null;
|
11252
|
+
};
|
11253
|
+
count: number;
|
11254
|
+
}[];
|
11255
|
+
}>;
|
11256
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11257
|
+
data: {
|
11258
|
+
general: {
|
11259
|
+
name: string;
|
11260
|
+
count: number;
|
11261
|
+
}[];
|
11262
|
+
channels: {
|
11263
|
+
channel: {
|
11264
|
+
id: string;
|
11265
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
11266
|
+
address: string;
|
11267
|
+
name: string;
|
11268
|
+
createdAt: Date;
|
11269
|
+
updatedAt: Date;
|
11270
|
+
deletedAt: Date | null;
|
11271
|
+
accountId: string;
|
11272
|
+
mailServerId: string;
|
11273
|
+
mailServer: {
|
11274
|
+
id: string;
|
11275
|
+
name: string;
|
11276
|
+
createdAt: Date;
|
11277
|
+
updatedAt: Date;
|
11278
|
+
deletedAt: Date | null;
|
11279
|
+
smtpHost: string;
|
11280
|
+
smtpPort: number;
|
11281
|
+
smtpTlsPort: number;
|
11282
|
+
useTlsForSmtp: boolean;
|
11283
|
+
imapHost: string;
|
11284
|
+
imapPort: number;
|
11285
|
+
imapTlsPort: number;
|
11286
|
+
useTlsForImap: boolean;
|
11287
|
+
};
|
11288
|
+
};
|
11289
|
+
count: number;
|
11290
|
+
}[];
|
11291
|
+
contactLabels: {
|
11292
|
+
label: {
|
11293
|
+
id: string;
|
11294
|
+
name: string;
|
11295
|
+
createdAt: Date;
|
11296
|
+
updatedAt: Date;
|
11297
|
+
deletedAt: Date | null;
|
11298
|
+
};
|
11299
|
+
count: number;
|
11300
|
+
}[];
|
11301
|
+
};
|
11302
|
+
requestId: string;
|
11303
|
+
}, {
|
11304
|
+
data: {
|
11305
|
+
general: {
|
11306
|
+
name: string;
|
11307
|
+
count: number;
|
11308
|
+
}[];
|
11309
|
+
channels: {
|
11310
|
+
channel: {
|
11311
|
+
id: string;
|
11312
|
+
state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
|
11313
|
+
address: string;
|
11314
|
+
name: string;
|
11315
|
+
createdAt: Date;
|
11316
|
+
updatedAt: Date;
|
11317
|
+
deletedAt: Date | null;
|
11318
|
+
accountId: string;
|
11319
|
+
mailServerId: string;
|
11320
|
+
mailServer: {
|
11321
|
+
id: string;
|
11322
|
+
name: string;
|
11323
|
+
createdAt: Date;
|
11324
|
+
updatedAt: Date;
|
11325
|
+
deletedAt: Date | null;
|
11326
|
+
smtpHost: string;
|
11327
|
+
smtpPort: number;
|
11328
|
+
smtpTlsPort: number;
|
11329
|
+
useTlsForSmtp: boolean;
|
11330
|
+
imapHost: string;
|
11331
|
+
imapPort: number;
|
11332
|
+
imapTlsPort: number;
|
11333
|
+
useTlsForImap: boolean;
|
11334
|
+
};
|
11335
|
+
};
|
11336
|
+
count: number;
|
11337
|
+
}[];
|
11338
|
+
contactLabels: {
|
11339
|
+
label: {
|
11340
|
+
id: string;
|
11341
|
+
name: string;
|
11342
|
+
createdAt: Date;
|
11343
|
+
updatedAt: Date;
|
11344
|
+
deletedAt: Date | null;
|
11345
|
+
};
|
11346
|
+
count: number;
|
11347
|
+
}[];
|
11348
|
+
};
|
11349
|
+
requestId: string;
|
11350
|
+
}>;
|
11351
|
+
};
|
11352
|
+
path: "mail/message/room_counts";
|
11353
|
+
};
|
11354
|
+
getTotalUnreadMessageCount: {
|
11355
|
+
summary: "Get total unread messages counts";
|
11356
|
+
method: "GET";
|
11357
|
+
responses: {
|
11358
|
+
401: import("zod").ZodObject<{
|
11359
|
+
message: import("zod").ZodString;
|
11360
|
+
error: import("zod").ZodAny;
|
11361
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11362
|
+
message: string;
|
11363
|
+
error?: any;
|
11364
|
+
}, {
|
11365
|
+
message: string;
|
11366
|
+
error?: any;
|
11367
|
+
}>;
|
11368
|
+
404: import("zod").ZodObject<{
|
11369
|
+
message: import("zod").ZodString;
|
11370
|
+
error: import("zod").ZodAny;
|
11371
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11372
|
+
message: string;
|
11373
|
+
error?: any;
|
11374
|
+
}, {
|
11375
|
+
message: string;
|
11376
|
+
error?: any;
|
11377
|
+
}>;
|
11378
|
+
422: import("zod").ZodObject<{
|
11379
|
+
message: import("zod").ZodString;
|
11380
|
+
error: import("zod").ZodAny;
|
11381
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11382
|
+
message: string;
|
11383
|
+
error?: any;
|
11384
|
+
}, {
|
11385
|
+
message: string;
|
11386
|
+
error?: any;
|
11387
|
+
}>;
|
11388
|
+
200: import("zod").ZodObject<{
|
11389
|
+
requestId: import("zod").ZodString;
|
11390
|
+
data: import("zod").ZodObject<{
|
11391
|
+
count: import("zod").ZodNumber;
|
11392
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11393
|
+
count: number;
|
11394
|
+
}, {
|
11395
|
+
count: number;
|
11396
|
+
}>;
|
11397
|
+
}, "strip", import("zod").ZodTypeAny, {
|
11398
|
+
data: {
|
11399
|
+
count: number;
|
11400
|
+
};
|
11401
|
+
requestId: string;
|
11402
|
+
}, {
|
11403
|
+
data: {
|
11404
|
+
count: number;
|
11405
|
+
};
|
11406
|
+
requestId: string;
|
11407
|
+
}>;
|
11408
|
+
};
|
11409
|
+
path: "mail/message/new_message_count";
|
11410
|
+
};
|
10887
11411
|
getById: {
|
10888
11412
|
summary: "Get a message by id";
|
10889
11413
|
method: "GET";
|
@@ -11534,8 +12058,71 @@ export declare const mailContract: {
|
|
11534
12058
|
'x-client-timezone'?: string | undefined;
|
11535
12059
|
}>>>;
|
11536
12060
|
};
|
12061
|
+
sync: {
|
12062
|
+
summary: "Sync all accounts state from email engine to system";
|
12063
|
+
method: "GET";
|
12064
|
+
responses: {
|
12065
|
+
401: import("zod").ZodObject<{
|
12066
|
+
message: import("zod").ZodString;
|
12067
|
+
error: import("zod").ZodAny;
|
12068
|
+
}, "strip", import("zod").ZodTypeAny, {
|
12069
|
+
message: string;
|
12070
|
+
error?: any;
|
12071
|
+
}, {
|
12072
|
+
message: string;
|
12073
|
+
error?: any;
|
12074
|
+
}>;
|
12075
|
+
404: import("zod").ZodObject<{
|
12076
|
+
message: import("zod").ZodString;
|
12077
|
+
error: import("zod").ZodAny;
|
12078
|
+
}, "strip", import("zod").ZodTypeAny, {
|
12079
|
+
message: string;
|
12080
|
+
error?: any;
|
12081
|
+
}, {
|
12082
|
+
message: string;
|
12083
|
+
error?: any;
|
12084
|
+
}>;
|
12085
|
+
422: import("zod").ZodObject<{
|
12086
|
+
message: import("zod").ZodString;
|
12087
|
+
error: import("zod").ZodAny;
|
12088
|
+
}, "strip", import("zod").ZodTypeAny, {
|
12089
|
+
message: string;
|
12090
|
+
error?: any;
|
12091
|
+
}, {
|
12092
|
+
message: string;
|
12093
|
+
error?: any;
|
12094
|
+
}>;
|
12095
|
+
200: import("zod").ZodObject<{
|
12096
|
+
requestId: import("zod").ZodString;
|
12097
|
+
message: import("zod").ZodString;
|
12098
|
+
}, "strip", import("zod").ZodTypeAny, {
|
12099
|
+
message: string;
|
12100
|
+
requestId: string;
|
12101
|
+
}, {
|
12102
|
+
message: string;
|
12103
|
+
requestId: string;
|
12104
|
+
}>;
|
12105
|
+
};
|
12106
|
+
path: "mail/account/sync";
|
12107
|
+
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
12108
|
+
'x-tenant': import("zod").ZodString;
|
12109
|
+
authorization: import("zod").ZodString;
|
12110
|
+
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
12111
|
+
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
12112
|
+
}, "strip", import("zod").ZodTypeAny, {
|
12113
|
+
'x-tenant': string;
|
12114
|
+
authorization: string;
|
12115
|
+
'x-client-timezone': string;
|
12116
|
+
'x-code'?: string | undefined;
|
12117
|
+
}, {
|
12118
|
+
'x-tenant': string;
|
12119
|
+
authorization: string;
|
12120
|
+
'x-code'?: string | undefined;
|
12121
|
+
'x-client-timezone'?: string | undefined;
|
12122
|
+
}>>>;
|
12123
|
+
};
|
11537
12124
|
getById: {
|
11538
|
-
summary: "Get
|
12125
|
+
summary: "Get an account by id";
|
11539
12126
|
method: "GET";
|
11540
12127
|
pathParams: import("zod").ZodObject<{
|
11541
12128
|
id: import("zod").ZodString;
|
@@ -11760,6 +12347,13 @@ export declare const mailContract: {
|
|
11760
12347
|
getAll: {
|
11761
12348
|
summary: "Get all accounts";
|
11762
12349
|
method: "GET";
|
12350
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
12351
|
+
state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">]>>;
|
12352
|
+
}, "strip", import("zod").ZodTypeAny, {
|
12353
|
+
state?: "connected" | "disconnected" | undefined;
|
12354
|
+
}, {
|
12355
|
+
state?: "connected" | "disconnected" | undefined;
|
12356
|
+
}>>;
|
11763
12357
|
responses: {
|
11764
12358
|
401: import("zod").ZodObject<{
|
11765
12359
|
message: import("zod").ZodString;
|