blob: f7bd9dc2dbbc9d4c26ea671b1f52321fbf66f274 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
export interface LetterParticipant {
username: string;
display_name: string;
avatar_url: string;
role: string;
}
export interface LetterAttachment {
ref: string;
file_name: string;
url: string;
file_size: number;
content_type: string;
category: string;
}
export interface LetterMessage {
ref: string;
sender: LetterParticipant | null;
body: string;
attachments: LetterAttachment[];
edited_at: string | null;
created_at: string;
deleted: boolean;
}
export interface Letter {
ref: string;
title: string;
is_system: boolean;
system_ref?: string;
participants: LetterParticipant[];
last_message?: LetterMessage;
unread: boolean;
updated_at: string;
}
export interface LetterDetail {
ref: string;
title: string;
is_system: boolean;
system_ref?: string;
participants: LetterParticipant[];
messages: LetterMessage[];
created_at: string;
}
|