Skip to content

Commit 9c36c34

Browse files
feat: add SmtpInformationData type and extend Message type to include optional smtp_information data
1 parent 9c41d98 commit 9c36c34

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/types/api/messages.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
export type SmtpInformationData = {
2+
mail_from_addr: string;
3+
client_ip: string;
4+
};
5+
16
export type Message = {
27
id: number;
38
inbox_id: number;
@@ -22,6 +27,7 @@ export type Message = {
2227
blacklists_report_info: boolean;
2328
smtp_information: {
2429
ok: boolean;
30+
data?: SmtpInformationData;
2531
};
2632
};
2733

@@ -69,3 +75,9 @@ export type SpamReport = {
6975
export type MessageUpdateParams = {
7076
isRead: boolean;
7177
};
78+
79+
export type MessageListOptions = {
80+
last_id?: number;
81+
page?: number;
82+
search?: string;
83+
};

0 commit comments

Comments
 (0)