@stream-io/node-sdk 0.4.26 → 0.5.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.
Files changed (42) hide show
  1. package/dist/index.cjs.js +6292 -3831
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +3 -1
  4. package/dist/index.es.mjs +6290 -3832
  5. package/dist/index.es.mjs.map +1 -1
  6. package/dist/src/ApiClient.d.ts +15 -0
  7. package/dist/src/StreamCall.d.ts +2 -2
  8. package/dist/src/StreamClient.d.ts +10 -1
  9. package/dist/src/StreamFeed.d.ts +4 -0
  10. package/dist/src/StreamFeedsClient.d.ts +5 -0
  11. package/dist/src/StreamVideoClient.d.ts +3 -2
  12. package/dist/src/gen/chat/ChannelApi.d.ts +29 -30
  13. package/dist/src/gen/chat/ChatApi.d.ts +145 -180
  14. package/dist/src/gen/common/CommonApi.d.ts +120 -83
  15. package/dist/src/gen/feeds/FeedApi.d.ts +25 -0
  16. package/dist/src/gen/feeds/FeedsApi.d.ts +195 -0
  17. package/dist/src/gen/models/index.d.ts +1498 -17
  18. package/dist/src/gen/moderation/ModerationApi.d.ts +28 -27
  19. package/dist/src/gen/video/CallApi.d.ts +42 -43
  20. package/dist/src/gen/video/VideoApi.d.ts +90 -89
  21. package/dist/src/gen-imports.d.ts +5 -0
  22. package/index.ts +3 -1
  23. package/package.json +1 -1
  24. package/src/{BaseApi.ts → ApiClient.ts} +25 -6
  25. package/src/StreamCall.ts +2 -2
  26. package/src/StreamClient.ts +51 -14
  27. package/src/StreamFeed.ts +7 -0
  28. package/src/StreamFeedsClient.ts +8 -0
  29. package/src/StreamVideoClient.ts +9 -6
  30. package/src/gen/chat/ChannelApi.ts +74 -64
  31. package/src/gen/chat/ChatApi.ts +548 -681
  32. package/src/gen/common/CommonApi.ts +679 -271
  33. package/src/gen/feeds/FeedApi.ts +130 -0
  34. package/src/gen/feeds/FeedsApi.ts +1801 -0
  35. package/src/gen/model-decoders/{index.ts → decoders.ts} +2294 -276
  36. package/src/gen/models/index.ts +4233 -2028
  37. package/src/gen/moderation/ModerationApi.ts +159 -98
  38. package/src/gen/video/CallApi.ts +97 -108
  39. package/src/gen/video/VideoApi.ts +294 -207
  40. package/src/gen-imports.ts +5 -0
  41. package/dist/src/BaseApi.d.ts +0 -11
  42. /package/dist/src/gen/model-decoders/{index.d.ts → decoders.d.ts} +0 -0
@@ -63,6 +63,23 @@ export interface AWSRekognitionRule {
63
63
  label: string;
64
64
  min_confidence: number;
65
65
  }
66
+ export interface AcceptFeedMemberInviteRequest {
67
+ user_id?: string;
68
+ user?: UserRequest;
69
+ }
70
+ export interface AcceptFeedMemberInviteResponse {
71
+ duration: string;
72
+ member: FeedMemberResponse;
73
+ }
74
+ export interface AcceptFollowRequest {
75
+ source_fid: string;
76
+ target_fid: string;
77
+ follower_role?: string;
78
+ }
79
+ export interface AcceptFollowResponse {
80
+ duration: string;
81
+ follow: FollowResponse;
82
+ }
66
83
  export interface Action {
67
84
  name: string;
68
85
  text: string;
@@ -125,6 +142,285 @@ export interface ActiveCallsSummary {
125
142
  active_subscribers: number;
126
143
  participants: number;
127
144
  }
145
+ export interface ActivityAddedEvent {
146
+ created_at: Date;
147
+ fid: string;
148
+ activity: ActivityResponse;
149
+ custom: Record<string, any>;
150
+ type: string;
151
+ received_at?: Date;
152
+ user?: UserResponseCommonFields;
153
+ }
154
+ export interface ActivityDeletedEvent {
155
+ created_at: Date;
156
+ fid: string;
157
+ activity: ActivityResponse;
158
+ custom: Record<string, any>;
159
+ type: string;
160
+ received_at?: Date;
161
+ user?: UserResponseCommonFields;
162
+ }
163
+ export interface ActivityLocation {
164
+ lat: number;
165
+ lng: number;
166
+ }
167
+ export interface ActivityMarkEvent {
168
+ created_at: Date;
169
+ fid: string;
170
+ custom: Record<string, any>;
171
+ type: string;
172
+ mark_all_read?: boolean;
173
+ mark_all_seen?: boolean;
174
+ received_at?: Date;
175
+ mark_read?: string[];
176
+ mark_watched?: string[];
177
+ user?: UserResponseCommonFields;
178
+ }
179
+ export interface ActivityMarkedEvent {
180
+ all_read: boolean;
181
+ all_seen: boolean;
182
+ created_at: Date;
183
+ feed_id: string;
184
+ user_id: string;
185
+ type: string;
186
+ marked_read?: string[];
187
+ marked_watched?: string[];
188
+ }
189
+ export interface ActivityPinResponse {
190
+ created_at: Date;
191
+ feed: string;
192
+ updated_at: Date;
193
+ activity: ActivityResponse;
194
+ user: UserResponse;
195
+ }
196
+ export interface ActivityPinnedEvent {
197
+ created_at: Date;
198
+ fid: string;
199
+ custom: Record<string, any>;
200
+ pinned_activity: PinActivityResponse;
201
+ type: string;
202
+ received_at?: Date;
203
+ user?: UserResponseCommonFields;
204
+ }
205
+ export interface ActivityProcessorConfig {
206
+ }
207
+ export interface ActivityReactionAddedEvent {
208
+ created_at: Date;
209
+ fid: string;
210
+ activity: ActivityResponse;
211
+ custom: Record<string, any>;
212
+ reaction: FeedsReactionResponse;
213
+ type: string;
214
+ received_at?: Date;
215
+ user?: UserResponseCommonFields;
216
+ }
217
+ export interface ActivityReactionDeletedEvent {
218
+ created_at: Date;
219
+ fid: string;
220
+ activity: ActivityResponse;
221
+ custom: Record<string, any>;
222
+ reaction: FeedsReactionResponse;
223
+ type: string;
224
+ received_at?: Date;
225
+ user?: UserResponseCommonFields;
226
+ }
227
+ export interface ActivityReactionUpdatedEvent {
228
+ created_at: Date;
229
+ fid: string;
230
+ activity: ActivityResponse;
231
+ custom: Record<string, any>;
232
+ reaction: FeedsReactionResponse;
233
+ type: string;
234
+ received_at?: Date;
235
+ user?: UserResponseCommonFields;
236
+ }
237
+ export interface ActivityRemovedFromFeedEvent {
238
+ created_at: Date;
239
+ fid: string;
240
+ activity: ActivityResponse;
241
+ custom: Record<string, any>;
242
+ type: string;
243
+ received_at?: Date;
244
+ user?: UserResponseCommonFields;
245
+ }
246
+ export interface ActivityRequest {
247
+ type: string;
248
+ fids: string[];
249
+ expires_at?: string;
250
+ id?: string;
251
+ parent_id?: string;
252
+ poll_id?: string;
253
+ text?: string;
254
+ user_id?: string;
255
+ visibility?: 'public' | 'private' | 'tag';
256
+ visibility_tag?: string;
257
+ attachments?: Attachment[];
258
+ filter_tags?: string[];
259
+ interest_tags?: string[];
260
+ mentioned_user_ids?: string[];
261
+ custom?: Record<string, any>;
262
+ location?: ActivityLocation;
263
+ search_data?: Record<string, any>;
264
+ }
265
+ export interface ActivityResponse {
266
+ bookmark_count: number;
267
+ comment_count: number;
268
+ created_at: Date;
269
+ id: string;
270
+ popularity: number;
271
+ reaction_count: number;
272
+ score: number;
273
+ share_count: number;
274
+ type: string;
275
+ updated_at: Date;
276
+ visibility: 'public' | 'private' | 'tag';
277
+ attachments: Attachment[];
278
+ comments: CommentResponse[];
279
+ feeds: string[];
280
+ filter_tags: string[];
281
+ interest_tags: string[];
282
+ latest_reactions: FeedsReactionResponse[];
283
+ mentioned_users: UserResponse[];
284
+ own_bookmarks: BookmarkResponse[];
285
+ own_reactions: FeedsReactionResponse[];
286
+ custom: Record<string, any>;
287
+ reaction_groups: Record<string, ReactionGroupResponse>;
288
+ search_data: Record<string, any>;
289
+ user: UserResponse;
290
+ deleted_at?: Date;
291
+ edited_at?: Date;
292
+ expires_at?: Date;
293
+ text?: string;
294
+ visibility_tag?: string;
295
+ current_feed?: FeedResponse;
296
+ location?: ActivityLocation;
297
+ moderation?: ModerationV2Response;
298
+ object?: Record<string, any>;
299
+ parent?: ActivityResponse;
300
+ poll?: PollResponseData;
301
+ }
302
+ export interface ActivitySelectorConfig {
303
+ cutoff_time?: Date;
304
+ min_popularity?: number;
305
+ type?: string;
306
+ sort?: SortParam[];
307
+ filter?: Record<string, any>;
308
+ }
309
+ export interface ActivityUnpinnedEvent {
310
+ created_at: Date;
311
+ fid: string;
312
+ custom: Record<string, any>;
313
+ pinned_activity: PinActivityResponse;
314
+ type: string;
315
+ received_at?: Date;
316
+ user?: UserResponseCommonFields;
317
+ }
318
+ export interface ActivityUpdatedEvent {
319
+ created_at: Date;
320
+ fid: string;
321
+ activity: ActivityResponse;
322
+ custom: Record<string, any>;
323
+ type: string;
324
+ received_at?: Date;
325
+ user?: UserResponseCommonFields;
326
+ }
327
+ export interface AddActivityRequest {
328
+ type: string;
329
+ fids: string[];
330
+ expires_at?: string;
331
+ id?: string;
332
+ parent_id?: string;
333
+ poll_id?: string;
334
+ text?: string;
335
+ user_id?: string;
336
+ visibility?: 'public' | 'private' | 'tag';
337
+ visibility_tag?: string;
338
+ attachments?: Attachment[];
339
+ filter_tags?: string[];
340
+ interest_tags?: string[];
341
+ mentioned_user_ids?: string[];
342
+ custom?: Record<string, any>;
343
+ location?: ActivityLocation;
344
+ search_data?: Record<string, any>;
345
+ }
346
+ export interface AddActivityResponse {
347
+ duration: string;
348
+ activity: ActivityResponse;
349
+ }
350
+ export interface AddBookmarkRequest {
351
+ folder_id?: string;
352
+ user_id?: string;
353
+ custom?: Record<string, any>;
354
+ new_folder?: AddFolderRequest;
355
+ user?: UserRequest;
356
+ }
357
+ export interface AddBookmarkResponse {
358
+ duration: string;
359
+ bookmark: BookmarkResponse;
360
+ }
361
+ export interface AddCommentReactionRequest {
362
+ type: string;
363
+ create_notification_activity?: boolean;
364
+ user_id?: string;
365
+ custom?: Record<string, any>;
366
+ user?: UserRequest;
367
+ }
368
+ export interface AddCommentReactionResponse {
369
+ duration: string;
370
+ comment: CommentResponse;
371
+ reaction: FeedsReactionResponse;
372
+ }
373
+ export interface AddCommentRequest {
374
+ comment: string;
375
+ object_id: string;
376
+ object_type: string;
377
+ create_notification_activity?: boolean;
378
+ parent_id?: string;
379
+ user_id?: string;
380
+ attachments?: Attachment[];
381
+ mentioned_user_ids?: string[];
382
+ custom?: Record<string, any>;
383
+ user?: UserRequest;
384
+ }
385
+ export interface AddCommentResponse {
386
+ duration: string;
387
+ comment: CommentResponse;
388
+ }
389
+ export interface AddCommentsBatchRequest {
390
+ comments: AddCommentRequest[];
391
+ }
392
+ export interface AddCommentsBatchResponse {
393
+ duration: string;
394
+ comments: CommentResponse[];
395
+ }
396
+ export interface AddFolderRequest {
397
+ name: string;
398
+ custom?: Record<string, any>;
399
+ }
400
+ export interface AddReactionRequest {
401
+ type: string;
402
+ create_notification_activity?: boolean;
403
+ user_id?: string;
404
+ custom?: Record<string, any>;
405
+ user?: UserRequest;
406
+ }
407
+ export interface AddReactionResponse {
408
+ duration: string;
409
+ activity: ActivityResponse;
410
+ reaction: FeedsReactionResponse;
411
+ }
412
+ export interface AggregatedActivityResponse {
413
+ activity_count: number;
414
+ created_at: Date;
415
+ group: string;
416
+ score: number;
417
+ updated_at: Date;
418
+ user_count: number;
419
+ activities: ActivityResponse[];
420
+ }
421
+ export interface AggregationConfig {
422
+ format?: string;
423
+ }
128
424
  export interface AnyEvent {
129
425
  created_at: Date;
130
426
  type: string;
@@ -444,6 +740,61 @@ export interface BodyguardSeverityRule {
444
740
  action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
445
741
  severity: 'low' | 'medium' | 'high' | 'critical';
446
742
  }
743
+ export interface BookmarkAddedEvent {
744
+ created_at: Date;
745
+ bookmark: BookmarkResponse;
746
+ custom: Record<string, any>;
747
+ type: string;
748
+ received_at?: Date;
749
+ user?: UserResponseCommonFields;
750
+ }
751
+ export interface BookmarkDeletedEvent {
752
+ created_at: Date;
753
+ bookmark: BookmarkResponse;
754
+ custom: Record<string, any>;
755
+ type: string;
756
+ received_at?: Date;
757
+ user?: UserResponseCommonFields;
758
+ }
759
+ export interface BookmarkFolderDeletedEvent {
760
+ created_at: Date;
761
+ bookmark_folder: BookmarkFolderResponse;
762
+ custom: Record<string, any>;
763
+ type: string;
764
+ received_at?: Date;
765
+ user?: UserResponseCommonFields;
766
+ }
767
+ export interface BookmarkFolderResponse {
768
+ created_at: Date;
769
+ id: string;
770
+ name: string;
771
+ updated_at: Date;
772
+ custom?: Record<string, any>;
773
+ }
774
+ export interface BookmarkFolderUpdatedEvent {
775
+ created_at: Date;
776
+ bookmark_folder: BookmarkFolderResponse;
777
+ custom: Record<string, any>;
778
+ type: string;
779
+ received_at?: Date;
780
+ user?: UserResponseCommonFields;
781
+ }
782
+ export interface BookmarkResponse {
783
+ created_at: Date;
784
+ updated_at: Date;
785
+ activity: ActivityResponse;
786
+ user: UserResponse;
787
+ custom?: Record<string, any>;
788
+ folder?: BookmarkFolderResponse;
789
+ }
790
+ export interface BookmarkUpdatedEvent {
791
+ created_at: Date;
792
+ bookmark: BookmarkResponse;
793
+ custom: Record<string, any>;
794
+ type: string;
795
+ received_at?: Date;
796
+ user?: UserResponseCommonFields;
797
+ }
447
798
  export interface Bound {
448
799
  inclusive: boolean;
449
800
  value: number;
@@ -1631,6 +1982,88 @@ export interface Command {
1631
1982
  created_at?: Date;
1632
1983
  updated_at?: Date;
1633
1984
  }
1985
+ export interface CommentAddedEvent {
1986
+ created_at: Date;
1987
+ fid: string;
1988
+ comment: CommentResponse;
1989
+ custom: Record<string, any>;
1990
+ type: string;
1991
+ received_at?: Date;
1992
+ user?: UserResponseCommonFields;
1993
+ }
1994
+ export interface CommentDeletedEvent {
1995
+ created_at: Date;
1996
+ fid: string;
1997
+ comment: CommentResponse;
1998
+ custom: Record<string, any>;
1999
+ type: string;
2000
+ received_at?: Date;
2001
+ user?: UserResponseCommonFields;
2002
+ }
2003
+ export interface CommentReactionAddedEvent {
2004
+ created_at: Date;
2005
+ fid: string;
2006
+ comment: CommentResponse;
2007
+ custom: Record<string, any>;
2008
+ reaction: FeedsReactionResponse;
2009
+ type: string;
2010
+ received_at?: Date;
2011
+ user?: UserResponseCommonFields;
2012
+ }
2013
+ export interface CommentReactionDeletedEvent {
2014
+ created_at: Date;
2015
+ fid: string;
2016
+ comment: CommentResponse;
2017
+ custom: Record<string, any>;
2018
+ reaction: FeedsReactionResponse;
2019
+ type: string;
2020
+ received_at?: Date;
2021
+ }
2022
+ export interface CommentReactionUpdatedEvent {
2023
+ created_at: Date;
2024
+ fid: string;
2025
+ comment: CommentResponse;
2026
+ custom: Record<string, any>;
2027
+ reaction: FeedsReactionResponse;
2028
+ type: string;
2029
+ received_at?: Date;
2030
+ user?: UserResponseCommonFields;
2031
+ }
2032
+ export interface CommentResponse {
2033
+ confidence_score: number;
2034
+ created_at: Date;
2035
+ downvote_count: number;
2036
+ id: string;
2037
+ object_id: string;
2038
+ object_type: string;
2039
+ reaction_count: number;
2040
+ reply_count: number;
2041
+ score: number;
2042
+ status: string;
2043
+ updated_at: Date;
2044
+ upvote_count: number;
2045
+ mentioned_users: UserResponse[];
2046
+ own_reactions: FeedsReactionResponse[];
2047
+ user: UserResponse;
2048
+ controversy_score?: number;
2049
+ deleted_at?: Date;
2050
+ parent_id?: string;
2051
+ text?: string;
2052
+ attachments?: Attachment[];
2053
+ latest_reactions?: FeedsReactionResponse[];
2054
+ custom?: Record<string, any>;
2055
+ moderation?: ModerationV2Response;
2056
+ reaction_groups?: Record<string, ReactionGroupResponse>;
2057
+ }
2058
+ export interface CommentUpdatedEvent {
2059
+ created_at: Date;
2060
+ fid: string;
2061
+ comment: CommentResponse;
2062
+ custom: Record<string, any>;
2063
+ type: string;
2064
+ received_at?: Date;
2065
+ user?: UserResponseCommonFields;
2066
+ }
1634
2067
  export interface CommitMessageRequest {
1635
2068
  }
1636
2069
  export interface CompositeAppSettings {
@@ -1802,6 +2235,35 @@ export interface CreateExternalStorageRequest {
1802
2235
  export interface CreateExternalStorageResponse {
1803
2236
  duration: string;
1804
2237
  }
2238
+ export interface CreateFeedGroupRequest {
2239
+ feed_group_id: string;
2240
+ default_view_id?: string;
2241
+ default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
2242
+ custom?: Record<string, any>;
2243
+ notification?: NotificationConfig;
2244
+ }
2245
+ export interface CreateFeedGroupResponse {
2246
+ duration: string;
2247
+ feed_group: FeedGroupResponse;
2248
+ }
2249
+ export interface CreateFeedViewRequest {
2250
+ view_id: string;
2251
+ activity_processors?: ActivityProcessorConfig[];
2252
+ activity_selectors?: ActivitySelectorConfig[];
2253
+ aggregation?: AggregationConfig;
2254
+ ranking?: RankingConfig;
2255
+ }
2256
+ export interface CreateFeedViewResponse {
2257
+ duration: string;
2258
+ feed_view: FeedViewResponse;
2259
+ }
2260
+ export interface CreateFeedsBatchRequest {
2261
+ feeds: FeedRequest[];
2262
+ }
2263
+ export interface CreateFeedsBatchResponse {
2264
+ duration: string;
2265
+ feeds: FeedResponse[];
2266
+ }
1805
2267
  export interface CreateGuestRequest {
1806
2268
  user: UserRequest;
1807
2269
  }
@@ -1828,7 +2290,6 @@ export interface CreateImportURLResponse {
1828
2290
  }
1829
2291
  export interface CreatePollOptionRequest {
1830
2292
  text: string;
1831
- position?: number;
1832
2293
  user_id?: string;
1833
2294
  custom?: Record<string, any>;
1834
2295
  user?: UserRequest;
@@ -1942,9 +2403,42 @@ export interface DeactivateUsersResponse {
1942
2403
  duration: string;
1943
2404
  task_id: string;
1944
2405
  }
2406
+ export interface DecayFunctionConfig {
2407
+ base?: string;
2408
+ decay?: string;
2409
+ direction?: string;
2410
+ offset?: string;
2411
+ origin?: string;
2412
+ scale?: string;
2413
+ }
2414
+ export interface DeleteActivitiesRequest {
2415
+ activity_ids: string[];
2416
+ hard_delete?: boolean;
2417
+ user_id?: string;
2418
+ user?: UserRequest;
2419
+ }
2420
+ export interface DeleteActivitiesResponse {
2421
+ duration: string;
2422
+ deleted_activity_ids: string[];
2423
+ }
2424
+ export interface DeleteActivityReactionResponse {
2425
+ duration: string;
2426
+ activity: ActivityResponse;
2427
+ reaction: FeedsReactionResponse;
2428
+ }
1945
2429
  export interface DeleteActivityRequest {
1946
2430
  hard_delete?: boolean;
1947
2431
  }
2432
+ export interface DeleteActivityResponse {
2433
+ duration: string;
2434
+ }
2435
+ export interface DeleteBookmarkFolderResponse {
2436
+ duration: string;
2437
+ }
2438
+ export interface DeleteBookmarkResponse {
2439
+ duration: string;
2440
+ bookmark: BookmarkResponse;
2441
+ }
1948
2442
  export interface DeleteCallRequest {
1949
2443
  hard?: boolean;
1950
2444
  }
@@ -1974,9 +2468,33 @@ export interface DeleteCommandResponse {
1974
2468
  duration: string;
1975
2469
  name: string;
1976
2470
  }
2471
+ export interface DeleteCommentReactionResponse {
2472
+ duration: string;
2473
+ comment: CommentResponse;
2474
+ reaction: FeedsReactionResponse;
2475
+ }
2476
+ export interface DeleteCommentResponse {
2477
+ duration: string;
2478
+ }
1977
2479
  export interface DeleteExternalStorageResponse {
1978
2480
  duration: string;
1979
2481
  }
2482
+ export interface DeleteFeedGroupResponse {
2483
+ duration: string;
2484
+ }
2485
+ export interface DeleteFeedResponse {
2486
+ duration: string;
2487
+ }
2488
+ export interface DeleteFeedUserDataResponse {
2489
+ deleted_activities: number;
2490
+ deleted_bookmarks: number;
2491
+ deleted_comments: number;
2492
+ deleted_reactions: number;
2493
+ duration: string;
2494
+ }
2495
+ export interface DeleteFeedViewResponse {
2496
+ duration: string;
2497
+ }
1980
2498
  export interface DeleteMessageRequest {
1981
2499
  hard_delete?: boolean;
1982
2500
  }
@@ -2261,6 +2779,12 @@ export interface ExportChannelsResponse {
2261
2779
  duration: string;
2262
2780
  task_id: string;
2263
2781
  }
2782
+ export interface ExportFeedUserDataRequest {
2783
+ }
2784
+ export interface ExportFeedUserDataResponse {
2785
+ duration: string;
2786
+ task_id: string;
2787
+ }
2264
2788
  export interface ExportUserResponse {
2265
2789
  duration: string;
2266
2790
  messages?: MessageResponse[];
@@ -2298,10 +2822,207 @@ export interface ExternalStorageResponse {
2298
2822
  export interface FCM {
2299
2823
  data?: Record<string, any>;
2300
2824
  }
2825
+ export interface FeedCreatedEvent {
2826
+ created_at: Date;
2827
+ fid: string;
2828
+ members: FeedMemberResponse[];
2829
+ custom: Record<string, any>;
2830
+ feed: FeedResponse;
2831
+ user: UserResponseCommonFields;
2832
+ type: string;
2833
+ received_at?: Date;
2834
+ }
2835
+ export interface FeedDeletedEvent {
2836
+ created_at: Date;
2837
+ fid: string;
2838
+ custom: Record<string, any>;
2839
+ type: string;
2840
+ received_at?: Date;
2841
+ user?: UserResponseCommonFields;
2842
+ }
2843
+ export interface FeedGroup {
2844
+ app_pk: number;
2845
+ created_at: Date;
2846
+ default_view_id: string;
2847
+ default_visibility: string;
2848
+ id: string;
2849
+ updated_at: Date;
2850
+ custom: Record<string, any>;
2851
+ deleted_at?: Date;
2852
+ last_feed_get_at?: Date;
2853
+ notification?: NotificationConfig;
2854
+ stories?: StoriesConfig;
2855
+ }
2856
+ export interface FeedGroupChangedEvent {
2857
+ created_at: Date;
2858
+ fid: string;
2859
+ custom: Record<string, any>;
2860
+ type: string;
2861
+ received_at?: Date;
2862
+ feed_group?: FeedGroup;
2863
+ user?: UserResponseCommonFields;
2864
+ }
2865
+ export interface FeedGroupDeletedEvent {
2866
+ created_at: Date;
2867
+ fid: string;
2868
+ group_id: string;
2869
+ custom: Record<string, any>;
2870
+ type: string;
2871
+ received_at?: Date;
2872
+ }
2873
+ export interface FeedGroupResponse {
2874
+ created_at: Date;
2875
+ id: string;
2876
+ updated_at: Date;
2877
+ default_view_id?: string;
2878
+ default_visibility?: string;
2879
+ custom?: Record<string, any>;
2880
+ notification?: NotificationConfig;
2881
+ stories?: StoriesConfig;
2882
+ }
2883
+ export interface FeedInput {
2884
+ description?: string;
2885
+ name?: string;
2886
+ visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
2887
+ filter_tags?: string[];
2888
+ members?: FeedMemberRequest[];
2889
+ custom?: Record<string, any>;
2890
+ }
2891
+ export interface FeedMemberAddedEvent {
2892
+ created_at: Date;
2893
+ fid: string;
2894
+ custom: Record<string, any>;
2895
+ member: FeedMemberResponse;
2896
+ type: string;
2897
+ received_at?: Date;
2898
+ user?: UserResponseCommonFields;
2899
+ }
2900
+ export interface FeedMemberRemovedEvent {
2901
+ created_at: Date;
2902
+ fid: string;
2903
+ member_id: string;
2904
+ custom: Record<string, any>;
2905
+ type: string;
2906
+ received_at?: Date;
2907
+ user?: UserResponseCommonFields;
2908
+ }
2909
+ export interface FeedMemberRequest {
2910
+ user_id: string;
2911
+ invite?: boolean;
2912
+ role?: string;
2913
+ custom?: Record<string, any>;
2914
+ }
2915
+ export interface FeedMemberResponse {
2916
+ created_at: Date;
2917
+ role: string;
2918
+ status: 'member' | 'pending' | 'rejected';
2919
+ updated_at: Date;
2920
+ user: UserResponse;
2921
+ invite_accepted_at?: Date;
2922
+ invite_rejected_at?: Date;
2923
+ custom?: Record<string, any>;
2924
+ }
2925
+ export interface FeedMemberUpdatedEvent {
2926
+ created_at: Date;
2927
+ fid: string;
2928
+ custom: Record<string, any>;
2929
+ member: FeedMemberResponse;
2930
+ type: string;
2931
+ received_at?: Date;
2932
+ user?: UserResponseCommonFields;
2933
+ }
2934
+ export declare const FeedOwnCapability: {
2935
+ readonly ADD_ACTIVITY: "add-activity";
2936
+ readonly ADD_ACTIVITY_REACTION: "add-activity-reaction";
2937
+ readonly ADD_COMMENT: "add-comment";
2938
+ readonly ADD_COMMENT_REACTION: "add-comment-reaction";
2939
+ readonly BOOKMARK_ACTIVITY: "bookmark-activity";
2940
+ readonly CREATE_FEED: "create-feed";
2941
+ readonly DELETE_BOOKMARK: "delete-bookmark";
2942
+ readonly DELETE_COMMENT: "delete-comment";
2943
+ readonly DELETE_FEED: "delete-feed";
2944
+ readonly EDIT_BOOKMARK: "edit-bookmark";
2945
+ readonly FOLLOW: "follow";
2946
+ readonly INVITE_FEED: "invite-feed";
2947
+ readonly JOIN_FEED: "join-feed";
2948
+ readonly LEAVE_FEED: "leave-feed";
2949
+ readonly MANAGE_FEED_GROUP: "manage-feed-group";
2950
+ readonly MARK_ACTIVITY: "mark-activity";
2951
+ readonly PIN_ACTIVITY: "pin-activity";
2952
+ readonly QUERY_FEED_MEMBERS: "query-feed-members";
2953
+ readonly QUERY_FOLLOWS: "query-follows";
2954
+ readonly READ_ACTIVITIES: "read-activities";
2955
+ readonly READ_FEED: "read-feed";
2956
+ readonly REMOVE_ACTIVITY: "remove-activity";
2957
+ readonly REMOVE_ACTIVITY_REACTION: "remove-activity-reaction";
2958
+ readonly REMOVE_COMMENT_REACTION: "remove-comment-reaction";
2959
+ readonly UNFOLLOW: "unfollow";
2960
+ readonly UPDATE_ACTIVITY: "update-activity";
2961
+ readonly UPDATE_COMMENT: "update-comment";
2962
+ readonly UPDATE_FEED: "update-feed";
2963
+ readonly UPDATE_FEED_FOLLOWERS: "update-feed-followers";
2964
+ readonly UPDATE_FEED_MEMBERS: "update-feed-members";
2965
+ };
2966
+ export type FeedOwnCapability = (typeof FeedOwnCapability)[keyof typeof FeedOwnCapability];
2967
+ export interface FeedRequest {
2968
+ feed_group_id: string;
2969
+ feed_id: string;
2970
+ created_by_id?: string;
2971
+ description?: string;
2972
+ name?: string;
2973
+ visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
2974
+ filter_tags?: string[];
2975
+ members?: FeedMemberRequest[];
2976
+ custom?: Record<string, any>;
2977
+ }
2978
+ export interface FeedResponse {
2979
+ created_at: Date;
2980
+ description: string;
2981
+ fid: string;
2982
+ follower_count: number;
2983
+ following_count: number;
2984
+ group_id: string;
2985
+ id: string;
2986
+ member_count: number;
2987
+ name: string;
2988
+ pin_count: number;
2989
+ updated_at: Date;
2990
+ created_by: UserResponse;
2991
+ deleted_at?: Date;
2992
+ visibility?: string;
2993
+ filter_tags?: string[];
2994
+ custom?: Record<string, any>;
2995
+ }
2996
+ export interface FeedUpdatedEvent {
2997
+ created_at: Date;
2998
+ fid: string;
2999
+ custom: Record<string, any>;
3000
+ feed: FeedResponse;
3001
+ type: string;
3002
+ received_at?: Date;
3003
+ user?: UserResponseCommonFields;
3004
+ }
3005
+ export interface FeedViewResponse {
3006
+ view_id: string;
3007
+ last_used_at?: Date;
3008
+ activity_processors?: ActivityProcessorConfig[];
3009
+ activity_selectors?: ActivitySelectorConfig[];
3010
+ aggregation?: AggregationConfig;
3011
+ ranking?: RankingConfig;
3012
+ }
2301
3013
  export interface FeedsModerationTemplateConfig {
2302
3014
  config_key: string;
2303
3015
  data_types: Record<string, string>;
2304
3016
  }
3017
+ export interface FeedsReactionResponse {
3018
+ activity_id: string;
3019
+ created_at: Date;
3020
+ type: string;
3021
+ updated_at: Date;
3022
+ user: UserResponse;
3023
+ comment_id?: string;
3024
+ custom?: Record<string, any>;
3025
+ }
2305
3026
  export interface Field {
2306
3027
  short: boolean;
2307
3028
  title: string;
@@ -2381,24 +3102,78 @@ export interface FlagRequest {
2381
3102
  reason?: string;
2382
3103
  user_id?: string;
2383
3104
  custom?: Record<string, any>;
2384
- moderation_payload?: ModerationPayload;
2385
- user?: UserRequest;
3105
+ moderation_payload?: ModerationPayload;
3106
+ user?: UserRequest;
3107
+ }
3108
+ export interface FlagResponse {
3109
+ duration: string;
3110
+ item_id: string;
3111
+ }
3112
+ export interface FlagUpdatedEvent {
3113
+ created_at: Date;
3114
+ custom: Record<string, any>;
3115
+ type: string;
3116
+ received_at?: Date;
3117
+ created_by?: UserResponse;
3118
+ message?: MessageResponse;
3119
+ user?: UserResponse;
3120
+ }
3121
+ export interface FlagUserOptions {
3122
+ reason: string;
3123
+ }
3124
+ export interface FollowBatchRequest {
3125
+ follows: FollowRequest[];
3126
+ }
3127
+ export interface FollowBatchResponse {
3128
+ duration: string;
3129
+ follows: FollowResponse[];
3130
+ }
3131
+ export interface FollowCreatedEvent {
3132
+ created_at: Date;
3133
+ fid: string;
3134
+ custom: Record<string, any>;
3135
+ follow: FollowResponse;
3136
+ type: string;
3137
+ received_at?: Date;
3138
+ }
3139
+ export interface FollowDeletedEvent {
3140
+ created_at: Date;
3141
+ fid: string;
3142
+ custom: Record<string, any>;
3143
+ follow: FollowResponse;
3144
+ type: string;
3145
+ received_at?: Date;
3146
+ }
3147
+ export interface FollowPair {
3148
+ source: string;
3149
+ target: string;
3150
+ }
3151
+ export interface FollowRequest {
3152
+ source: string;
3153
+ target: string;
3154
+ create_notification_activity?: boolean;
3155
+ push_preference?: 'all' | 'none';
3156
+ custom?: Record<string, any>;
2386
3157
  }
2387
- export interface FlagResponse {
2388
- duration: string;
2389
- item_id: string;
3158
+ export interface FollowResponse {
3159
+ created_at: Date;
3160
+ follower_role: string;
3161
+ push_preference: 'all' | 'none';
3162
+ status: 'accepted' | 'pending' | 'rejected';
3163
+ updated_at: Date;
3164
+ source_feed: FeedResponse;
3165
+ target_feed: FeedResponse;
3166
+ request_accepted_at?: Date;
3167
+ request_rejected_at?: Date;
3168
+ custom?: Record<string, any>;
2390
3169
  }
2391
- export interface FlagUpdatedEvent {
3170
+ export interface FollowUpdatedEvent {
2392
3171
  created_at: Date;
3172
+ fid: string;
2393
3173
  custom: Record<string, any>;
3174
+ follow: FollowResponse;
2394
3175
  type: string;
2395
3176
  received_at?: Date;
2396
- created_by?: UserResponse;
2397
- message?: MessageResponse;
2398
- user?: UserResponse;
2399
- }
2400
- export interface FlagUserOptions {
2401
- reason: string;
2402
3177
  }
2403
3178
  export interface FrameRecordSettings {
2404
3179
  capture_interval_in_seconds: number;
@@ -2477,6 +3252,10 @@ export interface GetActiveCallsStatusResponse {
2477
3252
  metrics?: ActiveCallsMetrics;
2478
3253
  summary?: ActiveCallsSummary;
2479
3254
  }
3255
+ export interface GetActivityResponse {
3256
+ duration: string;
3257
+ activity: ActivityResponse;
3258
+ }
2480
3259
  export interface GetApplicationResponse {
2481
3260
  duration: string;
2482
3261
  app: AppResponseFields;
@@ -2563,6 +3342,22 @@ export interface GetCommandResponse {
2563
3342
  created_at?: Date;
2564
3343
  updated_at?: Date;
2565
3344
  }
3345
+ export interface GetCommentRepliesResponse {
3346
+ duration: string;
3347
+ comments: ThreadedCommentResponse[];
3348
+ next?: string;
3349
+ prev?: string;
3350
+ }
3351
+ export interface GetCommentResponse {
3352
+ duration: string;
3353
+ comment: CommentResponse;
3354
+ }
3355
+ export interface GetCommentsResponse {
3356
+ duration: string;
3357
+ comments: ThreadedCommentResponse[];
3358
+ next?: string;
3359
+ prev?: string;
3360
+ }
2566
3361
  export interface GetConfigResponse {
2567
3362
  duration: string;
2568
3363
  config?: ConfigResponse;
@@ -2579,6 +3374,18 @@ export interface GetEdgesResponse {
2579
3374
  duration: string;
2580
3375
  edges: EdgeResponse[];
2581
3376
  }
3377
+ export interface GetFeedGroupResponse {
3378
+ duration: string;
3379
+ feed_group: FeedGroupResponse;
3380
+ }
3381
+ export interface GetFeedViewResponse {
3382
+ duration: string;
3383
+ feed_view: FeedViewResponse;
3384
+ }
3385
+ export interface GetFollowSuggestionsResponse {
3386
+ duration: string;
3387
+ suggestions: FeedResponse[];
3388
+ }
2582
3389
  export interface GetImportResponse {
2583
3390
  duration: string;
2584
3391
  import_task?: ImportTask;
@@ -2631,6 +3438,43 @@ export interface GetOrCreateCallResponse {
2631
3438
  own_capabilities: OwnCapability[];
2632
3439
  call: CallResponse;
2633
3440
  }
3441
+ export interface GetOrCreateFeedRequest {
3442
+ limit?: number;
3443
+ next?: string;
3444
+ prev?: string;
3445
+ user_id?: string;
3446
+ view?: string;
3447
+ watch?: boolean;
3448
+ activity_selector_options?: Record<string, any>;
3449
+ data?: FeedInput;
3450
+ external_ranking?: Record<string, any>;
3451
+ filter?: Record<string, any>;
3452
+ followers_pagination?: PagerRequest;
3453
+ following_pagination?: PagerRequest;
3454
+ interest_weights?: Record<string, number>;
3455
+ member_pagination?: PagerRequest;
3456
+ user?: UserRequest;
3457
+ }
3458
+ export interface GetOrCreateFeedResponse {
3459
+ created: boolean;
3460
+ duration: string;
3461
+ activities: ActivityResponse[];
3462
+ aggregated_activities: AggregatedActivityResponse[];
3463
+ followers: FollowResponse[];
3464
+ following: FollowResponse[];
3465
+ members: FeedMemberResponse[];
3466
+ own_capabilities: FeedOwnCapability[];
3467
+ pinned_activities: ActivityPinResponse[];
3468
+ feed: FeedResponse;
3469
+ next?: string;
3470
+ prev?: string;
3471
+ own_follows?: FollowResponse[];
3472
+ followers_pagination?: PagerResponse;
3473
+ following_pagination?: PagerResponse;
3474
+ member_pagination?: PagerResponse;
3475
+ notification_status?: NotificationStatusResponse;
3476
+ own_membership?: FeedMemberResponse;
3477
+ }
2634
3478
  export interface GetPushTemplatesResponse {
2635
3479
  duration: string;
2636
3480
  templates: PushTemplate[];
@@ -2874,6 +3718,14 @@ export interface ListExternalStorageResponse {
2874
3718
  duration: string;
2875
3719
  external_storages: Record<string, ExternalStorageResponse>;
2876
3720
  }
3721
+ export interface ListFeedGroupsResponse {
3722
+ duration: string;
3723
+ groups: Record<string, FeedGroupResponse>;
3724
+ }
3725
+ export interface ListFeedViewsResponse {
3726
+ duration: string;
3727
+ views: Record<string, FeedViewResponse>;
3728
+ }
2877
3729
  export interface ListImportsResponse {
2878
3730
  duration: string;
2879
3731
  import_tasks: ImportTask[];
@@ -2898,6 +3750,14 @@ export interface ListTranscriptionsResponse {
2898
3750
  duration: string;
2899
3751
  transcriptions: CallTranscription[];
2900
3752
  }
3753
+ export interface MarkActivityRequest {
3754
+ mark_all_read?: boolean;
3755
+ mark_all_seen?: boolean;
3756
+ user_id?: string;
3757
+ mark_read?: string[];
3758
+ mark_watched?: string[];
3759
+ user?: UserRequest;
3760
+ }
2901
3761
  export interface MarkChannelsReadRequest {
2902
3762
  user_id?: string;
2903
3763
  read_by_channel?: Record<string, string>;
@@ -3408,6 +4268,10 @@ export interface NetworkMetricsReportResponse {
3408
4268
  export interface NoiseCancellationSettings {
3409
4269
  mode: 'available' | 'disabled' | 'auto-on';
3410
4270
  }
4271
+ export interface NotificationConfig {
4272
+ track_read?: boolean;
4273
+ track_seen?: boolean;
4274
+ }
3411
4275
  export interface NotificationMarkUnreadEvent {
3412
4276
  channel_id: string;
3413
4277
  channel_member_count: number;
@@ -3436,6 +4300,12 @@ export interface NotificationSettings {
3436
4300
  call_ring: EventNotificationSettings;
3437
4301
  session_started: EventNotificationSettings;
3438
4302
  }
4303
+ export interface NotificationStatusResponse {
4304
+ unread: number;
4305
+ unseen: number;
4306
+ last_seen_at?: Date;
4307
+ read_activities?: string[];
4308
+ }
3439
4309
  export interface NullTime {
3440
4310
  }
3441
4311
  export interface OCRRule {
@@ -3538,6 +4408,11 @@ export interface OwnUserResponse {
3538
4408
  teams_role?: Record<string, string>;
3539
4409
  total_unread_count_by_team?: Record<string, number>;
3540
4410
  }
4411
+ export interface PagerRequest {
4412
+ limit?: number;
4413
+ next?: string;
4414
+ prev?: string;
4415
+ }
3541
4416
  export interface PagerResponse {
3542
4417
  next?: string;
3543
4418
  prev?: string;
@@ -3608,6 +4483,17 @@ export interface PermissionRequestEvent {
3608
4483
  user: UserResponse;
3609
4484
  type: string;
3610
4485
  }
4486
+ export interface PinActivityRequest {
4487
+ user_id?: string;
4488
+ user?: UserRequest;
4489
+ }
4490
+ export interface PinActivityResponse {
4491
+ created_at: Date;
4492
+ duration: string;
4493
+ fid: string;
4494
+ user_id: string;
4495
+ activity: ActivityResponse;
4496
+ }
3611
4497
  export interface PinRequest {
3612
4498
  session_id: string;
3613
4499
  user_id: string;
@@ -3882,6 +4768,32 @@ export interface QualityScoreReport {
3882
4768
  export interface QualityScoreReportResponse {
3883
4769
  daily: DailyAggregateQualityScoreReportResponse[];
3884
4770
  }
4771
+ export interface QueryActivitiesRequest {
4772
+ limit?: number;
4773
+ next?: string;
4774
+ prev?: string;
4775
+ sort?: SortParamRequest[];
4776
+ filter?: Record<string, any>;
4777
+ }
4778
+ export interface QueryActivitiesResponse {
4779
+ duration: string;
4780
+ activities: ActivityResponse[];
4781
+ next?: string;
4782
+ prev?: string;
4783
+ }
4784
+ export interface QueryActivityReactionsRequest {
4785
+ limit?: number;
4786
+ next?: string;
4787
+ prev?: string;
4788
+ sort?: SortParamRequest[];
4789
+ filter?: Record<string, any>;
4790
+ }
4791
+ export interface QueryActivityReactionsResponse {
4792
+ duration: string;
4793
+ reactions: FeedsReactionResponse[];
4794
+ next?: string;
4795
+ prev?: string;
4796
+ }
3885
4797
  export interface QueryAggregateCallStatsRequest {
3886
4798
  from?: string;
3887
4799
  to?: string;
@@ -3910,6 +4822,32 @@ export interface QueryBannedUsersResponse {
3910
4822
  duration: string;
3911
4823
  bans: BanResponse[];
3912
4824
  }
4825
+ export interface QueryBookmarkFoldersRequest {
4826
+ limit?: number;
4827
+ next?: string;
4828
+ prev?: string;
4829
+ sort?: SortParamRequest[];
4830
+ filter?: Record<string, any>;
4831
+ }
4832
+ export interface QueryBookmarkFoldersResponse {
4833
+ duration: string;
4834
+ bookmark_folders: BookmarkFolderResponse[];
4835
+ next?: string;
4836
+ prev?: string;
4837
+ }
4838
+ export interface QueryBookmarksRequest {
4839
+ limit?: number;
4840
+ next?: string;
4841
+ prev?: string;
4842
+ sort?: SortParamRequest[];
4843
+ filter?: Record<string, any>;
4844
+ }
4845
+ export interface QueryBookmarksResponse {
4846
+ duration: string;
4847
+ bookmarks: BookmarkResponse[];
4848
+ next?: string;
4849
+ prev?: string;
4850
+ }
3913
4851
  export interface QueryCallMembersRequest {
3914
4852
  id: string;
3915
4853
  type: string;
@@ -3991,6 +4929,32 @@ export interface QueryChannelsResponse {
3991
4929
  duration: string;
3992
4930
  channels: ChannelStateResponseFields[];
3993
4931
  }
4932
+ export interface QueryCommentReactionsRequest {
4933
+ limit?: number;
4934
+ next?: string;
4935
+ prev?: string;
4936
+ sort?: SortParamRequest[];
4937
+ filter?: Record<string, any>;
4938
+ }
4939
+ export interface QueryCommentReactionsResponse {
4940
+ duration: string;
4941
+ reactions: FeedsReactionResponse[];
4942
+ next?: string;
4943
+ prev?: string;
4944
+ }
4945
+ export interface QueryCommentsRequest {
4946
+ filter: Record<string, any>;
4947
+ limit?: number;
4948
+ next?: string;
4949
+ prev?: string;
4950
+ sort?: 'first' | 'last' | 'top' | 'best' | 'controversial';
4951
+ }
4952
+ export interface QueryCommentsResponse {
4953
+ duration: string;
4954
+ comments: CommentResponse[];
4955
+ next?: string;
4956
+ prev?: string;
4957
+ }
3994
4958
  export interface QueryDraftsRequest {
3995
4959
  limit?: number;
3996
4960
  next?: string;
@@ -4006,6 +4970,19 @@ export interface QueryDraftsResponse {
4006
4970
  next?: string;
4007
4971
  prev?: string;
4008
4972
  }
4973
+ export interface QueryFeedMembersRequest {
4974
+ limit?: number;
4975
+ next?: string;
4976
+ prev?: string;
4977
+ sort?: SortParamRequest[];
4978
+ filter?: Record<string, any>;
4979
+ }
4980
+ export interface QueryFeedMembersResponse {
4981
+ duration: string;
4982
+ members: FeedMemberResponse[];
4983
+ next?: string;
4984
+ prev?: string;
4985
+ }
4009
4986
  export interface QueryFeedModerationTemplate {
4010
4987
  created_at: Date;
4011
4988
  name: string;
@@ -4016,6 +4993,33 @@ export interface QueryFeedModerationTemplatesResponse {
4016
4993
  duration: string;
4017
4994
  templates: QueryFeedModerationTemplate[];
4018
4995
  }
4996
+ export interface QueryFeedsRequest {
4997
+ limit?: number;
4998
+ next?: string;
4999
+ prev?: string;
5000
+ watch?: boolean;
5001
+ sort?: SortParamRequest[];
5002
+ filter?: Record<string, any>;
5003
+ }
5004
+ export interface QueryFeedsResponse {
5005
+ duration: string;
5006
+ feeds: FeedResponse[];
5007
+ next?: string;
5008
+ prev?: string;
5009
+ }
5010
+ export interface QueryFollowsRequest {
5011
+ limit?: number;
5012
+ next?: string;
5013
+ prev?: string;
5014
+ sort?: SortParamRequest[];
5015
+ filter?: Record<string, any>;
5016
+ }
5017
+ export interface QueryFollowsResponse {
5018
+ duration: string;
5019
+ follows: FollowResponse[];
5020
+ next?: string;
5021
+ prev?: string;
5022
+ }
4019
5023
  export interface QueryMembersPayload {
4020
5024
  type: string;
4021
5025
  filter_conditions: Record<string, any>;
@@ -4274,6 +5278,12 @@ export interface RTMPSettingsResponse {
4274
5278
  quality: string;
4275
5279
  layout: LayoutSettingsResponse;
4276
5280
  }
5281
+ export interface RankingConfig {
5282
+ score?: string;
5283
+ type?: string;
5284
+ defaults?: Record<string, any>;
5285
+ functions?: Record<string, DecayFunctionConfig>;
5286
+ }
4277
5287
  export interface Reaction {
4278
5288
  created_at: Date;
4279
5289
  message_id: string;
@@ -4401,6 +5411,22 @@ export interface RecordingEgressConfig {
4401
5411
  quality?: Quality;
4402
5412
  video_orientation_hint?: VideoOrientation;
4403
5413
  }
5414
+ export interface RejectFeedMemberInviteRequest {
5415
+ user_id?: string;
5416
+ user?: UserRequest;
5417
+ }
5418
+ export interface RejectFeedMemberInviteResponse {
5419
+ duration: string;
5420
+ member: FeedMemberResponse;
5421
+ }
5422
+ export interface RejectFollowRequest {
5423
+ source_fid: string;
5424
+ target_fid: string;
5425
+ }
5426
+ export interface RejectFollowResponse {
5427
+ duration: string;
5428
+ follow: FollowResponse;
5429
+ }
4404
5430
  export interface ReminderResponseData {
4405
5431
  channel_cid: string;
4406
5432
  created_at: Date;
@@ -4412,6 +5438,12 @@ export interface ReminderResponseData {
4412
5438
  message?: Message;
4413
5439
  user?: User;
4414
5440
  }
5441
+ export interface RepliesMeta {
5442
+ depth_truncated: boolean;
5443
+ has_more: boolean;
5444
+ remaining: number;
5445
+ next_cursor?: string;
5446
+ }
4415
5447
  export interface ReportByHistogramBucket {
4416
5448
  category: string;
4417
5449
  count: number;
@@ -4824,6 +5856,17 @@ export interface ShowChannelRequest {
4824
5856
  export interface ShowChannelResponse {
4825
5857
  duration: string;
4826
5858
  }
5859
+ export interface SingleFollowRequest {
5860
+ source: string;
5861
+ target: string;
5862
+ create_notification_activity?: boolean;
5863
+ push_preference?: 'all' | 'none';
5864
+ custom?: Record<string, any>;
5865
+ }
5866
+ export interface SingleFollowResponse {
5867
+ duration: string;
5868
+ follow: FollowResponse;
5869
+ }
4827
5870
  export interface SortParam {
4828
5871
  direction?: number;
4829
5872
  field?: string;
@@ -4931,6 +5974,10 @@ export interface StopTranscriptionRequest {
4931
5974
  export interface StopTranscriptionResponse {
4932
5975
  duration: string;
4933
5976
  }
5977
+ export interface StoriesConfig {
5978
+ expiration_behaviour?: string;
5979
+ skip_watched?: boolean;
5980
+ }
4934
5981
  export interface SubmitActionRequest {
4935
5982
  action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'kick_user' | 'end_call';
4936
5983
  item_id: string;
@@ -5051,6 +6098,34 @@ export interface ThreadUpdatedEvent {
5051
6098
  thread?: ThreadResponse;
5052
6099
  user?: User;
5053
6100
  }
6101
+ export interface ThreadedCommentResponse {
6102
+ confidence_score: number;
6103
+ created_at: Date;
6104
+ downvote_count: number;
6105
+ id: string;
6106
+ object_id: string;
6107
+ object_type: string;
6108
+ reaction_count: number;
6109
+ reply_count: number;
6110
+ score: number;
6111
+ status: string;
6112
+ updated_at: Date;
6113
+ upvote_count: number;
6114
+ mentioned_users: UserResponse[];
6115
+ own_reactions: FeedsReactionResponse[];
6116
+ user: UserResponse;
6117
+ controversy_score?: number;
6118
+ deleted_at?: Date;
6119
+ parent_id?: string;
6120
+ text?: string;
6121
+ attachments?: Attachment[];
6122
+ latest_reactions?: FeedsReactionResponse[];
6123
+ replies?: ThreadedCommentResponse[];
6124
+ custom?: Record<string, any>;
6125
+ meta?: RepliesMeta;
6126
+ moderation?: ModerationV2Response;
6127
+ reaction_groups?: Record<string, ReactionGroupResponse>;
6128
+ }
5054
6129
  export interface Thresholds {
5055
6130
  explicit?: LabelThresholds;
5056
6131
  spam?: LabelThresholds;
@@ -5143,6 +6218,15 @@ export interface UnblockedUserEvent {
5143
6218
  user: UserResponse;
5144
6219
  type: string;
5145
6220
  }
6221
+ export interface UnfollowBatchRequest {
6222
+ follows: FollowPair[];
6223
+ }
6224
+ export interface UnfollowBatchResponse {
6225
+ duration: string;
6226
+ }
6227
+ export interface UnfollowResponse {
6228
+ duration: string;
6229
+ }
5146
6230
  export interface UnmuteChannelRequest {
5147
6231
  expiration?: number;
5148
6232
  user_id?: string;
@@ -5158,6 +6242,12 @@ export interface UnmuteResponse {
5158
6242
  duration: string;
5159
6243
  non_existing_users?: string[];
5160
6244
  }
6245
+ export interface UnpinActivityResponse {
6246
+ duration: string;
6247
+ fid: string;
6248
+ user_id: string;
6249
+ activity: ActivityResponse;
6250
+ }
5161
6251
  export interface UnpinRequest {
5162
6252
  session_id: string;
5163
6253
  user_id: string;
@@ -5196,6 +6286,33 @@ export interface UnreadCountsThread {
5196
6286
  parent_message_id: string;
5197
6287
  unread_count: number;
5198
6288
  }
6289
+ export interface UpdateActivityPartialRequest {
6290
+ user_id?: string;
6291
+ unset?: string[];
6292
+ set?: Record<string, any>;
6293
+ user?: UserRequest;
6294
+ }
6295
+ export interface UpdateActivityPartialResponse {
6296
+ duration: string;
6297
+ activity: ActivityResponse;
6298
+ }
6299
+ export interface UpdateActivityRequest {
6300
+ expires_at?: Date;
6301
+ poll_id?: string;
6302
+ text?: string;
6303
+ user_id?: string;
6304
+ visibility?: string;
6305
+ attachments?: Attachment[];
6306
+ filter_tags?: string[];
6307
+ interest_tags?: string[];
6308
+ custom?: Record<string, any>;
6309
+ location?: ActivityLocation;
6310
+ user?: UserRequest;
6311
+ }
6312
+ export interface UpdateActivityResponse {
6313
+ duration: string;
6314
+ activity: ActivityResponse;
6315
+ }
5199
6316
  export interface UpdateAppRequest {
5200
6317
  async_url_enrich_enabled?: boolean;
5201
6318
  auto_translation_enabled?: boolean;
@@ -5251,6 +6368,28 @@ export interface UpdateBlockListResponse {
5251
6368
  duration: string;
5252
6369
  blocklist?: BlockListResponse;
5253
6370
  }
6371
+ export interface UpdateBookmarkFolderRequest {
6372
+ name?: string;
6373
+ user_id?: string;
6374
+ custom?: Record<string, any>;
6375
+ user?: UserRequest;
6376
+ }
6377
+ export interface UpdateBookmarkFolderResponse {
6378
+ duration: string;
6379
+ bookmark_folder: BookmarkFolderResponse;
6380
+ }
6381
+ export interface UpdateBookmarkRequest {
6382
+ folder_id?: string;
6383
+ new_folder_id?: string;
6384
+ user_id?: string;
6385
+ custom?: Record<string, any>;
6386
+ new_folder?: AddFolderRequest;
6387
+ user?: UserRequest;
6388
+ }
6389
+ export interface UpdateBookmarkResponse {
6390
+ duration: string;
6391
+ bookmark: BookmarkResponse;
6392
+ }
5254
6393
  export interface UpdateCallMembersRequest {
5255
6394
  remove_members?: string[];
5256
6395
  update_members?: MemberRequest[];
@@ -5399,6 +6538,14 @@ export interface UpdateCommandResponse {
5399
6538
  duration: string;
5400
6539
  command?: Command;
5401
6540
  }
6541
+ export interface UpdateCommentRequest {
6542
+ comment?: string;
6543
+ custom?: Record<string, any>;
6544
+ }
6545
+ export interface UpdateCommentResponse {
6546
+ duration: string;
6547
+ comment: CommentResponse;
6548
+ }
5402
6549
  export interface UpdateExternalStorageRequest {
5403
6550
  bucket: string;
5404
6551
  storage_type: 's3' | 'gcs' | 'abs';
@@ -5414,6 +6561,58 @@ export interface UpdateExternalStorageResponse {
5414
6561
  path: string;
5415
6562
  type: 's3' | 'gcs' | 'abs';
5416
6563
  }
6564
+ export interface UpdateFeedGroupRequest {
6565
+ default_view_id?: string;
6566
+ custom?: Record<string, any>;
6567
+ notification?: NotificationConfig;
6568
+ }
6569
+ export interface UpdateFeedGroupResponse {
6570
+ duration: string;
6571
+ feed_group: FeedGroupResponse;
6572
+ }
6573
+ export interface UpdateFeedMembersRequest {
6574
+ operation: 'upsert' | 'remove' | 'set';
6575
+ limit?: number;
6576
+ next?: string;
6577
+ prev?: string;
6578
+ members?: FeedMemberRequest[];
6579
+ }
6580
+ export interface UpdateFeedMembersResponse {
6581
+ duration: string;
6582
+ added: FeedMemberResponse[];
6583
+ removed_ids: string[];
6584
+ updated: FeedMemberResponse[];
6585
+ }
6586
+ export interface UpdateFeedRequest {
6587
+ created_by_id?: string;
6588
+ custom?: Record<string, any>;
6589
+ }
6590
+ export interface UpdateFeedResponse {
6591
+ duration: string;
6592
+ feed: FeedResponse;
6593
+ }
6594
+ export interface UpdateFeedViewRequest {
6595
+ activity_processors?: ActivityProcessorConfig[];
6596
+ activity_selectors?: ActivitySelectorConfig[];
6597
+ aggregation?: AggregationConfig;
6598
+ ranking?: RankingConfig;
6599
+ }
6600
+ export interface UpdateFeedViewResponse {
6601
+ duration: string;
6602
+ feed_view: FeedViewResponse;
6603
+ }
6604
+ export interface UpdateFollowRequest {
6605
+ source: string;
6606
+ target: string;
6607
+ create_notification_activity?: boolean;
6608
+ follower_role?: string;
6609
+ push_preference?: 'all' | 'none';
6610
+ custom?: Record<string, any>;
6611
+ }
6612
+ export interface UpdateFollowResponse {
6613
+ duration: string;
6614
+ follow: FollowResponse;
6615
+ }
5417
6616
  export interface UpdateLiveLocationRequest {
5418
6617
  created_by_device_id: string;
5419
6618
  message_id: string;
@@ -5529,6 +6728,13 @@ export interface UpdatedCallPermissionsEvent {
5529
6728
  user: UserResponse;
5530
6729
  type: string;
5531
6730
  }
6731
+ export interface UpsertActivitiesRequest {
6732
+ activities: ActivityRequest[];
6733
+ }
6734
+ export interface UpsertActivitiesResponse {
6735
+ duration: string;
6736
+ activities: ActivityResponse[];
6737
+ }
5532
6738
  export interface UpsertConfigRequest {
5533
6739
  key: string;
5534
6740
  async?: boolean;
@@ -5883,7 +7089,6 @@ export interface VideoSettingsResponse {
5883
7089
  export interface VoteData {
5884
7090
  answer_text?: string;
5885
7091
  option_id?: string;
5886
- option?: PollOptionResponseData;
5887
7092
  }
5888
7093
  export interface WSEvent {
5889
7094
  created_at: Date;
@@ -5914,9 +7119,285 @@ export interface WSEvent {
5914
7119
  thread?: ThreadResponse;
5915
7120
  user?: UserResponse;
5916
7121
  }
5917
- export interface WebhookEvent {
5918
- type: string;
5919
- }
7122
+ export type WebhookEvent = ({
7123
+ type: '*';
7124
+ } & AnyEvent) | ({
7125
+ type: 'activity.marked';
7126
+ } & ActivityMarkedEvent) | ({
7127
+ type: 'call.accepted';
7128
+ } & CallAcceptedEvent) | ({
7129
+ type: 'call.blocked_user';
7130
+ } & BlockedUserEvent) | ({
7131
+ type: 'call.closed_caption';
7132
+ } & ClosedCaptionEvent) | ({
7133
+ type: 'call.closed_captions_failed';
7134
+ } & CallClosedCaptionsFailedEvent) | ({
7135
+ type: 'call.closed_captions_started';
7136
+ } & CallClosedCaptionsStartedEvent) | ({
7137
+ type: 'call.closed_captions_stopped';
7138
+ } & CallClosedCaptionsStoppedEvent) | ({
7139
+ type: 'call.created';
7140
+ } & CallCreatedEvent) | ({
7141
+ type: 'call.deleted';
7142
+ } & CallDeletedEvent) | ({
7143
+ type: 'call.ended';
7144
+ } & CallEndedEvent) | ({
7145
+ type: 'call.frame_recording_failed';
7146
+ } & CallFrameRecordingFailedEvent) | ({
7147
+ type: 'call.frame_recording_ready';
7148
+ } & CallFrameRecordingFrameReadyEvent) | ({
7149
+ type: 'call.frame_recording_started';
7150
+ } & CallFrameRecordingStartedEvent) | ({
7151
+ type: 'call.frame_recording_stopped';
7152
+ } & CallFrameRecordingStoppedEvent) | ({
7153
+ type: 'call.hls_broadcasting_failed';
7154
+ } & CallHLSBroadcastingFailedEvent) | ({
7155
+ type: 'call.hls_broadcasting_started';
7156
+ } & CallHLSBroadcastingStartedEvent) | ({
7157
+ type: 'call.hls_broadcasting_stopped';
7158
+ } & CallHLSBroadcastingStoppedEvent) | ({
7159
+ type: 'call.live_started';
7160
+ } & CallLiveStartedEvent) | ({
7161
+ type: 'call.member_added';
7162
+ } & CallMemberAddedEvent) | ({
7163
+ type: 'call.member_removed';
7164
+ } & CallMemberRemovedEvent) | ({
7165
+ type: 'call.member_updated';
7166
+ } & CallMemberUpdatedEvent) | ({
7167
+ type: 'call.member_updated_permission';
7168
+ } & CallMemberUpdatedPermissionEvent) | ({
7169
+ type: 'call.missed';
7170
+ } & CallMissedEvent) | ({
7171
+ type: 'call.moderation_blur';
7172
+ } & CallModerationBlurEvent) | ({
7173
+ type: 'call.moderation_warning';
7174
+ } & CallModerationWarningEvent) | ({
7175
+ type: 'call.notification';
7176
+ } & CallNotificationEvent) | ({
7177
+ type: 'call.permission_request';
7178
+ } & PermissionRequestEvent) | ({
7179
+ type: 'call.permissions_updated';
7180
+ } & UpdatedCallPermissionsEvent) | ({
7181
+ type: 'call.reaction_new';
7182
+ } & CallReactionEvent) | ({
7183
+ type: 'call.recording_failed';
7184
+ } & CallRecordingFailedEvent) | ({
7185
+ type: 'call.recording_ready';
7186
+ } & CallRecordingReadyEvent) | ({
7187
+ type: 'call.recording_started';
7188
+ } & CallRecordingStartedEvent) | ({
7189
+ type: 'call.recording_stopped';
7190
+ } & CallRecordingStoppedEvent) | ({
7191
+ type: 'call.rejected';
7192
+ } & CallRejectedEvent) | ({
7193
+ type: 'call.ring';
7194
+ } & CallRingEvent) | ({
7195
+ type: 'call.rtmp_broadcast_failed';
7196
+ } & CallRtmpBroadcastFailedEvent) | ({
7197
+ type: 'call.rtmp_broadcast_started';
7198
+ } & CallRtmpBroadcastStartedEvent) | ({
7199
+ type: 'call.rtmp_broadcast_stopped';
7200
+ } & CallRtmpBroadcastStoppedEvent) | ({
7201
+ type: 'call.session_ended';
7202
+ } & CallSessionEndedEvent) | ({
7203
+ type: 'call.session_participant_joined';
7204
+ } & CallSessionParticipantJoinedEvent) | ({
7205
+ type: 'call.session_participant_left';
7206
+ } & CallSessionParticipantLeftEvent) | ({
7207
+ type: 'call.session_started';
7208
+ } & CallSessionStartedEvent) | ({
7209
+ type: 'call.stats_report_ready';
7210
+ } & CallStatsReportReadyEvent) | ({
7211
+ type: 'call.transcription_failed';
7212
+ } & CallTranscriptionFailedEvent) | ({
7213
+ type: 'call.transcription_ready';
7214
+ } & CallTranscriptionReadyEvent) | ({
7215
+ type: 'call.transcription_started';
7216
+ } & CallTranscriptionStartedEvent) | ({
7217
+ type: 'call.transcription_stopped';
7218
+ } & CallTranscriptionStoppedEvent) | ({
7219
+ type: 'call.unblocked_user';
7220
+ } & UnblockedUserEvent) | ({
7221
+ type: 'call.updated';
7222
+ } & CallUpdatedEvent) | ({
7223
+ type: 'call.user_feedback_submitted';
7224
+ } & CallUserFeedbackSubmittedEvent) | ({
7225
+ type: 'call.user_muted';
7226
+ } & CallUserMutedEvent) | ({
7227
+ type: 'campaign.completed';
7228
+ } & CampaignCompletedEvent) | ({
7229
+ type: 'campaign.started';
7230
+ } & CampaignStartedEvent) | ({
7231
+ type: 'channel.created';
7232
+ } & ChannelCreatedEvent) | ({
7233
+ type: 'channel.deleted';
7234
+ } & ChannelDeletedEvent) | ({
7235
+ type: 'channel.frozen';
7236
+ } & ChannelFrozenEvent) | ({
7237
+ type: 'channel.hidden';
7238
+ } & ChannelHiddenEvent) | ({
7239
+ type: 'channel.muted';
7240
+ } & ChannelMutedEvent) | ({
7241
+ type: 'channel.truncated';
7242
+ } & ChannelTruncatedEvent) | ({
7243
+ type: 'channel.unfrozen';
7244
+ } & ChannelUnFrozenEvent) | ({
7245
+ type: 'channel.unmuted';
7246
+ } & ChannelUnmutedEvent) | ({
7247
+ type: 'channel.updated';
7248
+ } & ChannelUpdatedEvent) | ({
7249
+ type: 'channel.visible';
7250
+ } & ChannelVisibleEvent) | ({
7251
+ type: 'custom';
7252
+ } & CustomVideoEvent) | ({
7253
+ type: 'export.bulk_image_moderation.error';
7254
+ } & AsyncExportErrorEvent) | ({
7255
+ type: 'export.bulk_image_moderation.success';
7256
+ } & AsyncBulkImageModerationEvent) | ({
7257
+ type: 'export.channels.error';
7258
+ } & AsyncExportErrorEvent) | ({
7259
+ type: 'export.channels.success';
7260
+ } & AsyncExportChannelsEvent) | ({
7261
+ type: 'export.moderation_logs.error';
7262
+ } & AsyncExportErrorEvent) | ({
7263
+ type: 'export.moderation_logs.success';
7264
+ } & AsyncExportModerationLogsEvent) | ({
7265
+ type: 'export.users.error';
7266
+ } & AsyncExportErrorEvent) | ({
7267
+ type: 'export.users.success';
7268
+ } & AsyncExportUsersEvent) | ({
7269
+ type: 'feeds.activity.added';
7270
+ } & ActivityAddedEvent) | ({
7271
+ type: 'feeds.activity.deleted';
7272
+ } & ActivityDeletedEvent) | ({
7273
+ type: 'feeds.activity.marked';
7274
+ } & ActivityMarkEvent) | ({
7275
+ type: 'feeds.activity.pinned';
7276
+ } & ActivityPinnedEvent) | ({
7277
+ type: 'feeds.activity.reaction.added';
7278
+ } & ActivityReactionAddedEvent) | ({
7279
+ type: 'feeds.activity.reaction.deleted';
7280
+ } & ActivityReactionDeletedEvent) | ({
7281
+ type: 'feeds.activity.reaction.updated';
7282
+ } & ActivityReactionUpdatedEvent) | ({
7283
+ type: 'feeds.activity.removed_from_feed';
7284
+ } & ActivityRemovedFromFeedEvent) | ({
7285
+ type: 'feeds.activity.unpinned';
7286
+ } & ActivityUnpinnedEvent) | ({
7287
+ type: 'feeds.activity.updated';
7288
+ } & ActivityUpdatedEvent) | ({
7289
+ type: 'feeds.bookmark.added';
7290
+ } & BookmarkAddedEvent) | ({
7291
+ type: 'feeds.bookmark.deleted';
7292
+ } & BookmarkDeletedEvent) | ({
7293
+ type: 'feeds.bookmark.updated';
7294
+ } & BookmarkUpdatedEvent) | ({
7295
+ type: 'feeds.bookmark_folder.deleted';
7296
+ } & BookmarkFolderDeletedEvent) | ({
7297
+ type: 'feeds.bookmark_folder.updated';
7298
+ } & BookmarkFolderUpdatedEvent) | ({
7299
+ type: 'feeds.comment.added';
7300
+ } & CommentAddedEvent) | ({
7301
+ type: 'feeds.comment.deleted';
7302
+ } & CommentDeletedEvent) | ({
7303
+ type: 'feeds.comment.reaction.added';
7304
+ } & CommentReactionAddedEvent) | ({
7305
+ type: 'feeds.comment.reaction.deleted';
7306
+ } & CommentReactionDeletedEvent) | ({
7307
+ type: 'feeds.comment.reaction.updated';
7308
+ } & CommentReactionUpdatedEvent) | ({
7309
+ type: 'feeds.comment.updated';
7310
+ } & CommentUpdatedEvent) | ({
7311
+ type: 'feeds.feed.created';
7312
+ } & FeedCreatedEvent) | ({
7313
+ type: 'feeds.feed.deleted';
7314
+ } & FeedDeletedEvent) | ({
7315
+ type: 'feeds.feed.updated';
7316
+ } & FeedUpdatedEvent) | ({
7317
+ type: 'feeds.feed_group.changed';
7318
+ } & FeedGroupChangedEvent) | ({
7319
+ type: 'feeds.feed_group.deleted';
7320
+ } & FeedGroupDeletedEvent) | ({
7321
+ type: 'feeds.feed_member.added';
7322
+ } & FeedMemberAddedEvent) | ({
7323
+ type: 'feeds.feed_member.removed';
7324
+ } & FeedMemberRemovedEvent) | ({
7325
+ type: 'feeds.feed_member.updated';
7326
+ } & FeedMemberUpdatedEvent) | ({
7327
+ type: 'feeds.follow.created';
7328
+ } & FollowCreatedEvent) | ({
7329
+ type: 'feeds.follow.deleted';
7330
+ } & FollowDeletedEvent) | ({
7331
+ type: 'feeds.follow.updated';
7332
+ } & FollowUpdatedEvent) | ({
7333
+ type: 'flag.updated';
7334
+ } & FlagUpdatedEvent) | ({
7335
+ type: 'member.added';
7336
+ } & MemberAddedEvent) | ({
7337
+ type: 'member.removed';
7338
+ } & MemberRemovedEvent) | ({
7339
+ type: 'member.updated';
7340
+ } & MemberUpdatedEvent) | ({
7341
+ type: 'message.deleted';
7342
+ } & MessageDeletedEvent) | ({
7343
+ type: 'message.flagged';
7344
+ } & MessageFlaggedEvent) | ({
7345
+ type: 'message.new';
7346
+ } & MessageNewEvent) | ({
7347
+ type: 'message.pending';
7348
+ } & PendingMessageEvent) | ({
7349
+ type: 'message.read';
7350
+ } & MessageReadEvent) | ({
7351
+ type: 'message.unblocked';
7352
+ } & MessageUnblockedEvent) | ({
7353
+ type: 'message.undeleted';
7354
+ } & MessageUndeletedEvent) | ({
7355
+ type: 'message.updated';
7356
+ } & MessageUpdatedEvent) | ({
7357
+ type: 'moderation.custom_action';
7358
+ } & ModerationCustomActionEvent) | ({
7359
+ type: 'moderation.flagged';
7360
+ } & ModerationFlaggedEvent) | ({
7361
+ type: 'moderation.mark_reviewed';
7362
+ } & ModerationMarkReviewedEvent) | ({
7363
+ type: 'moderation_check.completed';
7364
+ } & ModerationCheckCompletedEvent) | ({
7365
+ type: 'notification.mark_unread';
7366
+ } & NotificationMarkUnreadEvent) | ({
7367
+ type: 'notification.thread_message_new';
7368
+ } & MessageNewEvent) | ({
7369
+ type: 'reaction.deleted';
7370
+ } & ReactionDeletedEvent) | ({
7371
+ type: 'reaction.new';
7372
+ } & ReactionNewEvent) | ({
7373
+ type: 'reaction.updated';
7374
+ } & ReactionUpdatedEvent) | ({
7375
+ type: 'review_queue_item.new';
7376
+ } & ReviewQueueItemNewEvent) | ({
7377
+ type: 'review_queue_item.updated';
7378
+ } & ReviewQueueItemUpdatedEvent) | ({
7379
+ type: 'thread.updated';
7380
+ } & ThreadUpdatedEvent) | ({
7381
+ type: 'user.banned';
7382
+ } & UserBannedEvent) | ({
7383
+ type: 'user.deactivated';
7384
+ } & UserDeactivatedEvent) | ({
7385
+ type: 'user.deleted';
7386
+ } & UserDeletedEvent) | ({
7387
+ type: 'user.flagged';
7388
+ } & UserFlaggedEvent) | ({
7389
+ type: 'user.muted';
7390
+ } & UserMutedEvent) | ({
7391
+ type: 'user.reactivated';
7392
+ } & UserReactivatedEvent) | ({
7393
+ type: 'user.unbanned';
7394
+ } & UserUnbannedEvent) | ({
7395
+ type: 'user.unmuted';
7396
+ } & UserUnmutedEvent) | ({
7397
+ type: 'user.unread_message_reminder';
7398
+ } & UserUnreadReminderEvent) | ({
7399
+ type: 'user.updated';
7400
+ } & UserUpdatedEvent);
5920
7401
  export interface WrappedUnreadCountsResponse {
5921
7402
  duration: string;
5922
7403
  total_unread_count: number;