Skip to content

Commit be8cb4e

Browse files
author
Fil Maj
authored
chore (web-api): update response types w/ latest generated sample responses (#1901)
1 parent f93054e commit be8cb4e

32 files changed

+361
-114
lines changed

packages/web-api/src/types/response/AdminConversationsSearchResponse.ts

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type AdminConversationsSearchResponse = WebAPICallResult & {
2121
};
2222

2323
export interface Conversation {
24-
canvas?: Canvas;
24+
canvas?: ListsClass;
2525
channel_email_addresses?: ChannelEmailAddress[];
2626
channel_manager_count?: number;
2727
connected_limited_team_ids?: string[];
@@ -47,14 +47,15 @@ export interface Conversation {
4747
is_pending_ext_shared?: boolean;
4848
is_private?: boolean;
4949
last_activity_ts?: number;
50-
lists?: Canvas;
50+
lists?: ListsClass;
5151
member_count?: number;
5252
name?: string;
5353
pending_connected_team_ids?: string[];
54+
properties?: Properties;
5455
purpose?: string;
5556
}
5657

57-
export interface Canvas {
58+
export interface ListsClass {
5859
ownership_details?: OwnershipDetail[];
5960
total_count?: number;
6061
}
@@ -80,6 +81,37 @@ export interface Icons {
8081
image_72?: string;
8182
}
8283

84+
export interface Properties {
85+
at_channel_restricted?: boolean;
86+
at_here_restricted?: boolean;
87+
canvas?: PropertiesCanvas;
88+
huddles_restricted?: boolean;
89+
posting_restricted_to?: PostingRestrictedTo;
90+
tabs?: Tab[];
91+
threads_restricted_to?: ThreadsRestrictedTo;
92+
}
93+
94+
export interface PropertiesCanvas {
95+
file_id?: string;
96+
is_empty?: boolean;
97+
quip_thread_id?: string;
98+
}
99+
100+
export interface PostingRestrictedTo {
101+
type?: string[];
102+
user?: string[];
103+
}
104+
105+
export interface Tab {
106+
id?: string;
107+
label?: string;
108+
type?: string;
109+
}
110+
111+
export interface ThreadsRestrictedTo {
112+
type?: string[];
113+
}
114+
83115
export interface ResponseMetadata {
84116
messages?: string[];
85117
}

packages/web-api/src/types/response/AppsManifestCreateResponse.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ export interface Credentials {
2929
}
3030

3131
export interface Error {
32-
code?: string;
33-
message?: string;
34-
pointer?: string;
32+
code?: string;
33+
message?: string;
34+
pointer?: string;
35+
related_component?: string;
3536
}
3637

3738
export interface ResponseMetadata {

packages/web-api/src/types/response/ChatPostMessageResponse.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ export interface AccessoryElement {
260260

261261
export interface PurpleElement {
262262
channel_id?: string;
263+
fallback?: string;
264+
format?: string;
263265
name?: string;
264266
range?: string;
265267
skin_tone?: number;
@@ -269,17 +271,21 @@ export interface PurpleElement {
269271
timestamp?: string;
270272
type?: PurpleType;
271273
unicode?: string;
274+
unsafe?: boolean;
272275
url?: string;
273276
user_id?: string;
274277
usergroup_id?: string;
275278
value?: string;
276279
}
277280

278281
export interface Style {
279-
bold?: boolean;
280-
code?: boolean;
281-
italic?: boolean;
282-
strike?: boolean;
282+
bold?: boolean;
283+
client_highlight?: boolean;
284+
code?: boolean;
285+
highlight?: boolean;
286+
italic?: boolean;
287+
strike?: boolean;
288+
unlink?: boolean;
283289
}
284290

285291
export enum PurpleType {
@@ -364,6 +370,7 @@ export interface FileElement {
364370
attachments?: any[];
365371
blocks?: TitleBlockElement[];
366372
bot_id?: string;
373+
can_toggle_canvas_lock?: boolean;
367374
canvas_template_mode?: string;
368375
cc?: Cc[];
369376
channel_actions_count?: number;
@@ -885,6 +892,7 @@ export interface MessageFile {
885892
attachments?: any[];
886893
blocks?: any[];
887894
bot_id?: string;
895+
can_toggle_canvas_lock?: boolean;
888896
canvas_template_mode?: string;
889897
cc?: any[];
890898
channel_actions_count?: number;

packages/web-api/src/types/response/ChatScheduleMessageResponse.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ export interface AccessoryElement {
160160

161161
export interface PurpleElement {
162162
channel_id?: string;
163+
fallback?: string;
164+
format?: string;
163165
name?: string;
164166
range?: string;
165167
skin_tone?: number;
@@ -169,17 +171,21 @@ export interface PurpleElement {
169171
timestamp?: string;
170172
type?: PurpleType;
171173
unicode?: string;
174+
unsafe?: boolean;
172175
url?: string;
173176
user_id?: string;
174177
usergroup_id?: string;
175178
value?: string;
176179
}
177180

178181
export interface Style {
179-
bold?: boolean;
180-
code?: boolean;
181-
italic?: boolean;
182-
strike?: boolean;
182+
bold?: boolean;
183+
client_highlight?: boolean;
184+
code?: boolean;
185+
highlight?: boolean;
186+
italic?: boolean;
187+
strike?: boolean;
188+
unlink?: boolean;
183189
}
184190

185191
export enum PurpleType {
@@ -294,6 +300,7 @@ export interface File {
294300
attachments?: any[];
295301
blocks?: TitleBlockElement[];
296302
bot_id?: string;
303+
can_toggle_canvas_lock?: boolean;
297304
canvas_template_mode?: string;
298305
cc?: Cc[];
299306
channel_actions_count?: number;

packages/web-api/src/types/response/ChatUpdateResponse.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ export interface AccessoryElement {
165165

166166
export interface PurpleElement {
167167
channel_id?: string;
168+
fallback?: string;
169+
format?: string;
168170
name?: string;
169171
range?: string;
170172
skin_tone?: number;
@@ -174,17 +176,21 @@ export interface PurpleElement {
174176
timestamp?: string;
175177
type?: PurpleType;
176178
unicode?: string;
179+
unsafe?: boolean;
177180
url?: string;
178181
user_id?: string;
179182
usergroup_id?: string;
180183
value?: string;
181184
}
182185

183186
export interface Style {
184-
bold?: boolean;
185-
code?: boolean;
186-
italic?: boolean;
187-
strike?: boolean;
187+
bold?: boolean;
188+
client_highlight?: boolean;
189+
code?: boolean;
190+
highlight?: boolean;
191+
italic?: boolean;
192+
strike?: boolean;
193+
unlink?: boolean;
188194
}
189195

190196
export enum PurpleType {
@@ -299,6 +305,7 @@ export interface File {
299305
attachments?: any[];
300306
blocks?: TitleBlockElement[];
301307
bot_id?: string;
308+
can_toggle_canvas_lock?: boolean;
302309
canvas_template_mode?: string;
303310
cc?: Cc[];
304311
channel_actions_count?: number;

packages/web-api/src/types/response/ConversationsHistoryResponse.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ export interface AccessoryElement {
276276

277277
export interface PurpleElement {
278278
channel_id?: string;
279+
fallback?: string;
280+
format?: string;
279281
name?: string;
280282
range?: string;
281283
skin_tone?: number;
@@ -285,17 +287,21 @@ export interface PurpleElement {
285287
timestamp?: string;
286288
type?: PurpleType;
287289
unicode?: string;
290+
unsafe?: boolean;
288291
url?: string;
289292
user_id?: string;
290293
usergroup_id?: string;
291294
value?: string;
292295
}
293296

294297
export interface Style {
295-
bold?: boolean;
296-
code?: boolean;
297-
italic?: boolean;
298-
strike?: boolean;
298+
bold?: boolean;
299+
client_highlight?: boolean;
300+
code?: boolean;
301+
highlight?: boolean;
302+
italic?: boolean;
303+
strike?: boolean;
304+
unlink?: boolean;
299305
}
300306

301307
export enum PurpleType {
@@ -380,6 +386,7 @@ export interface FileElement {
380386
attachments?: any[];
381387
blocks?: TitleBlockElement[];
382388
bot_id?: string;
389+
can_toggle_canvas_lock?: boolean;
383390
canvas_template_mode?: string;
384391
cc?: Cc[];
385392
channel_actions_count?: number;
@@ -901,6 +908,7 @@ export interface PurpleFile {
901908
attachments?: any[];
902909
blocks?: any[];
903910
bot_id?: string;
911+
can_toggle_canvas_lock?: boolean;
904912
canvas_template_mode?: string;
905913
cc?: any[];
906914
channel_actions_count?: number;

packages/web-api/src/types/response/ConversationsJoinResponse.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface Channel {
5656

5757
export interface Properties {
5858
canvas?: Canvas;
59+
tabs?: Tab[];
5960
}
6061

6162
export interface Canvas {
@@ -64,6 +65,12 @@ export interface Canvas {
6465
quip_thread_id?: string;
6566
}
6667

68+
export interface Tab {
69+
id?: string;
70+
label?: string;
71+
type?: string;
72+
}
73+
6774
export interface Purpose {
6875
creator?: string;
6976
last_set?: number;

packages/web-api/src/types/response/ConversationsListResponse.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface Channel {
6161
export interface Properties {
6262
canvas?: Canvas;
6363
posting_restricted_to?: RestrictedTo;
64+
tabs?: Tab[];
6465
threads_restricted_to?: RestrictedTo;
6566
}
6667

@@ -75,6 +76,12 @@ export interface RestrictedTo {
7576
user?: string[];
7677
}
7778

79+
export interface Tab {
80+
id?: string;
81+
label?: string;
82+
type?: string;
83+
}
84+
7885
export interface Purpose {
7986
creator?: string;
8087
last_set?: number;

packages/web-api/src/types/response/ConversationsOpenResponse.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ export interface AccessoryElement {
176176

177177
export interface PurpleElement {
178178
channel_id?: string;
179+
fallback?: string;
180+
format?: string;
179181
name?: string;
180182
range?: string;
181183
skin_tone?: number;
@@ -185,17 +187,21 @@ export interface PurpleElement {
185187
timestamp?: string;
186188
type?: PurpleType;
187189
unicode?: string;
190+
unsafe?: boolean;
188191
url?: string;
189192
user_id?: string;
190193
usergroup_id?: string;
191194
value?: string;
192195
}
193196

194197
export interface Style {
195-
bold?: boolean;
196-
code?: boolean;
197-
italic?: boolean;
198-
strike?: boolean;
198+
bold?: boolean;
199+
client_highlight?: boolean;
200+
code?: boolean;
201+
highlight?: boolean;
202+
italic?: boolean;
203+
strike?: boolean;
204+
unlink?: boolean;
199205
}
200206

201207
export enum PurpleType {
@@ -310,6 +316,7 @@ export interface File {
310316
attachments?: any[];
311317
blocks?: TitleBlockElement[];
312318
bot_id?: string;
319+
can_toggle_canvas_lock?: boolean;
313320
canvas_template_mode?: string;
314321
cc?: Cc[];
315322
channel_actions_count?: number;

0 commit comments

Comments
 (0)