1 | import type { WebAPICallResult } from '../../WebClient';
|
2 | export type ImHistoryResponse = WebAPICallResult & {
|
3 | channel_actions_count?: number;
|
4 | error?: string;
|
5 | has_more?: boolean;
|
6 | messages?: Message[];
|
7 | needed?: string;
|
8 | ok?: boolean;
|
9 | provided?: string;
|
10 | response_metadata?: ResponseMetadata;
|
11 | warning?: string;
|
12 | };
|
13 | export interface Message {
|
14 | blocks?: Block[];
|
15 | bot_id?: string;
|
16 | bot_profile?: BotProfile;
|
17 | client_msg_id?: string;
|
18 | last_read?: string;
|
19 | latest_reply?: string;
|
20 | parent_user_id?: string;
|
21 | reply_count?: number;
|
22 | reply_users?: string[];
|
23 | reply_users_count?: number;
|
24 | subscribed?: boolean;
|
25 | team?: string;
|
26 | text?: string;
|
27 | thread_ts?: string;
|
28 | ts?: string;
|
29 | type?: string;
|
30 | user?: string;
|
31 | }
|
32 | export interface Block {
|
33 | accessory?: Accessory;
|
34 | alt_text?: string;
|
35 | block_id?: string;
|
36 | elements?: Element[];
|
37 | fallback?: string;
|
38 | fields?: Text[];
|
39 | image_bytes?: number;
|
40 | image_height?: number;
|
41 | image_url?: string;
|
42 | image_width?: number;
|
43 | text?: Text;
|
44 | title?: Text;
|
45 | type?: string;
|
46 | }
|
47 | export interface Accessory {
|
48 | alt_text?: string;
|
49 | fallback?: string;
|
50 | image_bytes?: number;
|
51 | image_height?: number;
|
52 | image_url?: string;
|
53 | image_width?: number;
|
54 | type?: string;
|
55 | }
|
56 | export interface Element {
|
57 | action_id?: string;
|
58 | alt_text?: string;
|
59 | confirm?: Confirm;
|
60 | default_to_current_conversation?: boolean;
|
61 | fallback?: string;
|
62 | filter?: Filter;
|
63 | image_bytes?: number;
|
64 | image_height?: number;
|
65 | image_url?: string;
|
66 | image_width?: number;
|
67 | initial_channel?: string;
|
68 | initial_conversation?: string;
|
69 | initial_date?: string;
|
70 | initial_option?: InitialOption;
|
71 | initial_user?: string;
|
72 | min_query_length?: number;
|
73 | placeholder?: Text;
|
74 | response_url_enabled?: boolean;
|
75 | style?: string;
|
76 | text?: Text;
|
77 | type?: string;
|
78 | url?: string;
|
79 | value?: string;
|
80 | }
|
81 | export interface Confirm {
|
82 | confirm?: Text;
|
83 | deny?: Text;
|
84 | style?: string;
|
85 | text?: Text;
|
86 | title?: Text;
|
87 | }
|
88 | export interface Text {
|
89 | emoji?: boolean;
|
90 | text?: string;
|
91 | type?: string;
|
92 | verbatim?: boolean;
|
93 | }
|
94 | export interface Filter {
|
95 | exclude_bot_users?: boolean;
|
96 | exclude_external_shared_channels?: boolean;
|
97 | }
|
98 | export interface InitialOption {
|
99 | description?: Text;
|
100 | text?: Text;
|
101 | url?: string;
|
102 | value?: string;
|
103 | }
|
104 | export interface BotProfile {
|
105 | app_id?: string;
|
106 | deleted?: boolean;
|
107 | icons?: Icons;
|
108 | id?: string;
|
109 | name?: string;
|
110 | team_id?: string;
|
111 | updated?: number;
|
112 | }
|
113 | export interface Icons {
|
114 | image_36?: string;
|
115 | image_48?: string;
|
116 | image_72?: string;
|
117 | }
|
118 | export interface ResponseMetadata {
|
119 | messages?: string[];
|
120 | warnings?: string[];
|
121 | }
|
122 |
|
\ | No newline at end of file |