UNPKG

3.35 kBTypeScriptView Raw
1export interface DirectThreadRepositoryUpdateTitleResponseRootObject {
2 thread: DirectThreadRepositoryUpdateTitleResponseThread;
3 status: string;
4}
5export interface DirectThreadRepositoryUpdateTitleResponseThread {
6 thread_id: string;
7 thread_v2_id: string;
8 users: DirectThreadRepositoryUpdateTitleResponseUsersItem[];
9 left_users: any[];
10 admin_user_ids: number[];
11 items: DirectThreadRepositoryUpdateTitleResponseItemsItem[];
12 last_activity_at: string;
13 muted: boolean;
14 is_pin: boolean;
15 named: boolean;
16 canonical: boolean;
17 pending: boolean;
18 archived: boolean;
19 valued_request: boolean;
20 thread_type: string;
21 viewer_id: number;
22 thread_title: string;
23 pending_score: string;
24 folder: number;
25 vc_muted: boolean;
26 is_group: boolean;
27 mentions_muted: boolean;
28 approval_required_for_new_members: boolean;
29 input_mode: number;
30 business_thread_folder: number;
31 read_state: number;
32 inviter: DirectThreadRepositoryUpdateTitleResponseInviter;
33 has_older: boolean;
34 has_newer: boolean;
35 last_seen_at: any;
36 newest_cursor: string;
37 oldest_cursor: string;
38 next_cursor: string;
39 prev_cursor: string;
40 last_permanent_item: DirectThreadRepositoryUpdateTitleResponseLastPermanentItem;
41}
42export interface DirectThreadRepositoryUpdateTitleResponseUsersItem {
43 pk: number;
44 username: string;
45 full_name: string;
46 is_private: boolean;
47 profile_pic_url: string;
48 profile_pic_id: string;
49 friendship_status: DirectThreadRepositoryUpdateTitleResponseFriendshipStatus;
50 is_verified: boolean;
51 has_anonymous_profile_picture: boolean;
52 is_directapp_installed: boolean;
53 is_using_unified_inbox_for_direct: boolean;
54}
55export interface DirectThreadRepositoryUpdateTitleResponseFriendshipStatus {
56 following: boolean;
57 blocking: boolean;
58 is_private: boolean;
59 incoming_request: boolean;
60 outgoing_request: boolean;
61 is_bestie: boolean;
62 is_restricted: boolean;
63}
64export interface DirectThreadRepositoryUpdateTitleResponseItemsItem {
65 item_id: string;
66 user_id: number;
67 timestamp: string;
68 item_type: string;
69 action_log: DirectThreadRepositoryUpdateTitleResponseActionLog;
70}
71export interface DirectThreadRepositoryUpdateTitleResponseActionLog {
72 description: string;
73 bold: DirectThreadRepositoryUpdateTitleResponseBoldItem[];
74 text_attributes: DirectThreadRepositoryUpdateTitleResponseTextAttributesItem[];
75}
76export interface DirectThreadRepositoryUpdateTitleResponseBoldItem {
77 start: number;
78 end: number;
79}
80export interface DirectThreadRepositoryUpdateTitleResponseTextAttributesItem {
81 start: number;
82 end: number;
83 bold: number;
84 color: string;
85 intent: string;
86}
87export interface DirectThreadRepositoryUpdateTitleResponseInviter {
88 pk: number;
89 username: string;
90 full_name: string;
91 is_private: boolean;
92 profile_pic_url: string;
93 profile_pic_id: string;
94 is_verified: boolean;
95 has_anonymous_profile_picture: boolean;
96 reel_auto_archive: string;
97 allowed_commenter_type: string;
98}
99export interface DirectThreadRepositoryUpdateTitleResponseLastPermanentItem {
100 item_id: string;
101 user_id: number;
102 timestamp: string;
103 item_type: string;
104 action_log: DirectThreadRepositoryUpdateTitleResponseActionLog;
105}