@stream-io/node-sdk 0.4.25 → 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 +6265 -3834
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +3 -1
  4. package/dist/index.es.mjs +6263 -3835
  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 +122 -79
  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 +1750 -47
  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 +91 -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 +550 -681
  32. package/src/gen/common/CommonApi.ts +712 -262
  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} +2248 -336
  36. package/src/gen/models/index.ts +4668 -2088
  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 +303 -203
  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;
@@ -91,7 +108,7 @@ export interface ActionLogResponse {
91
108
  type: string;
92
109
  user_id: string;
93
110
  custom: Record<string, any>;
94
- review_queue_item?: ReviewQueueItem;
111
+ review_queue_item?: ReviewQueueItemResponse;
95
112
  target_user?: UserResponse;
96
113
  user?: UserResponse;
97
114
  }
@@ -104,6 +121,306 @@ export interface ActionSequence {
104
121
  warning: boolean;
105
122
  warning_text: string;
106
123
  }
124
+ export interface ActiveCallsFPSStats {
125
+ p05: number;
126
+ p10: number;
127
+ p50: number;
128
+ p90: number;
129
+ }
130
+ export interface ActiveCallsLatencyStats {
131
+ p50: number;
132
+ p90: number;
133
+ }
134
+ export interface ActiveCallsMetrics {
135
+ join_call_api?: JoinCallAPIMetrics;
136
+ publishers?: PublishersMetrics;
137
+ subscribers?: SubscribersMetrics;
138
+ }
139
+ export interface ActiveCallsSummary {
140
+ active_calls: number;
141
+ active_publishers: number;
142
+ active_subscribers: number;
143
+ participants: number;
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
+ }
107
424
  export interface AnyEvent {
108
425
  created_at: Date;
109
426
  type: string;
@@ -224,13 +541,10 @@ export interface Attachment {
224
541
  footer?: string;
225
542
  footer_icon?: string;
226
543
  image_url?: string;
227
- latitude?: number;
228
- longitude?: number;
229
544
  og_scrape_url?: string;
230
545
  original_height?: number;
231
546
  original_width?: number;
232
547
  pretext?: string;
233
- stopped_sharing?: boolean;
234
548
  text?: string;
235
549
  thumb_url?: string;
236
550
  title?: string;
@@ -334,6 +648,12 @@ export interface BanActionRequest {
334
648
  shadow?: boolean;
335
649
  timeout?: number;
336
650
  }
651
+ export interface BanOptions {
652
+ duration: number;
653
+ ip_ban: boolean;
654
+ reason: string;
655
+ shadow_ban: boolean;
656
+ }
337
657
  export interface BanRequest {
338
658
  target_user_id: string;
339
659
  banned_by_id?: string;
@@ -354,6 +674,9 @@ export interface BanResponse {
354
674
  channel?: ChannelResponse;
355
675
  user?: UserResponse;
356
676
  }
677
+ export interface BlockContentOptions {
678
+ reason: string;
679
+ }
357
680
  export interface BlockListConfig {
358
681
  enabled: boolean;
359
682
  rules: BlockListRule[];
@@ -417,6 +740,61 @@ export interface BodyguardSeverityRule {
417
740
  action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
418
741
  severity: 'low' | 'medium' | 'high' | 'critical';
419
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
+ }
420
798
  export interface Bound {
421
799
  inclusive: boolean;
422
800
  value: number;
@@ -1126,6 +1504,7 @@ export interface Channel {
1126
1504
  last_message_at?: Date;
1127
1505
  member_count?: number;
1128
1506
  team?: string;
1507
+ active_live_locations?: SharedLocation[];
1129
1508
  invites?: ChannelMember[];
1130
1509
  members?: ChannelMember[];
1131
1510
  config?: ChannelConfig;
@@ -1151,6 +1530,7 @@ export interface ChannelConfig {
1151
1530
  reminders: boolean;
1152
1531
  replies: boolean;
1153
1532
  search: boolean;
1533
+ shared_locations: boolean;
1154
1534
  skip_last_msg_update_for_system_msgs: boolean;
1155
1535
  typing_events: boolean;
1156
1536
  updated_at: Date;
@@ -1184,6 +1564,7 @@ export interface ChannelConfigWithInfo {
1184
1564
  reminders: boolean;
1185
1565
  replies: boolean;
1186
1566
  search: boolean;
1567
+ shared_locations: boolean;
1187
1568
  skip_last_msg_update_for_system_msgs: boolean;
1188
1569
  typing_events: boolean;
1189
1570
  updated_at: Date;
@@ -1346,6 +1727,7 @@ export declare const ChannelOwnCapability: {
1346
1727
  readonly SEND_RESTRICTED_VISIBILITY_MESSAGE: "send-restricted-visibility-message";
1347
1728
  readonly SEND_TYPING_EVENTS: "send-typing-events";
1348
1729
  readonly SET_CHANNEL_COOLDOWN: "set-channel-cooldown";
1730
+ readonly SHARE_LOCATION: "share-location";
1349
1731
  readonly SKIP_SLOW_MODE: "skip-slow-mode";
1350
1732
  readonly SLOW_MODE: "slow-mode";
1351
1733
  readonly TYPING_EVENTS: "typing-events";
@@ -1398,6 +1780,7 @@ export interface ChannelStateResponse {
1398
1780
  hidden?: boolean;
1399
1781
  hide_messages_before?: Date;
1400
1782
  watcher_count?: number;
1783
+ active_live_locations?: SharedLocationResponseData[];
1401
1784
  pending_messages?: PendingMessageResponse[];
1402
1785
  read?: ReadStateResponse[];
1403
1786
  watchers?: UserResponse[];
@@ -1414,6 +1797,7 @@ export interface ChannelStateResponseFields {
1414
1797
  hidden?: boolean;
1415
1798
  hide_messages_before?: Date;
1416
1799
  watcher_count?: number;
1800
+ active_live_locations?: SharedLocationResponseData[];
1417
1801
  pending_messages?: PendingMessageResponse[];
1418
1802
  read?: ReadStateResponse[];
1419
1803
  watchers?: UserResponse[];
@@ -1449,6 +1833,7 @@ export interface ChannelTypeConfig {
1449
1833
  reminders: boolean;
1450
1834
  replies: boolean;
1451
1835
  search: boolean;
1836
+ shared_locations: boolean;
1452
1837
  skip_last_msg_update_for_system_msgs: boolean;
1453
1838
  typing_events: boolean;
1454
1839
  updated_at: Date;
@@ -1543,7 +1928,7 @@ export interface CheckResponse {
1543
1928
  recommended_action: string;
1544
1929
  status: string;
1545
1930
  task_id?: string;
1546
- item?: ReviewQueueItem;
1931
+ item?: ReviewQueueItemResponse;
1547
1932
  }
1548
1933
  export interface CheckSNSRequest {
1549
1934
  sns_key?: string;
@@ -1597,6 +1982,88 @@ export interface Command {
1597
1982
  created_at?: Date;
1598
1983
  updated_at?: Date;
1599
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
+ }
1600
2067
  export interface CommitMessageRequest {
1601
2068
  }
1602
2069
  export interface CompositeAppSettings {
@@ -1612,6 +2079,7 @@ export interface ConfigOverrides {
1612
2079
  quotes?: boolean;
1613
2080
  reactions?: boolean;
1614
2081
  replies?: boolean;
2082
+ shared_locations?: boolean;
1615
2083
  typing_events?: boolean;
1616
2084
  uploads?: boolean;
1617
2085
  url_enrichment?: boolean;
@@ -1630,9 +2098,14 @@ export interface ConfigResponse {
1630
2098
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
1631
2099
  automod_toxicity_config?: AutomodToxicityConfig;
1632
2100
  block_list_config?: BlockListConfig;
2101
+ rule_builder_config?: RuleBuilderConfig;
1633
2102
  velocity_filter_config?: VelocityFilterConfig;
1634
2103
  video_call_rule_config?: VideoCallRuleConfig;
1635
2104
  }
2105
+ export interface ContentCountRuleParameters {
2106
+ threshold: number;
2107
+ time_window: string;
2108
+ }
1636
2109
  export interface CountByMinuteResponse {
1637
2110
  count: number;
1638
2111
  start_ts: Date;
@@ -1684,6 +2157,7 @@ export interface CreateChannelTypeRequest {
1684
2157
  read_events?: boolean;
1685
2158
  replies?: boolean;
1686
2159
  search?: boolean;
2160
+ shared_locations?: boolean;
1687
2161
  skip_last_msg_update_for_system_msgs?: boolean;
1688
2162
  typing_events?: boolean;
1689
2163
  uploads?: boolean;
@@ -1713,6 +2187,7 @@ export interface CreateChannelTypeResponse {
1713
2187
  reminders: boolean;
1714
2188
  replies: boolean;
1715
2189
  search: boolean;
2190
+ shared_locations: boolean;
1716
2191
  skip_last_msg_update_for_system_msgs: boolean;
1717
2192
  typing_events: boolean;
1718
2193
  updated_at: Date;
@@ -1760,6 +2235,35 @@ export interface CreateExternalStorageRequest {
1760
2235
  export interface CreateExternalStorageResponse {
1761
2236
  duration: string;
1762
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
+ }
1763
2267
  export interface CreateGuestRequest {
1764
2268
  user: UserRequest;
1765
2269
  }
@@ -1786,7 +2290,6 @@ export interface CreateImportURLResponse {
1786
2290
  }
1787
2291
  export interface CreatePollOptionRequest {
1788
2292
  text: string;
1789
- position?: number;
1790
2293
  user_id?: string;
1791
2294
  custom?: Record<string, any>;
1792
2295
  user?: UserRequest;
@@ -1896,13 +2399,46 @@ export interface DeactivateUsersRequest {
1896
2399
  mark_channels_deleted?: boolean;
1897
2400
  mark_messages_deleted?: boolean;
1898
2401
  }
1899
- export interface DeactivateUsersResponse {
2402
+ export interface DeactivateUsersResponse {
2403
+ duration: string;
2404
+ task_id: string;
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 {
1900
2421
  duration: string;
1901
- task_id: string;
2422
+ deleted_activity_ids: string[];
2423
+ }
2424
+ export interface DeleteActivityReactionResponse {
2425
+ duration: string;
2426
+ activity: ActivityResponse;
2427
+ reaction: FeedsReactionResponse;
1902
2428
  }
1903
2429
  export interface DeleteActivityRequest {
1904
2430
  hard_delete?: boolean;
1905
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
+ }
1906
2442
  export interface DeleteCallRequest {
1907
2443
  hard?: boolean;
1908
2444
  }
@@ -1932,9 +2468,33 @@ export interface DeleteCommandResponse {
1932
2468
  duration: string;
1933
2469
  name: string;
1934
2470
  }
2471
+ export interface DeleteCommentReactionResponse {
2472
+ duration: string;
2473
+ comment: CommentResponse;
2474
+ reaction: FeedsReactionResponse;
2475
+ }
2476
+ export interface DeleteCommentResponse {
2477
+ duration: string;
2478
+ }
1935
2479
  export interface DeleteExternalStorageResponse {
1936
2480
  duration: string;
1937
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
+ }
1938
2498
  export interface DeleteMessageRequest {
1939
2499
  hard_delete?: boolean;
1940
2500
  }
@@ -2219,6 +2779,12 @@ export interface ExportChannelsResponse {
2219
2779
  duration: string;
2220
2780
  task_id: string;
2221
2781
  }
2782
+ export interface ExportFeedUserDataRequest {
2783
+ }
2784
+ export interface ExportFeedUserDataResponse {
2785
+ duration: string;
2786
+ task_id: string;
2787
+ }
2222
2788
  export interface ExportUserResponse {
2223
2789
  duration: string;
2224
2790
  messages?: MessageResponse[];
@@ -2256,10 +2822,207 @@ export interface ExternalStorageResponse {
2256
2822
  export interface FCM {
2257
2823
  data?: Record<string, any>;
2258
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
+ }
2259
3013
  export interface FeedsModerationTemplateConfig {
2260
3014
  config_key: string;
2261
3015
  data_types: Record<string, string>;
2262
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
+ }
2263
3026
  export interface Field {
2264
3027
  short: boolean;
2265
3028
  title: string;
@@ -2299,22 +3062,23 @@ export interface FirebaseConfigFields {
2299
3062
  }
2300
3063
  export interface Flag {
2301
3064
  created_at: Date;
2302
- entity_id: string;
2303
- entity_type: string;
3065
+ created_by_automod: boolean;
2304
3066
  updated_at: Date;
2305
- result: Array<Record<string, any>>;
2306
- entity_creator_id?: string;
2307
- is_streamed_content?: boolean;
2308
- moderation_payload_hash?: string;
3067
+ approved_at?: Date;
2309
3068
  reason?: string;
2310
- review_queue_item_id?: string;
2311
- type?: string;
2312
- labels?: string[];
3069
+ rejected_at?: Date;
3070
+ reviewed_at?: Date;
3071
+ reviewed_by?: string;
3072
+ target_message_id?: string;
2313
3073
  custom?: Record<string, any>;
2314
- moderation_payload?: ModerationPayload;
2315
- review_queue_item?: ReviewQueueItem;
3074
+ details?: FlagDetails;
3075
+ target_message?: Message;
3076
+ target_user?: User;
2316
3077
  user?: User;
2317
3078
  }
3079
+ export interface FlagContentOptions {
3080
+ reason: string;
3081
+ }
2318
3082
  export interface FlagDetails {
2319
3083
  original_text: string;
2320
3084
  extra: Record<string, any>;
@@ -2354,6 +3118,63 @@ export interface FlagUpdatedEvent {
2354
3118
  message?: MessageResponse;
2355
3119
  user?: UserResponse;
2356
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>;
3157
+ }
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>;
3169
+ }
3170
+ export interface FollowUpdatedEvent {
3171
+ created_at: Date;
3172
+ fid: string;
3173
+ custom: Record<string, any>;
3174
+ follow: FollowResponse;
3175
+ type: string;
3176
+ received_at?: Date;
3177
+ }
2357
3178
  export interface FrameRecordSettings {
2358
3179
  capture_interval_in_seconds: number;
2359
3180
  mode: 'available' | 'disabled' | 'auto-on';
@@ -2424,6 +3245,17 @@ export interface GeofenceSettingsRequest {
2424
3245
  export interface GeofenceSettingsResponse {
2425
3246
  names: string[];
2426
3247
  }
3248
+ export interface GetActiveCallsStatusResponse {
3249
+ duration: string;
3250
+ end_time: Date;
3251
+ start_time: Date;
3252
+ metrics?: ActiveCallsMetrics;
3253
+ summary?: ActiveCallsSummary;
3254
+ }
3255
+ export interface GetActivityResponse {
3256
+ duration: string;
3257
+ activity: ActivityResponse;
3258
+ }
2427
3259
  export interface GetApplicationResponse {
2428
3260
  duration: string;
2429
3261
  app: AppResponseFields;
@@ -2483,6 +3315,7 @@ export interface GetChannelTypeResponse {
2483
3315
  reminders: boolean;
2484
3316
  replies: boolean;
2485
3317
  search: boolean;
3318
+ shared_locations: boolean;
2486
3319
  skip_last_msg_update_for_system_msgs: boolean;
2487
3320
  typing_events: boolean;
2488
3321
  updated_at: Date;
@@ -2509,6 +3342,22 @@ export interface GetCommandResponse {
2509
3342
  created_at?: Date;
2510
3343
  updated_at?: Date;
2511
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
+ }
2512
3361
  export interface GetConfigResponse {
2513
3362
  duration: string;
2514
3363
  config?: ConfigResponse;
@@ -2525,6 +3374,18 @@ export interface GetEdgesResponse {
2525
3374
  duration: string;
2526
3375
  edges: EdgeResponse[];
2527
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
+ }
2528
3389
  export interface GetImportResponse {
2529
3390
  duration: string;
2530
3391
  import_task?: ImportTask;
@@ -2550,13 +3411,10 @@ export interface GetOGResponse {
2550
3411
  footer?: string;
2551
3412
  footer_icon?: string;
2552
3413
  image_url?: string;
2553
- latitude?: number;
2554
- longitude?: number;
2555
3414
  og_scrape_url?: string;
2556
3415
  original_height?: number;
2557
3416
  original_width?: number;
2558
3417
  pretext?: string;
2559
- stopped_sharing?: boolean;
2560
3418
  text?: string;
2561
3419
  thumb_url?: string;
2562
3420
  title?: string;
@@ -2580,6 +3438,43 @@ export interface GetOrCreateCallResponse {
2580
3438
  own_capabilities: OwnCapability[];
2581
3439
  call: CallResponse;
2582
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
+ }
2583
3478
  export interface GetPushTemplatesResponse {
2584
3479
  duration: string;
2585
3480
  templates: PushTemplate[];
@@ -2685,6 +3580,9 @@ export interface HuaweiConfigFields {
2685
3580
  id?: string;
2686
3581
  secret?: string;
2687
3582
  }
3583
+ export interface ImageContentParameters {
3584
+ harm_labels?: string[];
3585
+ }
2688
3586
  export interface ImageData {
2689
3587
  frames: string;
2690
3588
  height: string;
@@ -2692,6 +3590,11 @@ export interface ImageData {
2692
3590
  url: string;
2693
3591
  width: string;
2694
3592
  }
3593
+ export interface ImageRuleParameters {
3594
+ threshold: number;
3595
+ time_window: string;
3596
+ harm_labels?: string[];
3597
+ }
2695
3598
  export interface ImageSize {
2696
3599
  crop?: 'top' | 'bottom' | 'left' | 'right' | 'center';
2697
3600
  height?: number;
@@ -2733,6 +3636,11 @@ export interface ImportTaskHistory {
2733
3636
  next_state: string;
2734
3637
  prev_state: string;
2735
3638
  }
3639
+ export interface JoinCallAPIMetrics {
3640
+ failures: number;
3641
+ total: number;
3642
+ latency?: ActiveCallsLatencyStats;
3643
+ }
2736
3644
  export interface Label {
2737
3645
  name: string;
2738
3646
  harm_labels?: string[];
@@ -2769,16 +3677,22 @@ export interface LimitInfo {
2769
3677
  reset: number;
2770
3678
  }
2771
3679
  export interface LimitsSettings {
3680
+ max_participants_exclude_roles: string[];
2772
3681
  max_duration_seconds?: number;
2773
3682
  max_participants?: number;
3683
+ max_participants_exclude_owner?: boolean;
2774
3684
  }
2775
3685
  export interface LimitsSettingsRequest {
2776
3686
  max_duration_seconds?: number;
2777
3687
  max_participants?: number;
3688
+ max_participants_exclude_owner?: boolean;
3689
+ max_participants_exclude_roles?: string[];
2778
3690
  }
2779
3691
  export interface LimitsSettingsResponse {
3692
+ max_participants_exclude_roles: string[];
2780
3693
  max_duration_seconds?: number;
2781
3694
  max_participants?: number;
3695
+ max_participants_exclude_owner?: boolean;
2782
3696
  }
2783
3697
  export interface ListBlockListResponse {
2784
3698
  duration: string;
@@ -2804,6 +3718,14 @@ export interface ListExternalStorageResponse {
2804
3718
  duration: string;
2805
3719
  external_storages: Record<string, ExternalStorageResponse>;
2806
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
+ }
2807
3729
  export interface ListImportsResponse {
2808
3730
  duration: string;
2809
3731
  import_tasks: ImportTask[];
@@ -2828,6 +3750,14 @@ export interface ListTranscriptionsResponse {
2828
3750
  duration: string;
2829
3751
  transcriptions: CallTranscription[];
2830
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
+ }
2831
3761
  export interface MarkChannelsReadRequest {
2832
3762
  user_id?: string;
2833
3763
  read_by_channel?: Record<string, string>;
@@ -2944,6 +3874,7 @@ export interface Message {
2944
3874
  poll?: Poll;
2945
3875
  quoted_message?: Message;
2946
3876
  reminder?: MessageReminder;
3877
+ shared_location?: SharedLocation;
2947
3878
  user?: User;
2948
3879
  }
2949
3880
  export interface MessageActionRequest {
@@ -3081,6 +4012,7 @@ export interface MessageRequest {
3081
4012
  mentioned_users?: string[];
3082
4013
  restricted_visibility?: string[];
3083
4014
  custom?: Record<string, any>;
4015
+ shared_location?: SharedLocation;
3084
4016
  user?: UserRequest;
3085
4017
  }
3086
4018
  export interface MessageResponse {
@@ -3125,6 +4057,7 @@ export interface MessageResponse {
3125
4057
  quoted_message?: MessageResponse;
3126
4058
  reaction_groups?: Record<string, ReactionGroupResponse>;
3127
4059
  reminder?: ReminderResponseData;
4060
+ shared_location?: SharedLocationResponseData;
3128
4061
  }
3129
4062
  export interface MessageStatsResponse {
3130
4063
  count_over_time?: CountByMinuteResponse[];
@@ -3206,6 +4139,7 @@ export interface MessageWithChannelResponse {
3206
4139
  quoted_message?: MessageResponse;
3207
4140
  reaction_groups?: Record<string, ReactionGroupResponse>;
3208
4141
  reminder?: ReminderResponseData;
4142
+ shared_location?: SharedLocationResponseData;
3209
4143
  }
3210
4144
  export interface ModerationActionConfig {
3211
4145
  action: string;
@@ -3233,6 +4167,7 @@ export interface ModerationCustomActionEvent {
3233
4167
  user?: User;
3234
4168
  }
3235
4169
  export interface ModerationDashboardPreferences {
4170
+ flag_user_on_flagged_content?: boolean;
3236
4171
  media_queue_blur_enabled?: boolean;
3237
4172
  }
3238
4173
  export interface ModerationFlagResponse {
@@ -3249,7 +4184,7 @@ export interface ModerationFlagResponse {
3249
4184
  result?: Array<Record<string, any>>;
3250
4185
  custom?: Record<string, any>;
3251
4186
  moderation_payload?: ModerationPayload;
3252
- review_queue_item?: ReviewQueueItem;
4187
+ review_queue_item?: ReviewQueueItemResponse;
3253
4188
  user?: UserResponse;
3254
4189
  }
3255
4190
  export interface ModerationFlaggedEvent {
@@ -3333,6 +4268,10 @@ export interface NetworkMetricsReportResponse {
3333
4268
  export interface NoiseCancellationSettings {
3334
4269
  mode: 'available' | 'disabled' | 'auto-on';
3335
4270
  }
4271
+ export interface NotificationConfig {
4272
+ track_read?: boolean;
4273
+ track_seen?: boolean;
4274
+ }
3336
4275
  export interface NotificationMarkUnreadEvent {
3337
4276
  channel_id: string;
3338
4277
  channel_member_count: number;
@@ -3361,6 +4300,12 @@ export interface NotificationSettings {
3361
4300
  call_ring: EventNotificationSettings;
3362
4301
  session_started: EventNotificationSettings;
3363
4302
  }
4303
+ export interface NotificationStatusResponse {
4304
+ unread: number;
4305
+ unseen: number;
4306
+ last_seen_at?: Date;
4307
+ read_activities?: string[];
4308
+ }
3364
4309
  export interface NullTime {
3365
4310
  }
3366
4311
  export interface OCRRule {
@@ -3419,6 +4364,7 @@ export interface OwnUser {
3419
4364
  devices: Device[];
3420
4365
  mutes: UserMute[];
3421
4366
  custom: Record<string, any>;
4367
+ total_unread_count_by_team: Record<string, number>;
3422
4368
  deactivated_at?: Date;
3423
4369
  deleted_at?: Date;
3424
4370
  invisible?: boolean;
@@ -3460,6 +4406,12 @@ export interface OwnUserResponse {
3460
4406
  privacy_settings?: PrivacySettingsResponse;
3461
4407
  push_preferences?: PushPreferences;
3462
4408
  teams_role?: Record<string, string>;
4409
+ total_unread_count_by_team?: Record<string, number>;
4410
+ }
4411
+ export interface PagerRequest {
4412
+ limit?: number;
4413
+ next?: string;
4414
+ prev?: string;
3463
4415
  }
3464
4416
  export interface PagerResponse {
3465
4417
  next?: string;
@@ -3491,6 +4443,17 @@ export interface ParticipantReportResponse {
3491
4443
  publishers?: PublisherStatsResponse;
3492
4444
  subscribers?: SubscriberStatsResponse;
3493
4445
  }
4446
+ export interface PendingMessageEvent {
4447
+ created_at: Date;
4448
+ method: string;
4449
+ custom: Record<string, any>;
4450
+ type: string;
4451
+ received_at?: Date;
4452
+ channel?: Channel;
4453
+ message?: Message;
4454
+ metadata?: Record<string, string>;
4455
+ user?: User;
4456
+ }
3494
4457
  export interface PendingMessageResponse {
3495
4458
  channel?: ChannelResponse;
3496
4459
  message?: MessageResponse;
@@ -3520,6 +4483,17 @@ export interface PermissionRequestEvent {
3520
4483
  user: UserResponse;
3521
4484
  type: string;
3522
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
+ }
3523
4497
  export interface PinRequest {
3524
4498
  session_id: string;
3525
4499
  user_id: string;
@@ -3663,11 +4637,27 @@ export interface PrivacySettingsResponse {
3663
4637
  read_receipts?: ReadReceiptsResponse;
3664
4638
  typing_indicators?: TypingIndicatorsResponse;
3665
4639
  }
4640
+ export interface PublisherAllMetrics {
4641
+ audio?: PublisherAudioMetrics;
4642
+ rtt_ms?: ActiveCallsLatencyStats;
4643
+ video?: PublisherVideoMetrics;
4644
+ }
4645
+ export interface PublisherAudioMetrics {
4646
+ jitter_ms?: ActiveCallsLatencyStats;
4647
+ }
3666
4648
  export interface PublisherStatsResponse {
3667
4649
  total: number;
3668
4650
  unique: number;
3669
4651
  by_track?: TrackStatsResponse[];
3670
4652
  }
4653
+ export interface PublisherVideoMetrics {
4654
+ fps_30?: ActiveCallsFPSStats;
4655
+ frame_encoding_time_ms?: ActiveCallsLatencyStats;
4656
+ jitter_ms?: ActiveCallsLatencyStats;
4657
+ }
4658
+ export interface PublishersMetrics {
4659
+ all?: PublisherAllMetrics;
4660
+ }
3671
4661
  export interface PushConfig {
3672
4662
  version: 'v1' | 'v2' | 'v3';
3673
4663
  offline_only?: boolean;
@@ -3686,6 +4676,7 @@ export interface PushNotificationSettingsResponse {
3686
4676
  disabled_until?: Date;
3687
4677
  }
3688
4678
  export interface PushPreferenceInput {
4679
+ call_level?: 'all' | 'none' | 'default';
3689
4680
  channel_cid?: string;
3690
4681
  chat_level?: 'all' | 'mentions' | 'none' | 'default';
3691
4682
  disabled_until?: Date;
@@ -3771,11 +4762,37 @@ export interface Quality {
3771
4762
  video_bitrate?: number;
3772
4763
  width?: number;
3773
4764
  }
3774
- export interface QualityScoreReport {
3775
- histogram: ReportByHistogramBucket[];
4765
+ export interface QualityScoreReport {
4766
+ histogram: ReportByHistogramBucket[];
4767
+ }
4768
+ export interface QualityScoreReportResponse {
4769
+ daily: DailyAggregateQualityScoreReportResponse[];
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;
3776
4783
  }
3777
- export interface QualityScoreReportResponse {
3778
- daily: DailyAggregateQualityScoreReportResponse[];
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;
3779
4796
  }
3780
4797
  export interface QueryAggregateCallStatsRequest {
3781
4798
  from?: string;
@@ -3805,6 +4822,32 @@ export interface QueryBannedUsersResponse {
3805
4822
  duration: string;
3806
4823
  bans: BanResponse[];
3807
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
+ }
3808
4851
  export interface QueryCallMembersRequest {
3809
4852
  id: string;
3810
4853
  type: string;
@@ -3886,6 +4929,32 @@ export interface QueryChannelsResponse {
3886
4929
  duration: string;
3887
4930
  channels: ChannelStateResponseFields[];
3888
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
+ }
3889
4958
  export interface QueryDraftsRequest {
3890
4959
  limit?: number;
3891
4960
  next?: string;
@@ -3901,6 +4970,19 @@ export interface QueryDraftsResponse {
3901
4970
  next?: string;
3902
4971
  prev?: string;
3903
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
+ }
3904
4986
  export interface QueryFeedModerationTemplate {
3905
4987
  created_at: Date;
3906
4988
  name: string;
@@ -3911,6 +4993,33 @@ export interface QueryFeedModerationTemplatesResponse {
3911
4993
  duration: string;
3912
4994
  templates: QueryFeedModerationTemplate[];
3913
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
+ }
3914
5023
  export interface QueryMembersPayload {
3915
5024
  type: string;
3916
5025
  filter_conditions: Record<string, any>;
@@ -4169,6 +5278,12 @@ export interface RTMPSettingsResponse {
4169
5278
  quality: string;
4170
5279
  layout: LayoutSettingsResponse;
4171
5280
  }
5281
+ export interface RankingConfig {
5282
+ score?: string;
5283
+ type?: string;
5284
+ defaults?: Record<string, any>;
5285
+ functions?: Record<string, DecayFunctionConfig>;
5286
+ }
4172
5287
  export interface Reaction {
4173
5288
  created_at: Date;
4174
5289
  message_id: string;
@@ -4296,6 +5411,22 @@ export interface RecordingEgressConfig {
4296
5411
  quality?: Quality;
4297
5412
  video_orientation_hint?: VideoOrientation;
4298
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
+ }
4299
5430
  export interface ReminderResponseData {
4300
5431
  channel_cid: string;
4301
5432
  created_at: Date;
@@ -4307,6 +5438,12 @@ export interface ReminderResponseData {
4307
5438
  message?: Message;
4308
5439
  user?: User;
4309
5440
  }
5441
+ export interface RepliesMeta {
5442
+ depth_truncated: boolean;
5443
+ has_more: boolean;
5444
+ remaining: number;
5445
+ next_cursor?: string;
5446
+ }
4310
5447
  export interface ReportByHistogramBucket {
4311
5448
  category: string;
4312
5449
  count: number;
@@ -4351,6 +5488,7 @@ export interface ReviewQueueItem {
4351
5488
  flags: Flag[];
4352
5489
  languages: string[];
4353
5490
  teams: string[];
5491
+ completed_at: NullTime;
4354
5492
  reviewed_at: NullTime;
4355
5493
  activity?: EnrichedActivity;
4356
5494
  assigned_to?: User;
@@ -4434,29 +5572,43 @@ export interface Role {
4434
5572
  scopes: string[];
4435
5573
  }
4436
5574
  export interface RuleBuilderAction {
4437
- duration?: number;
4438
- ip_ban?: boolean;
4439
- reason?: string;
4440
- shadow_ban?: boolean;
4441
- type?: string;
5575
+ type: string;
5576
+ ban_options?: BanOptions;
5577
+ flag_content_options?: FlagContentOptions;
5578
+ flag_user_options?: FlagUserOptions;
5579
+ remove_content_options?: BlockContentOptions;
4442
5580
  }
4443
5581
  export interface RuleBuilderCondition {
4444
- provider?: string;
4445
- threshold?: number;
4446
- time_window?: string;
4447
- labels?: string[];
5582
+ type: string;
5583
+ confidence?: number;
5584
+ content_count_rule_params?: ContentCountRuleParameters;
5585
+ image_content_params?: ImageContentParameters;
5586
+ image_rule_params?: ImageRuleParameters;
5587
+ text_content_params?: TextContentParameters;
5588
+ text_rule_params?: TextRuleParameters;
5589
+ user_created_within_params?: UserCreatedWithinParameters;
5590
+ user_rule_params?: UserRuleParameters;
5591
+ video_content_params?: VideoContentParameters;
5592
+ video_rule_params?: VideoRuleParameters;
5593
+ }
5594
+ export interface RuleBuilderConditionGroup {
5595
+ logic: string;
5596
+ conditions: RuleBuilderCondition[];
4448
5597
  }
4449
5598
  export interface RuleBuilderConfig {
5599
+ rules: RuleBuilderRule[];
4450
5600
  async?: boolean;
4451
- enabled?: boolean;
4452
- rules?: RuleBuilderRule[];
4453
5601
  }
4454
5602
  export interface RuleBuilderRule {
4455
- enabled?: boolean;
4456
- id?: string;
4457
- name?: string;
5603
+ enabled: boolean;
5604
+ id: string;
5605
+ name: string;
5606
+ rule_type: string;
5607
+ action: RuleBuilderAction;
5608
+ cooldown_period?: string;
5609
+ logic?: string;
4458
5610
  conditions?: RuleBuilderCondition[];
4459
- action?: RuleBuilderAction;
5611
+ groups?: RuleBuilderConditionGroup[];
4460
5612
  }
4461
5613
  export interface S3Request {
4462
5614
  s3_region: string;
@@ -4563,6 +5715,7 @@ export interface SearchResultMessage {
4563
5715
  quoted_message?: MessageResponse;
4564
5716
  reaction_groups?: Record<string, ReactionGroupResponse>;
4565
5717
  reminder?: ReminderResponseData;
5718
+ shared_location?: SharedLocationResponseData;
4566
5719
  }
4567
5720
  export interface SearchWarning {
4568
5721
  warning_code: number;
@@ -4652,6 +5805,50 @@ export interface SessionSettingsResponse {
4652
5805
  }
4653
5806
  export interface ShadowBlockActionRequest {
4654
5807
  }
5808
+ export interface SharedLocation {
5809
+ channel_cid: string;
5810
+ created_at: Date;
5811
+ created_by_device_id: string;
5812
+ message_id: string;
5813
+ updated_at: Date;
5814
+ user_id: string;
5815
+ end_at?: Date;
5816
+ latitude?: number;
5817
+ longitude?: number;
5818
+ channel?: Channel;
5819
+ message?: Message;
5820
+ }
5821
+ export interface SharedLocationResponse {
5822
+ channel_cid: string;
5823
+ created_at: Date;
5824
+ created_by_device_id: string;
5825
+ duration: string;
5826
+ latitude: number;
5827
+ longitude: number;
5828
+ message_id: string;
5829
+ updated_at: Date;
5830
+ user_id: string;
5831
+ end_at?: Date;
5832
+ channel?: ChannelResponse;
5833
+ message?: MessageResponse;
5834
+ }
5835
+ export interface SharedLocationResponseData {
5836
+ channel_cid: string;
5837
+ created_at: Date;
5838
+ created_by_device_id: string;
5839
+ latitude: number;
5840
+ longitude: number;
5841
+ message_id: string;
5842
+ updated_at: Date;
5843
+ user_id: string;
5844
+ end_at?: Date;
5845
+ channel?: ChannelResponse;
5846
+ message?: MessageResponse;
5847
+ }
5848
+ export interface SharedLocationsResponse {
5849
+ duration: string;
5850
+ active_live_locations: SharedLocationResponseData[];
5851
+ }
4655
5852
  export interface ShowChannelRequest {
4656
5853
  user_id?: string;
4657
5854
  user?: UserRequest;
@@ -4659,6 +5856,17 @@ export interface ShowChannelRequest {
4659
5856
  export interface ShowChannelResponse {
4660
5857
  duration: string;
4661
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
+ }
4662
5870
  export interface SortParam {
4663
5871
  direction?: number;
4664
5872
  field?: string;
@@ -4766,6 +5974,10 @@ export interface StopTranscriptionRequest {
4766
5974
  export interface StopTranscriptionResponse {
4767
5975
  duration: string;
4768
5976
  }
5977
+ export interface StoriesConfig {
5978
+ expiration_behaviour?: string;
5979
+ skip_watched?: boolean;
5980
+ }
4769
5981
  export interface SubmitActionRequest {
4770
5982
  action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'kick_user' | 'end_call';
4771
5983
  item_id: string;
@@ -4782,18 +5994,50 @@ export interface SubmitActionRequest {
4782
5994
  }
4783
5995
  export interface SubmitActionResponse {
4784
5996
  duration: string;
4785
- item?: ReviewQueueItem;
5997
+ item?: ReviewQueueItemResponse;
5998
+ }
5999
+ export interface SubscriberAllMetrics {
6000
+ audio?: SubscriberAudioMetrics;
6001
+ rtt_ms?: ActiveCallsLatencyStats;
6002
+ video?: SubscriberVideoMetrics;
6003
+ }
6004
+ export interface SubscriberAudioMetrics {
6005
+ concealment_pct?: ActiveCallsLatencyStats;
6006
+ jitter_ms?: ActiveCallsLatencyStats;
6007
+ packets_lost_pct?: ActiveCallsLatencyStats;
4786
6008
  }
4787
6009
  export interface SubscriberStatsResponse {
4788
6010
  total: number;
4789
6011
  total_subscribed_duration_seconds: number;
4790
6012
  unique: number;
4791
6013
  }
6014
+ export interface SubscriberVideoMetrics {
6015
+ fps_30?: ActiveCallsFPSStats;
6016
+ jitter_ms?: ActiveCallsLatencyStats;
6017
+ packets_lost_pct?: ActiveCallsLatencyStats;
6018
+ }
6019
+ export interface SubscribersMetrics {
6020
+ all?: SubscriberAllMetrics;
6021
+ }
4792
6022
  export interface TargetResolution {
4793
6023
  bitrate: number;
4794
6024
  height: number;
4795
6025
  width: number;
4796
6026
  }
6027
+ export interface TextContentParameters {
6028
+ contains_url?: boolean;
6029
+ severity?: string;
6030
+ blocklist_match?: string[];
6031
+ harm_labels?: string[];
6032
+ }
6033
+ export interface TextRuleParameters {
6034
+ threshold: number;
6035
+ time_window: string;
6036
+ contains_url?: boolean;
6037
+ severity?: string;
6038
+ blocklist_match?: string[];
6039
+ harm_labels?: string[];
6040
+ }
4797
6041
  export interface ThreadParticipant {
4798
6042
  app_pk: number;
4799
6043
  channel_cid: string;
@@ -4854,6 +6098,34 @@ export interface ThreadUpdatedEvent {
4854
6098
  thread?: ThreadResponse;
4855
6099
  user?: User;
4856
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
+ }
4857
6129
  export interface Thresholds {
4858
6130
  explicit?: LabelThresholds;
4859
6131
  spam?: LabelThresholds;
@@ -4946,6 +6218,15 @@ export interface UnblockedUserEvent {
4946
6218
  user: UserResponse;
4947
6219
  type: string;
4948
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
+ }
4949
6230
  export interface UnmuteChannelRequest {
4950
6231
  expiration?: number;
4951
6232
  user_id?: string;
@@ -4961,6 +6242,12 @@ export interface UnmuteResponse {
4961
6242
  duration: string;
4962
6243
  non_existing_users?: string[];
4963
6244
  }
6245
+ export interface UnpinActivityResponse {
6246
+ duration: string;
6247
+ fid: string;
6248
+ user_id: string;
6249
+ activity: ActivityResponse;
6250
+ }
4964
6251
  export interface UnpinRequest {
4965
6252
  session_id: string;
4966
6253
  user_id: string;
@@ -4991,6 +6278,7 @@ export interface UnreadCountsResponse {
4991
6278
  channel_type: UnreadCountsChannelType[];
4992
6279
  channels: UnreadCountsChannel[];
4993
6280
  threads: UnreadCountsThread[];
6281
+ total_unread_count_by_team: Record<string, number>;
4994
6282
  }
4995
6283
  export interface UnreadCountsThread {
4996
6284
  last_read: Date;
@@ -4998,6 +6286,33 @@ export interface UnreadCountsThread {
4998
6286
  parent_message_id: string;
4999
6287
  unread_count: number;
5000
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
+ }
5001
6316
  export interface UpdateAppRequest {
5002
6317
  async_url_enrich_enabled?: boolean;
5003
6318
  auto_translation_enabled?: boolean;
@@ -5053,6 +6368,28 @@ export interface UpdateBlockListResponse {
5053
6368
  duration: string;
5054
6369
  blocklist?: BlockListResponse;
5055
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
+ }
5056
6393
  export interface UpdateCallMembersRequest {
5057
6394
  remove_members?: string[];
5058
6395
  update_members?: MemberRequest[];
@@ -5142,6 +6479,7 @@ export interface UpdateChannelTypeRequest {
5142
6479
  reminders?: boolean;
5143
6480
  replies?: boolean;
5144
6481
  search?: boolean;
6482
+ shared_locations?: boolean;
5145
6483
  skip_last_msg_update_for_system_msgs?: boolean;
5146
6484
  typing_events?: boolean;
5147
6485
  uploads?: boolean;
@@ -5173,6 +6511,7 @@ export interface UpdateChannelTypeResponse {
5173
6511
  reminders: boolean;
5174
6512
  replies: boolean;
5175
6513
  search: boolean;
6514
+ shared_locations: boolean;
5176
6515
  skip_last_msg_update_for_system_msgs: boolean;
5177
6516
  typing_events: boolean;
5178
6517
  updated_at: Date;
@@ -5199,6 +6538,14 @@ export interface UpdateCommandResponse {
5199
6538
  duration: string;
5200
6539
  command?: Command;
5201
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
+ }
5202
6549
  export interface UpdateExternalStorageRequest {
5203
6550
  bucket: string;
5204
6551
  storage_type: 's3' | 'gcs' | 'abs';
@@ -5214,6 +6561,65 @@ export interface UpdateExternalStorageResponse {
5214
6561
  path: string;
5215
6562
  type: 's3' | 'gcs' | 'abs';
5216
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
+ }
6616
+ export interface UpdateLiveLocationRequest {
6617
+ created_by_device_id: string;
6618
+ message_id: string;
6619
+ end_at?: Date;
6620
+ latitude?: number;
6621
+ longitude?: number;
6622
+ }
5217
6623
  export interface UpdateMemberPartialRequest {
5218
6624
  unset?: string[];
5219
6625
  set?: Record<string, any>;
@@ -5322,6 +6728,13 @@ export interface UpdatedCallPermissionsEvent {
5322
6728
  user: UserResponse;
5323
6729
  type: string;
5324
6730
  }
6731
+ export interface UpsertActivitiesRequest {
6732
+ activities: ActivityRequest[];
6733
+ }
6734
+ export interface UpsertActivitiesResponse {
6735
+ duration: string;
6736
+ activities: ActivityResponse[];
6737
+ }
5325
6738
  export interface UpsertConfigRequest {
5326
6739
  key: string;
5327
6740
  async?: boolean;
@@ -5416,6 +6829,9 @@ export interface UserBannedEvent {
5416
6829
  team?: string;
5417
6830
  user?: User;
5418
6831
  }
6832
+ export interface UserCreatedWithinParameters {
6833
+ max_age?: string;
6834
+ }
5419
6835
  export interface UserCustomEventRequest {
5420
6836
  type: string;
5421
6837
  custom?: Record<string, any>;
@@ -5566,6 +6982,9 @@ export interface UserResponsePrivacyFields {
5566
6982
  privacy_settings?: PrivacySettingsResponse;
5567
6983
  teams_role?: Record<string, string>;
5568
6984
  }
6985
+ export interface UserRuleParameters {
6986
+ max_age?: string;
6987
+ }
5569
6988
  export interface UserUnbannedEvent {
5570
6989
  channel_id: string;
5571
6990
  channel_type: string;
@@ -5624,6 +7043,9 @@ export interface VelocityFilterConfigRule {
5624
7043
  export interface VideoCallRuleConfig {
5625
7044
  rules: Record<string, HarmConfig>;
5626
7045
  }
7046
+ export interface VideoContentParameters {
7047
+ harm_labels?: string[];
7048
+ }
5627
7049
  export interface VideoEndCallRequest {
5628
7050
  }
5629
7051
  export interface VideoKickUserRequest {
@@ -5638,6 +7060,11 @@ export interface VideoReactionsResponse {
5638
7060
  reaction: string;
5639
7061
  count_over_time?: VideoReactionOverTimeResponse;
5640
7062
  }
7063
+ export interface VideoRuleParameters {
7064
+ threshold: number;
7065
+ time_window: string;
7066
+ harm_labels?: string[];
7067
+ }
5641
7068
  export interface VideoSettings {
5642
7069
  access_request_enabled: boolean;
5643
7070
  camera_default_on: boolean;
@@ -5662,7 +7089,6 @@ export interface VideoSettingsResponse {
5662
7089
  export interface VoteData {
5663
7090
  answer_text?: string;
5664
7091
  option_id?: string;
5665
- option?: PollOptionResponseData;
5666
7092
  }
5667
7093
  export interface WSEvent {
5668
7094
  created_at: Date;
@@ -5693,9 +7119,285 @@ export interface WSEvent {
5693
7119
  thread?: ThreadResponse;
5694
7120
  user?: UserResponse;
5695
7121
  }
5696
- export interface WebhookEvent {
5697
- type: string;
5698
- }
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);
5699
7401
  export interface WrappedUnreadCountsResponse {
5700
7402
  duration: string;
5701
7403
  total_unread_count: number;
@@ -5703,6 +7405,7 @@ export interface WrappedUnreadCountsResponse {
5703
7405
  channel_type: UnreadCountsChannelType[];
5704
7406
  channels: UnreadCountsChannel[];
5705
7407
  threads: UnreadCountsThread[];
7408
+ total_unread_count_by_team: Record<string, number>;
5706
7409
  }
5707
7410
  export interface XiaomiConfig {
5708
7411
  disabled?: boolean;