@stream-io/feeds-client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@react-bindings/index.ts +2 -0
- package/CHANGELOG.md +44 -0
- package/LICENSE +219 -0
- package/README.md +9 -0
- package/dist/@react-bindings/hooks/useComments.d.ts +12 -0
- package/dist/@react-bindings/hooks/useStateStore.d.ts +3 -0
- package/dist/@react-bindings/index.d.ts +2 -0
- package/dist/index-react-bindings.browser.cjs +56 -0
- package/dist/index-react-bindings.browser.cjs.map +1 -0
- package/dist/index-react-bindings.browser.js +53 -0
- package/dist/index-react-bindings.browser.js.map +1 -0
- package/dist/index-react-bindings.node.cjs +56 -0
- package/dist/index-react-bindings.node.cjs.map +1 -0
- package/dist/index-react-bindings.node.js +53 -0
- package/dist/index-react-bindings.node.js.map +1 -0
- package/dist/index.browser.cjs +5799 -0
- package/dist/index.browser.cjs.map +1 -0
- package/dist/index.browser.js +5782 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.node.cjs +5799 -0
- package/dist/index.node.cjs.map +1 -0
- package/dist/index.node.js +5782 -0
- package/dist/index.node.js.map +1 -0
- package/dist/src/Feed.d.ts +109 -0
- package/dist/src/FeedsClient.d.ts +63 -0
- package/dist/src/ModerationClient.d.ts +3 -0
- package/dist/src/common/ActivitySearchSource.d.ts +17 -0
- package/dist/src/common/ApiClient.d.ts +20 -0
- package/dist/src/common/BaseSearchSource.d.ts +87 -0
- package/dist/src/common/ConnectionIdManager.d.ts +11 -0
- package/dist/src/common/EventDispatcher.d.ts +11 -0
- package/dist/src/common/FeedSearchSource.d.ts +17 -0
- package/dist/src/common/Poll.d.ts +34 -0
- package/dist/src/common/SearchController.d.ts +41 -0
- package/dist/src/common/StateStore.d.ts +124 -0
- package/dist/src/common/TokenManager.d.ts +29 -0
- package/dist/src/common/UserSearchSource.d.ts +17 -0
- package/dist/src/common/gen-imports.d.ts +2 -0
- package/dist/src/common/rate-limit.d.ts +2 -0
- package/dist/src/common/real-time/StableWSConnection.d.ts +144 -0
- package/dist/src/common/real-time/event-models.d.ts +36 -0
- package/dist/src/common/types.d.ts +29 -0
- package/dist/src/common/utils.d.ts +54 -0
- package/dist/src/gen/feeds/FeedApi.d.ts +26 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +237 -0
- package/dist/src/gen/model-decoders/decoders.d.ts +3 -0
- package/dist/src/gen/model-decoders/event-decoder-mapping.d.ts +6 -0
- package/dist/src/gen/models/index.d.ts +3437 -0
- package/dist/src/gen/moderation/ModerationApi.d.ts +21 -0
- package/dist/src/gen-imports.d.ts +3 -0
- package/dist/src/state-updates/activity-reaction-utils.d.ts +10 -0
- package/dist/src/state-updates/activity-utils.d.ts +13 -0
- package/dist/src/state-updates/bookmark-utils.d.ts +14 -0
- package/dist/src/types-internal.d.ts +4 -0
- package/dist/src/types.d.ts +13 -0
- package/dist/src/utils.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.ts +13 -0
- package/package.json +85 -0
- package/src/Feed.ts +1070 -0
- package/src/FeedsClient.ts +352 -0
- package/src/ModerationClient.ts +3 -0
- package/src/common/ActivitySearchSource.ts +46 -0
- package/src/common/ApiClient.ts +197 -0
- package/src/common/BaseSearchSource.ts +238 -0
- package/src/common/ConnectionIdManager.ts +51 -0
- package/src/common/EventDispatcher.ts +52 -0
- package/src/common/FeedSearchSource.ts +94 -0
- package/src/common/Poll.ts +313 -0
- package/src/common/SearchController.ts +152 -0
- package/src/common/StateStore.ts +314 -0
- package/src/common/TokenManager.ts +112 -0
- package/src/common/UserSearchSource.ts +93 -0
- package/src/common/gen-imports.ts +2 -0
- package/src/common/rate-limit.ts +23 -0
- package/src/common/real-time/StableWSConnection.ts +761 -0
- package/src/common/real-time/event-models.ts +38 -0
- package/src/common/types.ts +40 -0
- package/src/common/utils.ts +194 -0
- package/src/gen/feeds/FeedApi.ts +129 -0
- package/src/gen/feeds/FeedsApi.ts +2192 -0
- package/src/gen/model-decoders/decoders.ts +1877 -0
- package/src/gen/model-decoders/event-decoder-mapping.ts +150 -0
- package/src/gen/models/index.ts +5882 -0
- package/src/gen/moderation/ModerationApi.ts +270 -0
- package/src/gen-imports.ts +3 -0
- package/src/state-updates/activity-reaction-utils.test.ts +348 -0
- package/src/state-updates/activity-reaction-utils.ts +107 -0
- package/src/state-updates/activity-utils.test.ts +257 -0
- package/src/state-updates/activity-utils.ts +80 -0
- package/src/state-updates/bookmark-utils.test.ts +383 -0
- package/src/state-updates/bookmark-utils.ts +157 -0
- package/src/types-internal.ts +5 -0
- package/src/types.ts +20 -0
- package/src/utils.ts +4 -0
|
@@ -0,0 +1,3437 @@
|
|
|
1
|
+
export interface AIImageConfig {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
ocr_rules: OCRRule[];
|
|
4
|
+
rules: AWSRekognitionRule[];
|
|
5
|
+
async?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface AITextConfig {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
profile: string;
|
|
10
|
+
rules: BodyguardRule[];
|
|
11
|
+
severity_rules: BodyguardSeverityRule[];
|
|
12
|
+
async?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface AIVideoConfig {
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
rules: AWSRekognitionRule[];
|
|
17
|
+
async?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface APIError {
|
|
20
|
+
code: number;
|
|
21
|
+
duration: string;
|
|
22
|
+
message: string;
|
|
23
|
+
more_info: string;
|
|
24
|
+
status_code: number;
|
|
25
|
+
details: number[];
|
|
26
|
+
unrecoverable?: boolean;
|
|
27
|
+
exception_fields?: Record<string, string>;
|
|
28
|
+
}
|
|
29
|
+
export interface APNS {
|
|
30
|
+
body: string;
|
|
31
|
+
title: string;
|
|
32
|
+
content_available?: number;
|
|
33
|
+
mutable_content?: number;
|
|
34
|
+
sound?: string;
|
|
35
|
+
data?: Record<string, any>;
|
|
36
|
+
}
|
|
37
|
+
export interface AWSRekognitionRule {
|
|
38
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
39
|
+
label: string;
|
|
40
|
+
min_confidence: number;
|
|
41
|
+
}
|
|
42
|
+
export interface AcceptFeedMemberInviteRequest {
|
|
43
|
+
}
|
|
44
|
+
export interface AcceptFeedMemberInviteResponse {
|
|
45
|
+
duration: string;
|
|
46
|
+
member: FeedMemberResponse;
|
|
47
|
+
}
|
|
48
|
+
export interface AcceptFollowRequest {
|
|
49
|
+
source_fid: string;
|
|
50
|
+
target_fid: string;
|
|
51
|
+
follower_role?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface AcceptFollowResponse {
|
|
54
|
+
duration: string;
|
|
55
|
+
follow: FollowResponse;
|
|
56
|
+
}
|
|
57
|
+
export interface Action {
|
|
58
|
+
name: string;
|
|
59
|
+
text: string;
|
|
60
|
+
type: string;
|
|
61
|
+
style?: string;
|
|
62
|
+
value?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ActionLog {
|
|
65
|
+
created_at: Date;
|
|
66
|
+
id: string;
|
|
67
|
+
reason: string;
|
|
68
|
+
reporter_type: string;
|
|
69
|
+
review_queue_item_id: string;
|
|
70
|
+
target_user_id: string;
|
|
71
|
+
type: string;
|
|
72
|
+
custom: Record<string, any>;
|
|
73
|
+
review_queue_item?: ReviewQueueItem;
|
|
74
|
+
target_user?: User;
|
|
75
|
+
user?: User;
|
|
76
|
+
}
|
|
77
|
+
export interface ActionLogResponse {
|
|
78
|
+
created_at: Date;
|
|
79
|
+
id: string;
|
|
80
|
+
reason: string;
|
|
81
|
+
target_user_id: string;
|
|
82
|
+
type: string;
|
|
83
|
+
user_id: string;
|
|
84
|
+
custom: Record<string, any>;
|
|
85
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
86
|
+
target_user?: UserResponse;
|
|
87
|
+
user?: UserResponse;
|
|
88
|
+
}
|
|
89
|
+
export interface ActionSequence {
|
|
90
|
+
action: string;
|
|
91
|
+
blur: boolean;
|
|
92
|
+
cooldown_period: number;
|
|
93
|
+
threshold: number;
|
|
94
|
+
time_window: number;
|
|
95
|
+
warning: boolean;
|
|
96
|
+
warning_text: string;
|
|
97
|
+
}
|
|
98
|
+
export interface ActivityAddedEvent {
|
|
99
|
+
created_at: Date;
|
|
100
|
+
fid: string;
|
|
101
|
+
activity: ActivityResponse;
|
|
102
|
+
custom: Record<string, any>;
|
|
103
|
+
type: string;
|
|
104
|
+
received_at?: Date;
|
|
105
|
+
user?: UserResponseCommonFields;
|
|
106
|
+
}
|
|
107
|
+
export interface ActivityDeletedEvent {
|
|
108
|
+
created_at: Date;
|
|
109
|
+
fid: string;
|
|
110
|
+
activity: ActivityResponse;
|
|
111
|
+
custom: Record<string, any>;
|
|
112
|
+
type: string;
|
|
113
|
+
received_at?: Date;
|
|
114
|
+
user?: UserResponseCommonFields;
|
|
115
|
+
}
|
|
116
|
+
export interface ActivityLocation {
|
|
117
|
+
lat: number;
|
|
118
|
+
lng: number;
|
|
119
|
+
}
|
|
120
|
+
export interface ActivityMarkEvent {
|
|
121
|
+
created_at: Date;
|
|
122
|
+
fid: string;
|
|
123
|
+
custom: Record<string, any>;
|
|
124
|
+
type: string;
|
|
125
|
+
mark_all_read?: boolean;
|
|
126
|
+
mark_all_seen?: boolean;
|
|
127
|
+
received_at?: Date;
|
|
128
|
+
mark_read?: string[];
|
|
129
|
+
mark_watched?: string[];
|
|
130
|
+
user?: UserResponseCommonFields;
|
|
131
|
+
}
|
|
132
|
+
export interface ActivityPinResponse {
|
|
133
|
+
created_at: Date;
|
|
134
|
+
feed: string;
|
|
135
|
+
updated_at: Date;
|
|
136
|
+
activity: ActivityResponse;
|
|
137
|
+
user: UserResponse;
|
|
138
|
+
}
|
|
139
|
+
export interface ActivityPinnedEvent {
|
|
140
|
+
created_at: Date;
|
|
141
|
+
fid: string;
|
|
142
|
+
custom: Record<string, any>;
|
|
143
|
+
pinned_activity: PinActivityResponse;
|
|
144
|
+
type: string;
|
|
145
|
+
received_at?: Date;
|
|
146
|
+
user?: UserResponseCommonFields;
|
|
147
|
+
}
|
|
148
|
+
export interface ActivityReactionAddedEvent {
|
|
149
|
+
created_at: Date;
|
|
150
|
+
fid: string;
|
|
151
|
+
activity: ActivityResponse;
|
|
152
|
+
custom: Record<string, any>;
|
|
153
|
+
reaction: FeedsReactionResponse;
|
|
154
|
+
type: string;
|
|
155
|
+
received_at?: Date;
|
|
156
|
+
user?: UserResponseCommonFields;
|
|
157
|
+
}
|
|
158
|
+
export interface ActivityReactionDeletedEvent {
|
|
159
|
+
created_at: Date;
|
|
160
|
+
fid: string;
|
|
161
|
+
activity: ActivityResponse;
|
|
162
|
+
custom: Record<string, any>;
|
|
163
|
+
reaction: FeedsReactionResponse;
|
|
164
|
+
type: string;
|
|
165
|
+
received_at?: Date;
|
|
166
|
+
user?: UserResponseCommonFields;
|
|
167
|
+
}
|
|
168
|
+
export interface ActivityReactionUpdatedEvent {
|
|
169
|
+
created_at: Date;
|
|
170
|
+
fid: string;
|
|
171
|
+
activity: ActivityResponse;
|
|
172
|
+
custom: Record<string, any>;
|
|
173
|
+
reaction: FeedsReactionResponse;
|
|
174
|
+
type: string;
|
|
175
|
+
received_at?: Date;
|
|
176
|
+
user?: UserResponseCommonFields;
|
|
177
|
+
}
|
|
178
|
+
export interface ActivityRemovedFromFeedEvent {
|
|
179
|
+
created_at: Date;
|
|
180
|
+
fid: string;
|
|
181
|
+
activity: ActivityResponse;
|
|
182
|
+
custom: Record<string, any>;
|
|
183
|
+
type: string;
|
|
184
|
+
received_at?: Date;
|
|
185
|
+
user?: UserResponseCommonFields;
|
|
186
|
+
}
|
|
187
|
+
export interface ActivityRequest {
|
|
188
|
+
type: string;
|
|
189
|
+
fids: string[];
|
|
190
|
+
expires_at?: string;
|
|
191
|
+
id?: string;
|
|
192
|
+
parent_id?: string;
|
|
193
|
+
poll_id?: string;
|
|
194
|
+
text?: string;
|
|
195
|
+
visibility?: 'public' | 'private' | 'tag';
|
|
196
|
+
visibility_tag?: string;
|
|
197
|
+
attachments?: Attachment[];
|
|
198
|
+
filter_tags?: string[];
|
|
199
|
+
interest_tags?: string[];
|
|
200
|
+
mentioned_user_ids?: string[];
|
|
201
|
+
custom?: Record<string, any>;
|
|
202
|
+
location?: ActivityLocation;
|
|
203
|
+
search_data?: Record<string, any>;
|
|
204
|
+
}
|
|
205
|
+
export interface ActivityResponse {
|
|
206
|
+
bookmark_count: number;
|
|
207
|
+
comment_count: number;
|
|
208
|
+
created_at: Date;
|
|
209
|
+
id: string;
|
|
210
|
+
popularity: number;
|
|
211
|
+
score: number;
|
|
212
|
+
share_count: number;
|
|
213
|
+
type: string;
|
|
214
|
+
updated_at: Date;
|
|
215
|
+
visibility: 'public' | 'private' | 'tag';
|
|
216
|
+
attachments: Attachment[];
|
|
217
|
+
comments: CommentResponse[];
|
|
218
|
+
feeds: string[];
|
|
219
|
+
filter_tags: string[];
|
|
220
|
+
interest_tags: string[];
|
|
221
|
+
latest_reactions: FeedsReactionResponse[];
|
|
222
|
+
mentioned_users: UserResponse[];
|
|
223
|
+
own_bookmarks: BookmarkResponse[];
|
|
224
|
+
own_reactions: FeedsReactionResponse[];
|
|
225
|
+
custom: Record<string, any>;
|
|
226
|
+
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
227
|
+
search_data: Record<string, any>;
|
|
228
|
+
user: UserResponse;
|
|
229
|
+
deleted_at?: Date;
|
|
230
|
+
edited_at?: Date;
|
|
231
|
+
expires_at?: Date;
|
|
232
|
+
text?: string;
|
|
233
|
+
visibility_tag?: string;
|
|
234
|
+
current_feed?: FeedResponse;
|
|
235
|
+
location?: ActivityLocation;
|
|
236
|
+
moderation?: ModerationV2Response;
|
|
237
|
+
parent?: ActivityResponse;
|
|
238
|
+
poll?: PollResponseData;
|
|
239
|
+
}
|
|
240
|
+
export interface ActivityUnpinnedEvent {
|
|
241
|
+
created_at: Date;
|
|
242
|
+
fid: string;
|
|
243
|
+
custom: Record<string, any>;
|
|
244
|
+
pinned_activity: PinActivityResponse;
|
|
245
|
+
type: string;
|
|
246
|
+
received_at?: Date;
|
|
247
|
+
user?: UserResponseCommonFields;
|
|
248
|
+
}
|
|
249
|
+
export interface ActivityUpdatedEvent {
|
|
250
|
+
created_at: Date;
|
|
251
|
+
fid: string;
|
|
252
|
+
activity: ActivityResponse;
|
|
253
|
+
custom: Record<string, any>;
|
|
254
|
+
type: string;
|
|
255
|
+
received_at?: Date;
|
|
256
|
+
user?: UserResponseCommonFields;
|
|
257
|
+
}
|
|
258
|
+
export interface AddActivityRequest {
|
|
259
|
+
type: string;
|
|
260
|
+
fids: string[];
|
|
261
|
+
expires_at?: string;
|
|
262
|
+
id?: string;
|
|
263
|
+
parent_id?: string;
|
|
264
|
+
poll_id?: string;
|
|
265
|
+
text?: string;
|
|
266
|
+
visibility?: 'public' | 'private' | 'tag';
|
|
267
|
+
visibility_tag?: string;
|
|
268
|
+
attachments?: Attachment[];
|
|
269
|
+
filter_tags?: string[];
|
|
270
|
+
interest_tags?: string[];
|
|
271
|
+
mentioned_user_ids?: string[];
|
|
272
|
+
custom?: Record<string, any>;
|
|
273
|
+
location?: ActivityLocation;
|
|
274
|
+
search_data?: Record<string, any>;
|
|
275
|
+
}
|
|
276
|
+
export interface AddActivityResponse {
|
|
277
|
+
duration: string;
|
|
278
|
+
activity: ActivityResponse;
|
|
279
|
+
}
|
|
280
|
+
export interface AddBookmarkRequest {
|
|
281
|
+
folder_id?: string;
|
|
282
|
+
custom?: Record<string, any>;
|
|
283
|
+
new_folder?: AddFolderRequest;
|
|
284
|
+
}
|
|
285
|
+
export interface AddBookmarkResponse {
|
|
286
|
+
duration: string;
|
|
287
|
+
bookmark: BookmarkResponse;
|
|
288
|
+
}
|
|
289
|
+
export interface AddCommentReactionRequest {
|
|
290
|
+
type: string;
|
|
291
|
+
custom?: Record<string, any>;
|
|
292
|
+
}
|
|
293
|
+
export interface AddCommentReactionResponse {
|
|
294
|
+
duration: string;
|
|
295
|
+
comment: CommentResponse;
|
|
296
|
+
reaction: FeedsReactionResponse;
|
|
297
|
+
}
|
|
298
|
+
export interface AddCommentRequest {
|
|
299
|
+
comment: string;
|
|
300
|
+
object_id: string;
|
|
301
|
+
object_type: string;
|
|
302
|
+
parent_id?: string;
|
|
303
|
+
attachments?: Attachment[];
|
|
304
|
+
mentioned_user_ids?: string[];
|
|
305
|
+
custom?: Record<string, any>;
|
|
306
|
+
}
|
|
307
|
+
export interface AddCommentResponse {
|
|
308
|
+
duration: string;
|
|
309
|
+
comment: CommentResponse;
|
|
310
|
+
}
|
|
311
|
+
export interface AddCommentsBatchRequest {
|
|
312
|
+
comments: AddCommentRequest[];
|
|
313
|
+
}
|
|
314
|
+
export interface AddCommentsBatchResponse {
|
|
315
|
+
duration: string;
|
|
316
|
+
comments: CommentResponse[];
|
|
317
|
+
}
|
|
318
|
+
export interface AddFolderRequest {
|
|
319
|
+
name: string;
|
|
320
|
+
custom?: Record<string, any>;
|
|
321
|
+
}
|
|
322
|
+
export interface AddReactionRequest {
|
|
323
|
+
type: string;
|
|
324
|
+
custom?: Record<string, any>;
|
|
325
|
+
}
|
|
326
|
+
export interface AddReactionResponse {
|
|
327
|
+
duration: string;
|
|
328
|
+
activity: ActivityResponse;
|
|
329
|
+
reaction: FeedsReactionResponse;
|
|
330
|
+
}
|
|
331
|
+
export interface AggregatedActivityResponse {
|
|
332
|
+
activity_count: number;
|
|
333
|
+
created_at: Date;
|
|
334
|
+
group: string;
|
|
335
|
+
score: number;
|
|
336
|
+
updated_at: Date;
|
|
337
|
+
user_count: number;
|
|
338
|
+
activities: ActivityResponse[];
|
|
339
|
+
}
|
|
340
|
+
export interface AppEventResponse {
|
|
341
|
+
auto_translation_enabled: boolean;
|
|
342
|
+
name: string;
|
|
343
|
+
async_url_enrich_enabled?: boolean;
|
|
344
|
+
file_upload_config?: FileUploadConfig;
|
|
345
|
+
image_upload_config?: FileUploadConfig;
|
|
346
|
+
}
|
|
347
|
+
export interface AppResponseFields {
|
|
348
|
+
async_url_enrich_enabled: boolean;
|
|
349
|
+
auto_translation_enabled: boolean;
|
|
350
|
+
name: string;
|
|
351
|
+
file_upload_config: FileUploadConfig;
|
|
352
|
+
image_upload_config: FileUploadConfig;
|
|
353
|
+
}
|
|
354
|
+
export interface AppUpdatedEvent {
|
|
355
|
+
created_at: Date;
|
|
356
|
+
app: AppEventResponse;
|
|
357
|
+
custom: Record<string, any>;
|
|
358
|
+
type: string;
|
|
359
|
+
received_at?: Date;
|
|
360
|
+
}
|
|
361
|
+
export interface Attachment {
|
|
362
|
+
custom: Record<string, any>;
|
|
363
|
+
asset_url?: string;
|
|
364
|
+
author_icon?: string;
|
|
365
|
+
author_link?: string;
|
|
366
|
+
author_name?: string;
|
|
367
|
+
color?: string;
|
|
368
|
+
fallback?: string;
|
|
369
|
+
footer?: string;
|
|
370
|
+
footer_icon?: string;
|
|
371
|
+
image_url?: string;
|
|
372
|
+
og_scrape_url?: string;
|
|
373
|
+
original_height?: number;
|
|
374
|
+
original_width?: number;
|
|
375
|
+
pretext?: string;
|
|
376
|
+
text?: string;
|
|
377
|
+
thumb_url?: string;
|
|
378
|
+
title?: string;
|
|
379
|
+
title_link?: string;
|
|
380
|
+
type?: string;
|
|
381
|
+
actions?: Action[];
|
|
382
|
+
fields?: Field[];
|
|
383
|
+
giphy?: Images;
|
|
384
|
+
}
|
|
385
|
+
export interface AudioSettings {
|
|
386
|
+
access_request_enabled: boolean;
|
|
387
|
+
default_device: 'speaker' | 'earpiece';
|
|
388
|
+
mic_default_on: boolean;
|
|
389
|
+
opus_dtx_enabled: boolean;
|
|
390
|
+
redundant_coding_enabled: boolean;
|
|
391
|
+
speaker_default_on: boolean;
|
|
392
|
+
noise_cancellation?: NoiseCancellationSettings;
|
|
393
|
+
}
|
|
394
|
+
export interface AudioSettingsResponse {
|
|
395
|
+
access_request_enabled: boolean;
|
|
396
|
+
default_device: 'speaker' | 'earpiece';
|
|
397
|
+
mic_default_on: boolean;
|
|
398
|
+
opus_dtx_enabled: boolean;
|
|
399
|
+
redundant_coding_enabled: boolean;
|
|
400
|
+
speaker_default_on: boolean;
|
|
401
|
+
noise_cancellation?: NoiseCancellationSettings;
|
|
402
|
+
}
|
|
403
|
+
export interface AutomodPlatformCircumventionConfig {
|
|
404
|
+
enabled: boolean;
|
|
405
|
+
rules: AutomodRule[];
|
|
406
|
+
async?: boolean;
|
|
407
|
+
}
|
|
408
|
+
export interface AutomodRule {
|
|
409
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
410
|
+
label: string;
|
|
411
|
+
threshold: number;
|
|
412
|
+
}
|
|
413
|
+
export interface AutomodSemanticFiltersConfig {
|
|
414
|
+
enabled: boolean;
|
|
415
|
+
rules: AutomodSemanticFiltersRule[];
|
|
416
|
+
async?: boolean;
|
|
417
|
+
}
|
|
418
|
+
export interface AutomodSemanticFiltersRule {
|
|
419
|
+
action: 'flag' | 'shadow' | 'remove';
|
|
420
|
+
name: string;
|
|
421
|
+
threshold: number;
|
|
422
|
+
}
|
|
423
|
+
export interface AutomodToxicityConfig {
|
|
424
|
+
enabled: boolean;
|
|
425
|
+
rules: AutomodRule[];
|
|
426
|
+
async?: boolean;
|
|
427
|
+
}
|
|
428
|
+
export interface BackstageSettings {
|
|
429
|
+
enabled: boolean;
|
|
430
|
+
join_ahead_time_seconds?: number;
|
|
431
|
+
}
|
|
432
|
+
export interface BackstageSettingsResponse {
|
|
433
|
+
enabled: boolean;
|
|
434
|
+
join_ahead_time_seconds?: number;
|
|
435
|
+
}
|
|
436
|
+
export interface Ban {
|
|
437
|
+
created_at: Date;
|
|
438
|
+
shadow: boolean;
|
|
439
|
+
expires?: Date;
|
|
440
|
+
reason?: string;
|
|
441
|
+
channel?: Channel;
|
|
442
|
+
created_by?: User;
|
|
443
|
+
target?: User;
|
|
444
|
+
}
|
|
445
|
+
export interface BanActionRequest {
|
|
446
|
+
channel_ban_only?: boolean;
|
|
447
|
+
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
448
|
+
ip_ban?: boolean;
|
|
449
|
+
reason?: string;
|
|
450
|
+
shadow?: boolean;
|
|
451
|
+
timeout?: number;
|
|
452
|
+
}
|
|
453
|
+
export interface BanRequest {
|
|
454
|
+
target_user_id: string;
|
|
455
|
+
banned_by_id?: string;
|
|
456
|
+
channel_cid?: string;
|
|
457
|
+
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
458
|
+
ip_ban?: boolean;
|
|
459
|
+
reason?: string;
|
|
460
|
+
shadow?: boolean;
|
|
461
|
+
timeout?: number;
|
|
462
|
+
banned_by?: UserRequest;
|
|
463
|
+
}
|
|
464
|
+
export interface BanResponse {
|
|
465
|
+
duration: string;
|
|
466
|
+
}
|
|
467
|
+
export interface BlockListConfig {
|
|
468
|
+
enabled: boolean;
|
|
469
|
+
rules: BlockListRule[];
|
|
470
|
+
async?: boolean;
|
|
471
|
+
}
|
|
472
|
+
export interface BlockListOptions {
|
|
473
|
+
behavior: 'flag' | 'block' | 'shadow_block';
|
|
474
|
+
blocklist: string;
|
|
475
|
+
}
|
|
476
|
+
export interface BlockListResponse {
|
|
477
|
+
name: string;
|
|
478
|
+
type: string;
|
|
479
|
+
words: string[];
|
|
480
|
+
created_at?: Date;
|
|
481
|
+
id?: string;
|
|
482
|
+
team?: string;
|
|
483
|
+
updated_at?: Date;
|
|
484
|
+
}
|
|
485
|
+
export interface BlockListRule {
|
|
486
|
+
action: 'flag' | 'mask_flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
487
|
+
name: string;
|
|
488
|
+
team: string;
|
|
489
|
+
}
|
|
490
|
+
export interface BlockUsersRequest {
|
|
491
|
+
blocked_user_id: string;
|
|
492
|
+
}
|
|
493
|
+
export interface BlockUsersResponse {
|
|
494
|
+
blocked_by_user_id: string;
|
|
495
|
+
blocked_user_id: string;
|
|
496
|
+
created_at: Date;
|
|
497
|
+
duration: string;
|
|
498
|
+
}
|
|
499
|
+
export interface BlockedUserResponse {
|
|
500
|
+
blocked_user_id: string;
|
|
501
|
+
created_at: Date;
|
|
502
|
+
user_id: string;
|
|
503
|
+
blocked_user: UserResponse;
|
|
504
|
+
user: UserResponse;
|
|
505
|
+
}
|
|
506
|
+
export interface BodyguardRule {
|
|
507
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
508
|
+
label: string;
|
|
509
|
+
severity_rules: BodyguardSeverityRule[];
|
|
510
|
+
}
|
|
511
|
+
export interface BodyguardSeverityRule {
|
|
512
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
513
|
+
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
514
|
+
}
|
|
515
|
+
export interface BookmarkAddedEvent {
|
|
516
|
+
created_at: Date;
|
|
517
|
+
bookmark: BookmarkResponse;
|
|
518
|
+
custom: Record<string, any>;
|
|
519
|
+
type: string;
|
|
520
|
+
received_at?: Date;
|
|
521
|
+
user?: UserResponseCommonFields;
|
|
522
|
+
}
|
|
523
|
+
export interface BookmarkDeletedEvent {
|
|
524
|
+
created_at: Date;
|
|
525
|
+
bookmark: BookmarkResponse;
|
|
526
|
+
custom: Record<string, any>;
|
|
527
|
+
type: string;
|
|
528
|
+
received_at?: Date;
|
|
529
|
+
user?: UserResponseCommonFields;
|
|
530
|
+
}
|
|
531
|
+
export interface BookmarkFolderResponse {
|
|
532
|
+
created_at: Date;
|
|
533
|
+
id: string;
|
|
534
|
+
name: string;
|
|
535
|
+
updated_at: Date;
|
|
536
|
+
custom?: Record<string, any>;
|
|
537
|
+
}
|
|
538
|
+
export interface BookmarkResponse {
|
|
539
|
+
created_at: Date;
|
|
540
|
+
updated_at: Date;
|
|
541
|
+
activity: ActivityResponse;
|
|
542
|
+
user: UserResponse;
|
|
543
|
+
custom?: Record<string, any>;
|
|
544
|
+
folder?: BookmarkFolderResponse;
|
|
545
|
+
}
|
|
546
|
+
export interface BookmarkUpdatedEvent {
|
|
547
|
+
created_at: Date;
|
|
548
|
+
bookmark: BookmarkResponse;
|
|
549
|
+
custom: Record<string, any>;
|
|
550
|
+
type: string;
|
|
551
|
+
received_at?: Date;
|
|
552
|
+
user?: UserResponseCommonFields;
|
|
553
|
+
}
|
|
554
|
+
export interface BroadcastSettings {
|
|
555
|
+
enabled: boolean;
|
|
556
|
+
hls?: HLSSettings;
|
|
557
|
+
rtmp?: RTMPSettings;
|
|
558
|
+
}
|
|
559
|
+
export interface BroadcastSettingsResponse {
|
|
560
|
+
enabled: boolean;
|
|
561
|
+
hls: HLSSettingsResponse;
|
|
562
|
+
rtmp: RTMPSettingsResponse;
|
|
563
|
+
}
|
|
564
|
+
export interface Call {
|
|
565
|
+
app_pk: number;
|
|
566
|
+
backstage: boolean;
|
|
567
|
+
channel_cid: string;
|
|
568
|
+
cid: string;
|
|
569
|
+
created_at: Date;
|
|
570
|
+
created_by_user_id: string;
|
|
571
|
+
current_session_id: string;
|
|
572
|
+
id: string;
|
|
573
|
+
last_session_id: string;
|
|
574
|
+
team: string;
|
|
575
|
+
thumbnail_url: string;
|
|
576
|
+
type: string;
|
|
577
|
+
updated_at: Date;
|
|
578
|
+
blocked_user_i_ds: string[];
|
|
579
|
+
blocked_users: User[];
|
|
580
|
+
egresses: CallEgress[];
|
|
581
|
+
members: CallMember[];
|
|
582
|
+
custom: Record<string, any>;
|
|
583
|
+
deleted_at?: Date;
|
|
584
|
+
egress_updated_at?: Date;
|
|
585
|
+
ended_at?: Date;
|
|
586
|
+
join_ahead_time_seconds?: number;
|
|
587
|
+
last_heartbeat_at?: Date;
|
|
588
|
+
member_count?: number;
|
|
589
|
+
starts_at?: Date;
|
|
590
|
+
call_type?: CallType;
|
|
591
|
+
created_by?: User;
|
|
592
|
+
member_lookup?: MemberLookup;
|
|
593
|
+
session?: CallSession;
|
|
594
|
+
settings?: CallSettings;
|
|
595
|
+
settings_overrides?: CallSettings;
|
|
596
|
+
}
|
|
597
|
+
export interface CallEgress {
|
|
598
|
+
app_pk: number;
|
|
599
|
+
call_id: string;
|
|
600
|
+
call_type: string;
|
|
601
|
+
egress_id: string;
|
|
602
|
+
egress_type: string;
|
|
603
|
+
instance_ip: string;
|
|
604
|
+
started_at: Date;
|
|
605
|
+
state: string;
|
|
606
|
+
updated_at: Date;
|
|
607
|
+
stopped_at?: Date;
|
|
608
|
+
config?: EgressTaskConfig;
|
|
609
|
+
}
|
|
610
|
+
export interface CallIngressResponse {
|
|
611
|
+
rtmp: RTMPIngress;
|
|
612
|
+
}
|
|
613
|
+
export interface CallMember {
|
|
614
|
+
created_at: Date;
|
|
615
|
+
role: string;
|
|
616
|
+
updated_at: Date;
|
|
617
|
+
user_id: string;
|
|
618
|
+
custom: Record<string, any>;
|
|
619
|
+
deleted_at?: Date;
|
|
620
|
+
user?: User;
|
|
621
|
+
}
|
|
622
|
+
export interface CallParticipant {
|
|
623
|
+
banned: boolean;
|
|
624
|
+
id: string;
|
|
625
|
+
joined_at: Date;
|
|
626
|
+
online: boolean;
|
|
627
|
+
role: string;
|
|
628
|
+
user_session_id: string;
|
|
629
|
+
custom: Record<string, any>;
|
|
630
|
+
teams_role: Record<string, string>;
|
|
631
|
+
ban_expires?: Date;
|
|
632
|
+
created_at?: Date;
|
|
633
|
+
deactivated_at?: Date;
|
|
634
|
+
deleted_at?: Date;
|
|
635
|
+
invisible?: boolean;
|
|
636
|
+
language?: string;
|
|
637
|
+
last_active?: Date;
|
|
638
|
+
last_engaged_at?: Date;
|
|
639
|
+
revoke_tokens_issued_before?: Date;
|
|
640
|
+
updated_at?: Date;
|
|
641
|
+
teams?: string[];
|
|
642
|
+
privacy_settings?: PrivacySettings;
|
|
643
|
+
}
|
|
644
|
+
export interface CallParticipantResponse {
|
|
645
|
+
joined_at: Date;
|
|
646
|
+
role: string;
|
|
647
|
+
user_session_id: string;
|
|
648
|
+
user: UserResponse;
|
|
649
|
+
}
|
|
650
|
+
export interface CallResponse {
|
|
651
|
+
backstage: boolean;
|
|
652
|
+
captioning: boolean;
|
|
653
|
+
cid: string;
|
|
654
|
+
created_at: Date;
|
|
655
|
+
current_session_id: string;
|
|
656
|
+
id: string;
|
|
657
|
+
recording: boolean;
|
|
658
|
+
transcribing: boolean;
|
|
659
|
+
type: string;
|
|
660
|
+
updated_at: Date;
|
|
661
|
+
blocked_user_ids: string[];
|
|
662
|
+
created_by: UserResponse;
|
|
663
|
+
custom: Record<string, any>;
|
|
664
|
+
egress: EgressResponse;
|
|
665
|
+
ingress: CallIngressResponse;
|
|
666
|
+
settings: CallSettingsResponse;
|
|
667
|
+
channel_cid?: string;
|
|
668
|
+
ended_at?: Date;
|
|
669
|
+
join_ahead_time_seconds?: number;
|
|
670
|
+
starts_at?: Date;
|
|
671
|
+
team?: string;
|
|
672
|
+
session?: CallSessionResponse;
|
|
673
|
+
thumbnails?: ThumbnailResponse;
|
|
674
|
+
}
|
|
675
|
+
export interface CallSession {
|
|
676
|
+
anonymous_participant_count: number;
|
|
677
|
+
app_pk: number;
|
|
678
|
+
call_id: string;
|
|
679
|
+
call_type: string;
|
|
680
|
+
created_at: Date;
|
|
681
|
+
session_id: string;
|
|
682
|
+
active_sf_us: SFUIDLastSeen[];
|
|
683
|
+
participants: CallParticipant[];
|
|
684
|
+
sfui_ds: string[];
|
|
685
|
+
accepted_by: Record<string, Date>;
|
|
686
|
+
missed_by: Record<string, Date>;
|
|
687
|
+
participants_count_by_role: Record<string, number>;
|
|
688
|
+
rejected_by: Record<string, Date>;
|
|
689
|
+
user_permission_overrides: Record<string, Record<string, boolean>>;
|
|
690
|
+
deleted_at?: Date;
|
|
691
|
+
ended_at?: Date;
|
|
692
|
+
live_ended_at?: Date;
|
|
693
|
+
live_started_at?: Date;
|
|
694
|
+
ring_at?: Date;
|
|
695
|
+
started_at?: Date;
|
|
696
|
+
timer_ends_at?: Date;
|
|
697
|
+
}
|
|
698
|
+
export interface CallSessionResponse {
|
|
699
|
+
anonymous_participant_count: number;
|
|
700
|
+
id: string;
|
|
701
|
+
participants: CallParticipantResponse[];
|
|
702
|
+
accepted_by: Record<string, Date>;
|
|
703
|
+
missed_by: Record<string, Date>;
|
|
704
|
+
participants_count_by_role: Record<string, number>;
|
|
705
|
+
rejected_by: Record<string, Date>;
|
|
706
|
+
ended_at?: Date;
|
|
707
|
+
live_ended_at?: Date;
|
|
708
|
+
live_started_at?: Date;
|
|
709
|
+
started_at?: Date;
|
|
710
|
+
timer_ends_at?: Date;
|
|
711
|
+
}
|
|
712
|
+
export interface CallSettings {
|
|
713
|
+
audio?: AudioSettings;
|
|
714
|
+
backstage?: BackstageSettings;
|
|
715
|
+
broadcasting?: BroadcastSettings;
|
|
716
|
+
frame_recording?: FrameRecordSettings;
|
|
717
|
+
geofencing?: GeofenceSettings;
|
|
718
|
+
limits?: LimitsSettings;
|
|
719
|
+
recording?: RecordSettings;
|
|
720
|
+
ring?: RingSettings;
|
|
721
|
+
screensharing?: ScreensharingSettings;
|
|
722
|
+
session?: SessionSettings;
|
|
723
|
+
thumbnails?: ThumbnailsSettings;
|
|
724
|
+
transcription?: TranscriptionSettings;
|
|
725
|
+
video?: VideoSettings;
|
|
726
|
+
}
|
|
727
|
+
export interface CallSettingsResponse {
|
|
728
|
+
audio: AudioSettingsResponse;
|
|
729
|
+
backstage: BackstageSettingsResponse;
|
|
730
|
+
broadcasting: BroadcastSettingsResponse;
|
|
731
|
+
frame_recording: FrameRecordingSettingsResponse;
|
|
732
|
+
geofencing: GeofenceSettingsResponse;
|
|
733
|
+
limits: LimitsSettingsResponse;
|
|
734
|
+
recording: RecordSettingsResponse;
|
|
735
|
+
ring: RingSettingsResponse;
|
|
736
|
+
screensharing: ScreensharingSettingsResponse;
|
|
737
|
+
session: SessionSettingsResponse;
|
|
738
|
+
thumbnails: ThumbnailsSettingsResponse;
|
|
739
|
+
transcription: TranscriptionSettingsResponse;
|
|
740
|
+
video: VideoSettingsResponse;
|
|
741
|
+
}
|
|
742
|
+
export interface CallType {
|
|
743
|
+
app_pk: number;
|
|
744
|
+
created_at: Date;
|
|
745
|
+
external_storage: string;
|
|
746
|
+
name: string;
|
|
747
|
+
pk: number;
|
|
748
|
+
updated_at: Date;
|
|
749
|
+
notification_settings?: NotificationSettings;
|
|
750
|
+
settings?: CallSettings;
|
|
751
|
+
}
|
|
752
|
+
export interface CastPollVoteRequest {
|
|
753
|
+
vote?: VoteData;
|
|
754
|
+
}
|
|
755
|
+
export interface Channel {
|
|
756
|
+
auto_translation_language: string;
|
|
757
|
+
cid: string;
|
|
758
|
+
created_at: Date;
|
|
759
|
+
disabled: boolean;
|
|
760
|
+
frozen: boolean;
|
|
761
|
+
id: string;
|
|
762
|
+
type: string;
|
|
763
|
+
updated_at: Date;
|
|
764
|
+
custom: Record<string, any>;
|
|
765
|
+
auto_translation_enabled?: boolean;
|
|
766
|
+
cooldown?: number;
|
|
767
|
+
deleted_at?: Date;
|
|
768
|
+
last_campaigns?: string;
|
|
769
|
+
last_message_at?: Date;
|
|
770
|
+
member_count?: number;
|
|
771
|
+
team?: string;
|
|
772
|
+
active_live_locations?: SharedLocation[];
|
|
773
|
+
invites?: ChannelMember[];
|
|
774
|
+
members?: ChannelMember[];
|
|
775
|
+
config?: ChannelConfig;
|
|
776
|
+
config_overrides?: ConfigOverrides;
|
|
777
|
+
created_by?: User;
|
|
778
|
+
truncated_by?: User;
|
|
779
|
+
}
|
|
780
|
+
export interface ChannelConfig {
|
|
781
|
+
automod: 'disabled' | 'simple' | 'AI';
|
|
782
|
+
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
783
|
+
connect_events: boolean;
|
|
784
|
+
created_at: Date;
|
|
785
|
+
custom_events: boolean;
|
|
786
|
+
mark_messages_pending: boolean;
|
|
787
|
+
max_message_length: number;
|
|
788
|
+
mutes: boolean;
|
|
789
|
+
name: string;
|
|
790
|
+
polls: boolean;
|
|
791
|
+
push_notifications: boolean;
|
|
792
|
+
quotes: boolean;
|
|
793
|
+
reactions: boolean;
|
|
794
|
+
read_events: boolean;
|
|
795
|
+
reminders: boolean;
|
|
796
|
+
replies: boolean;
|
|
797
|
+
search: boolean;
|
|
798
|
+
shared_locations: boolean;
|
|
799
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
800
|
+
typing_events: boolean;
|
|
801
|
+
updated_at: Date;
|
|
802
|
+
uploads: boolean;
|
|
803
|
+
url_enrichment: boolean;
|
|
804
|
+
user_message_reminders: boolean;
|
|
805
|
+
commands: string[];
|
|
806
|
+
blocklist?: string;
|
|
807
|
+
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
808
|
+
partition_size?: number;
|
|
809
|
+
partition_ttl?: number;
|
|
810
|
+
allowed_flag_reasons?: string[];
|
|
811
|
+
blocklists?: BlockListOptions[];
|
|
812
|
+
automod_thresholds?: Thresholds;
|
|
813
|
+
}
|
|
814
|
+
export interface ChannelConfigWithInfo {
|
|
815
|
+
automod: 'disabled' | 'simple' | 'AI';
|
|
816
|
+
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
817
|
+
connect_events: boolean;
|
|
818
|
+
created_at: Date;
|
|
819
|
+
custom_events: boolean;
|
|
820
|
+
mark_messages_pending: boolean;
|
|
821
|
+
max_message_length: number;
|
|
822
|
+
mutes: boolean;
|
|
823
|
+
name: string;
|
|
824
|
+
polls: boolean;
|
|
825
|
+
push_notifications: boolean;
|
|
826
|
+
quotes: boolean;
|
|
827
|
+
reactions: boolean;
|
|
828
|
+
read_events: boolean;
|
|
829
|
+
reminders: boolean;
|
|
830
|
+
replies: boolean;
|
|
831
|
+
search: boolean;
|
|
832
|
+
shared_locations: boolean;
|
|
833
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
834
|
+
typing_events: boolean;
|
|
835
|
+
updated_at: Date;
|
|
836
|
+
uploads: boolean;
|
|
837
|
+
url_enrichment: boolean;
|
|
838
|
+
user_message_reminders: boolean;
|
|
839
|
+
commands: Command[];
|
|
840
|
+
blocklist?: string;
|
|
841
|
+
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
842
|
+
partition_size?: number;
|
|
843
|
+
partition_ttl?: string;
|
|
844
|
+
allowed_flag_reasons?: string[];
|
|
845
|
+
blocklists?: BlockListOptions[];
|
|
846
|
+
automod_thresholds?: Thresholds;
|
|
847
|
+
grants?: Record<string, string[]>;
|
|
848
|
+
}
|
|
849
|
+
export interface ChannelMember {
|
|
850
|
+
banned: boolean;
|
|
851
|
+
channel_role: string;
|
|
852
|
+
created_at: Date;
|
|
853
|
+
notifications_muted: boolean;
|
|
854
|
+
shadow_banned: boolean;
|
|
855
|
+
updated_at: Date;
|
|
856
|
+
custom: Record<string, any>;
|
|
857
|
+
archived_at?: Date;
|
|
858
|
+
ban_expires?: Date;
|
|
859
|
+
deleted_at?: Date;
|
|
860
|
+
invite_accepted_at?: Date;
|
|
861
|
+
invite_rejected_at?: Date;
|
|
862
|
+
invited?: boolean;
|
|
863
|
+
is_moderator?: boolean;
|
|
864
|
+
pinned_at?: Date;
|
|
865
|
+
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
866
|
+
status?: string;
|
|
867
|
+
user_id?: string;
|
|
868
|
+
user?: UserResponse;
|
|
869
|
+
}
|
|
870
|
+
export interface ChannelMute {
|
|
871
|
+
created_at: Date;
|
|
872
|
+
updated_at: Date;
|
|
873
|
+
expires?: Date;
|
|
874
|
+
channel?: ChannelResponse;
|
|
875
|
+
user?: UserResponse;
|
|
876
|
+
}
|
|
877
|
+
export declare const ChannelOwnCapability: {
|
|
878
|
+
readonly BAN_CHANNEL_MEMBERS: "ban-channel-members";
|
|
879
|
+
readonly CAST_POLL_VOTE: "cast-poll-vote";
|
|
880
|
+
readonly CONNECT_EVENTS: "connect-events";
|
|
881
|
+
readonly CREATE_ATTACHMENT: "create-attachment";
|
|
882
|
+
readonly DELETE_ANY_MESSAGE: "delete-any-message";
|
|
883
|
+
readonly DELETE_CHANNEL: "delete-channel";
|
|
884
|
+
readonly DELETE_OWN_MESSAGE: "delete-own-message";
|
|
885
|
+
readonly FLAG_MESSAGE: "flag-message";
|
|
886
|
+
readonly FREEZE_CHANNEL: "freeze-channel";
|
|
887
|
+
readonly JOIN_CHANNEL: "join-channel";
|
|
888
|
+
readonly LEAVE_CHANNEL: "leave-channel";
|
|
889
|
+
readonly MUTE_CHANNEL: "mute-channel";
|
|
890
|
+
readonly PIN_MESSAGE: "pin-message";
|
|
891
|
+
readonly QUERY_POLL_VOTES: "query-poll-votes";
|
|
892
|
+
readonly QUOTE_MESSAGE: "quote-message";
|
|
893
|
+
readonly READ_EVENTS: "read-events";
|
|
894
|
+
readonly SEARCH_MESSAGES: "search-messages";
|
|
895
|
+
readonly SEND_CUSTOM_EVENTS: "send-custom-events";
|
|
896
|
+
readonly SEND_LINKS: "send-links";
|
|
897
|
+
readonly SEND_MESSAGE: "send-message";
|
|
898
|
+
readonly SEND_POLL: "send-poll";
|
|
899
|
+
readonly SEND_REACTION: "send-reaction";
|
|
900
|
+
readonly SEND_REPLY: "send-reply";
|
|
901
|
+
readonly SEND_RESTRICTED_VISIBILITY_MESSAGE: "send-restricted-visibility-message";
|
|
902
|
+
readonly SEND_TYPING_EVENTS: "send-typing-events";
|
|
903
|
+
readonly SET_CHANNEL_COOLDOWN: "set-channel-cooldown";
|
|
904
|
+
readonly SHARE_LOCATION: "share-location";
|
|
905
|
+
readonly SKIP_SLOW_MODE: "skip-slow-mode";
|
|
906
|
+
readonly SLOW_MODE: "slow-mode";
|
|
907
|
+
readonly TYPING_EVENTS: "typing-events";
|
|
908
|
+
readonly UPDATE_ANY_MESSAGE: "update-any-message";
|
|
909
|
+
readonly UPDATE_CHANNEL: "update-channel";
|
|
910
|
+
readonly UPDATE_CHANNEL_MEMBERS: "update-channel-members";
|
|
911
|
+
readonly UPDATE_OWN_MESSAGE: "update-own-message";
|
|
912
|
+
readonly UPDATE_THREAD: "update-thread";
|
|
913
|
+
readonly UPLOAD_FILE: "upload-file";
|
|
914
|
+
};
|
|
915
|
+
export type ChannelOwnCapability = (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
|
|
916
|
+
export interface ChannelResponse {
|
|
917
|
+
cid: string;
|
|
918
|
+
created_at: Date;
|
|
919
|
+
disabled: boolean;
|
|
920
|
+
frozen: boolean;
|
|
921
|
+
id: string;
|
|
922
|
+
type: string;
|
|
923
|
+
updated_at: Date;
|
|
924
|
+
custom: Record<string, any>;
|
|
925
|
+
auto_translation_enabled?: boolean;
|
|
926
|
+
auto_translation_language?: string;
|
|
927
|
+
blocked?: boolean;
|
|
928
|
+
cooldown?: number;
|
|
929
|
+
deleted_at?: Date;
|
|
930
|
+
hidden?: boolean;
|
|
931
|
+
hide_messages_before?: Date;
|
|
932
|
+
last_message_at?: Date;
|
|
933
|
+
member_count?: number;
|
|
934
|
+
mute_expires_at?: Date;
|
|
935
|
+
muted?: boolean;
|
|
936
|
+
team?: string;
|
|
937
|
+
truncated_at?: Date;
|
|
938
|
+
members?: ChannelMember[];
|
|
939
|
+
own_capabilities?: ChannelOwnCapability[];
|
|
940
|
+
config?: ChannelConfigWithInfo;
|
|
941
|
+
created_by?: UserResponse;
|
|
942
|
+
truncated_by?: UserResponse;
|
|
943
|
+
}
|
|
944
|
+
export interface Command {
|
|
945
|
+
args: string;
|
|
946
|
+
description: string;
|
|
947
|
+
name: string;
|
|
948
|
+
set: string;
|
|
949
|
+
created_at?: Date;
|
|
950
|
+
updated_at?: Date;
|
|
951
|
+
}
|
|
952
|
+
export interface CommentAddedEvent {
|
|
953
|
+
created_at: Date;
|
|
954
|
+
fid: string;
|
|
955
|
+
comment: CommentResponse;
|
|
956
|
+
custom: Record<string, any>;
|
|
957
|
+
type: string;
|
|
958
|
+
received_at?: Date;
|
|
959
|
+
user?: UserResponseCommonFields;
|
|
960
|
+
}
|
|
961
|
+
export interface CommentDeletedEvent {
|
|
962
|
+
created_at: Date;
|
|
963
|
+
fid: string;
|
|
964
|
+
comment: CommentResponse;
|
|
965
|
+
custom: Record<string, any>;
|
|
966
|
+
type: string;
|
|
967
|
+
received_at?: Date;
|
|
968
|
+
user?: UserResponseCommonFields;
|
|
969
|
+
}
|
|
970
|
+
export interface CommentReactionAddedEvent {
|
|
971
|
+
created_at: Date;
|
|
972
|
+
fid: string;
|
|
973
|
+
comment: CommentResponse;
|
|
974
|
+
custom: Record<string, any>;
|
|
975
|
+
reaction: FeedsReactionResponse;
|
|
976
|
+
type: string;
|
|
977
|
+
received_at?: Date;
|
|
978
|
+
user?: UserResponseCommonFields;
|
|
979
|
+
}
|
|
980
|
+
export interface CommentReactionDeletedEvent {
|
|
981
|
+
created_at: Date;
|
|
982
|
+
fid: string;
|
|
983
|
+
comment: CommentResponse;
|
|
984
|
+
custom: Record<string, any>;
|
|
985
|
+
reaction: FeedsReactionResponse;
|
|
986
|
+
type: string;
|
|
987
|
+
received_at?: Date;
|
|
988
|
+
}
|
|
989
|
+
export interface CommentReactionUpdatedEvent {
|
|
990
|
+
created_at: Date;
|
|
991
|
+
fid: string;
|
|
992
|
+
comment: CommentResponse;
|
|
993
|
+
custom: Record<string, any>;
|
|
994
|
+
reaction: FeedsReactionResponse;
|
|
995
|
+
type: string;
|
|
996
|
+
received_at?: Date;
|
|
997
|
+
user?: UserResponseCommonFields;
|
|
998
|
+
}
|
|
999
|
+
export interface CommentResponse {
|
|
1000
|
+
confidence_score: number;
|
|
1001
|
+
created_at: Date;
|
|
1002
|
+
downvote_count: number;
|
|
1003
|
+
id: string;
|
|
1004
|
+
object_id: string;
|
|
1005
|
+
object_type: string;
|
|
1006
|
+
reaction_count: number;
|
|
1007
|
+
reply_count: number;
|
|
1008
|
+
score: number;
|
|
1009
|
+
status: string;
|
|
1010
|
+
updated_at: Date;
|
|
1011
|
+
upvote_count: number;
|
|
1012
|
+
mentioned_users: UserResponse[];
|
|
1013
|
+
own_reactions: FeedsReactionResponse[];
|
|
1014
|
+
user: UserResponse;
|
|
1015
|
+
controversy_score?: number;
|
|
1016
|
+
deleted_at?: Date;
|
|
1017
|
+
parent_id?: string;
|
|
1018
|
+
text?: string;
|
|
1019
|
+
attachments?: Attachment[];
|
|
1020
|
+
latest_reactions?: FeedsReactionResponse[];
|
|
1021
|
+
custom?: Record<string, any>;
|
|
1022
|
+
moderation?: ModerationV2Response;
|
|
1023
|
+
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
1024
|
+
}
|
|
1025
|
+
export interface CommentUpdatedEvent {
|
|
1026
|
+
created_at: Date;
|
|
1027
|
+
fid: string;
|
|
1028
|
+
comment: CommentResponse;
|
|
1029
|
+
custom: Record<string, any>;
|
|
1030
|
+
type: string;
|
|
1031
|
+
received_at?: Date;
|
|
1032
|
+
user?: UserResponseCommonFields;
|
|
1033
|
+
}
|
|
1034
|
+
export interface CompositeAppSettings {
|
|
1035
|
+
json_encoded_settings?: string;
|
|
1036
|
+
url?: string;
|
|
1037
|
+
}
|
|
1038
|
+
export interface ConfigOverrides {
|
|
1039
|
+
commands: string[];
|
|
1040
|
+
grants: Record<string, string[]>;
|
|
1041
|
+
blocklist?: string;
|
|
1042
|
+
blocklist_behavior?: 'flag' | 'block';
|
|
1043
|
+
max_message_length?: number;
|
|
1044
|
+
quotes?: boolean;
|
|
1045
|
+
reactions?: boolean;
|
|
1046
|
+
replies?: boolean;
|
|
1047
|
+
shared_locations?: boolean;
|
|
1048
|
+
typing_events?: boolean;
|
|
1049
|
+
uploads?: boolean;
|
|
1050
|
+
url_enrichment?: boolean;
|
|
1051
|
+
user_message_reminders?: boolean;
|
|
1052
|
+
}
|
|
1053
|
+
export interface ConfigResponse {
|
|
1054
|
+
async: boolean;
|
|
1055
|
+
created_at: Date;
|
|
1056
|
+
key: string;
|
|
1057
|
+
team: string;
|
|
1058
|
+
updated_at: Date;
|
|
1059
|
+
ai_image_config?: AIImageConfig;
|
|
1060
|
+
ai_text_config?: AITextConfig;
|
|
1061
|
+
ai_video_config?: AIVideoConfig;
|
|
1062
|
+
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
1063
|
+
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
1064
|
+
automod_toxicity_config?: AutomodToxicityConfig;
|
|
1065
|
+
block_list_config?: BlockListConfig;
|
|
1066
|
+
velocity_filter_config?: VelocityFilterConfig;
|
|
1067
|
+
video_call_rule_config?: VideoCallRuleConfig;
|
|
1068
|
+
}
|
|
1069
|
+
export interface ConnectUserDetailsRequest {
|
|
1070
|
+
id: string;
|
|
1071
|
+
image?: string;
|
|
1072
|
+
invisible?: boolean;
|
|
1073
|
+
language?: string;
|
|
1074
|
+
name?: string;
|
|
1075
|
+
custom?: Record<string, any>;
|
|
1076
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
1077
|
+
}
|
|
1078
|
+
export interface CreateBlockListRequest {
|
|
1079
|
+
name: string;
|
|
1080
|
+
words: string[];
|
|
1081
|
+
team?: string;
|
|
1082
|
+
type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
|
|
1083
|
+
}
|
|
1084
|
+
export interface CreateBlockListResponse {
|
|
1085
|
+
duration: string;
|
|
1086
|
+
blocklist?: BlockListResponse;
|
|
1087
|
+
}
|
|
1088
|
+
export interface CreateDeviceRequest {
|
|
1089
|
+
id: string;
|
|
1090
|
+
push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
|
|
1091
|
+
push_provider_name?: string;
|
|
1092
|
+
voip_token?: boolean;
|
|
1093
|
+
}
|
|
1094
|
+
export interface CreateFeedsBatchRequest {
|
|
1095
|
+
feeds: FeedRequest[];
|
|
1096
|
+
}
|
|
1097
|
+
export interface CreateFeedsBatchResponse {
|
|
1098
|
+
duration: string;
|
|
1099
|
+
feeds: FeedResponse[];
|
|
1100
|
+
}
|
|
1101
|
+
export interface CreateGuestRequest {
|
|
1102
|
+
user: UserRequest;
|
|
1103
|
+
}
|
|
1104
|
+
export interface CreateGuestResponse {
|
|
1105
|
+
access_token: string;
|
|
1106
|
+
duration: string;
|
|
1107
|
+
user: UserResponse;
|
|
1108
|
+
}
|
|
1109
|
+
export interface CreatePollOptionRequest {
|
|
1110
|
+
text: string;
|
|
1111
|
+
custom?: Record<string, any>;
|
|
1112
|
+
}
|
|
1113
|
+
export interface CreatePollRequest {
|
|
1114
|
+
name: string;
|
|
1115
|
+
allow_answers?: boolean;
|
|
1116
|
+
allow_user_suggested_options?: boolean;
|
|
1117
|
+
description?: string;
|
|
1118
|
+
enforce_unique_vote?: boolean;
|
|
1119
|
+
id?: string;
|
|
1120
|
+
is_closed?: boolean;
|
|
1121
|
+
max_votes_allowed?: number;
|
|
1122
|
+
voting_visibility?: 'anonymous' | 'public';
|
|
1123
|
+
options?: PollOptionInput[];
|
|
1124
|
+
custom?: Record<string, any>;
|
|
1125
|
+
}
|
|
1126
|
+
export interface CustomActionRequest {
|
|
1127
|
+
id?: string;
|
|
1128
|
+
options?: Record<string, any>;
|
|
1129
|
+
}
|
|
1130
|
+
export interface Data {
|
|
1131
|
+
id: string;
|
|
1132
|
+
}
|
|
1133
|
+
export interface DeleteActivitiesRequest {
|
|
1134
|
+
activity_ids: string[];
|
|
1135
|
+
hard_delete?: boolean;
|
|
1136
|
+
}
|
|
1137
|
+
export interface DeleteActivitiesResponse {
|
|
1138
|
+
duration: string;
|
|
1139
|
+
deleted_activity_ids: string[];
|
|
1140
|
+
}
|
|
1141
|
+
export interface DeleteActivityReactionResponse {
|
|
1142
|
+
duration: string;
|
|
1143
|
+
activity: ActivityResponse;
|
|
1144
|
+
reaction: FeedsReactionResponse;
|
|
1145
|
+
}
|
|
1146
|
+
export interface DeleteActivityRequest {
|
|
1147
|
+
hard_delete?: boolean;
|
|
1148
|
+
}
|
|
1149
|
+
export interface DeleteActivityResponse {
|
|
1150
|
+
duration: string;
|
|
1151
|
+
}
|
|
1152
|
+
export interface DeleteBookmarkResponse {
|
|
1153
|
+
duration: string;
|
|
1154
|
+
bookmark: BookmarkResponse;
|
|
1155
|
+
}
|
|
1156
|
+
export interface DeleteCommentReactionResponse {
|
|
1157
|
+
duration: string;
|
|
1158
|
+
comment: CommentResponse;
|
|
1159
|
+
reaction: FeedsReactionResponse;
|
|
1160
|
+
}
|
|
1161
|
+
export interface DeleteCommentResponse {
|
|
1162
|
+
duration: string;
|
|
1163
|
+
}
|
|
1164
|
+
export interface DeleteFeedResponse {
|
|
1165
|
+
duration: string;
|
|
1166
|
+
}
|
|
1167
|
+
export interface DeleteMessageRequest {
|
|
1168
|
+
hard_delete?: boolean;
|
|
1169
|
+
}
|
|
1170
|
+
export interface DeleteModerationConfigResponse {
|
|
1171
|
+
duration: string;
|
|
1172
|
+
}
|
|
1173
|
+
export interface DeleteReactionRequest {
|
|
1174
|
+
hard_delete?: boolean;
|
|
1175
|
+
}
|
|
1176
|
+
export interface DeleteUserRequest {
|
|
1177
|
+
delete_conversation_channels?: boolean;
|
|
1178
|
+
delete_feeds_content?: boolean;
|
|
1179
|
+
hard_delete?: boolean;
|
|
1180
|
+
mark_messages_deleted?: boolean;
|
|
1181
|
+
}
|
|
1182
|
+
export interface Device {
|
|
1183
|
+
created_at: Date;
|
|
1184
|
+
id: string;
|
|
1185
|
+
push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
|
|
1186
|
+
user_id: string;
|
|
1187
|
+
disabled?: boolean;
|
|
1188
|
+
disabled_reason?: string;
|
|
1189
|
+
push_provider_name?: string;
|
|
1190
|
+
voip?: boolean;
|
|
1191
|
+
}
|
|
1192
|
+
export interface DeviceResponse {
|
|
1193
|
+
created_at: Date;
|
|
1194
|
+
id: string;
|
|
1195
|
+
push_provider: string;
|
|
1196
|
+
user_id: string;
|
|
1197
|
+
disabled?: boolean;
|
|
1198
|
+
disabled_reason?: string;
|
|
1199
|
+
push_provider_name?: string;
|
|
1200
|
+
voip?: boolean;
|
|
1201
|
+
}
|
|
1202
|
+
export interface DraftPayloadResponse {
|
|
1203
|
+
id: string;
|
|
1204
|
+
text: string;
|
|
1205
|
+
custom: Record<string, any>;
|
|
1206
|
+
html?: string;
|
|
1207
|
+
mml?: string;
|
|
1208
|
+
parent_id?: string;
|
|
1209
|
+
poll_id?: string;
|
|
1210
|
+
quoted_message_id?: string;
|
|
1211
|
+
show_in_channel?: boolean;
|
|
1212
|
+
silent?: boolean;
|
|
1213
|
+
type?: string;
|
|
1214
|
+
attachments?: Attachment[];
|
|
1215
|
+
mentioned_users?: UserResponse[];
|
|
1216
|
+
}
|
|
1217
|
+
export interface DraftResponse {
|
|
1218
|
+
channel_cid: string;
|
|
1219
|
+
created_at: Date;
|
|
1220
|
+
message: DraftPayloadResponse;
|
|
1221
|
+
parent_id?: string;
|
|
1222
|
+
channel?: ChannelResponse;
|
|
1223
|
+
parent_message?: MessageResponse;
|
|
1224
|
+
quoted_message?: MessageResponse;
|
|
1225
|
+
}
|
|
1226
|
+
export interface EgressHLSResponse {
|
|
1227
|
+
playlist_url: string;
|
|
1228
|
+
status: string;
|
|
1229
|
+
}
|
|
1230
|
+
export interface EgressRTMPResponse {
|
|
1231
|
+
name: string;
|
|
1232
|
+
started_at: Date;
|
|
1233
|
+
stream_key?: string;
|
|
1234
|
+
stream_url?: string;
|
|
1235
|
+
}
|
|
1236
|
+
export interface EgressResponse {
|
|
1237
|
+
broadcasting: boolean;
|
|
1238
|
+
rtmps: EgressRTMPResponse[];
|
|
1239
|
+
frame_recording?: FrameRecordingResponse;
|
|
1240
|
+
hls?: EgressHLSResponse;
|
|
1241
|
+
}
|
|
1242
|
+
export interface EgressTaskConfig {
|
|
1243
|
+
egress_user?: EgressUser;
|
|
1244
|
+
frame_recording_egress_config?: FrameRecordingEgressConfig;
|
|
1245
|
+
hls_egress_config?: HLSEgressConfig;
|
|
1246
|
+
recording_egress_config?: RecordingEgressConfig;
|
|
1247
|
+
rtmp_egress_config?: RTMPEgressConfig;
|
|
1248
|
+
stt_egress_config?: STTEgressConfig;
|
|
1249
|
+
}
|
|
1250
|
+
export interface EgressUser {
|
|
1251
|
+
token?: string;
|
|
1252
|
+
}
|
|
1253
|
+
export interface EnrichedActivity {
|
|
1254
|
+
foreign_id?: string;
|
|
1255
|
+
id?: string;
|
|
1256
|
+
score?: number;
|
|
1257
|
+
verb?: string;
|
|
1258
|
+
to?: string[];
|
|
1259
|
+
actor?: Data;
|
|
1260
|
+
latest_reactions?: Record<string, EnrichedReaction[]>;
|
|
1261
|
+
object?: Data;
|
|
1262
|
+
origin?: Data;
|
|
1263
|
+
own_reactions?: Record<string, EnrichedReaction[]>;
|
|
1264
|
+
reaction_counts?: Record<string, number>;
|
|
1265
|
+
target?: Data;
|
|
1266
|
+
}
|
|
1267
|
+
export interface EnrichedReaction {
|
|
1268
|
+
activity_id: string;
|
|
1269
|
+
kind: string;
|
|
1270
|
+
user_id: string;
|
|
1271
|
+
id?: string;
|
|
1272
|
+
parent?: string;
|
|
1273
|
+
target_feeds?: string[];
|
|
1274
|
+
children_counts?: Record<string, number>;
|
|
1275
|
+
created_at?: Time;
|
|
1276
|
+
data?: Record<string, any>;
|
|
1277
|
+
latest_children?: Record<string, EnrichedReaction[]>;
|
|
1278
|
+
own_children?: Record<string, EnrichedReaction[]>;
|
|
1279
|
+
updated_at?: Time;
|
|
1280
|
+
user?: Data;
|
|
1281
|
+
}
|
|
1282
|
+
export interface EntityCreator {
|
|
1283
|
+
ban_count: number;
|
|
1284
|
+
banned: boolean;
|
|
1285
|
+
deleted_content_count: number;
|
|
1286
|
+
id: string;
|
|
1287
|
+
online: boolean;
|
|
1288
|
+
role: string;
|
|
1289
|
+
custom: Record<string, any>;
|
|
1290
|
+
teams_role: Record<string, string>;
|
|
1291
|
+
ban_expires?: Date;
|
|
1292
|
+
created_at?: Date;
|
|
1293
|
+
deactivated_at?: Date;
|
|
1294
|
+
deleted_at?: Date;
|
|
1295
|
+
invisible?: boolean;
|
|
1296
|
+
language?: string;
|
|
1297
|
+
last_active?: Date;
|
|
1298
|
+
last_engaged_at?: Date;
|
|
1299
|
+
revoke_tokens_issued_before?: Date;
|
|
1300
|
+
updated_at?: Date;
|
|
1301
|
+
teams?: string[];
|
|
1302
|
+
privacy_settings?: PrivacySettings;
|
|
1303
|
+
}
|
|
1304
|
+
export interface EntityCreatorResponse {
|
|
1305
|
+
ban_count: number;
|
|
1306
|
+
banned: boolean;
|
|
1307
|
+
created_at: Date;
|
|
1308
|
+
deleted_content_count: number;
|
|
1309
|
+
flagged_count: number;
|
|
1310
|
+
id: string;
|
|
1311
|
+
language: string;
|
|
1312
|
+
online: boolean;
|
|
1313
|
+
role: string;
|
|
1314
|
+
updated_at: Date;
|
|
1315
|
+
blocked_user_ids: string[];
|
|
1316
|
+
teams: string[];
|
|
1317
|
+
custom: Record<string, any>;
|
|
1318
|
+
deactivated_at?: Date;
|
|
1319
|
+
deleted_at?: Date;
|
|
1320
|
+
image?: string;
|
|
1321
|
+
last_active?: Date;
|
|
1322
|
+
name?: string;
|
|
1323
|
+
revoke_tokens_issued_before?: Date;
|
|
1324
|
+
teams_role?: Record<string, string>;
|
|
1325
|
+
}
|
|
1326
|
+
export interface EventNotificationSettings {
|
|
1327
|
+
enabled: boolean;
|
|
1328
|
+
apns: APNS;
|
|
1329
|
+
fcm: FCM;
|
|
1330
|
+
}
|
|
1331
|
+
export interface ExternalStorage {
|
|
1332
|
+
abs_account_name?: string;
|
|
1333
|
+
abs_client_id?: string;
|
|
1334
|
+
abs_client_secret?: string;
|
|
1335
|
+
abs_tenant_id?: string;
|
|
1336
|
+
bucket?: string;
|
|
1337
|
+
gcs_credentials?: string;
|
|
1338
|
+
path?: string;
|
|
1339
|
+
s3_api_key?: string;
|
|
1340
|
+
s3_custom_endpoint?: string;
|
|
1341
|
+
s3_region?: string;
|
|
1342
|
+
s3_secret_key?: string;
|
|
1343
|
+
storage_name?: string;
|
|
1344
|
+
storage_type?: number;
|
|
1345
|
+
}
|
|
1346
|
+
export interface FCM {
|
|
1347
|
+
data?: Record<string, any>;
|
|
1348
|
+
}
|
|
1349
|
+
export interface FeedCreatedEvent {
|
|
1350
|
+
created_at: Date;
|
|
1351
|
+
fid: string;
|
|
1352
|
+
members: FeedMemberResponse[];
|
|
1353
|
+
custom: Record<string, any>;
|
|
1354
|
+
feed: FeedResponse;
|
|
1355
|
+
user: UserResponseCommonFields;
|
|
1356
|
+
type: string;
|
|
1357
|
+
received_at?: Date;
|
|
1358
|
+
}
|
|
1359
|
+
export interface FeedDeletedEvent {
|
|
1360
|
+
created_at: Date;
|
|
1361
|
+
fid: string;
|
|
1362
|
+
custom: Record<string, any>;
|
|
1363
|
+
type: string;
|
|
1364
|
+
received_at?: Date;
|
|
1365
|
+
user?: UserResponseCommonFields;
|
|
1366
|
+
}
|
|
1367
|
+
export interface FeedGroup {
|
|
1368
|
+
app_pk: number;
|
|
1369
|
+
created_at: Date;
|
|
1370
|
+
default_view_id: string;
|
|
1371
|
+
default_visibility: string;
|
|
1372
|
+
id: string;
|
|
1373
|
+
updated_at: Date;
|
|
1374
|
+
custom: Record<string, any>;
|
|
1375
|
+
deleted_at?: Date;
|
|
1376
|
+
last_feed_get_at?: Date;
|
|
1377
|
+
notification?: NotificationConfig;
|
|
1378
|
+
stories?: StoriesConfig;
|
|
1379
|
+
}
|
|
1380
|
+
export interface FeedGroupChangedEvent {
|
|
1381
|
+
created_at: Date;
|
|
1382
|
+
fid: string;
|
|
1383
|
+
custom: Record<string, any>;
|
|
1384
|
+
type: string;
|
|
1385
|
+
received_at?: Date;
|
|
1386
|
+
feed_group?: FeedGroup;
|
|
1387
|
+
user?: UserResponseCommonFields;
|
|
1388
|
+
}
|
|
1389
|
+
export interface FeedGroupDeletedEvent {
|
|
1390
|
+
created_at: Date;
|
|
1391
|
+
fid: string;
|
|
1392
|
+
group_id: string;
|
|
1393
|
+
custom: Record<string, any>;
|
|
1394
|
+
type: string;
|
|
1395
|
+
received_at?: Date;
|
|
1396
|
+
}
|
|
1397
|
+
export interface FeedInput {
|
|
1398
|
+
description?: string;
|
|
1399
|
+
name?: string;
|
|
1400
|
+
visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
1401
|
+
members?: FeedMemberRequest[];
|
|
1402
|
+
custom?: Record<string, any>;
|
|
1403
|
+
}
|
|
1404
|
+
export interface FeedMemberAddedEvent {
|
|
1405
|
+
created_at: Date;
|
|
1406
|
+
fid: string;
|
|
1407
|
+
custom: Record<string, any>;
|
|
1408
|
+
member: FeedMemberResponse;
|
|
1409
|
+
type: string;
|
|
1410
|
+
received_at?: Date;
|
|
1411
|
+
user?: UserResponseCommonFields;
|
|
1412
|
+
}
|
|
1413
|
+
export interface FeedMemberRemovedEvent {
|
|
1414
|
+
created_at: Date;
|
|
1415
|
+
fid: string;
|
|
1416
|
+
member_id: string;
|
|
1417
|
+
custom: Record<string, any>;
|
|
1418
|
+
type: string;
|
|
1419
|
+
received_at?: Date;
|
|
1420
|
+
user?: UserResponseCommonFields;
|
|
1421
|
+
}
|
|
1422
|
+
export interface FeedMemberRequest {
|
|
1423
|
+
user_id: string;
|
|
1424
|
+
invite?: boolean;
|
|
1425
|
+
role?: string;
|
|
1426
|
+
custom?: Record<string, any>;
|
|
1427
|
+
}
|
|
1428
|
+
export interface FeedMemberResponse {
|
|
1429
|
+
created_at: Date;
|
|
1430
|
+
role: string;
|
|
1431
|
+
status: 'member' | 'pending' | 'rejected';
|
|
1432
|
+
updated_at: Date;
|
|
1433
|
+
user: UserResponse;
|
|
1434
|
+
invite_accepted_at?: Date;
|
|
1435
|
+
invite_rejected_at?: Date;
|
|
1436
|
+
custom?: Record<string, any>;
|
|
1437
|
+
}
|
|
1438
|
+
export interface FeedMemberUpdatedEvent {
|
|
1439
|
+
created_at: Date;
|
|
1440
|
+
fid: string;
|
|
1441
|
+
custom: Record<string, any>;
|
|
1442
|
+
member: FeedMemberResponse;
|
|
1443
|
+
type: string;
|
|
1444
|
+
received_at?: Date;
|
|
1445
|
+
user?: UserResponseCommonFields;
|
|
1446
|
+
}
|
|
1447
|
+
export declare const FeedOwnCapability: {
|
|
1448
|
+
readonly ADD_ACTIVITY: "add-activity";
|
|
1449
|
+
readonly ADD_ACTIVITY_REACTION: "add-activity-reaction";
|
|
1450
|
+
readonly ADD_COMMENT: "add-comment";
|
|
1451
|
+
readonly ADD_COMMENT_REACTION: "add-comment-reaction";
|
|
1452
|
+
readonly BOOKMARK_ACTIVITY: "bookmark-activity";
|
|
1453
|
+
readonly CREATE_FEED: "create-feed";
|
|
1454
|
+
readonly DELETE_BOOKMARK: "delete-bookmark";
|
|
1455
|
+
readonly DELETE_COMMENT: "delete-comment";
|
|
1456
|
+
readonly DELETE_FEED: "delete-feed";
|
|
1457
|
+
readonly EDIT_BOOKMARK: "edit-bookmark";
|
|
1458
|
+
readonly FOLLOW: "follow";
|
|
1459
|
+
readonly INVITE_FEED: "invite-feed";
|
|
1460
|
+
readonly JOIN_FEED: "join-feed";
|
|
1461
|
+
readonly LEAVE_FEED: "leave-feed";
|
|
1462
|
+
readonly MANAGE_FEED_GROUP: "manage-feed-group";
|
|
1463
|
+
readonly MARK_ACTIVITY: "mark-activity";
|
|
1464
|
+
readonly PIN_ACTIVITY: "pin-activity";
|
|
1465
|
+
readonly QUERY_FEED_MEMBERS: "query-feed-members";
|
|
1466
|
+
readonly QUERY_FOLLOWS: "query-follows";
|
|
1467
|
+
readonly READ_ACTIVITIES: "read-activities";
|
|
1468
|
+
readonly READ_FEED: "read-feed";
|
|
1469
|
+
readonly REMOVE_ACTIVITY: "remove-activity";
|
|
1470
|
+
readonly REMOVE_ACTIVITY_REACTION: "remove-activity-reaction";
|
|
1471
|
+
readonly REMOVE_COMMENT_REACTION: "remove-comment-reaction";
|
|
1472
|
+
readonly UNFOLLOW: "unfollow";
|
|
1473
|
+
readonly UPDATE_ACTIVITY: "update-activity";
|
|
1474
|
+
readonly UPDATE_COMMENT: "update-comment";
|
|
1475
|
+
readonly UPDATE_FEED: "update-feed";
|
|
1476
|
+
readonly UPDATE_FEED_FOLLOWERS: "update-feed-followers";
|
|
1477
|
+
readonly UPDATE_FEED_MEMBERS: "update-feed-members";
|
|
1478
|
+
};
|
|
1479
|
+
export type FeedOwnCapability = (typeof FeedOwnCapability)[keyof typeof FeedOwnCapability];
|
|
1480
|
+
export interface FeedRequest {
|
|
1481
|
+
feed_group_id: string;
|
|
1482
|
+
feed_id: string;
|
|
1483
|
+
created_by_id?: string;
|
|
1484
|
+
description?: string;
|
|
1485
|
+
name?: string;
|
|
1486
|
+
visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
1487
|
+
members?: FeedMemberRequest[];
|
|
1488
|
+
custom?: Record<string, any>;
|
|
1489
|
+
}
|
|
1490
|
+
export interface FeedResponse {
|
|
1491
|
+
created_at: Date;
|
|
1492
|
+
description: string;
|
|
1493
|
+
fid: string;
|
|
1494
|
+
follower_count: number;
|
|
1495
|
+
following_count: number;
|
|
1496
|
+
group_id: string;
|
|
1497
|
+
id: string;
|
|
1498
|
+
member_count: number;
|
|
1499
|
+
name: string;
|
|
1500
|
+
pin_count: number;
|
|
1501
|
+
updated_at: Date;
|
|
1502
|
+
created_by: UserResponse;
|
|
1503
|
+
deleted_at?: Date;
|
|
1504
|
+
visibility?: string;
|
|
1505
|
+
custom?: Record<string, any>;
|
|
1506
|
+
}
|
|
1507
|
+
export interface FeedUpdatedEvent {
|
|
1508
|
+
created_at: Date;
|
|
1509
|
+
fid: string;
|
|
1510
|
+
custom: Record<string, any>;
|
|
1511
|
+
feed: FeedResponse;
|
|
1512
|
+
type: string;
|
|
1513
|
+
received_at?: Date;
|
|
1514
|
+
user?: UserResponseCommonFields;
|
|
1515
|
+
}
|
|
1516
|
+
export interface FeedsReactionResponse {
|
|
1517
|
+
activity_id: string;
|
|
1518
|
+
created_at: Date;
|
|
1519
|
+
type: string;
|
|
1520
|
+
updated_at: Date;
|
|
1521
|
+
user: UserResponse;
|
|
1522
|
+
comment_id?: string;
|
|
1523
|
+
custom?: Record<string, any>;
|
|
1524
|
+
}
|
|
1525
|
+
export interface Field {
|
|
1526
|
+
short: boolean;
|
|
1527
|
+
title: string;
|
|
1528
|
+
value: string;
|
|
1529
|
+
}
|
|
1530
|
+
export interface FileUploadConfig {
|
|
1531
|
+
size_limit: number;
|
|
1532
|
+
allowed_file_extensions: string[];
|
|
1533
|
+
allowed_mime_types: string[];
|
|
1534
|
+
blocked_file_extensions: string[];
|
|
1535
|
+
blocked_mime_types: string[];
|
|
1536
|
+
}
|
|
1537
|
+
export interface FileUploadRequest {
|
|
1538
|
+
file?: string;
|
|
1539
|
+
user?: OnlyUserID;
|
|
1540
|
+
}
|
|
1541
|
+
export interface FileUploadResponse {
|
|
1542
|
+
duration: string;
|
|
1543
|
+
file?: string;
|
|
1544
|
+
thumb_url?: string;
|
|
1545
|
+
}
|
|
1546
|
+
export interface Flag {
|
|
1547
|
+
created_at: Date;
|
|
1548
|
+
entity_id: string;
|
|
1549
|
+
entity_type: string;
|
|
1550
|
+
updated_at: Date;
|
|
1551
|
+
result: Array<Record<string, any>>;
|
|
1552
|
+
entity_creator_id?: string;
|
|
1553
|
+
is_streamed_content?: boolean;
|
|
1554
|
+
moderation_payload_hash?: string;
|
|
1555
|
+
reason?: string;
|
|
1556
|
+
review_queue_item_id?: string;
|
|
1557
|
+
type?: string;
|
|
1558
|
+
labels?: string[];
|
|
1559
|
+
custom?: Record<string, any>;
|
|
1560
|
+
moderation_payload?: ModerationPayload;
|
|
1561
|
+
review_queue_item?: ReviewQueueItem;
|
|
1562
|
+
user?: User;
|
|
1563
|
+
}
|
|
1564
|
+
export interface FlagRequest {
|
|
1565
|
+
entity_id: string;
|
|
1566
|
+
entity_type: string;
|
|
1567
|
+
entity_creator_id?: string;
|
|
1568
|
+
reason?: string;
|
|
1569
|
+
custom?: Record<string, any>;
|
|
1570
|
+
moderation_payload?: ModerationPayload;
|
|
1571
|
+
}
|
|
1572
|
+
export interface FlagResponse {
|
|
1573
|
+
duration: string;
|
|
1574
|
+
item_id: string;
|
|
1575
|
+
}
|
|
1576
|
+
export interface FollowBatchRequest {
|
|
1577
|
+
follows: FollowRequest[];
|
|
1578
|
+
}
|
|
1579
|
+
export interface FollowBatchResponse {
|
|
1580
|
+
duration: string;
|
|
1581
|
+
follows: FollowResponse[];
|
|
1582
|
+
}
|
|
1583
|
+
export interface FollowCreatedEvent {
|
|
1584
|
+
created_at: Date;
|
|
1585
|
+
fid: string;
|
|
1586
|
+
custom: Record<string, any>;
|
|
1587
|
+
follow: FollowResponse;
|
|
1588
|
+
type: string;
|
|
1589
|
+
received_at?: Date;
|
|
1590
|
+
}
|
|
1591
|
+
export interface FollowDeletedEvent {
|
|
1592
|
+
created_at: Date;
|
|
1593
|
+
fid: string;
|
|
1594
|
+
custom: Record<string, any>;
|
|
1595
|
+
follow: FollowResponse;
|
|
1596
|
+
type: string;
|
|
1597
|
+
received_at?: Date;
|
|
1598
|
+
}
|
|
1599
|
+
export interface FollowRequest {
|
|
1600
|
+
source: string;
|
|
1601
|
+
target: string;
|
|
1602
|
+
push_preference?: 'all' | 'none';
|
|
1603
|
+
custom?: Record<string, any>;
|
|
1604
|
+
}
|
|
1605
|
+
export interface FollowResponse {
|
|
1606
|
+
created_at: Date;
|
|
1607
|
+
follower_role: string;
|
|
1608
|
+
push_preference: 'all' | 'none';
|
|
1609
|
+
status: 'accepted' | 'pending' | 'rejected';
|
|
1610
|
+
updated_at: Date;
|
|
1611
|
+
source_feed: FeedResponse;
|
|
1612
|
+
target_feed: FeedResponse;
|
|
1613
|
+
request_accepted_at?: Date;
|
|
1614
|
+
request_rejected_at?: Date;
|
|
1615
|
+
custom?: Record<string, any>;
|
|
1616
|
+
}
|
|
1617
|
+
export interface FollowUpdatedEvent {
|
|
1618
|
+
created_at: Date;
|
|
1619
|
+
fid: string;
|
|
1620
|
+
custom: Record<string, any>;
|
|
1621
|
+
follow: FollowResponse;
|
|
1622
|
+
type: string;
|
|
1623
|
+
received_at?: Date;
|
|
1624
|
+
}
|
|
1625
|
+
export interface FrameRecordSettings {
|
|
1626
|
+
capture_interval_in_seconds: number;
|
|
1627
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
1628
|
+
quality?: string;
|
|
1629
|
+
}
|
|
1630
|
+
export interface FrameRecordingEgressConfig {
|
|
1631
|
+
capture_interval_in_seconds?: number;
|
|
1632
|
+
storage_name?: string;
|
|
1633
|
+
external_storage?: ExternalStorage;
|
|
1634
|
+
quality?: Quality;
|
|
1635
|
+
}
|
|
1636
|
+
export interface FrameRecordingResponse {
|
|
1637
|
+
status: string;
|
|
1638
|
+
}
|
|
1639
|
+
export interface FrameRecordingSettingsResponse {
|
|
1640
|
+
capture_interval_in_seconds: number;
|
|
1641
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
1642
|
+
quality?: string;
|
|
1643
|
+
}
|
|
1644
|
+
export interface FullUserResponse {
|
|
1645
|
+
banned: boolean;
|
|
1646
|
+
created_at: Date;
|
|
1647
|
+
id: string;
|
|
1648
|
+
invisible: boolean;
|
|
1649
|
+
language: string;
|
|
1650
|
+
online: boolean;
|
|
1651
|
+
role: string;
|
|
1652
|
+
shadow_banned: boolean;
|
|
1653
|
+
total_unread_count: number;
|
|
1654
|
+
unread_channels: number;
|
|
1655
|
+
unread_count: number;
|
|
1656
|
+
unread_threads: number;
|
|
1657
|
+
updated_at: Date;
|
|
1658
|
+
blocked_user_ids: string[];
|
|
1659
|
+
channel_mutes: ChannelMute[];
|
|
1660
|
+
devices: DeviceResponse[];
|
|
1661
|
+
mutes: UserMuteResponse[];
|
|
1662
|
+
teams: string[];
|
|
1663
|
+
custom: Record<string, any>;
|
|
1664
|
+
ban_expires?: Date;
|
|
1665
|
+
deactivated_at?: Date;
|
|
1666
|
+
deleted_at?: Date;
|
|
1667
|
+
image?: string;
|
|
1668
|
+
last_active?: Date;
|
|
1669
|
+
name?: string;
|
|
1670
|
+
revoke_tokens_issued_before?: Date;
|
|
1671
|
+
latest_hidden_channels?: string[];
|
|
1672
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
1673
|
+
teams_role?: Record<string, string>;
|
|
1674
|
+
}
|
|
1675
|
+
export interface GeofenceSettings {
|
|
1676
|
+
names: string[];
|
|
1677
|
+
}
|
|
1678
|
+
export interface GeofenceSettingsResponse {
|
|
1679
|
+
names: string[];
|
|
1680
|
+
}
|
|
1681
|
+
export interface GetActivityResponse {
|
|
1682
|
+
duration: string;
|
|
1683
|
+
activity: ActivityResponse;
|
|
1684
|
+
}
|
|
1685
|
+
export interface GetApplicationResponse {
|
|
1686
|
+
duration: string;
|
|
1687
|
+
app: AppResponseFields;
|
|
1688
|
+
}
|
|
1689
|
+
export interface GetBlockedUsersResponse {
|
|
1690
|
+
duration: string;
|
|
1691
|
+
blocks: BlockedUserResponse[];
|
|
1692
|
+
}
|
|
1693
|
+
export interface GetCommentRepliesResponse {
|
|
1694
|
+
duration: string;
|
|
1695
|
+
comments: ThreadedCommentResponse[];
|
|
1696
|
+
next?: string;
|
|
1697
|
+
prev?: string;
|
|
1698
|
+
}
|
|
1699
|
+
export interface GetCommentResponse {
|
|
1700
|
+
duration: string;
|
|
1701
|
+
comment: CommentResponse;
|
|
1702
|
+
}
|
|
1703
|
+
export interface GetCommentsResponse {
|
|
1704
|
+
duration: string;
|
|
1705
|
+
comments: ThreadedCommentResponse[];
|
|
1706
|
+
next?: string;
|
|
1707
|
+
prev?: string;
|
|
1708
|
+
}
|
|
1709
|
+
export interface GetConfigResponse {
|
|
1710
|
+
duration: string;
|
|
1711
|
+
config?: ConfigResponse;
|
|
1712
|
+
}
|
|
1713
|
+
export interface GetFollowSuggestionsResponse {
|
|
1714
|
+
duration: string;
|
|
1715
|
+
suggestions: FeedResponse[];
|
|
1716
|
+
}
|
|
1717
|
+
export interface GetOGResponse {
|
|
1718
|
+
duration: string;
|
|
1719
|
+
custom: Record<string, any>;
|
|
1720
|
+
asset_url?: string;
|
|
1721
|
+
author_icon?: string;
|
|
1722
|
+
author_link?: string;
|
|
1723
|
+
author_name?: string;
|
|
1724
|
+
color?: string;
|
|
1725
|
+
fallback?: string;
|
|
1726
|
+
footer?: string;
|
|
1727
|
+
footer_icon?: string;
|
|
1728
|
+
image_url?: string;
|
|
1729
|
+
og_scrape_url?: string;
|
|
1730
|
+
original_height?: number;
|
|
1731
|
+
original_width?: number;
|
|
1732
|
+
pretext?: string;
|
|
1733
|
+
text?: string;
|
|
1734
|
+
thumb_url?: string;
|
|
1735
|
+
title?: string;
|
|
1736
|
+
title_link?: string;
|
|
1737
|
+
type?: string;
|
|
1738
|
+
actions?: Action[];
|
|
1739
|
+
fields?: Field[];
|
|
1740
|
+
giphy?: Images;
|
|
1741
|
+
}
|
|
1742
|
+
export interface GetOrCreateFeedRequest {
|
|
1743
|
+
limit?: number;
|
|
1744
|
+
next?: string;
|
|
1745
|
+
prev?: string;
|
|
1746
|
+
view?: string;
|
|
1747
|
+
watch?: boolean;
|
|
1748
|
+
activity_selector_options?: Record<string, any>;
|
|
1749
|
+
data?: FeedInput;
|
|
1750
|
+
external_ranking?: Record<string, any>;
|
|
1751
|
+
filter?: Record<string, any>;
|
|
1752
|
+
followers_pagination?: PagerRequest;
|
|
1753
|
+
following_pagination?: PagerRequest;
|
|
1754
|
+
interest_weights?: Record<string, number>;
|
|
1755
|
+
member_pagination?: PagerRequest;
|
|
1756
|
+
}
|
|
1757
|
+
export interface GetOrCreateFeedResponse {
|
|
1758
|
+
created: boolean;
|
|
1759
|
+
duration: string;
|
|
1760
|
+
activities: ActivityResponse[];
|
|
1761
|
+
aggregated_activities: AggregatedActivityResponse[];
|
|
1762
|
+
followers: FollowResponse[];
|
|
1763
|
+
following: FollowResponse[];
|
|
1764
|
+
members: FeedMemberResponse[];
|
|
1765
|
+
own_capabilities: FeedOwnCapability[];
|
|
1766
|
+
pinned_activities: ActivityPinResponse[];
|
|
1767
|
+
feed: FeedResponse;
|
|
1768
|
+
next?: string;
|
|
1769
|
+
prev?: string;
|
|
1770
|
+
own_follows?: FollowResponse[];
|
|
1771
|
+
followers_pagination?: PagerResponse;
|
|
1772
|
+
following_pagination?: PagerResponse;
|
|
1773
|
+
member_pagination?: PagerResponse;
|
|
1774
|
+
notification_status?: NotificationStatusResponse;
|
|
1775
|
+
own_membership?: FeedMemberResponse;
|
|
1776
|
+
}
|
|
1777
|
+
export interface GoogleVisionConfig {
|
|
1778
|
+
enabled?: boolean;
|
|
1779
|
+
}
|
|
1780
|
+
export interface HLSEgressConfig {
|
|
1781
|
+
playlist_url?: string;
|
|
1782
|
+
start_unix_nano?: number;
|
|
1783
|
+
qualities?: Quality[];
|
|
1784
|
+
composite_app_settings?: CompositeAppSettings;
|
|
1785
|
+
}
|
|
1786
|
+
export interface HLSSettings {
|
|
1787
|
+
auto_on: boolean;
|
|
1788
|
+
enabled: boolean;
|
|
1789
|
+
quality_tracks: string[];
|
|
1790
|
+
layout?: LayoutSettings;
|
|
1791
|
+
}
|
|
1792
|
+
export interface HLSSettingsResponse {
|
|
1793
|
+
auto_on: boolean;
|
|
1794
|
+
enabled: boolean;
|
|
1795
|
+
quality_tracks: string[];
|
|
1796
|
+
}
|
|
1797
|
+
export interface HarmConfig {
|
|
1798
|
+
severity: number;
|
|
1799
|
+
action_sequences: ActionSequence[];
|
|
1800
|
+
}
|
|
1801
|
+
export interface HealthCheckEvent {
|
|
1802
|
+
connection_id: string;
|
|
1803
|
+
created_at: Date;
|
|
1804
|
+
custom: Record<string, any>;
|
|
1805
|
+
type: string;
|
|
1806
|
+
cid?: string;
|
|
1807
|
+
received_at?: Date;
|
|
1808
|
+
me?: OwnUserResponse;
|
|
1809
|
+
}
|
|
1810
|
+
export interface ImageData {
|
|
1811
|
+
frames: string;
|
|
1812
|
+
height: string;
|
|
1813
|
+
size: string;
|
|
1814
|
+
url: string;
|
|
1815
|
+
width: string;
|
|
1816
|
+
}
|
|
1817
|
+
export interface ImageSize {
|
|
1818
|
+
crop?: 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
1819
|
+
height?: number;
|
|
1820
|
+
resize?: 'clip' | 'crop' | 'scale' | 'fill';
|
|
1821
|
+
width?: number;
|
|
1822
|
+
}
|
|
1823
|
+
export interface ImageUploadRequest {
|
|
1824
|
+
file?: string;
|
|
1825
|
+
upload_sizes?: ImageSize[];
|
|
1826
|
+
user?: OnlyUserID;
|
|
1827
|
+
}
|
|
1828
|
+
export interface ImageUploadResponse {
|
|
1829
|
+
duration: string;
|
|
1830
|
+
file?: string;
|
|
1831
|
+
thumb_url?: string;
|
|
1832
|
+
upload_sizes?: ImageSize[];
|
|
1833
|
+
}
|
|
1834
|
+
export interface Images {
|
|
1835
|
+
fixed_height: ImageData;
|
|
1836
|
+
fixed_height_downsampled: ImageData;
|
|
1837
|
+
fixed_height_still: ImageData;
|
|
1838
|
+
fixed_width: ImageData;
|
|
1839
|
+
fixed_width_downsampled: ImageData;
|
|
1840
|
+
fixed_width_still: ImageData;
|
|
1841
|
+
original: ImageData;
|
|
1842
|
+
}
|
|
1843
|
+
export interface LabelThresholds {
|
|
1844
|
+
block?: number;
|
|
1845
|
+
flag?: number;
|
|
1846
|
+
}
|
|
1847
|
+
export interface LayoutSettings {
|
|
1848
|
+
external_app_url: string;
|
|
1849
|
+
external_css_url: string;
|
|
1850
|
+
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
1851
|
+
detect_orientation?: boolean;
|
|
1852
|
+
options?: Record<string, any>;
|
|
1853
|
+
}
|
|
1854
|
+
export interface LimitsSettings {
|
|
1855
|
+
max_participants_exclude_roles: string[];
|
|
1856
|
+
max_duration_seconds?: number;
|
|
1857
|
+
max_participants?: number;
|
|
1858
|
+
max_participants_exclude_owner?: boolean;
|
|
1859
|
+
}
|
|
1860
|
+
export interface LimitsSettingsResponse {
|
|
1861
|
+
max_participants_exclude_roles: string[];
|
|
1862
|
+
max_duration_seconds?: number;
|
|
1863
|
+
max_participants?: number;
|
|
1864
|
+
max_participants_exclude_owner?: boolean;
|
|
1865
|
+
}
|
|
1866
|
+
export interface ListBlockListResponse {
|
|
1867
|
+
duration: string;
|
|
1868
|
+
blocklists: BlockListResponse[];
|
|
1869
|
+
}
|
|
1870
|
+
export interface ListDevicesResponse {
|
|
1871
|
+
duration: string;
|
|
1872
|
+
devices: DeviceResponse[];
|
|
1873
|
+
}
|
|
1874
|
+
export interface MarkActivityRequest {
|
|
1875
|
+
mark_all_read?: boolean;
|
|
1876
|
+
mark_all_seen?: boolean;
|
|
1877
|
+
mark_read?: string[];
|
|
1878
|
+
mark_watched?: string[];
|
|
1879
|
+
}
|
|
1880
|
+
export interface MarkReviewedRequest {
|
|
1881
|
+
content_to_mark_as_reviewed_limit?: number;
|
|
1882
|
+
disable_marking_content_as_reviewed?: boolean;
|
|
1883
|
+
}
|
|
1884
|
+
export interface MemberLookup {
|
|
1885
|
+
limit: number;
|
|
1886
|
+
}
|
|
1887
|
+
export interface Message {
|
|
1888
|
+
cid: string;
|
|
1889
|
+
created_at: Date;
|
|
1890
|
+
deleted_reply_count: number;
|
|
1891
|
+
html: string;
|
|
1892
|
+
id: string;
|
|
1893
|
+
pinned: boolean;
|
|
1894
|
+
reply_count: number;
|
|
1895
|
+
shadowed: boolean;
|
|
1896
|
+
silent: boolean;
|
|
1897
|
+
text: string;
|
|
1898
|
+
type: string;
|
|
1899
|
+
updated_at: Date;
|
|
1900
|
+
attachments: Attachment[];
|
|
1901
|
+
latest_reactions: Reaction[];
|
|
1902
|
+
mentioned_users: User[];
|
|
1903
|
+
own_reactions: Reaction[];
|
|
1904
|
+
restricted_visibility: string[];
|
|
1905
|
+
custom: Record<string, any>;
|
|
1906
|
+
reaction_counts: Record<string, number>;
|
|
1907
|
+
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
1908
|
+
reaction_scores: Record<string, number>;
|
|
1909
|
+
before_message_send_failed?: boolean;
|
|
1910
|
+
command?: string;
|
|
1911
|
+
deleted_at?: Date;
|
|
1912
|
+
message_text_updated_at?: Date;
|
|
1913
|
+
mml?: string;
|
|
1914
|
+
parent_id?: string;
|
|
1915
|
+
pin_expires?: Date;
|
|
1916
|
+
pinned_at?: Date;
|
|
1917
|
+
poll_id?: string;
|
|
1918
|
+
quoted_message_id?: string;
|
|
1919
|
+
show_in_channel?: boolean;
|
|
1920
|
+
thread_participants?: User[];
|
|
1921
|
+
i18n?: Record<string, string>;
|
|
1922
|
+
image_labels?: Record<string, string[]>;
|
|
1923
|
+
moderation?: ModerationV2Response;
|
|
1924
|
+
pinned_by?: User;
|
|
1925
|
+
poll?: Poll;
|
|
1926
|
+
quoted_message?: Message;
|
|
1927
|
+
reminder?: MessageReminder;
|
|
1928
|
+
shared_location?: SharedLocation;
|
|
1929
|
+
user?: User;
|
|
1930
|
+
}
|
|
1931
|
+
export interface MessageReminder {
|
|
1932
|
+
channel_cid: string;
|
|
1933
|
+
created_at: Date;
|
|
1934
|
+
message_id: string;
|
|
1935
|
+
task_id: string;
|
|
1936
|
+
updated_at: Date;
|
|
1937
|
+
user_id: string;
|
|
1938
|
+
remind_at?: Date;
|
|
1939
|
+
channel?: Channel;
|
|
1940
|
+
message?: Message;
|
|
1941
|
+
user?: User;
|
|
1942
|
+
}
|
|
1943
|
+
export interface MessageResponse {
|
|
1944
|
+
cid: string;
|
|
1945
|
+
created_at: Date;
|
|
1946
|
+
deleted_reply_count: number;
|
|
1947
|
+
html: string;
|
|
1948
|
+
id: string;
|
|
1949
|
+
pinned: boolean;
|
|
1950
|
+
reply_count: number;
|
|
1951
|
+
shadowed: boolean;
|
|
1952
|
+
silent: boolean;
|
|
1953
|
+
text: string;
|
|
1954
|
+
type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
|
|
1955
|
+
updated_at: Date;
|
|
1956
|
+
attachments: Attachment[];
|
|
1957
|
+
latest_reactions: ReactionResponse[];
|
|
1958
|
+
mentioned_users: UserResponse[];
|
|
1959
|
+
own_reactions: ReactionResponse[];
|
|
1960
|
+
restricted_visibility: string[];
|
|
1961
|
+
custom: Record<string, any>;
|
|
1962
|
+
reaction_counts: Record<string, number>;
|
|
1963
|
+
reaction_scores: Record<string, number>;
|
|
1964
|
+
user: UserResponse;
|
|
1965
|
+
command?: string;
|
|
1966
|
+
deleted_at?: Date;
|
|
1967
|
+
message_text_updated_at?: Date;
|
|
1968
|
+
mml?: string;
|
|
1969
|
+
parent_id?: string;
|
|
1970
|
+
pin_expires?: Date;
|
|
1971
|
+
pinned_at?: Date;
|
|
1972
|
+
poll_id?: string;
|
|
1973
|
+
quoted_message_id?: string;
|
|
1974
|
+
show_in_channel?: boolean;
|
|
1975
|
+
thread_participants?: UserResponse[];
|
|
1976
|
+
draft?: DraftResponse;
|
|
1977
|
+
i18n?: Record<string, string>;
|
|
1978
|
+
image_labels?: Record<string, string[]>;
|
|
1979
|
+
moderation?: ModerationV2Response;
|
|
1980
|
+
pinned_by?: UserResponse;
|
|
1981
|
+
poll?: PollResponseData;
|
|
1982
|
+
quoted_message?: MessageResponse;
|
|
1983
|
+
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
1984
|
+
reminder?: ReminderResponseData;
|
|
1985
|
+
shared_location?: SharedLocationResponseData;
|
|
1986
|
+
}
|
|
1987
|
+
export interface ModerationActionConfig {
|
|
1988
|
+
action: string;
|
|
1989
|
+
description: string;
|
|
1990
|
+
entity_type: string;
|
|
1991
|
+
icon: string;
|
|
1992
|
+
order: number;
|
|
1993
|
+
custom: Record<string, any>;
|
|
1994
|
+
}
|
|
1995
|
+
export interface ModerationCustomActionEvent {
|
|
1996
|
+
created_at: Date;
|
|
1997
|
+
type: string;
|
|
1998
|
+
item?: ReviewQueueItem;
|
|
1999
|
+
message?: Message;
|
|
2000
|
+
user?: User;
|
|
2001
|
+
}
|
|
2002
|
+
export interface ModerationFlaggedEvent {
|
|
2003
|
+
created_at: Date;
|
|
2004
|
+
type: string;
|
|
2005
|
+
item?: string;
|
|
2006
|
+
object_id?: string;
|
|
2007
|
+
user?: User;
|
|
2008
|
+
}
|
|
2009
|
+
export interface ModerationMarkReviewedEvent {
|
|
2010
|
+
created_at: Date;
|
|
2011
|
+
type: string;
|
|
2012
|
+
item?: ReviewQueueItem;
|
|
2013
|
+
message?: Message;
|
|
2014
|
+
user?: User;
|
|
2015
|
+
}
|
|
2016
|
+
export interface ModerationPayload {
|
|
2017
|
+
images?: string[];
|
|
2018
|
+
texts?: string[];
|
|
2019
|
+
videos?: string[];
|
|
2020
|
+
custom?: Record<string, any>;
|
|
2021
|
+
}
|
|
2022
|
+
export interface ModerationV2Response {
|
|
2023
|
+
action: string;
|
|
2024
|
+
original_text: string;
|
|
2025
|
+
blocklist_matched?: string;
|
|
2026
|
+
platform_circumvented?: boolean;
|
|
2027
|
+
semantic_filter_matched?: string;
|
|
2028
|
+
image_harms?: string[];
|
|
2029
|
+
text_harms?: string[];
|
|
2030
|
+
}
|
|
2031
|
+
export interface MuteRequest {
|
|
2032
|
+
target_ids: string[];
|
|
2033
|
+
timeout?: number;
|
|
2034
|
+
}
|
|
2035
|
+
export interface MuteResponse {
|
|
2036
|
+
duration: string;
|
|
2037
|
+
mutes?: UserMute[];
|
|
2038
|
+
non_existing_users?: string[];
|
|
2039
|
+
own_user?: OwnUser;
|
|
2040
|
+
}
|
|
2041
|
+
export interface NoiseCancellationSettings {
|
|
2042
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
2043
|
+
}
|
|
2044
|
+
export interface NotificationConfig {
|
|
2045
|
+
track_read?: boolean;
|
|
2046
|
+
track_seen?: boolean;
|
|
2047
|
+
}
|
|
2048
|
+
export interface NotificationSettings {
|
|
2049
|
+
enabled: boolean;
|
|
2050
|
+
call_live_started: EventNotificationSettings;
|
|
2051
|
+
call_missed: EventNotificationSettings;
|
|
2052
|
+
call_notification: EventNotificationSettings;
|
|
2053
|
+
call_ring: EventNotificationSettings;
|
|
2054
|
+
session_started: EventNotificationSettings;
|
|
2055
|
+
}
|
|
2056
|
+
export interface NotificationStatusResponse {
|
|
2057
|
+
unread: number;
|
|
2058
|
+
unseen: number;
|
|
2059
|
+
last_seen_at?: Date;
|
|
2060
|
+
read_activities?: string[];
|
|
2061
|
+
}
|
|
2062
|
+
export interface NullTime {
|
|
2063
|
+
}
|
|
2064
|
+
export interface OCRRule {
|
|
2065
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
2066
|
+
label: string;
|
|
2067
|
+
}
|
|
2068
|
+
export interface OnlyUserID {
|
|
2069
|
+
id: string;
|
|
2070
|
+
}
|
|
2071
|
+
export interface OwnUser {
|
|
2072
|
+
banned: boolean;
|
|
2073
|
+
created_at: Date;
|
|
2074
|
+
id: string;
|
|
2075
|
+
language: string;
|
|
2076
|
+
online: boolean;
|
|
2077
|
+
role: string;
|
|
2078
|
+
total_unread_count: number;
|
|
2079
|
+
unread_channels: number;
|
|
2080
|
+
unread_count: number;
|
|
2081
|
+
unread_threads: number;
|
|
2082
|
+
updated_at: Date;
|
|
2083
|
+
channel_mutes: ChannelMute[];
|
|
2084
|
+
devices: Device[];
|
|
2085
|
+
mutes: UserMute[];
|
|
2086
|
+
custom: Record<string, any>;
|
|
2087
|
+
deactivated_at?: Date;
|
|
2088
|
+
deleted_at?: Date;
|
|
2089
|
+
invisible?: boolean;
|
|
2090
|
+
last_active?: Date;
|
|
2091
|
+
last_engaged_at?: Date;
|
|
2092
|
+
blocked_user_ids?: string[];
|
|
2093
|
+
latest_hidden_channels?: string[];
|
|
2094
|
+
teams?: string[];
|
|
2095
|
+
privacy_settings?: PrivacySettings;
|
|
2096
|
+
push_preferences?: PushPreferences;
|
|
2097
|
+
teams_role?: Record<string, string>;
|
|
2098
|
+
}
|
|
2099
|
+
export interface OwnUserResponse {
|
|
2100
|
+
banned: boolean;
|
|
2101
|
+
created_at: Date;
|
|
2102
|
+
id: string;
|
|
2103
|
+
invisible: boolean;
|
|
2104
|
+
language: string;
|
|
2105
|
+
online: boolean;
|
|
2106
|
+
role: string;
|
|
2107
|
+
total_unread_count: number;
|
|
2108
|
+
unread_channels: number;
|
|
2109
|
+
unread_count: number;
|
|
2110
|
+
unread_threads: number;
|
|
2111
|
+
updated_at: Date;
|
|
2112
|
+
channel_mutes: ChannelMute[];
|
|
2113
|
+
devices: DeviceResponse[];
|
|
2114
|
+
mutes: UserMuteResponse[];
|
|
2115
|
+
teams: string[];
|
|
2116
|
+
custom: Record<string, any>;
|
|
2117
|
+
deactivated_at?: Date;
|
|
2118
|
+
deleted_at?: Date;
|
|
2119
|
+
image?: string;
|
|
2120
|
+
last_active?: Date;
|
|
2121
|
+
name?: string;
|
|
2122
|
+
revoke_tokens_issued_before?: Date;
|
|
2123
|
+
blocked_user_ids?: string[];
|
|
2124
|
+
latest_hidden_channels?: string[];
|
|
2125
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
2126
|
+
push_preferences?: PushPreferences;
|
|
2127
|
+
teams_role?: Record<string, string>;
|
|
2128
|
+
}
|
|
2129
|
+
export interface PagerRequest {
|
|
2130
|
+
limit?: number;
|
|
2131
|
+
next?: string;
|
|
2132
|
+
prev?: string;
|
|
2133
|
+
}
|
|
2134
|
+
export interface PagerResponse {
|
|
2135
|
+
next?: string;
|
|
2136
|
+
prev?: string;
|
|
2137
|
+
}
|
|
2138
|
+
export interface PinActivityRequest {
|
|
2139
|
+
}
|
|
2140
|
+
export interface PinActivityResponse {
|
|
2141
|
+
created_at: Date;
|
|
2142
|
+
duration: string;
|
|
2143
|
+
fid: string;
|
|
2144
|
+
user_id: string;
|
|
2145
|
+
activity: ActivityResponse;
|
|
2146
|
+
}
|
|
2147
|
+
export interface Poll {
|
|
2148
|
+
allow_answers: boolean;
|
|
2149
|
+
allow_user_suggested_options: boolean;
|
|
2150
|
+
answers_count: number;
|
|
2151
|
+
created_at: Date;
|
|
2152
|
+
created_by_id: string;
|
|
2153
|
+
description: string;
|
|
2154
|
+
enforce_unique_vote: boolean;
|
|
2155
|
+
id: string;
|
|
2156
|
+
name: string;
|
|
2157
|
+
updated_at: Date;
|
|
2158
|
+
vote_count: number;
|
|
2159
|
+
latest_answers: PollVote[];
|
|
2160
|
+
options: PollOption[];
|
|
2161
|
+
own_votes: PollVote[];
|
|
2162
|
+
custom: Record<string, any>;
|
|
2163
|
+
latest_votes_by_option: Record<string, PollVote[]>;
|
|
2164
|
+
vote_counts_by_option: Record<string, number>;
|
|
2165
|
+
is_closed?: boolean;
|
|
2166
|
+
max_votes_allowed?: number;
|
|
2167
|
+
voting_visibility?: string;
|
|
2168
|
+
created_by?: User;
|
|
2169
|
+
}
|
|
2170
|
+
export interface PollClosedFeedEvent {
|
|
2171
|
+
created_at: Date;
|
|
2172
|
+
fid: string;
|
|
2173
|
+
custom: Record<string, any>;
|
|
2174
|
+
poll: PollResponseData;
|
|
2175
|
+
type: string;
|
|
2176
|
+
received_at?: Date;
|
|
2177
|
+
}
|
|
2178
|
+
export interface PollDeletedFeedEvent {
|
|
2179
|
+
created_at: Date;
|
|
2180
|
+
fid: string;
|
|
2181
|
+
custom: Record<string, any>;
|
|
2182
|
+
poll: PollResponseData;
|
|
2183
|
+
type: string;
|
|
2184
|
+
received_at?: Date;
|
|
2185
|
+
}
|
|
2186
|
+
export interface PollOption {
|
|
2187
|
+
id: string;
|
|
2188
|
+
text: string;
|
|
2189
|
+
custom: Record<string, any>;
|
|
2190
|
+
}
|
|
2191
|
+
export interface PollOptionInput {
|
|
2192
|
+
text?: string;
|
|
2193
|
+
custom?: Record<string, any>;
|
|
2194
|
+
}
|
|
2195
|
+
export interface PollOptionRequest {
|
|
2196
|
+
id: string;
|
|
2197
|
+
text?: string;
|
|
2198
|
+
custom?: Record<string, any>;
|
|
2199
|
+
}
|
|
2200
|
+
export interface PollOptionResponse {
|
|
2201
|
+
duration: string;
|
|
2202
|
+
poll_option: PollOptionResponseData;
|
|
2203
|
+
}
|
|
2204
|
+
export interface PollOptionResponseData {
|
|
2205
|
+
id: string;
|
|
2206
|
+
text: string;
|
|
2207
|
+
custom: Record<string, any>;
|
|
2208
|
+
}
|
|
2209
|
+
export interface PollResponse {
|
|
2210
|
+
duration: string;
|
|
2211
|
+
poll: PollResponseData;
|
|
2212
|
+
}
|
|
2213
|
+
export interface PollResponseData {
|
|
2214
|
+
allow_answers: boolean;
|
|
2215
|
+
allow_user_suggested_options: boolean;
|
|
2216
|
+
answers_count: number;
|
|
2217
|
+
created_at: Date;
|
|
2218
|
+
created_by_id: string;
|
|
2219
|
+
description: string;
|
|
2220
|
+
enforce_unique_vote: boolean;
|
|
2221
|
+
id: string;
|
|
2222
|
+
name: string;
|
|
2223
|
+
updated_at: Date;
|
|
2224
|
+
vote_count: number;
|
|
2225
|
+
voting_visibility: string;
|
|
2226
|
+
latest_answers: PollVoteResponseData[];
|
|
2227
|
+
options: PollOptionResponseData[];
|
|
2228
|
+
own_votes: PollVoteResponseData[];
|
|
2229
|
+
custom: Record<string, any>;
|
|
2230
|
+
latest_votes_by_option: Record<string, PollVoteResponseData[]>;
|
|
2231
|
+
vote_counts_by_option: Record<string, number>;
|
|
2232
|
+
is_closed?: boolean;
|
|
2233
|
+
max_votes_allowed?: number;
|
|
2234
|
+
created_by?: UserResponse;
|
|
2235
|
+
}
|
|
2236
|
+
export interface PollUpdatedFeedEvent {
|
|
2237
|
+
created_at: Date;
|
|
2238
|
+
fid: string;
|
|
2239
|
+
custom: Record<string, any>;
|
|
2240
|
+
poll: PollResponseData;
|
|
2241
|
+
type: string;
|
|
2242
|
+
received_at?: Date;
|
|
2243
|
+
}
|
|
2244
|
+
export interface PollVote {
|
|
2245
|
+
created_at: Date;
|
|
2246
|
+
id: string;
|
|
2247
|
+
option_id: string;
|
|
2248
|
+
poll_id: string;
|
|
2249
|
+
updated_at: Date;
|
|
2250
|
+
answer_text?: string;
|
|
2251
|
+
is_answer?: boolean;
|
|
2252
|
+
user_id?: string;
|
|
2253
|
+
user?: User;
|
|
2254
|
+
}
|
|
2255
|
+
export interface PollVoteCastedFeedEvent {
|
|
2256
|
+
created_at: Date;
|
|
2257
|
+
fid: string;
|
|
2258
|
+
custom: Record<string, any>;
|
|
2259
|
+
poll: PollResponseData;
|
|
2260
|
+
poll_vote: PollVoteResponseData;
|
|
2261
|
+
type: string;
|
|
2262
|
+
received_at?: Date;
|
|
2263
|
+
}
|
|
2264
|
+
export interface PollVoteChangedFeedEvent {
|
|
2265
|
+
created_at: Date;
|
|
2266
|
+
fid: string;
|
|
2267
|
+
custom: Record<string, any>;
|
|
2268
|
+
poll: PollResponseData;
|
|
2269
|
+
poll_vote: PollVoteResponseData;
|
|
2270
|
+
type: string;
|
|
2271
|
+
received_at?: Date;
|
|
2272
|
+
}
|
|
2273
|
+
export interface PollVoteRemovedFeedEvent {
|
|
2274
|
+
created_at: Date;
|
|
2275
|
+
fid: string;
|
|
2276
|
+
custom: Record<string, any>;
|
|
2277
|
+
poll: PollResponseData;
|
|
2278
|
+
poll_vote: PollVoteResponseData;
|
|
2279
|
+
type: string;
|
|
2280
|
+
received_at?: Date;
|
|
2281
|
+
}
|
|
2282
|
+
export interface PollVoteResponse {
|
|
2283
|
+
duration: string;
|
|
2284
|
+
vote?: PollVoteResponseData;
|
|
2285
|
+
}
|
|
2286
|
+
export interface PollVoteResponseData {
|
|
2287
|
+
created_at: Date;
|
|
2288
|
+
id: string;
|
|
2289
|
+
option_id: string;
|
|
2290
|
+
poll_id: string;
|
|
2291
|
+
updated_at: Date;
|
|
2292
|
+
answer_text?: string;
|
|
2293
|
+
is_answer?: boolean;
|
|
2294
|
+
user_id?: string;
|
|
2295
|
+
user?: UserResponse;
|
|
2296
|
+
}
|
|
2297
|
+
export interface PollVotesResponse {
|
|
2298
|
+
duration: string;
|
|
2299
|
+
votes: PollVoteResponseData[];
|
|
2300
|
+
next?: string;
|
|
2301
|
+
prev?: string;
|
|
2302
|
+
}
|
|
2303
|
+
export interface PrivacySettings {
|
|
2304
|
+
read_receipts?: ReadReceipts;
|
|
2305
|
+
typing_indicators?: TypingIndicators;
|
|
2306
|
+
}
|
|
2307
|
+
export interface PrivacySettingsResponse {
|
|
2308
|
+
read_receipts?: ReadReceiptsResponse;
|
|
2309
|
+
typing_indicators?: TypingIndicatorsResponse;
|
|
2310
|
+
}
|
|
2311
|
+
export interface PushPreferences {
|
|
2312
|
+
call_level?: string;
|
|
2313
|
+
chat_level?: string;
|
|
2314
|
+
disabled_until?: Date;
|
|
2315
|
+
}
|
|
2316
|
+
export interface Quality {
|
|
2317
|
+
bitdepth?: number;
|
|
2318
|
+
framerate?: number;
|
|
2319
|
+
height?: number;
|
|
2320
|
+
name?: string;
|
|
2321
|
+
video_bitrate?: number;
|
|
2322
|
+
width?: number;
|
|
2323
|
+
}
|
|
2324
|
+
export interface QueryActivitiesRequest {
|
|
2325
|
+
limit?: number;
|
|
2326
|
+
next?: string;
|
|
2327
|
+
prev?: string;
|
|
2328
|
+
sort?: SortParamRequest[];
|
|
2329
|
+
filter?: Record<string, any>;
|
|
2330
|
+
}
|
|
2331
|
+
export interface QueryActivitiesResponse {
|
|
2332
|
+
duration: string;
|
|
2333
|
+
activities: ActivityResponse[];
|
|
2334
|
+
next?: string;
|
|
2335
|
+
prev?: string;
|
|
2336
|
+
}
|
|
2337
|
+
export interface QueryActivityReactionsRequest {
|
|
2338
|
+
limit?: number;
|
|
2339
|
+
next?: string;
|
|
2340
|
+
prev?: string;
|
|
2341
|
+
sort?: SortParamRequest[];
|
|
2342
|
+
filter?: Record<string, any>;
|
|
2343
|
+
}
|
|
2344
|
+
export interface QueryActivityReactionsResponse {
|
|
2345
|
+
duration: string;
|
|
2346
|
+
reactions: FeedsReactionResponse[];
|
|
2347
|
+
next?: string;
|
|
2348
|
+
prev?: string;
|
|
2349
|
+
}
|
|
2350
|
+
export interface QueryBookmarkFoldersRequest {
|
|
2351
|
+
limit?: number;
|
|
2352
|
+
next?: string;
|
|
2353
|
+
prev?: string;
|
|
2354
|
+
sort?: SortParamRequest[];
|
|
2355
|
+
filter?: Record<string, any>;
|
|
2356
|
+
}
|
|
2357
|
+
export interface QueryBookmarkFoldersResponse {
|
|
2358
|
+
duration: string;
|
|
2359
|
+
bookmark_folders: BookmarkFolderResponse[];
|
|
2360
|
+
next?: string;
|
|
2361
|
+
prev?: string;
|
|
2362
|
+
}
|
|
2363
|
+
export interface QueryBookmarksRequest {
|
|
2364
|
+
limit?: number;
|
|
2365
|
+
next?: string;
|
|
2366
|
+
prev?: string;
|
|
2367
|
+
sort?: SortParamRequest[];
|
|
2368
|
+
filter?: Record<string, any>;
|
|
2369
|
+
}
|
|
2370
|
+
export interface QueryBookmarksResponse {
|
|
2371
|
+
duration: string;
|
|
2372
|
+
bookmarks: BookmarkResponse[];
|
|
2373
|
+
next?: string;
|
|
2374
|
+
prev?: string;
|
|
2375
|
+
}
|
|
2376
|
+
export interface QueryCommentReactionsRequest {
|
|
2377
|
+
limit?: number;
|
|
2378
|
+
next?: string;
|
|
2379
|
+
prev?: string;
|
|
2380
|
+
sort?: SortParamRequest[];
|
|
2381
|
+
filter?: Record<string, any>;
|
|
2382
|
+
}
|
|
2383
|
+
export interface QueryCommentReactionsResponse {
|
|
2384
|
+
duration: string;
|
|
2385
|
+
reactions: FeedsReactionResponse[];
|
|
2386
|
+
next?: string;
|
|
2387
|
+
prev?: string;
|
|
2388
|
+
}
|
|
2389
|
+
export interface QueryCommentsRequest {
|
|
2390
|
+
filter: Record<string, any>;
|
|
2391
|
+
limit?: number;
|
|
2392
|
+
next?: string;
|
|
2393
|
+
prev?: string;
|
|
2394
|
+
sort?: 'first' | 'last' | 'top' | 'best' | 'controversial';
|
|
2395
|
+
}
|
|
2396
|
+
export interface QueryCommentsResponse {
|
|
2397
|
+
duration: string;
|
|
2398
|
+
comments: CommentResponse[];
|
|
2399
|
+
next?: string;
|
|
2400
|
+
prev?: string;
|
|
2401
|
+
}
|
|
2402
|
+
export interface QueryFeedMembersRequest {
|
|
2403
|
+
limit?: number;
|
|
2404
|
+
next?: string;
|
|
2405
|
+
prev?: string;
|
|
2406
|
+
sort?: SortParamRequest[];
|
|
2407
|
+
filter?: Record<string, any>;
|
|
2408
|
+
}
|
|
2409
|
+
export interface QueryFeedMembersResponse {
|
|
2410
|
+
duration: string;
|
|
2411
|
+
members: FeedMemberResponse[];
|
|
2412
|
+
next?: string;
|
|
2413
|
+
prev?: string;
|
|
2414
|
+
}
|
|
2415
|
+
export interface QueryFeedsRequest {
|
|
2416
|
+
limit?: number;
|
|
2417
|
+
next?: string;
|
|
2418
|
+
prev?: string;
|
|
2419
|
+
watch?: boolean;
|
|
2420
|
+
sort?: SortParamRequest[];
|
|
2421
|
+
filter?: Record<string, any>;
|
|
2422
|
+
}
|
|
2423
|
+
export interface QueryFeedsResponse {
|
|
2424
|
+
duration: string;
|
|
2425
|
+
feeds: FeedResponse[];
|
|
2426
|
+
next?: string;
|
|
2427
|
+
prev?: string;
|
|
2428
|
+
}
|
|
2429
|
+
export interface QueryFollowsRequest {
|
|
2430
|
+
limit?: number;
|
|
2431
|
+
next?: string;
|
|
2432
|
+
prev?: string;
|
|
2433
|
+
sort?: SortParamRequest[];
|
|
2434
|
+
filter?: Record<string, any>;
|
|
2435
|
+
}
|
|
2436
|
+
export interface QueryFollowsResponse {
|
|
2437
|
+
duration: string;
|
|
2438
|
+
follows: FollowResponse[];
|
|
2439
|
+
next?: string;
|
|
2440
|
+
prev?: string;
|
|
2441
|
+
}
|
|
2442
|
+
export interface QueryModerationConfigsRequest {
|
|
2443
|
+
limit?: number;
|
|
2444
|
+
next?: string;
|
|
2445
|
+
prev?: string;
|
|
2446
|
+
sort?: SortParamRequest[];
|
|
2447
|
+
filter?: Record<string, any>;
|
|
2448
|
+
}
|
|
2449
|
+
export interface QueryModerationConfigsResponse {
|
|
2450
|
+
duration: string;
|
|
2451
|
+
configs: ConfigResponse[];
|
|
2452
|
+
next?: string;
|
|
2453
|
+
prev?: string;
|
|
2454
|
+
}
|
|
2455
|
+
export interface QueryPollVotesRequest {
|
|
2456
|
+
limit?: number;
|
|
2457
|
+
next?: string;
|
|
2458
|
+
prev?: string;
|
|
2459
|
+
sort?: SortParamRequest[];
|
|
2460
|
+
filter?: Record<string, any>;
|
|
2461
|
+
}
|
|
2462
|
+
export interface QueryPollsRequest {
|
|
2463
|
+
limit?: number;
|
|
2464
|
+
next?: string;
|
|
2465
|
+
prev?: string;
|
|
2466
|
+
sort?: SortParamRequest[];
|
|
2467
|
+
filter?: Record<string, any>;
|
|
2468
|
+
}
|
|
2469
|
+
export interface QueryPollsResponse {
|
|
2470
|
+
duration: string;
|
|
2471
|
+
polls: PollResponseData[];
|
|
2472
|
+
next?: string;
|
|
2473
|
+
prev?: string;
|
|
2474
|
+
}
|
|
2475
|
+
export interface QueryReviewQueueRequest {
|
|
2476
|
+
limit?: number;
|
|
2477
|
+
lock_count?: number;
|
|
2478
|
+
lock_duration?: number;
|
|
2479
|
+
lock_items?: boolean;
|
|
2480
|
+
next?: string;
|
|
2481
|
+
prev?: string;
|
|
2482
|
+
stats_only?: boolean;
|
|
2483
|
+
sort?: SortParamRequest[];
|
|
2484
|
+
filter?: Record<string, any>;
|
|
2485
|
+
}
|
|
2486
|
+
export interface QueryReviewQueueResponse {
|
|
2487
|
+
duration: string;
|
|
2488
|
+
items: ReviewQueueItemResponse[];
|
|
2489
|
+
action_config: Record<string, ModerationActionConfig[]>;
|
|
2490
|
+
stats: Record<string, any>;
|
|
2491
|
+
next?: string;
|
|
2492
|
+
prev?: string;
|
|
2493
|
+
}
|
|
2494
|
+
export interface QueryUsersPayload {
|
|
2495
|
+
filter_conditions: Record<string, any>;
|
|
2496
|
+
include_deactivated_users?: boolean;
|
|
2497
|
+
limit?: number;
|
|
2498
|
+
offset?: number;
|
|
2499
|
+
presence?: boolean;
|
|
2500
|
+
sort?: SortParamRequest[];
|
|
2501
|
+
}
|
|
2502
|
+
export interface QueryUsersResponse {
|
|
2503
|
+
duration: string;
|
|
2504
|
+
users: FullUserResponse[];
|
|
2505
|
+
}
|
|
2506
|
+
export interface RTMPEgressConfig {
|
|
2507
|
+
rtmp_location?: string;
|
|
2508
|
+
composite_app_settings?: CompositeAppSettings;
|
|
2509
|
+
quality?: Quality;
|
|
2510
|
+
}
|
|
2511
|
+
export interface RTMPIngress {
|
|
2512
|
+
address: string;
|
|
2513
|
+
}
|
|
2514
|
+
export interface RTMPLocation {
|
|
2515
|
+
name: string;
|
|
2516
|
+
stream_key: string;
|
|
2517
|
+
stream_url: string;
|
|
2518
|
+
}
|
|
2519
|
+
export interface RTMPSettings {
|
|
2520
|
+
enabled: boolean;
|
|
2521
|
+
quality_name?: string;
|
|
2522
|
+
layout?: LayoutSettings;
|
|
2523
|
+
location?: RTMPLocation;
|
|
2524
|
+
}
|
|
2525
|
+
export interface RTMPSettingsResponse {
|
|
2526
|
+
enabled: boolean;
|
|
2527
|
+
quality: string;
|
|
2528
|
+
}
|
|
2529
|
+
export interface Reaction {
|
|
2530
|
+
created_at: Date;
|
|
2531
|
+
message_id: string;
|
|
2532
|
+
score: number;
|
|
2533
|
+
type: string;
|
|
2534
|
+
updated_at: Date;
|
|
2535
|
+
custom: Record<string, any>;
|
|
2536
|
+
user_id?: string;
|
|
2537
|
+
user?: User;
|
|
2538
|
+
}
|
|
2539
|
+
export interface ReactionGroupResponse {
|
|
2540
|
+
count: number;
|
|
2541
|
+
first_reaction_at: Date;
|
|
2542
|
+
last_reaction_at: Date;
|
|
2543
|
+
sum_scores: number;
|
|
2544
|
+
}
|
|
2545
|
+
export interface ReactionResponse {
|
|
2546
|
+
created_at: Date;
|
|
2547
|
+
message_id: string;
|
|
2548
|
+
score: number;
|
|
2549
|
+
type: string;
|
|
2550
|
+
updated_at: Date;
|
|
2551
|
+
user_id: string;
|
|
2552
|
+
custom: Record<string, any>;
|
|
2553
|
+
user: UserResponse;
|
|
2554
|
+
}
|
|
2555
|
+
export interface ReadReceipts {
|
|
2556
|
+
enabled: boolean;
|
|
2557
|
+
}
|
|
2558
|
+
export interface ReadReceiptsResponse {
|
|
2559
|
+
enabled: boolean;
|
|
2560
|
+
}
|
|
2561
|
+
export interface RecordSettings {
|
|
2562
|
+
mode: string;
|
|
2563
|
+
audio_only?: boolean;
|
|
2564
|
+
quality?: string;
|
|
2565
|
+
layout?: LayoutSettings;
|
|
2566
|
+
}
|
|
2567
|
+
export interface RecordSettingsResponse {
|
|
2568
|
+
audio_only: boolean;
|
|
2569
|
+
mode: string;
|
|
2570
|
+
quality: string;
|
|
2571
|
+
}
|
|
2572
|
+
export interface RecordingEgressConfig {
|
|
2573
|
+
audio_only?: boolean;
|
|
2574
|
+
storage_name?: string;
|
|
2575
|
+
composite_app_settings?: CompositeAppSettings;
|
|
2576
|
+
external_storage?: ExternalStorage;
|
|
2577
|
+
quality?: Quality;
|
|
2578
|
+
video_orientation_hint?: VideoOrientation;
|
|
2579
|
+
}
|
|
2580
|
+
export interface RejectFeedMemberInviteRequest {
|
|
2581
|
+
}
|
|
2582
|
+
export interface RejectFeedMemberInviteResponse {
|
|
2583
|
+
duration: string;
|
|
2584
|
+
member: FeedMemberResponse;
|
|
2585
|
+
}
|
|
2586
|
+
export interface RejectFollowRequest {
|
|
2587
|
+
source_fid: string;
|
|
2588
|
+
target_fid: string;
|
|
2589
|
+
}
|
|
2590
|
+
export interface RejectFollowResponse {
|
|
2591
|
+
duration: string;
|
|
2592
|
+
follow: FollowResponse;
|
|
2593
|
+
}
|
|
2594
|
+
export interface ReminderResponseData {
|
|
2595
|
+
channel_cid: string;
|
|
2596
|
+
created_at: Date;
|
|
2597
|
+
message_id: string;
|
|
2598
|
+
updated_at: Date;
|
|
2599
|
+
user_id: string;
|
|
2600
|
+
remind_at?: Date;
|
|
2601
|
+
channel?: ChannelResponse;
|
|
2602
|
+
message?: Message;
|
|
2603
|
+
user?: User;
|
|
2604
|
+
}
|
|
2605
|
+
export interface RepliesMeta {
|
|
2606
|
+
depth_truncated: boolean;
|
|
2607
|
+
has_more: boolean;
|
|
2608
|
+
remaining: number;
|
|
2609
|
+
next_cursor?: string;
|
|
2610
|
+
}
|
|
2611
|
+
export interface Response {
|
|
2612
|
+
duration: string;
|
|
2613
|
+
}
|
|
2614
|
+
export interface RestoreActionRequest {
|
|
2615
|
+
}
|
|
2616
|
+
export interface ReviewQueueItem {
|
|
2617
|
+
ai_text_severity: string;
|
|
2618
|
+
bounce_count: number;
|
|
2619
|
+
config_key: string;
|
|
2620
|
+
content_changed: boolean;
|
|
2621
|
+
created_at: Date;
|
|
2622
|
+
entity_id: string;
|
|
2623
|
+
entity_type: string;
|
|
2624
|
+
flags_count: number;
|
|
2625
|
+
has_image: boolean;
|
|
2626
|
+
has_text: boolean;
|
|
2627
|
+
has_video: boolean;
|
|
2628
|
+
id: string;
|
|
2629
|
+
moderation_payload_hash: string;
|
|
2630
|
+
recommended_action: string;
|
|
2631
|
+
reviewed_by: string;
|
|
2632
|
+
severity: number;
|
|
2633
|
+
status: string;
|
|
2634
|
+
updated_at: Date;
|
|
2635
|
+
actions: ActionLog[];
|
|
2636
|
+
bans: Ban[];
|
|
2637
|
+
flags: Flag[];
|
|
2638
|
+
languages: string[];
|
|
2639
|
+
teams: string[];
|
|
2640
|
+
completed_at: NullTime;
|
|
2641
|
+
reviewed_at: NullTime;
|
|
2642
|
+
activity?: EnrichedActivity;
|
|
2643
|
+
assigned_to?: User;
|
|
2644
|
+
call?: Call;
|
|
2645
|
+
entity_creator?: EntityCreator;
|
|
2646
|
+
feeds_v2_activity?: EnrichedActivity;
|
|
2647
|
+
feeds_v2_reaction?: Reaction;
|
|
2648
|
+
message?: Message;
|
|
2649
|
+
moderation_payload?: ModerationPayload;
|
|
2650
|
+
reaction?: Reaction;
|
|
2651
|
+
}
|
|
2652
|
+
export interface ReviewQueueItemResponse {
|
|
2653
|
+
ai_text_severity: string;
|
|
2654
|
+
created_at: Date;
|
|
2655
|
+
entity_id: string;
|
|
2656
|
+
entity_type: string;
|
|
2657
|
+
flags_count: number;
|
|
2658
|
+
id: string;
|
|
2659
|
+
recommended_action: string;
|
|
2660
|
+
reviewed_by: string;
|
|
2661
|
+
severity: number;
|
|
2662
|
+
status: string;
|
|
2663
|
+
updated_at: Date;
|
|
2664
|
+
actions: ActionLogResponse[];
|
|
2665
|
+
bans: Ban[];
|
|
2666
|
+
flags: FlagResponse[];
|
|
2667
|
+
languages: string[];
|
|
2668
|
+
completed_at?: Date;
|
|
2669
|
+
config_key?: string;
|
|
2670
|
+
entity_creator_id?: string;
|
|
2671
|
+
reviewed_at?: Date;
|
|
2672
|
+
teams?: string[];
|
|
2673
|
+
activity?: EnrichedActivity;
|
|
2674
|
+
assigned_to?: UserResponse;
|
|
2675
|
+
call?: CallResponse;
|
|
2676
|
+
entity_creator?: EntityCreatorResponse;
|
|
2677
|
+
feeds_v2_activity?: EnrichedActivity;
|
|
2678
|
+
feeds_v2_reaction?: Reaction;
|
|
2679
|
+
message?: MessageResponse;
|
|
2680
|
+
moderation_payload?: ModerationPayload;
|
|
2681
|
+
reaction?: Reaction;
|
|
2682
|
+
}
|
|
2683
|
+
export interface RingSettings {
|
|
2684
|
+
auto_cancel_timeout_ms: number;
|
|
2685
|
+
incoming_call_timeout_ms: number;
|
|
2686
|
+
missed_call_timeout_ms: number;
|
|
2687
|
+
}
|
|
2688
|
+
export interface RingSettingsResponse {
|
|
2689
|
+
auto_cancel_timeout_ms: number;
|
|
2690
|
+
incoming_call_timeout_ms: number;
|
|
2691
|
+
missed_call_timeout_ms: number;
|
|
2692
|
+
}
|
|
2693
|
+
export interface RuleBuilderAction {
|
|
2694
|
+
duration?: number;
|
|
2695
|
+
ip_ban?: boolean;
|
|
2696
|
+
reason?: string;
|
|
2697
|
+
shadow_ban?: boolean;
|
|
2698
|
+
type?: string;
|
|
2699
|
+
}
|
|
2700
|
+
export interface RuleBuilderCondition {
|
|
2701
|
+
provider?: string;
|
|
2702
|
+
threshold?: number;
|
|
2703
|
+
time_window?: string;
|
|
2704
|
+
labels?: string[];
|
|
2705
|
+
}
|
|
2706
|
+
export interface RuleBuilderConfig {
|
|
2707
|
+
async?: boolean;
|
|
2708
|
+
enabled?: boolean;
|
|
2709
|
+
rules?: RuleBuilderRule[];
|
|
2710
|
+
}
|
|
2711
|
+
export interface RuleBuilderRule {
|
|
2712
|
+
enabled?: boolean;
|
|
2713
|
+
id?: string;
|
|
2714
|
+
name?: string;
|
|
2715
|
+
conditions?: RuleBuilderCondition[];
|
|
2716
|
+
action?: RuleBuilderAction;
|
|
2717
|
+
}
|
|
2718
|
+
export interface SFUIDLastSeen {
|
|
2719
|
+
id: string;
|
|
2720
|
+
last_seen: Date;
|
|
2721
|
+
process_start_time: number;
|
|
2722
|
+
}
|
|
2723
|
+
export interface STTEgressConfig {
|
|
2724
|
+
closed_captions_enabled?: boolean;
|
|
2725
|
+
language?: string;
|
|
2726
|
+
storage_name?: string;
|
|
2727
|
+
translations_enabled?: boolean;
|
|
2728
|
+
upload_transcriptions?: boolean;
|
|
2729
|
+
whisper_server_base_url?: string;
|
|
2730
|
+
translation_languages?: string[];
|
|
2731
|
+
external_storage?: ExternalStorage;
|
|
2732
|
+
}
|
|
2733
|
+
export interface ScreensharingSettings {
|
|
2734
|
+
access_request_enabled: boolean;
|
|
2735
|
+
enabled: boolean;
|
|
2736
|
+
target_resolution?: TargetResolution;
|
|
2737
|
+
}
|
|
2738
|
+
export interface ScreensharingSettingsResponse {
|
|
2739
|
+
access_request_enabled: boolean;
|
|
2740
|
+
enabled: boolean;
|
|
2741
|
+
target_resolution?: TargetResolution;
|
|
2742
|
+
}
|
|
2743
|
+
export interface SessionSettings {
|
|
2744
|
+
inactivity_timeout_seconds: number;
|
|
2745
|
+
}
|
|
2746
|
+
export interface SessionSettingsResponse {
|
|
2747
|
+
inactivity_timeout_seconds: number;
|
|
2748
|
+
}
|
|
2749
|
+
export interface ShadowBlockActionRequest {
|
|
2750
|
+
}
|
|
2751
|
+
export interface SharedLocation {
|
|
2752
|
+
channel_cid: string;
|
|
2753
|
+
created_at: Date;
|
|
2754
|
+
created_by_device_id: string;
|
|
2755
|
+
message_id: string;
|
|
2756
|
+
updated_at: Date;
|
|
2757
|
+
user_id: string;
|
|
2758
|
+
end_at?: Date;
|
|
2759
|
+
latitude?: number;
|
|
2760
|
+
longitude?: number;
|
|
2761
|
+
channel?: Channel;
|
|
2762
|
+
message?: Message;
|
|
2763
|
+
}
|
|
2764
|
+
export interface SharedLocationResponse {
|
|
2765
|
+
channel_cid: string;
|
|
2766
|
+
created_at: Date;
|
|
2767
|
+
created_by_device_id: string;
|
|
2768
|
+
duration: string;
|
|
2769
|
+
latitude: number;
|
|
2770
|
+
longitude: number;
|
|
2771
|
+
message_id: string;
|
|
2772
|
+
updated_at: Date;
|
|
2773
|
+
user_id: string;
|
|
2774
|
+
end_at?: Date;
|
|
2775
|
+
channel?: ChannelResponse;
|
|
2776
|
+
message?: MessageResponse;
|
|
2777
|
+
}
|
|
2778
|
+
export interface SharedLocationResponseData {
|
|
2779
|
+
channel_cid: string;
|
|
2780
|
+
created_at: Date;
|
|
2781
|
+
created_by_device_id: string;
|
|
2782
|
+
latitude: number;
|
|
2783
|
+
longitude: number;
|
|
2784
|
+
message_id: string;
|
|
2785
|
+
updated_at: Date;
|
|
2786
|
+
user_id: string;
|
|
2787
|
+
end_at?: Date;
|
|
2788
|
+
channel?: ChannelResponse;
|
|
2789
|
+
message?: MessageResponse;
|
|
2790
|
+
}
|
|
2791
|
+
export interface SharedLocationsResponse {
|
|
2792
|
+
duration: string;
|
|
2793
|
+
active_live_locations: SharedLocationResponseData[];
|
|
2794
|
+
}
|
|
2795
|
+
export interface SingleFollowRequest {
|
|
2796
|
+
source: string;
|
|
2797
|
+
target: string;
|
|
2798
|
+
push_preference?: 'all' | 'none';
|
|
2799
|
+
custom?: Record<string, any>;
|
|
2800
|
+
}
|
|
2801
|
+
export interface SingleFollowResponse {
|
|
2802
|
+
duration: string;
|
|
2803
|
+
follow: FollowResponse;
|
|
2804
|
+
}
|
|
2805
|
+
export interface SortParamRequest {
|
|
2806
|
+
direction?: number;
|
|
2807
|
+
field?: string;
|
|
2808
|
+
}
|
|
2809
|
+
export interface StoriesConfig {
|
|
2810
|
+
expiration_behaviour?: 'hide_for_everyone' | 'visible_for_author';
|
|
2811
|
+
skip_watched?: boolean;
|
|
2812
|
+
}
|
|
2813
|
+
export interface SubmitActionRequest {
|
|
2814
|
+
action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'kick_user' | 'end_call';
|
|
2815
|
+
item_id: string;
|
|
2816
|
+
ban?: BanActionRequest;
|
|
2817
|
+
custom?: CustomActionRequest;
|
|
2818
|
+
delete_activity?: DeleteActivityRequest;
|
|
2819
|
+
delete_message?: DeleteMessageRequest;
|
|
2820
|
+
delete_reaction?: DeleteReactionRequest;
|
|
2821
|
+
delete_user?: DeleteUserRequest;
|
|
2822
|
+
mark_reviewed?: MarkReviewedRequest;
|
|
2823
|
+
unban?: UnbanActionRequest;
|
|
2824
|
+
}
|
|
2825
|
+
export interface SubmitActionResponse {
|
|
2826
|
+
duration: string;
|
|
2827
|
+
item?: ReviewQueueItemResponse;
|
|
2828
|
+
}
|
|
2829
|
+
export interface TargetResolution {
|
|
2830
|
+
bitrate: number;
|
|
2831
|
+
height: number;
|
|
2832
|
+
width: number;
|
|
2833
|
+
}
|
|
2834
|
+
export interface ThreadedCommentResponse {
|
|
2835
|
+
confidence_score: number;
|
|
2836
|
+
created_at: Date;
|
|
2837
|
+
downvote_count: number;
|
|
2838
|
+
id: string;
|
|
2839
|
+
object_id: string;
|
|
2840
|
+
object_type: string;
|
|
2841
|
+
reaction_count: number;
|
|
2842
|
+
reply_count: number;
|
|
2843
|
+
score: number;
|
|
2844
|
+
status: string;
|
|
2845
|
+
updated_at: Date;
|
|
2846
|
+
upvote_count: number;
|
|
2847
|
+
mentioned_users: UserResponse[];
|
|
2848
|
+
own_reactions: FeedsReactionResponse[];
|
|
2849
|
+
user: UserResponse;
|
|
2850
|
+
controversy_score?: number;
|
|
2851
|
+
deleted_at?: Date;
|
|
2852
|
+
parent_id?: string;
|
|
2853
|
+
text?: string;
|
|
2854
|
+
attachments?: Attachment[];
|
|
2855
|
+
latest_reactions?: FeedsReactionResponse[];
|
|
2856
|
+
replies?: ThreadedCommentResponse[];
|
|
2857
|
+
custom?: Record<string, any>;
|
|
2858
|
+
meta?: RepliesMeta;
|
|
2859
|
+
moderation?: ModerationV2Response;
|
|
2860
|
+
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
2861
|
+
}
|
|
2862
|
+
export interface Thresholds {
|
|
2863
|
+
explicit?: LabelThresholds;
|
|
2864
|
+
spam?: LabelThresholds;
|
|
2865
|
+
toxic?: LabelThresholds;
|
|
2866
|
+
}
|
|
2867
|
+
export interface ThumbnailResponse {
|
|
2868
|
+
image_url: string;
|
|
2869
|
+
}
|
|
2870
|
+
export interface ThumbnailsSettings {
|
|
2871
|
+
enabled: boolean;
|
|
2872
|
+
}
|
|
2873
|
+
export interface ThumbnailsSettingsResponse {
|
|
2874
|
+
enabled: boolean;
|
|
2875
|
+
}
|
|
2876
|
+
export interface Time {
|
|
2877
|
+
}
|
|
2878
|
+
export interface TranscriptionSettings {
|
|
2879
|
+
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
2880
|
+
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
2881
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
2882
|
+
}
|
|
2883
|
+
export interface TranscriptionSettingsResponse {
|
|
2884
|
+
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
2885
|
+
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
2886
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
2887
|
+
}
|
|
2888
|
+
export interface TypingIndicators {
|
|
2889
|
+
enabled: boolean;
|
|
2890
|
+
}
|
|
2891
|
+
export interface TypingIndicatorsResponse {
|
|
2892
|
+
enabled: boolean;
|
|
2893
|
+
}
|
|
2894
|
+
export interface UnbanActionRequest {
|
|
2895
|
+
}
|
|
2896
|
+
export interface UnblockActionRequest {
|
|
2897
|
+
}
|
|
2898
|
+
export interface UnblockUsersRequest {
|
|
2899
|
+
blocked_user_id: string;
|
|
2900
|
+
}
|
|
2901
|
+
export interface UnblockUsersResponse {
|
|
2902
|
+
duration: string;
|
|
2903
|
+
}
|
|
2904
|
+
export interface UnfollowResponse {
|
|
2905
|
+
duration: string;
|
|
2906
|
+
}
|
|
2907
|
+
export interface UnpinActivityResponse {
|
|
2908
|
+
duration: string;
|
|
2909
|
+
fid: string;
|
|
2910
|
+
user_id: string;
|
|
2911
|
+
activity: ActivityResponse;
|
|
2912
|
+
}
|
|
2913
|
+
export interface UpdateActivityPartialRequest {
|
|
2914
|
+
unset?: string[];
|
|
2915
|
+
set?: Record<string, any>;
|
|
2916
|
+
}
|
|
2917
|
+
export interface UpdateActivityPartialResponse {
|
|
2918
|
+
duration: string;
|
|
2919
|
+
activity: ActivityResponse;
|
|
2920
|
+
}
|
|
2921
|
+
export interface UpdateActivityRequest {
|
|
2922
|
+
expires_at?: Date;
|
|
2923
|
+
poll_id?: string;
|
|
2924
|
+
text?: string;
|
|
2925
|
+
visibility?: string;
|
|
2926
|
+
attachments?: Attachment[];
|
|
2927
|
+
filter_tags?: string[];
|
|
2928
|
+
interest_tags?: string[];
|
|
2929
|
+
custom?: Record<string, any>;
|
|
2930
|
+
location?: ActivityLocation;
|
|
2931
|
+
}
|
|
2932
|
+
export interface UpdateActivityResponse {
|
|
2933
|
+
duration: string;
|
|
2934
|
+
activity: ActivityResponse;
|
|
2935
|
+
}
|
|
2936
|
+
export interface UpdateBlockListRequest {
|
|
2937
|
+
team?: string;
|
|
2938
|
+
words?: string[];
|
|
2939
|
+
}
|
|
2940
|
+
export interface UpdateBlockListResponse {
|
|
2941
|
+
duration: string;
|
|
2942
|
+
blocklist?: BlockListResponse;
|
|
2943
|
+
}
|
|
2944
|
+
export interface UpdateBookmarkRequest {
|
|
2945
|
+
folder_id?: string;
|
|
2946
|
+
new_folder_id?: string;
|
|
2947
|
+
custom?: Record<string, any>;
|
|
2948
|
+
new_folder?: AddFolderRequest;
|
|
2949
|
+
}
|
|
2950
|
+
export interface UpdateBookmarkResponse {
|
|
2951
|
+
duration: string;
|
|
2952
|
+
bookmark: BookmarkResponse;
|
|
2953
|
+
}
|
|
2954
|
+
export interface UpdateCommentRequest {
|
|
2955
|
+
comment?: string;
|
|
2956
|
+
custom?: Record<string, any>;
|
|
2957
|
+
}
|
|
2958
|
+
export interface UpdateCommentResponse {
|
|
2959
|
+
duration: string;
|
|
2960
|
+
comment: CommentResponse;
|
|
2961
|
+
}
|
|
2962
|
+
export interface UpdateFeedMembersRequest {
|
|
2963
|
+
operation: 'upsert' | 'remove' | 'set';
|
|
2964
|
+
limit?: number;
|
|
2965
|
+
next?: string;
|
|
2966
|
+
prev?: string;
|
|
2967
|
+
members?: FeedMemberRequest[];
|
|
2968
|
+
}
|
|
2969
|
+
export interface UpdateFeedMembersResponse {
|
|
2970
|
+
duration: string;
|
|
2971
|
+
added: FeedMemberResponse[];
|
|
2972
|
+
removed_ids: string[];
|
|
2973
|
+
updated: FeedMemberResponse[];
|
|
2974
|
+
}
|
|
2975
|
+
export interface UpdateFeedRequest {
|
|
2976
|
+
created_by_id?: string;
|
|
2977
|
+
custom?: Record<string, any>;
|
|
2978
|
+
}
|
|
2979
|
+
export interface UpdateFeedResponse {
|
|
2980
|
+
duration: string;
|
|
2981
|
+
feed: FeedResponse;
|
|
2982
|
+
}
|
|
2983
|
+
export interface UpdateFollowRequest {
|
|
2984
|
+
source: string;
|
|
2985
|
+
target: string;
|
|
2986
|
+
follower_role?: string;
|
|
2987
|
+
push_preference?: 'all' | 'none';
|
|
2988
|
+
custom?: Record<string, any>;
|
|
2989
|
+
}
|
|
2990
|
+
export interface UpdateFollowResponse {
|
|
2991
|
+
duration: string;
|
|
2992
|
+
follow: FollowResponse;
|
|
2993
|
+
}
|
|
2994
|
+
export interface UpdateLiveLocationRequest {
|
|
2995
|
+
created_by_device_id: string;
|
|
2996
|
+
message_id: string;
|
|
2997
|
+
end_at?: Date;
|
|
2998
|
+
latitude?: number;
|
|
2999
|
+
longitude?: number;
|
|
3000
|
+
}
|
|
3001
|
+
export interface UpdatePollOptionRequest {
|
|
3002
|
+
id: string;
|
|
3003
|
+
text: string;
|
|
3004
|
+
custom?: Record<string, any>;
|
|
3005
|
+
}
|
|
3006
|
+
export interface UpdatePollPartialRequest {
|
|
3007
|
+
unset?: string[];
|
|
3008
|
+
set?: Record<string, any>;
|
|
3009
|
+
}
|
|
3010
|
+
export interface UpdatePollRequest {
|
|
3011
|
+
id: string;
|
|
3012
|
+
name: string;
|
|
3013
|
+
allow_answers?: boolean;
|
|
3014
|
+
allow_user_suggested_options?: boolean;
|
|
3015
|
+
description?: string;
|
|
3016
|
+
enforce_unique_vote?: boolean;
|
|
3017
|
+
is_closed?: boolean;
|
|
3018
|
+
max_votes_allowed?: number;
|
|
3019
|
+
voting_visibility?: 'anonymous' | 'public';
|
|
3020
|
+
options?: PollOptionRequest[];
|
|
3021
|
+
custom?: Record<string, any>;
|
|
3022
|
+
}
|
|
3023
|
+
export interface UpdateUserPartialRequest {
|
|
3024
|
+
id: string;
|
|
3025
|
+
unset?: string[];
|
|
3026
|
+
set?: Record<string, any>;
|
|
3027
|
+
}
|
|
3028
|
+
export interface UpdateUsersPartialRequest {
|
|
3029
|
+
users: UpdateUserPartialRequest[];
|
|
3030
|
+
}
|
|
3031
|
+
export interface UpdateUsersRequest {
|
|
3032
|
+
users: Record<string, UserRequest>;
|
|
3033
|
+
}
|
|
3034
|
+
export interface UpdateUsersResponse {
|
|
3035
|
+
duration: string;
|
|
3036
|
+
membership_deletion_task_id: string;
|
|
3037
|
+
users: Record<string, FullUserResponse>;
|
|
3038
|
+
}
|
|
3039
|
+
export interface UpsertActivitiesRequest {
|
|
3040
|
+
activities: ActivityRequest[];
|
|
3041
|
+
}
|
|
3042
|
+
export interface UpsertActivitiesResponse {
|
|
3043
|
+
duration: string;
|
|
3044
|
+
activities: ActivityResponse[];
|
|
3045
|
+
}
|
|
3046
|
+
export interface UpsertConfigRequest {
|
|
3047
|
+
key: string;
|
|
3048
|
+
async?: boolean;
|
|
3049
|
+
team?: string;
|
|
3050
|
+
ai_image_config?: AIImageConfig;
|
|
3051
|
+
ai_text_config?: AITextConfig;
|
|
3052
|
+
ai_video_config?: AIVideoConfig;
|
|
3053
|
+
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
3054
|
+
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
3055
|
+
automod_toxicity_config?: AutomodToxicityConfig;
|
|
3056
|
+
aws_rekognition_config?: AIImageConfig;
|
|
3057
|
+
block_list_config?: BlockListConfig;
|
|
3058
|
+
bodyguard_config?: AITextConfig;
|
|
3059
|
+
google_vision_config?: GoogleVisionConfig;
|
|
3060
|
+
rule_builder_config?: RuleBuilderConfig;
|
|
3061
|
+
velocity_filter_config?: VelocityFilterConfig;
|
|
3062
|
+
video_call_rule_config?: VideoCallRuleConfig;
|
|
3063
|
+
}
|
|
3064
|
+
export interface UpsertConfigResponse {
|
|
3065
|
+
duration: string;
|
|
3066
|
+
config?: ConfigResponse;
|
|
3067
|
+
}
|
|
3068
|
+
export interface User {
|
|
3069
|
+
banned: boolean;
|
|
3070
|
+
id: string;
|
|
3071
|
+
online: boolean;
|
|
3072
|
+
role: string;
|
|
3073
|
+
custom: Record<string, any>;
|
|
3074
|
+
teams_role: Record<string, string>;
|
|
3075
|
+
ban_expires?: Date;
|
|
3076
|
+
created_at?: Date;
|
|
3077
|
+
deactivated_at?: Date;
|
|
3078
|
+
deleted_at?: Date;
|
|
3079
|
+
invisible?: boolean;
|
|
3080
|
+
language?: string;
|
|
3081
|
+
last_active?: Date;
|
|
3082
|
+
last_engaged_at?: Date;
|
|
3083
|
+
revoke_tokens_issued_before?: Date;
|
|
3084
|
+
updated_at?: Date;
|
|
3085
|
+
teams?: string[];
|
|
3086
|
+
privacy_settings?: PrivacySettings;
|
|
3087
|
+
}
|
|
3088
|
+
export interface UserBannedEvent {
|
|
3089
|
+
channel_id: string;
|
|
3090
|
+
channel_type: string;
|
|
3091
|
+
cid: string;
|
|
3092
|
+
created_at: Date;
|
|
3093
|
+
shadow: boolean;
|
|
3094
|
+
created_by: User;
|
|
3095
|
+
type: string;
|
|
3096
|
+
expiration?: Date;
|
|
3097
|
+
reason?: string;
|
|
3098
|
+
team?: string;
|
|
3099
|
+
user?: User;
|
|
3100
|
+
}
|
|
3101
|
+
export interface UserDeactivatedEvent {
|
|
3102
|
+
created_at: Date;
|
|
3103
|
+
created_by: User;
|
|
3104
|
+
type: string;
|
|
3105
|
+
user?: User;
|
|
3106
|
+
}
|
|
3107
|
+
export interface UserMute {
|
|
3108
|
+
created_at: Date;
|
|
3109
|
+
updated_at: Date;
|
|
3110
|
+
expires?: Date;
|
|
3111
|
+
target?: User;
|
|
3112
|
+
user?: User;
|
|
3113
|
+
}
|
|
3114
|
+
export interface UserMuteResponse {
|
|
3115
|
+
created_at: Date;
|
|
3116
|
+
updated_at: Date;
|
|
3117
|
+
expires?: Date;
|
|
3118
|
+
target?: UserResponse;
|
|
3119
|
+
user?: UserResponse;
|
|
3120
|
+
}
|
|
3121
|
+
export interface UserMutedEvent {
|
|
3122
|
+
created_at: Date;
|
|
3123
|
+
type: string;
|
|
3124
|
+
target_user?: string;
|
|
3125
|
+
target_users?: string[];
|
|
3126
|
+
user?: User;
|
|
3127
|
+
}
|
|
3128
|
+
export interface UserReactivatedEvent {
|
|
3129
|
+
created_at: Date;
|
|
3130
|
+
type: string;
|
|
3131
|
+
user?: User;
|
|
3132
|
+
}
|
|
3133
|
+
export interface UserRequest {
|
|
3134
|
+
id: string;
|
|
3135
|
+
image?: string;
|
|
3136
|
+
invisible?: boolean;
|
|
3137
|
+
language?: string;
|
|
3138
|
+
name?: string;
|
|
3139
|
+
custom?: Record<string, any>;
|
|
3140
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
3141
|
+
}
|
|
3142
|
+
export interface UserResponse {
|
|
3143
|
+
banned: boolean;
|
|
3144
|
+
created_at: Date;
|
|
3145
|
+
id: string;
|
|
3146
|
+
language: string;
|
|
3147
|
+
online: boolean;
|
|
3148
|
+
role: string;
|
|
3149
|
+
updated_at: Date;
|
|
3150
|
+
blocked_user_ids: string[];
|
|
3151
|
+
teams: string[];
|
|
3152
|
+
custom: Record<string, any>;
|
|
3153
|
+
deactivated_at?: Date;
|
|
3154
|
+
deleted_at?: Date;
|
|
3155
|
+
image?: string;
|
|
3156
|
+
last_active?: Date;
|
|
3157
|
+
name?: string;
|
|
3158
|
+
revoke_tokens_issued_before?: Date;
|
|
3159
|
+
teams_role?: Record<string, string>;
|
|
3160
|
+
}
|
|
3161
|
+
export interface UserResponseCommonFields {
|
|
3162
|
+
banned: boolean;
|
|
3163
|
+
created_at: Date;
|
|
3164
|
+
id: string;
|
|
3165
|
+
language: string;
|
|
3166
|
+
online: boolean;
|
|
3167
|
+
role: string;
|
|
3168
|
+
updated_at: Date;
|
|
3169
|
+
blocked_user_ids: string[];
|
|
3170
|
+
teams: string[];
|
|
3171
|
+
custom: Record<string, any>;
|
|
3172
|
+
deactivated_at?: Date;
|
|
3173
|
+
deleted_at?: Date;
|
|
3174
|
+
image?: string;
|
|
3175
|
+
last_active?: Date;
|
|
3176
|
+
name?: string;
|
|
3177
|
+
revoke_tokens_issued_before?: Date;
|
|
3178
|
+
teams_role?: Record<string, string>;
|
|
3179
|
+
}
|
|
3180
|
+
export interface UserResponsePrivacyFields {
|
|
3181
|
+
banned: boolean;
|
|
3182
|
+
created_at: Date;
|
|
3183
|
+
id: string;
|
|
3184
|
+
language: string;
|
|
3185
|
+
online: boolean;
|
|
3186
|
+
role: string;
|
|
3187
|
+
updated_at: Date;
|
|
3188
|
+
blocked_user_ids: string[];
|
|
3189
|
+
teams: string[];
|
|
3190
|
+
custom: Record<string, any>;
|
|
3191
|
+
deactivated_at?: Date;
|
|
3192
|
+
deleted_at?: Date;
|
|
3193
|
+
image?: string;
|
|
3194
|
+
invisible?: boolean;
|
|
3195
|
+
last_active?: Date;
|
|
3196
|
+
name?: string;
|
|
3197
|
+
revoke_tokens_issued_before?: Date;
|
|
3198
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
3199
|
+
teams_role?: Record<string, string>;
|
|
3200
|
+
}
|
|
3201
|
+
export interface UserUpdatedEvent {
|
|
3202
|
+
created_at: Date;
|
|
3203
|
+
custom: Record<string, any>;
|
|
3204
|
+
user: UserResponsePrivacyFields;
|
|
3205
|
+
type: string;
|
|
3206
|
+
received_at?: Date;
|
|
3207
|
+
}
|
|
3208
|
+
export interface VelocityFilterConfig {
|
|
3209
|
+
advanced_filters: boolean;
|
|
3210
|
+
cascading_actions: boolean;
|
|
3211
|
+
cids_per_user: number;
|
|
3212
|
+
enabled: boolean;
|
|
3213
|
+
first_message_only: boolean;
|
|
3214
|
+
rules: VelocityFilterConfigRule[];
|
|
3215
|
+
async?: boolean;
|
|
3216
|
+
}
|
|
3217
|
+
export interface VelocityFilterConfigRule {
|
|
3218
|
+
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
3219
|
+
ban_duration: number;
|
|
3220
|
+
cascading_action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
3221
|
+
cascading_threshold: number;
|
|
3222
|
+
check_message_context: boolean;
|
|
3223
|
+
fast_spam_threshold: number;
|
|
3224
|
+
fast_spam_ttl: number;
|
|
3225
|
+
ip_ban: boolean;
|
|
3226
|
+
probation_period: number;
|
|
3227
|
+
shadow_ban: boolean;
|
|
3228
|
+
slow_spam_threshold: number;
|
|
3229
|
+
slow_spam_ttl: number;
|
|
3230
|
+
url_only: boolean;
|
|
3231
|
+
slow_spam_ban_duration?: number;
|
|
3232
|
+
}
|
|
3233
|
+
export interface VideoCallRuleConfig {
|
|
3234
|
+
rules: Record<string, HarmConfig>;
|
|
3235
|
+
}
|
|
3236
|
+
export interface VideoEndCallRequest {
|
|
3237
|
+
}
|
|
3238
|
+
export interface VideoKickUserRequest {
|
|
3239
|
+
}
|
|
3240
|
+
export interface VideoOrientation {
|
|
3241
|
+
orientation?: number;
|
|
3242
|
+
}
|
|
3243
|
+
export interface VideoSettings {
|
|
3244
|
+
access_request_enabled: boolean;
|
|
3245
|
+
camera_default_on: boolean;
|
|
3246
|
+
camera_facing: 'front' | 'back' | 'external';
|
|
3247
|
+
enabled: boolean;
|
|
3248
|
+
target_resolution: TargetResolution;
|
|
3249
|
+
}
|
|
3250
|
+
export interface VideoSettingsResponse {
|
|
3251
|
+
access_request_enabled: boolean;
|
|
3252
|
+
camera_default_on: boolean;
|
|
3253
|
+
camera_facing: 'front' | 'back' | 'external';
|
|
3254
|
+
enabled: boolean;
|
|
3255
|
+
target_resolution: TargetResolution;
|
|
3256
|
+
}
|
|
3257
|
+
export interface VoteData {
|
|
3258
|
+
answer_text?: string;
|
|
3259
|
+
option_id?: string;
|
|
3260
|
+
}
|
|
3261
|
+
export interface WSAuthMessage {
|
|
3262
|
+
token: string;
|
|
3263
|
+
user_details: ConnectUserDetailsRequest;
|
|
3264
|
+
products?: string[];
|
|
3265
|
+
}
|
|
3266
|
+
export type WSClientEvent = ({
|
|
3267
|
+
type: 'app.updated';
|
|
3268
|
+
} & AppUpdatedEvent) | ({
|
|
3269
|
+
type: 'feeds.activity.added';
|
|
3270
|
+
} & ActivityAddedEvent) | ({
|
|
3271
|
+
type: 'feeds.activity.deleted';
|
|
3272
|
+
} & ActivityDeletedEvent) | ({
|
|
3273
|
+
type: 'feeds.activity.marked';
|
|
3274
|
+
} & ActivityMarkEvent) | ({
|
|
3275
|
+
type: 'feeds.activity.pinned';
|
|
3276
|
+
} & ActivityPinnedEvent) | ({
|
|
3277
|
+
type: 'feeds.activity.reaction.added';
|
|
3278
|
+
} & ActivityReactionAddedEvent) | ({
|
|
3279
|
+
type: 'feeds.activity.reaction.deleted';
|
|
3280
|
+
} & ActivityReactionDeletedEvent) | ({
|
|
3281
|
+
type: 'feeds.activity.reaction.updated';
|
|
3282
|
+
} & ActivityReactionUpdatedEvent) | ({
|
|
3283
|
+
type: 'feeds.activity.removed_from_feed';
|
|
3284
|
+
} & ActivityRemovedFromFeedEvent) | ({
|
|
3285
|
+
type: 'feeds.activity.unpinned';
|
|
3286
|
+
} & ActivityUnpinnedEvent) | ({
|
|
3287
|
+
type: 'feeds.activity.updated';
|
|
3288
|
+
} & ActivityUpdatedEvent) | ({
|
|
3289
|
+
type: 'feeds.bookmark.added';
|
|
3290
|
+
} & BookmarkAddedEvent) | ({
|
|
3291
|
+
type: 'feeds.bookmark.deleted';
|
|
3292
|
+
} & BookmarkDeletedEvent) | ({
|
|
3293
|
+
type: 'feeds.bookmark.updated';
|
|
3294
|
+
} & BookmarkUpdatedEvent) | ({
|
|
3295
|
+
type: 'feeds.comment.added';
|
|
3296
|
+
} & CommentAddedEvent) | ({
|
|
3297
|
+
type: 'feeds.comment.deleted';
|
|
3298
|
+
} & CommentDeletedEvent) | ({
|
|
3299
|
+
type: 'feeds.comment.reaction.added';
|
|
3300
|
+
} & CommentReactionAddedEvent) | ({
|
|
3301
|
+
type: 'feeds.comment.reaction.deleted';
|
|
3302
|
+
} & CommentReactionDeletedEvent) | ({
|
|
3303
|
+
type: 'feeds.comment.reaction.updated';
|
|
3304
|
+
} & CommentReactionUpdatedEvent) | ({
|
|
3305
|
+
type: 'feeds.comment.updated';
|
|
3306
|
+
} & CommentUpdatedEvent) | ({
|
|
3307
|
+
type: 'feeds.feed.created';
|
|
3308
|
+
} & FeedCreatedEvent) | ({
|
|
3309
|
+
type: 'feeds.feed.deleted';
|
|
3310
|
+
} & FeedDeletedEvent) | ({
|
|
3311
|
+
type: 'feeds.feed.updated';
|
|
3312
|
+
} & FeedUpdatedEvent) | ({
|
|
3313
|
+
type: 'feeds.feed_group.changed';
|
|
3314
|
+
} & FeedGroupChangedEvent) | ({
|
|
3315
|
+
type: 'feeds.feed_group.deleted';
|
|
3316
|
+
} & FeedGroupDeletedEvent) | ({
|
|
3317
|
+
type: 'feeds.feed_member.added';
|
|
3318
|
+
} & FeedMemberAddedEvent) | ({
|
|
3319
|
+
type: 'feeds.feed_member.removed';
|
|
3320
|
+
} & FeedMemberRemovedEvent) | ({
|
|
3321
|
+
type: 'feeds.feed_member.updated';
|
|
3322
|
+
} & FeedMemberUpdatedEvent) | ({
|
|
3323
|
+
type: 'feeds.follow.created';
|
|
3324
|
+
} & FollowCreatedEvent) | ({
|
|
3325
|
+
type: 'feeds.follow.deleted';
|
|
3326
|
+
} & FollowDeletedEvent) | ({
|
|
3327
|
+
type: 'feeds.follow.updated';
|
|
3328
|
+
} & FollowUpdatedEvent) | ({
|
|
3329
|
+
type: 'feeds.poll.closed';
|
|
3330
|
+
} & PollClosedFeedEvent) | ({
|
|
3331
|
+
type: 'feeds.poll.deleted';
|
|
3332
|
+
} & PollDeletedFeedEvent) | ({
|
|
3333
|
+
type: 'feeds.poll.updated';
|
|
3334
|
+
} & PollUpdatedFeedEvent) | ({
|
|
3335
|
+
type: 'feeds.poll.vote_casted';
|
|
3336
|
+
} & PollVoteCastedFeedEvent) | ({
|
|
3337
|
+
type: 'feeds.poll.vote_changed';
|
|
3338
|
+
} & PollVoteChangedFeedEvent) | ({
|
|
3339
|
+
type: 'feeds.poll.vote_removed';
|
|
3340
|
+
} & PollVoteRemovedFeedEvent) | ({
|
|
3341
|
+
type: 'health.check';
|
|
3342
|
+
} & HealthCheckEvent) | ({
|
|
3343
|
+
type: 'user.updated';
|
|
3344
|
+
} & UserUpdatedEvent);
|
|
3345
|
+
export type WSEvent = ({
|
|
3346
|
+
type: 'app.updated';
|
|
3347
|
+
} & AppUpdatedEvent) | ({
|
|
3348
|
+
type: 'feeds.activity.added';
|
|
3349
|
+
} & ActivityAddedEvent) | ({
|
|
3350
|
+
type: 'feeds.activity.deleted';
|
|
3351
|
+
} & ActivityDeletedEvent) | ({
|
|
3352
|
+
type: 'feeds.activity.marked';
|
|
3353
|
+
} & ActivityMarkEvent) | ({
|
|
3354
|
+
type: 'feeds.activity.pinned';
|
|
3355
|
+
} & ActivityPinnedEvent) | ({
|
|
3356
|
+
type: 'feeds.activity.reaction.added';
|
|
3357
|
+
} & ActivityReactionAddedEvent) | ({
|
|
3358
|
+
type: 'feeds.activity.reaction.deleted';
|
|
3359
|
+
} & ActivityReactionDeletedEvent) | ({
|
|
3360
|
+
type: 'feeds.activity.reaction.updated';
|
|
3361
|
+
} & ActivityReactionUpdatedEvent) | ({
|
|
3362
|
+
type: 'feeds.activity.removed_from_feed';
|
|
3363
|
+
} & ActivityRemovedFromFeedEvent) | ({
|
|
3364
|
+
type: 'feeds.activity.unpinned';
|
|
3365
|
+
} & ActivityUnpinnedEvent) | ({
|
|
3366
|
+
type: 'feeds.activity.updated';
|
|
3367
|
+
} & ActivityUpdatedEvent) | ({
|
|
3368
|
+
type: 'feeds.bookmark.added';
|
|
3369
|
+
} & BookmarkAddedEvent) | ({
|
|
3370
|
+
type: 'feeds.bookmark.deleted';
|
|
3371
|
+
} & BookmarkDeletedEvent) | ({
|
|
3372
|
+
type: 'feeds.bookmark.updated';
|
|
3373
|
+
} & BookmarkUpdatedEvent) | ({
|
|
3374
|
+
type: 'feeds.comment.added';
|
|
3375
|
+
} & CommentAddedEvent) | ({
|
|
3376
|
+
type: 'feeds.comment.deleted';
|
|
3377
|
+
} & CommentDeletedEvent) | ({
|
|
3378
|
+
type: 'feeds.comment.reaction.added';
|
|
3379
|
+
} & CommentReactionAddedEvent) | ({
|
|
3380
|
+
type: 'feeds.comment.reaction.deleted';
|
|
3381
|
+
} & CommentReactionDeletedEvent) | ({
|
|
3382
|
+
type: 'feeds.comment.reaction.updated';
|
|
3383
|
+
} & CommentReactionUpdatedEvent) | ({
|
|
3384
|
+
type: 'feeds.comment.updated';
|
|
3385
|
+
} & CommentUpdatedEvent) | ({
|
|
3386
|
+
type: 'feeds.feed.created';
|
|
3387
|
+
} & FeedCreatedEvent) | ({
|
|
3388
|
+
type: 'feeds.feed.deleted';
|
|
3389
|
+
} & FeedDeletedEvent) | ({
|
|
3390
|
+
type: 'feeds.feed.updated';
|
|
3391
|
+
} & FeedUpdatedEvent) | ({
|
|
3392
|
+
type: 'feeds.feed_group.changed';
|
|
3393
|
+
} & FeedGroupChangedEvent) | ({
|
|
3394
|
+
type: 'feeds.feed_group.deleted';
|
|
3395
|
+
} & FeedGroupDeletedEvent) | ({
|
|
3396
|
+
type: 'feeds.feed_member.added';
|
|
3397
|
+
} & FeedMemberAddedEvent) | ({
|
|
3398
|
+
type: 'feeds.feed_member.removed';
|
|
3399
|
+
} & FeedMemberRemovedEvent) | ({
|
|
3400
|
+
type: 'feeds.feed_member.updated';
|
|
3401
|
+
} & FeedMemberUpdatedEvent) | ({
|
|
3402
|
+
type: 'feeds.follow.created';
|
|
3403
|
+
} & FollowCreatedEvent) | ({
|
|
3404
|
+
type: 'feeds.follow.deleted';
|
|
3405
|
+
} & FollowDeletedEvent) | ({
|
|
3406
|
+
type: 'feeds.follow.updated';
|
|
3407
|
+
} & FollowUpdatedEvent) | ({
|
|
3408
|
+
type: 'feeds.poll.closed';
|
|
3409
|
+
} & PollClosedFeedEvent) | ({
|
|
3410
|
+
type: 'feeds.poll.deleted';
|
|
3411
|
+
} & PollDeletedFeedEvent) | ({
|
|
3412
|
+
type: 'feeds.poll.updated';
|
|
3413
|
+
} & PollUpdatedFeedEvent) | ({
|
|
3414
|
+
type: 'feeds.poll.vote_casted';
|
|
3415
|
+
} & PollVoteCastedFeedEvent) | ({
|
|
3416
|
+
type: 'feeds.poll.vote_changed';
|
|
3417
|
+
} & PollVoteChangedFeedEvent) | ({
|
|
3418
|
+
type: 'feeds.poll.vote_removed';
|
|
3419
|
+
} & PollVoteRemovedFeedEvent) | ({
|
|
3420
|
+
type: 'health.check';
|
|
3421
|
+
} & HealthCheckEvent) | ({
|
|
3422
|
+
type: 'moderation.custom_action';
|
|
3423
|
+
} & ModerationCustomActionEvent) | ({
|
|
3424
|
+
type: 'moderation.flagged';
|
|
3425
|
+
} & ModerationFlaggedEvent) | ({
|
|
3426
|
+
type: 'moderation.mark_reviewed';
|
|
3427
|
+
} & ModerationMarkReviewedEvent) | ({
|
|
3428
|
+
type: 'user.banned';
|
|
3429
|
+
} & UserBannedEvent) | ({
|
|
3430
|
+
type: 'user.deactivated';
|
|
3431
|
+
} & UserDeactivatedEvent) | ({
|
|
3432
|
+
type: 'user.muted';
|
|
3433
|
+
} & UserMutedEvent) | ({
|
|
3434
|
+
type: 'user.reactivated';
|
|
3435
|
+
} & UserReactivatedEvent) | ({
|
|
3436
|
+
type: 'user.updated';
|
|
3437
|
+
} & UserUpdatedEvent);
|