@stream-io/feeds-client 0.3.48 → 0.3.49

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 (45) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/react-bindings.js +1 -1
  5. package/dist/es/index.mjs +2 -2
  6. package/dist/es/index.mjs.map +1 -1
  7. package/dist/es/react-bindings.mjs +1 -1
  8. package/dist/{feeds-client-D-EFo20w.mjs → feeds-client-B9b7zUcW.mjs} +102 -189
  9. package/dist/feeds-client-B9b7zUcW.mjs.map +1 -0
  10. package/dist/{feeds-client-DuJuJuEJ.js → feeds-client-BDvUG9yF.js} +102 -189
  11. package/dist/feeds-client-BDvUG9yF.js.map +1 -0
  12. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  13. package/dist/types/common/Poll.d.ts +7 -3
  14. package/dist/types/common/Poll.d.ts.map +1 -1
  15. package/dist/types/common/real-time/StableWSConnection.d.ts +3 -3
  16. package/dist/types/common/real-time/StableWSConnection.d.ts.map +1 -1
  17. package/dist/types/feed/event-handlers/activity-updater.d.ts +1 -1
  18. package/dist/types/feed/event-handlers/comment/handle-comment-added.d.ts.map +1 -1
  19. package/dist/types/feed/feed.d.ts +2 -2
  20. package/dist/types/feed/feed.d.ts.map +1 -1
  21. package/dist/types/feeds-client/feeds-client.d.ts +7 -3
  22. package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
  23. package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
  24. package/dist/types/gen/model-decoders/event-decoder-mapping.d.ts.map +1 -1
  25. package/dist/types/gen/models/index.d.ts +196 -422
  26. package/dist/types/gen/models/index.d.ts.map +1 -1
  27. package/dist/types/gen/moderation/ModerationApi.d.ts.map +1 -1
  28. package/dist/types/types.d.ts +2 -2
  29. package/dist/types/types.d.ts.map +1 -1
  30. package/dist/types/utils/constants.d.ts +1 -1
  31. package/package.json +1 -1
  32. package/src/common/Poll.ts +16 -15
  33. package/src/feed/event-handlers/comment/handle-comment-added.ts +14 -2
  34. package/src/feed/feed.ts +24 -9
  35. package/src/feeds-client/feeds-client.ts +28 -1
  36. package/src/gen/feeds/FeedsApi.ts +1 -0
  37. package/src/gen/model-decoders/decoders.ts +40 -251
  38. package/src/gen/model-decoders/event-decoder-mapping.ts +3 -2
  39. package/src/gen/models/index.ts +310 -741
  40. package/src/gen/moderation/ModerationApi.ts +1 -0
  41. package/src/test-utils/response-generators.ts +3 -2
  42. package/src/types.ts +2 -2
  43. package/src/utils/constants.ts +1 -1
  44. package/dist/feeds-client-D-EFo20w.mjs.map +0 -1
  45. package/dist/feeds-client-DuJuJuEJ.js.map +0 -1
@@ -58,6 +58,8 @@ export interface AWSRekognitionRule {
58
58
  label: string;
59
59
 
60
60
  min_confidence: number;
61
+
62
+ subclassifications?: Record<string, boolean>;
61
63
  }
62
64
 
63
65
  export interface AcceptFeedMemberInviteRequest {}
@@ -457,7 +459,7 @@ export interface ActivityResponse {
457
459
 
458
460
  custom: Record<string, any>;
459
461
 
460
- reaction_groups: Record<string, ReactionGroupResponse>;
462
+ reaction_groups: Record<string, FeedsReactionGroupResponse>;
461
463
 
462
464
  search_data: Record<string, any>;
463
465
 
@@ -469,6 +471,8 @@ export interface ActivityResponse {
469
471
 
470
472
  expires_at?: Date;
471
473
 
474
+ friend_reaction_count?: number;
475
+
472
476
  is_watched?: boolean;
473
477
 
474
478
  moderation_action?: string;
@@ -479,6 +483,8 @@ export interface ActivityResponse {
479
483
 
480
484
  visibility_tag?: string;
481
485
 
486
+ friend_reactions?: FeedsReactionResponse[];
487
+
482
488
  current_feed?: FeedResponse;
483
489
 
484
490
  location?: ActivityLocation;
@@ -490,10 +496,6 @@ export interface ActivityResponse {
490
496
  parent?: ActivityResponse;
491
497
 
492
498
  poll?: PollResponseData;
493
-
494
- friend_reactions?: FeedsReactionResponse[];
495
-
496
- friend_reaction_count?: number;
497
499
  }
498
500
 
499
501
  export interface ActivityRestoredEvent {
@@ -956,34 +958,34 @@ export interface BackstageSettingsResponse {
956
958
  join_ahead_time_seconds?: number;
957
959
  }
958
960
 
959
- export interface Ban {
960
- created_at: Date;
961
+ export interface BanActionRequestPayload {
962
+ channel_ban_only?: boolean;
961
963
 
962
- shadow: boolean;
964
+ delete_messages?: 'soft' | 'pruning' | 'hard';
963
965
 
964
- expires?: Date;
966
+ ip_ban?: boolean;
965
967
 
966
968
  reason?: string;
967
969
 
968
- channel?: Channel;
970
+ shadow?: boolean;
969
971
 
970
- created_by?: User;
972
+ target_user_id?: string;
971
973
 
972
- target?: User;
974
+ timeout?: number;
973
975
  }
974
976
 
975
- export interface BanActionRequest {
976
- channel_ban_only?: boolean;
977
-
978
- delete_messages?: 'soft' | 'pruning' | 'hard';
977
+ export interface BanInfoResponse {
978
+ created_at: Date;
979
979
 
980
- ip_ban?: boolean;
980
+ expires?: Date;
981
981
 
982
982
  reason?: string;
983
983
 
984
984
  shadow?: boolean;
985
985
 
986
- timeout?: number;
986
+ created_by?: UserResponse;
987
+
988
+ user?: UserResponse;
987
989
  }
988
990
 
989
991
  export interface BanOptions {
@@ -1022,7 +1024,7 @@ export interface BanResponse {
1022
1024
  duration: string;
1023
1025
  }
1024
1026
 
1025
- export interface BlockActionRequest {
1027
+ export interface BlockActionRequestPayload {
1026
1028
  reason?: string;
1027
1029
  }
1028
1030
 
@@ -1233,6 +1235,28 @@ export interface BroadcastSettingsResponse {
1233
1235
  rtmp: RTMPSettingsResponse;
1234
1236
  }
1235
1237
 
1238
+ export interface CallActionOptions {
1239
+ duration?: number;
1240
+
1241
+ flag_reason?: string;
1242
+
1243
+ kick_reason?: string;
1244
+
1245
+ mute_audio?: boolean;
1246
+
1247
+ mute_video?: boolean;
1248
+
1249
+ reason?: string;
1250
+
1251
+ warning_text?: string;
1252
+ }
1253
+
1254
+ export interface CallCustomPropertyParameters {
1255
+ operator?: string;
1256
+
1257
+ property_key?: string;
1258
+ }
1259
+
1236
1260
  export interface CallIngressResponse {
1237
1261
  rtmp: RTMPIngress;
1238
1262
 
@@ -1303,6 +1327,14 @@ export interface CallResponse {
1303
1327
  thumbnails?: ThumbnailResponse;
1304
1328
  }
1305
1329
 
1330
+ export interface CallRuleActionSequence {
1331
+ violation_number?: number;
1332
+
1333
+ actions?: string[];
1334
+
1335
+ call_options?: CallActionOptions;
1336
+ }
1337
+
1306
1338
  export interface CallSessionResponse {
1307
1339
  anonymous_participant_count: number;
1308
1340
 
@@ -1363,136 +1395,18 @@ export interface CallSettingsResponse {
1363
1395
  ingress?: IngressSettingsResponse;
1364
1396
  }
1365
1397
 
1366
- export interface CastPollVoteRequest {
1367
- vote?: VoteData;
1398
+ export interface CallTypeRuleParameters {
1399
+ call_type?: string;
1368
1400
  }
1369
1401
 
1370
- export interface Channel {
1371
- auto_translation_language: string;
1372
-
1373
- cid: string;
1374
-
1375
- created_at: Date;
1376
-
1377
- disabled: boolean;
1378
-
1379
- frozen: boolean;
1380
-
1381
- id: string;
1382
-
1383
- type: string;
1384
-
1385
- updated_at: Date;
1386
-
1387
- custom: Record<string, any>;
1388
-
1389
- auto_translation_enabled?: boolean;
1390
-
1391
- cooldown?: number;
1392
-
1393
- deleted_at?: Date;
1394
-
1395
- last_campaigns?: string;
1396
-
1397
- last_message_at?: Date;
1398
-
1399
- member_count?: number;
1400
-
1401
- message_count?: number;
1402
-
1403
- message_count_updated_at?: Date;
1404
-
1405
- team?: string;
1406
-
1407
- active_live_locations?: SharedLocation[];
1408
-
1409
- filter_tags?: string[];
1410
-
1411
- invites?: ChannelMember[];
1412
-
1413
- members?: ChannelMember[];
1414
-
1415
- config?: ChannelConfig;
1416
-
1417
- config_overrides?: ConfigOverrides;
1418
-
1419
- created_by?: User;
1420
-
1421
- members_lookup?: Record<string, ChannelMemberLookup>;
1402
+ export interface CallViolationCountParameters {
1403
+ threshold?: number;
1422
1404
 
1423
- truncated_by?: User;
1405
+ time_window?: string;
1424
1406
  }
1425
1407
 
1426
- export interface ChannelConfig {
1427
- automod: 'disabled' | 'simple' | 'AI';
1428
-
1429
- automod_behavior: 'flag' | 'block' | 'shadow_block';
1430
-
1431
- connect_events: boolean;
1432
-
1433
- count_messages: boolean;
1434
-
1435
- created_at: Date;
1436
-
1437
- custom_events: boolean;
1438
-
1439
- delivery_events: boolean;
1440
-
1441
- mark_messages_pending: boolean;
1442
-
1443
- max_message_length: number;
1444
-
1445
- mutes: boolean;
1446
-
1447
- name: string;
1448
-
1449
- polls: boolean;
1450
-
1451
- push_level: string;
1452
-
1453
- push_notifications: boolean;
1454
-
1455
- quotes: boolean;
1456
-
1457
- reactions: boolean;
1458
-
1459
- read_events: boolean;
1460
-
1461
- reminders: boolean;
1462
-
1463
- replies: boolean;
1464
-
1465
- search: boolean;
1466
-
1467
- shared_locations: boolean;
1468
-
1469
- skip_last_msg_update_for_system_msgs: boolean;
1470
-
1471
- typing_events: boolean;
1472
-
1473
- updated_at: Date;
1474
-
1475
- uploads: boolean;
1476
-
1477
- url_enrichment: boolean;
1478
-
1479
- user_message_reminders: boolean;
1480
-
1481
- commands: string[];
1482
-
1483
- blocklist?: string;
1484
-
1485
- blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
1486
-
1487
- partition_size?: number;
1488
-
1489
- partition_ttl?: number;
1490
-
1491
- allowed_flag_reasons?: string[];
1492
-
1493
- blocklists?: BlockListOptions[];
1494
-
1495
- automod_thresholds?: Thresholds;
1408
+ export interface CastPollVoteRequest {
1409
+ vote?: VoteData;
1496
1410
  }
1497
1411
 
1498
1412
  export interface ChannelConfigWithInfo {
@@ -1569,72 +1483,6 @@ export interface ChannelConfigWithInfo {
1569
1483
  grants?: Record<string, string[]>;
1570
1484
  }
1571
1485
 
1572
- export interface ChannelMember {
1573
- banned: boolean;
1574
-
1575
- channel_role: string;
1576
-
1577
- created_at: Date;
1578
-
1579
- is_global_banned: boolean;
1580
-
1581
- notifications_muted: boolean;
1582
-
1583
- shadow_banned: boolean;
1584
-
1585
- updated_at: Date;
1586
-
1587
- custom: Record<string, any>;
1588
-
1589
- archived_at?: Date;
1590
-
1591
- ban_expires?: Date;
1592
-
1593
- blocked?: boolean;
1594
-
1595
- deleted_at?: Date;
1596
-
1597
- hidden?: boolean;
1598
-
1599
- invite_accepted_at?: Date;
1600
-
1601
- invite_rejected_at?: Date;
1602
-
1603
- invited?: boolean;
1604
-
1605
- is_moderator?: boolean;
1606
-
1607
- pinned_at?: Date;
1608
-
1609
- status?: string;
1610
-
1611
- user_id?: string;
1612
-
1613
- deleted_messages?: string[];
1614
-
1615
- channel?: DenormalizedChannelFields;
1616
-
1617
- user?: User;
1618
- }
1619
-
1620
- export interface ChannelMemberLookup {
1621
- archived: boolean;
1622
-
1623
- banned: boolean;
1624
-
1625
- blocked: boolean;
1626
-
1627
- hidden: boolean;
1628
-
1629
- pinned: boolean;
1630
-
1631
- archived_at?: Date;
1632
-
1633
- ban_expires?: Date;
1634
-
1635
- pinned_at?: Date;
1636
- }
1637
-
1638
1486
  export interface ChannelMemberResponse {
1639
1487
  banned: boolean;
1640
1488
 
@@ -1666,7 +1514,7 @@ export interface ChannelMemberResponse {
1666
1514
 
1667
1515
  pinned_at?: Date;
1668
1516
 
1669
- role?: 'member' | 'moderator' | 'admin' | 'owner';
1517
+ role?: string;
1670
1518
 
1671
1519
  status?: string;
1672
1520
 
@@ -1732,7 +1580,7 @@ export const ChannelOwnCapability = {
1732
1580
  export type ChannelOwnCapability =
1733
1581
  (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
1734
1582
 
1735
- export interface ChannelPushPreferences {
1583
+ export interface ChannelPushPreferencesResponse {
1736
1584
  chat_level?: string;
1737
1585
 
1738
1586
  disabled_until?: Date;
@@ -1796,6 +1644,14 @@ export interface ChannelResponse {
1796
1644
  truncated_by?: UserResponse;
1797
1645
  }
1798
1646
 
1647
+ export interface ClosedCaptionRuleParameters {
1648
+ threshold?: number;
1649
+
1650
+ harm_labels?: string[];
1651
+
1652
+ llm_harm_labels?: Record<string, string>;
1653
+ }
1654
+
1799
1655
  export interface CollectionRequest {
1800
1656
  name: string;
1801
1657
 
@@ -1951,7 +1807,7 @@ export interface CommentResponse {
1951
1807
 
1952
1808
  score: number;
1953
1809
 
1954
- status: string;
1810
+ status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
1955
1811
 
1956
1812
  updated_at: Date;
1957
1813
 
@@ -1981,7 +1837,7 @@ export interface CommentResponse {
1981
1837
 
1982
1838
  moderation?: ModerationV2Response;
1983
1839
 
1984
- reaction_groups?: Record<string, ReactionGroupResponse>;
1840
+ reaction_groups?: Record<string, FeedsReactionGroupResponse>;
1985
1841
  }
1986
1842
 
1987
1843
  export interface CommentUpdatedEvent {
@@ -2006,38 +1862,6 @@ export interface CompositeRecordingResponse {
2006
1862
  status: string;
2007
1863
  }
2008
1864
 
2009
- export interface ConfigOverrides {
2010
- commands: string[];
2011
-
2012
- grants: Record<string, string[]>;
2013
-
2014
- blocklist?: string;
2015
-
2016
- blocklist_behavior?: 'flag' | 'block';
2017
-
2018
- count_messages?: boolean;
2019
-
2020
- max_message_length?: number;
2021
-
2022
- push_level?: 'all' | 'all_mentions' | 'mentions' | 'direct_mentions' | 'none';
2023
-
2024
- quotes?: boolean;
2025
-
2026
- reactions?: boolean;
2027
-
2028
- replies?: boolean;
2029
-
2030
- shared_locations?: boolean;
2031
-
2032
- typing_events?: boolean;
2033
-
2034
- uploads?: boolean;
2035
-
2036
- url_enrichment?: boolean;
2037
-
2038
- user_message_reminders?: boolean;
2039
- }
2040
-
2041
1865
  export interface ConfigResponse {
2042
1866
  async: boolean;
2043
1867
 
@@ -2053,6 +1877,8 @@ export interface ConfigResponse {
2053
1877
 
2054
1878
  ai_image_config?: AIImageConfig;
2055
1879
 
1880
+ ai_image_subclassifications?: Record<string, string[]>;
1881
+
2056
1882
  ai_text_config?: AITextConfig;
2057
1883
 
2058
1884
  ai_video_config?: AIVideoConfig;
@@ -2192,7 +2018,7 @@ export interface CreatePollRequest {
2192
2018
  custom?: Record<string, any>;
2193
2019
  }
2194
2020
 
2195
- export interface CustomActionRequest {
2021
+ export interface CustomActionRequestPayload {
2196
2022
  id?: string;
2197
2023
 
2198
2024
  options?: Record<string, any>;
@@ -2238,7 +2064,11 @@ export interface DeleteActivityReactionResponse {
2238
2064
  reaction: FeedsReactionResponse;
2239
2065
  }
2240
2066
 
2241
- export interface DeleteActivityRequest {
2067
+ export interface DeleteActivityRequestPayload {
2068
+ entity_id?: string;
2069
+
2070
+ entity_type?: string;
2071
+
2242
2072
  hard_delete?: boolean;
2243
2073
 
2244
2074
  reason?: string;
@@ -2270,7 +2100,11 @@ export interface DeleteCommentReactionResponse {
2270
2100
  reaction: FeedsReactionResponse;
2271
2101
  }
2272
2102
 
2273
- export interface DeleteCommentRequest {
2103
+ export interface DeleteCommentRequestPayload {
2104
+ entity_id?: string;
2105
+
2106
+ entity_type?: string;
2107
+
2274
2108
  hard_delete?: boolean;
2275
2109
 
2276
2110
  reason?: string;
@@ -2290,7 +2124,11 @@ export interface DeleteFeedResponse {
2290
2124
  task_id: string;
2291
2125
  }
2292
2126
 
2293
- export interface DeleteMessageRequest {
2127
+ export interface DeleteMessageRequestPayload {
2128
+ entity_id?: string;
2129
+
2130
+ entity_type?: string;
2131
+
2294
2132
  hard_delete?: boolean;
2295
2133
 
2296
2134
  reason?: string;
@@ -2300,74 +2138,36 @@ export interface DeleteModerationConfigResponse {
2300
2138
  duration: string;
2301
2139
  }
2302
2140
 
2303
- export interface DeleteReactionRequest {
2141
+ export interface DeleteReactionRequestPayload {
2142
+ entity_id?: string;
2143
+
2144
+ entity_type?: string;
2145
+
2304
2146
  hard_delete?: boolean;
2305
2147
 
2306
2148
  reason?: string;
2307
2149
  }
2308
2150
 
2309
- export interface DeleteUserRequest {
2151
+ export interface DeleteUserRequestPayload {
2310
2152
  delete_conversation_channels?: boolean;
2311
2153
 
2312
2154
  delete_feeds_content?: boolean;
2313
2155
 
2314
- hard_delete?: boolean;
2156
+ entity_id?: string;
2157
+
2158
+ entity_type?: string;
2159
+
2160
+ hard_delete?: boolean;
2315
2161
 
2316
2162
  mark_messages_deleted?: boolean;
2317
2163
 
2318
2164
  reason?: string;
2319
2165
  }
2320
2166
 
2321
- export interface DeliveryReceipts {
2322
- enabled: boolean;
2323
- }
2324
-
2325
2167
  export interface DeliveryReceiptsResponse {
2326
2168
  enabled: boolean;
2327
2169
  }
2328
2170
 
2329
- export interface DenormalizedChannelFields {
2330
- created_at?: string;
2331
-
2332
- created_by_id?: string;
2333
-
2334
- disabled?: boolean;
2335
-
2336
- frozen?: boolean;
2337
-
2338
- id?: string;
2339
-
2340
- last_message_at?: string;
2341
-
2342
- member_count?: number;
2343
-
2344
- team?: string;
2345
-
2346
- type?: string;
2347
-
2348
- updated_at?: string;
2349
-
2350
- custom?: Record<string, any>;
2351
- }
2352
-
2353
- export interface Device {
2354
- created_at: Date;
2355
-
2356
- id: string;
2357
-
2358
- push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
2359
-
2360
- user_id: string;
2361
-
2362
- disabled?: boolean;
2363
-
2364
- disabled_reason?: string;
2365
-
2366
- push_provider_name?: string;
2367
-
2368
- voip?: boolean;
2369
- }
2370
-
2371
2171
  export interface DeviceResponse {
2372
2172
  created_at: Date;
2373
2173
 
@@ -2912,7 +2712,7 @@ export interface FeedResponse {
2912
2712
 
2913
2713
  deleted_at?: Date;
2914
2714
 
2915
- visibility?: string;
2715
+ visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
2916
2716
 
2917
2717
  filter_tags?: string[];
2918
2718
 
@@ -2960,7 +2760,7 @@ export interface FeedSuggestionResponse {
2960
2760
 
2961
2761
  recommendation_score?: number;
2962
2762
 
2963
- visibility?: string;
2763
+ visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
2964
2764
 
2965
2765
  filter_tags?: string[];
2966
2766
 
@@ -3016,6 +2816,8 @@ export interface FeedsPreferencesResponse {
3016
2816
 
3017
2817
  comment_reaction?: string;
3018
2818
 
2819
+ comment_reply?: string;
2820
+
3019
2821
  follow?: string;
3020
2822
 
3021
2823
  mention?: string;
@@ -3025,6 +2827,14 @@ export interface FeedsPreferencesResponse {
3025
2827
  custom_activity_types?: Record<string, string>;
3026
2828
  }
3027
2829
 
2830
+ export interface FeedsReactionGroupResponse {
2831
+ count: number;
2832
+
2833
+ first_reaction_at: Date;
2834
+
2835
+ last_reaction_at: Date;
2836
+ }
2837
+
3028
2838
  export interface FeedsReactionResponse {
3029
2839
  activity_id: string;
3030
2840
 
@@ -3326,6 +3136,8 @@ export interface GetBlockedUsersResponse {
3326
3136
  export interface GetCommentRepliesResponse {
3327
3137
  duration: string;
3328
3138
 
3139
+ sort: string;
3140
+
3329
3141
  comments: ThreadedCommentResponse[];
3330
3142
 
3331
3143
  next?: string;
@@ -3342,6 +3154,8 @@ export interface GetCommentResponse {
3342
3154
  export interface GetCommentsResponse {
3343
3155
  duration: string;
3344
3156
 
3157
+ sort: string;
3158
+
3345
3159
  comments: ThreadedCommentResponse[];
3346
3160
 
3347
3161
  next?: string;
@@ -3436,17 +3250,11 @@ export interface GetOrCreateFeedRequest {
3436
3250
 
3437
3251
  following_pagination?: PagerRequest;
3438
3252
 
3253
+ friend_reactions_options?: FriendReactionsOptions;
3254
+
3439
3255
  interest_weights?: Record<string, number>;
3440
3256
 
3441
3257
  member_pagination?: PagerRequest;
3442
-
3443
- friend_reactions_options?: FriendReactionsOptions;
3444
- }
3445
-
3446
- export interface FriendReactionsOptions {
3447
- enabled?: boolean;
3448
- type?: 'following' | 'mutual';
3449
- limit?: number;
3450
3258
  }
3451
3259
 
3452
3260
  export interface GetOrCreateFeedResponse {
@@ -3546,11 +3354,11 @@ export interface ImageRuleParameters {
3546
3354
  }
3547
3355
 
3548
3356
  export interface ImageSize {
3549
- crop?: 'top' | 'bottom' | 'left' | 'right' | 'center';
3357
+ crop?: string;
3550
3358
 
3551
3359
  height?: number;
3552
3360
 
3553
- resize?: 'clip' | 'crop' | 'scale' | 'fill';
3361
+ resize?: string;
3554
3362
 
3555
3363
  width?: number;
3556
3364
  }
@@ -3595,6 +3403,8 @@ export interface IndividualRecordingResponse {
3595
3403
 
3596
3404
  export interface IndividualRecordingSettingsResponse {
3597
3405
  mode: 'available' | 'disabled' | 'auto-on';
3406
+
3407
+ output_types?: string[];
3598
3408
  }
3599
3409
 
3600
3410
  export interface IngressAudioEncodingResponse {
@@ -3639,6 +3449,14 @@ export interface IngressVideoLayerResponse {
3639
3449
  min_dimension: number;
3640
3450
  }
3641
3451
 
3452
+ export interface KeyframeRuleParameters {
3453
+ min_confidence?: number;
3454
+
3455
+ threshold?: number;
3456
+
3457
+ harm_labels?: string[];
3458
+ }
3459
+
3642
3460
  export interface LLMConfig {
3643
3461
  enabled: boolean;
3644
3462
 
@@ -3708,7 +3526,7 @@ export interface MarkActivityRequest {
3708
3526
  mark_watched?: string[];
3709
3527
  }
3710
3528
 
3711
- export interface MarkReviewedRequest {
3529
+ export interface MarkReviewedRequestPayload {
3712
3530
  content_to_mark_as_reviewed_limit?: number;
3713
3531
 
3714
3532
  decision_reason?: string;
@@ -3734,120 +3552,6 @@ export interface MembershipLevelResponse {
3734
3552
  custom?: Record<string, any>;
3735
3553
  }
3736
3554
 
3737
- export interface Message {
3738
- cid: string;
3739
-
3740
- created_at: Date;
3741
-
3742
- deleted_reply_count: number;
3743
-
3744
- html: string;
3745
-
3746
- id: string;
3747
-
3748
- mentioned_channel: boolean;
3749
-
3750
- pinned: boolean;
3751
-
3752
- reply_count: number;
3753
-
3754
- shadowed: boolean;
3755
-
3756
- silent: boolean;
3757
-
3758
- text: string;
3759
-
3760
- type: string;
3761
-
3762
- updated_at: Date;
3763
-
3764
- attachments: Attachment[];
3765
-
3766
- latest_reactions: Reaction[];
3767
-
3768
- mentioned_users: User[];
3769
-
3770
- own_reactions: Reaction[];
3771
-
3772
- restricted_visibility: string[];
3773
-
3774
- custom: Record<string, any>;
3775
-
3776
- reaction_counts: Record<string, number>;
3777
-
3778
- reaction_groups: Record<string, ReactionGroupResponse>;
3779
-
3780
- reaction_scores: Record<string, number>;
3781
-
3782
- before_message_send_failed?: boolean;
3783
-
3784
- command?: string;
3785
-
3786
- deleted_at?: Date;
3787
-
3788
- deleted_for_me?: boolean;
3789
-
3790
- message_text_updated_at?: Date;
3791
-
3792
- mml?: string;
3793
-
3794
- parent_id?: string;
3795
-
3796
- pin_expires?: Date;
3797
-
3798
- pinned_at?: Date;
3799
-
3800
- poll_id?: string;
3801
-
3802
- quoted_message_id?: string;
3803
-
3804
- show_in_channel?: boolean;
3805
-
3806
- thread_participants?: User[];
3807
-
3808
- i18n?: Record<string, string>;
3809
-
3810
- image_labels?: Record<string, string[]>;
3811
-
3812
- member?: ChannelMember;
3813
-
3814
- moderation?: ModerationV2Response;
3815
-
3816
- pinned_by?: User;
3817
-
3818
- poll?: Poll;
3819
-
3820
- quoted_message?: Message;
3821
-
3822
- reminder?: MessageReminder;
3823
-
3824
- shared_location?: SharedLocation;
3825
-
3826
- user?: User;
3827
- }
3828
-
3829
- export interface MessageReminder {
3830
- channel_cid: string;
3831
-
3832
- created_at: Date;
3833
-
3834
- message_id: string;
3835
-
3836
- task_id: string;
3837
-
3838
- updated_at: Date;
3839
-
3840
- user_id: string;
3841
-
3842
- remind_at?: Date;
3843
-
3844
- channel?: Channel;
3845
-
3846
- message?: Message;
3847
-
3848
- user?: User;
3849
- }
3850
-
3851
3555
  export interface MessageResponse {
3852
3556
  cid: string;
3853
3557
 
@@ -3861,6 +3565,8 @@ export interface MessageResponse {
3861
3565
 
3862
3566
  mentioned_channel: boolean;
3863
3567
 
3568
+ mentioned_here: boolean;
3569
+
3864
3570
  pinned: boolean;
3865
3571
 
3866
3572
  reply_count: number;
@@ -3871,7 +3577,7 @@ export interface MessageResponse {
3871
3577
 
3872
3578
  text: string;
3873
3579
 
3874
- type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
3580
+ type: string;
3875
3581
 
3876
3582
  updated_at: Date;
3877
3583
 
@@ -3915,6 +3621,8 @@ export interface MessageResponse {
3915
3621
 
3916
3622
  show_in_channel?: boolean;
3917
3623
 
3624
+ mentioned_roles?: string[];
3625
+
3918
3626
  thread_participants?: UserResponse[];
3919
3627
 
3920
3628
  draft?: DraftResponse;
@@ -3940,7 +3648,7 @@ export interface MessageResponse {
3940
3648
  shared_location?: SharedLocationResponseData;
3941
3649
  }
3942
3650
 
3943
- export interface ModerationActionConfig {
3651
+ export interface ModerationActionConfigResponse {
3944
3652
  action: string;
3945
3653
 
3946
3654
  description: string;
@@ -3951,7 +3659,7 @@ export interface ModerationActionConfig {
3951
3659
 
3952
3660
  order: number;
3953
3661
 
3954
- custom: Record<string, any>;
3662
+ custom?: Record<string, any>;
3955
3663
  }
3956
3664
 
3957
3665
  export interface ModerationCustomActionEvent {
@@ -3997,7 +3705,7 @@ export interface ModerationFlagResponse {
3997
3705
 
3998
3706
  custom?: Record<string, any>;
3999
3707
 
4000
- moderation_payload?: ModerationPayload;
3708
+ moderation_payload?: ModerationPayloadResponse;
4001
3709
 
4002
3710
  review_queue_item?: ReviewQueueItemResponse;
4003
3711
 
@@ -4005,15 +3713,17 @@ export interface ModerationFlagResponse {
4005
3713
  }
4006
3714
 
4007
3715
  export interface ModerationFlaggedEvent {
3716
+ content_type: string;
3717
+
4008
3718
  created_at: Date;
4009
3719
 
4010
- type: string;
3720
+ object_id: string;
4011
3721
 
4012
- item?: string;
3722
+ custom: Record<string, any>;
4013
3723
 
4014
- object_id?: string;
3724
+ type: string;
4015
3725
 
4016
- user?: User;
3726
+ received_at?: Date;
4017
3727
  }
4018
3728
 
4019
3729
  export interface ModerationMarkReviewedEvent {
@@ -4040,6 +3750,16 @@ export interface ModerationPayload {
4040
3750
  custom?: Record<string, any>;
4041
3751
  }
4042
3752
 
3753
+ export interface ModerationPayloadResponse {
3754
+ images?: string[];
3755
+
3756
+ texts?: string[];
3757
+
3758
+ videos?: string[];
3759
+
3760
+ custom?: Record<string, any>;
3761
+ }
3762
+
4043
3763
  export interface ModerationV2Response {
4044
3764
  action: string;
4045
3765
 
@@ -4051,6 +3771,8 @@ export interface ModerationV2Response {
4051
3771
 
4052
3772
  semantic_filter_matched?: string;
4053
3773
 
3774
+ blocklists_matched?: string[];
3775
+
4054
3776
  image_harms?: string[];
4055
3777
 
4056
3778
  text_harms?: string[];
@@ -4065,11 +3787,11 @@ export interface MuteRequest {
4065
3787
  export interface MuteResponse {
4066
3788
  duration: string;
4067
3789
 
4068
- mutes?: UserMute[];
3790
+ mutes?: UserMuteResponse[];
4069
3791
 
4070
3792
  non_existing_users?: string[];
4071
3793
 
4072
- own_user?: OwnUser;
3794
+ own_user?: OwnUserResponse;
4073
3795
  }
4074
3796
 
4075
3797
  export interface NoiseCancellationSettings {
@@ -4169,93 +3891,35 @@ export interface NotificationTrigger {
4169
3891
 
4170
3892
  type: string;
4171
3893
 
4172
- comment?: NotificationComment;
4173
- }
4174
-
4175
- export interface OCRRule {
4176
- action:
4177
- | 'flag'
4178
- | 'shadow'
4179
- | 'remove'
4180
- | 'bounce'
4181
- | 'bounce_flag'
4182
- | 'bounce_remove';
4183
-
4184
- label: string;
4185
- }
4186
-
4187
- export interface OnlyUserID {
4188
- id: string;
4189
- }
4190
-
4191
- export interface OwnBatchRequest {
4192
- feeds: string[];
4193
-
4194
- fields?: string[];
4195
- }
4196
-
4197
- export interface OwnBatchResponse {
4198
- duration: string;
4199
-
4200
- data: Record<string, FeedOwnData>;
4201
- }
4202
-
4203
- export interface OwnUser {
4204
- banned: boolean;
4205
-
4206
- created_at: Date;
4207
-
4208
- id: string;
4209
-
4210
- language: string;
4211
-
4212
- online: boolean;
4213
-
4214
- role: string;
4215
-
4216
- total_unread_count: number;
4217
-
4218
- unread_channels: number;
4219
-
4220
- unread_count: number;
4221
-
4222
- unread_threads: number;
4223
-
4224
- updated_at: Date;
4225
-
4226
- channel_mutes: ChannelMute[];
4227
-
4228
- devices: Device[];
4229
-
4230
- mutes: UserMute[];
4231
-
4232
- custom: Record<string, any>;
4233
-
4234
- total_unread_count_by_team: Record<string, number>;
4235
-
4236
- avg_response_time?: number;
4237
-
4238
- deactivated_at?: Date;
4239
-
4240
- deleted_at?: Date;
4241
-
4242
- invisible?: boolean;
4243
-
4244
- last_active?: Date;
3894
+ comment?: NotificationComment;
3895
+ }
4245
3896
 
4246
- last_engaged_at?: Date;
3897
+ export interface OCRRule {
3898
+ action:
3899
+ | 'flag'
3900
+ | 'shadow'
3901
+ | 'remove'
3902
+ | 'bounce'
3903
+ | 'bounce_flag'
3904
+ | 'bounce_remove';
4247
3905
 
4248
- blocked_user_ids?: string[];
3906
+ label: string;
3907
+ }
4249
3908
 
4250
- latest_hidden_channels?: string[];
3909
+ export interface OnlyUserID {
3910
+ id: string;
3911
+ }
4251
3912
 
4252
- teams?: string[];
3913
+ export interface OwnBatchRequest {
3914
+ feeds: string[];
4253
3915
 
4254
- privacy_settings?: PrivacySettings;
3916
+ fields?: string[];
3917
+ }
4255
3918
 
4256
- push_preferences?: PushPreferences;
3919
+ export interface OwnBatchResponse {
3920
+ duration: string;
4257
3921
 
4258
- teams_role?: Record<string, string>;
3922
+ data: Record<string, FeedOwnData>;
4259
3923
  }
4260
3924
 
4261
3925
  export interface OwnUserResponse {
@@ -4348,50 +4012,6 @@ export interface PinActivityResponse {
4348
4012
  activity: ActivityResponse;
4349
4013
  }
4350
4014
 
4351
- export interface Poll {
4352
- allow_answers: boolean;
4353
-
4354
- allow_user_suggested_options: boolean;
4355
-
4356
- answers_count: number;
4357
-
4358
- created_at: Date;
4359
-
4360
- created_by_id: string;
4361
-
4362
- description: string;
4363
-
4364
- enforce_unique_vote: boolean;
4365
-
4366
- id: string;
4367
-
4368
- name: string;
4369
-
4370
- updated_at: Date;
4371
-
4372
- vote_count: number;
4373
-
4374
- latest_answers: PollVote[];
4375
-
4376
- options: PollOption[];
4377
-
4378
- own_votes: PollVote[];
4379
-
4380
- custom: Record<string, any>;
4381
-
4382
- latest_votes_by_option: Record<string, PollVote[]>;
4383
-
4384
- vote_counts_by_option: Record<string, number>;
4385
-
4386
- is_closed?: boolean;
4387
-
4388
- max_votes_allowed?: number;
4389
-
4390
- voting_visibility?: string;
4391
-
4392
- created_by?: User;
4393
- }
4394
-
4395
4015
  export interface PollClosedFeedEvent {
4396
4016
  created_at: Date;
4397
4017
 
@@ -4424,14 +4044,6 @@ export interface PollDeletedFeedEvent {
4424
4044
  received_at?: Date;
4425
4045
  }
4426
4046
 
4427
- export interface PollOption {
4428
- id: string;
4429
-
4430
- text: string;
4431
-
4432
- custom: Record<string, any>;
4433
- }
4434
-
4435
4047
  export interface PollOptionInput {
4436
4048
  text?: string;
4437
4049
 
@@ -4526,26 +4138,6 @@ export interface PollUpdatedFeedEvent {
4526
4138
  received_at?: Date;
4527
4139
  }
4528
4140
 
4529
- export interface PollVote {
4530
- created_at: Date;
4531
-
4532
- id: string;
4533
-
4534
- option_id: string;
4535
-
4536
- poll_id: string;
4537
-
4538
- updated_at: Date;
4539
-
4540
- answer_text?: string;
4541
-
4542
- is_answer?: boolean;
4543
-
4544
- user_id?: string;
4545
-
4546
- user?: User;
4547
- }
4548
-
4549
4141
  export interface PollVoteCastedFeedEvent {
4550
4142
  created_at: Date;
4551
4143
 
@@ -4638,14 +4230,6 @@ export interface PollVotesResponse {
4638
4230
  prev?: string;
4639
4231
  }
4640
4232
 
4641
- export interface PrivacySettings {
4642
- delivery_receipts?: DeliveryReceipts;
4643
-
4644
- read_receipts?: ReadReceipts;
4645
-
4646
- typing_indicators?: TypingIndicators;
4647
- }
4648
-
4649
4233
  export interface PrivacySettingsResponse {
4650
4234
  delivery_receipts?: DeliveryReceiptsResponse;
4651
4235
 
@@ -4684,18 +4268,6 @@ export interface PushPreferenceInput {
4684
4268
  feeds_preferences?: FeedsPreferences;
4685
4269
  }
4686
4270
 
4687
- export interface PushPreferences {
4688
- call_level?: string;
4689
-
4690
- chat_level?: string;
4691
-
4692
- disabled_until?: Date;
4693
-
4694
- feeds_level?: string;
4695
-
4696
- feeds_preferences?: FeedsPreferences;
4697
- }
4698
-
4699
4271
  export interface PushPreferencesResponse {
4700
4272
  call_level?: string;
4701
4273
 
@@ -5033,7 +4605,7 @@ export interface QueryReviewQueueResponse {
5033
4605
 
5034
4606
  items: ReviewQueueItemResponse[];
5035
4607
 
5036
- action_config: Record<string, ModerationActionConfig[]>;
4608
+ action_config: Record<string, ModerationActionConfigResponse[]>;
5037
4609
 
5038
4610
  stats: Record<string, any>;
5039
4611
 
@@ -5162,10 +4734,6 @@ export interface ReadCollectionsResponse {
5162
4734
  collections: CollectionResponse[];
5163
4735
  }
5164
4736
 
5165
- export interface ReadReceipts {
5166
- enabled: boolean;
5167
- }
5168
-
5169
4737
  export interface ReadReceiptsResponse {
5170
4738
  enabled: boolean;
5171
4739
  }
@@ -5178,7 +4746,7 @@ export interface RecordSettingsResponse {
5178
4746
  quality: string;
5179
4747
  }
5180
4748
 
5181
- export interface RejectAppealRequest {
4749
+ export interface RejectAppealRequestPayload {
5182
4750
  decision_reason: string;
5183
4751
  }
5184
4752
 
@@ -5236,7 +4804,7 @@ export interface Response {
5236
4804
  duration: string;
5237
4805
  }
5238
4806
 
5239
- export interface RestoreActionRequest {
4807
+ export interface RestoreActionRequestPayload {
5240
4808
  decision_reason?: string;
5241
4809
  }
5242
4810
 
@@ -5275,7 +4843,7 @@ export interface ReviewQueueItemResponse {
5275
4843
 
5276
4844
  actions: ActionLogResponse[];
5277
4845
 
5278
- bans: Ban[];
4846
+ bans: BanInfoResponse[];
5279
4847
 
5280
4848
  flags: ModerationFlagResponse[];
5281
4849
 
@@ -5311,7 +4879,7 @@ export interface ReviewQueueItemResponse {
5311
4879
 
5312
4880
  message?: MessageResponse;
5313
4881
 
5314
- moderation_payload?: ModerationPayload;
4882
+ moderation_payload?: ModerationPayloadResponse;
5315
4883
 
5316
4884
  reaction?: Reaction;
5317
4885
  }
@@ -5325,7 +4893,7 @@ export interface RingSettingsResponse {
5325
4893
  }
5326
4894
 
5327
4895
  export interface RuleBuilderAction {
5328
- type:
4896
+ type?:
5329
4897
  | 'ban_user'
5330
4898
  | 'flag_user'
5331
4899
  | 'flag_content'
@@ -5333,10 +4901,21 @@ export interface RuleBuilderAction {
5333
4901
  | 'shadow_content'
5334
4902
  | 'bounce_flag_content'
5335
4903
  | 'bounce_content'
5336
- | 'bounce_remove_content';
4904
+ | 'bounce_remove_content'
4905
+ | 'mute_video'
4906
+ | 'mute_audio'
4907
+ | 'blur'
4908
+ | 'call_blur'
4909
+ | 'end_call'
4910
+ | 'kick_user'
4911
+ | 'warning'
4912
+ | 'call_warning'
4913
+ | 'webhook_only';
5337
4914
 
5338
4915
  ban_options?: BanOptions;
5339
4916
 
4917
+ call_options?: CallActionOptions;
4918
+
5340
4919
  flag_user_options?: FlagUserOptions;
5341
4920
  }
5342
4921
 
@@ -5345,6 +4924,14 @@ export interface RuleBuilderCondition {
5345
4924
 
5346
4925
  type?: string;
5347
4926
 
4927
+ call_custom_property_params?: CallCustomPropertyParameters;
4928
+
4929
+ call_type_rule_params?: CallTypeRuleParameters;
4930
+
4931
+ call_violation_count_params?: CallViolationCountParameters;
4932
+
4933
+ closed_caption_rule_params?: ClosedCaptionRuleParameters;
4934
+
5348
4935
  content_count_rule_params?: ContentCountRuleParameters;
5349
4936
 
5350
4937
  content_flag_count_rule_params?: FlagCountRuleParameters;
@@ -5353,6 +4940,8 @@ export interface RuleBuilderCondition {
5353
4940
 
5354
4941
  image_rule_params?: ImageRuleParameters;
5355
4942
 
4943
+ keyframe_rule_params?: KeyframeRuleParameters;
4944
+
5356
4945
  text_content_params?: TextContentParameters;
5357
4946
 
5358
4947
  text_rule_params?: TextRuleParameters;
@@ -5389,17 +4978,19 @@ export interface RuleBuilderConfig {
5389
4978
  export interface RuleBuilderRule {
5390
4979
  rule_type: string;
5391
4980
 
5392
- action: RuleBuilderAction;
5393
-
5394
4981
  cooldown_period?: string;
5395
4982
 
5396
4983
  id?: string;
5397
4984
 
5398
4985
  logic?: string;
5399
4986
 
4987
+ action_sequences?: CallRuleActionSequence[];
4988
+
5400
4989
  conditions?: RuleBuilderCondition[];
5401
4990
 
5402
4991
  groups?: RuleBuilderConditionGroup[];
4992
+
4993
+ action?: RuleBuilderAction;
5403
4994
  }
5404
4995
 
5405
4996
  export interface SRTIngress {
@@ -5418,34 +5009,10 @@ export interface SessionSettingsResponse {
5418
5009
  inactivity_timeout_seconds: number;
5419
5010
  }
5420
5011
 
5421
- export interface ShadowBlockActionRequest {
5012
+ export interface ShadowBlockActionRequestPayload {
5422
5013
  reason?: string;
5423
5014
  }
5424
5015
 
5425
- export interface SharedLocation {
5426
- channel_cid: string;
5427
-
5428
- created_at: Date;
5429
-
5430
- created_by_device_id: string;
5431
-
5432
- message_id: string;
5433
-
5434
- updated_at: Date;
5435
-
5436
- user_id: string;
5437
-
5438
- end_at?: Date;
5439
-
5440
- latitude?: number;
5441
-
5442
- longitude?: number;
5443
-
5444
- channel?: Channel;
5445
-
5446
- message?: Message;
5447
- }
5448
-
5449
5016
  export interface SharedLocationResponse {
5450
5017
  channel_cid: string;
5451
5018
 
@@ -5523,7 +5090,7 @@ export interface SortParamRequest {
5523
5090
 
5524
5091
  field?: string;
5525
5092
 
5526
- type?: '' | 'number' | 'boolean';
5093
+ type?: string;
5527
5094
  }
5528
5095
 
5529
5096
  export interface SpeechSegmentConfig {
@@ -5560,6 +5127,7 @@ export interface StoriesFeedUpdatedEvent {
5560
5127
 
5561
5128
  export interface SubmitActionRequest {
5562
5129
  action_type:
5130
+ | 'flag'
5563
5131
  | 'mark_reviewed'
5564
5132
  | 'delete_message'
5565
5133
  | 'delete_activity'
@@ -5582,33 +5150,35 @@ export interface SubmitActionRequest {
5582
5150
 
5583
5151
  item_id?: string;
5584
5152
 
5585
- ban?: BanActionRequest;
5153
+ ban?: BanActionRequestPayload;
5154
+
5155
+ block?: BlockActionRequestPayload;
5586
5156
 
5587
- block?: BlockActionRequest;
5157
+ custom?: CustomActionRequestPayload;
5588
5158
 
5589
- custom?: CustomActionRequest;
5159
+ delete_activity?: DeleteActivityRequestPayload;
5590
5160
 
5591
- delete_activity?: DeleteActivityRequest;
5161
+ delete_comment?: DeleteCommentRequestPayload;
5592
5162
 
5593
- delete_comment?: DeleteCommentRequest;
5163
+ delete_message?: DeleteMessageRequestPayload;
5594
5164
 
5595
- delete_message?: DeleteMessageRequest;
5165
+ delete_reaction?: DeleteReactionRequestPayload;
5596
5166
 
5597
- delete_reaction?: DeleteReactionRequest;
5167
+ delete_user?: DeleteUserRequestPayload;
5598
5168
 
5599
- delete_user?: DeleteUserRequest;
5169
+ flag?: FlagRequest;
5600
5170
 
5601
- mark_reviewed?: MarkReviewedRequest;
5171
+ mark_reviewed?: MarkReviewedRequestPayload;
5602
5172
 
5603
- reject_appeal?: RejectAppealRequest;
5173
+ reject_appeal?: RejectAppealRequestPayload;
5604
5174
 
5605
- restore?: RestoreActionRequest;
5175
+ restore?: RestoreActionRequestPayload;
5606
5176
 
5607
- shadow_block?: ShadowBlockActionRequest;
5177
+ shadow_block?: ShadowBlockActionRequestPayload;
5608
5178
 
5609
- unban?: UnbanActionRequest;
5179
+ unban?: UnbanActionRequestPayload;
5610
5180
 
5611
- unblock?: UnblockActionRequest;
5181
+ unblock?: UnblockActionRequestPayload;
5612
5182
  }
5613
5183
 
5614
5184
  export interface SubmitActionResponse {
@@ -5678,7 +5248,7 @@ export interface ThreadedCommentResponse {
5678
5248
 
5679
5249
  score: number;
5680
5250
 
5681
- status: string;
5251
+ status: 'active' | 'deleted' | 'removed' | 'hidden' | 'shadow_blocked';
5682
5252
 
5683
5253
  updated_at: Date;
5684
5254
 
@@ -5712,7 +5282,7 @@ export interface ThreadedCommentResponse {
5712
5282
 
5713
5283
  moderation?: ModerationV2Response;
5714
5284
 
5715
- reaction_groups?: Record<string, ReactionGroupResponse>;
5285
+ reaction_groups?: Record<string, FeedsReactionGroupResponse>;
5716
5286
  }
5717
5287
 
5718
5288
  export interface Thresholds {
@@ -5788,19 +5358,17 @@ export interface TranslationSettings {
5788
5358
  languages: string[];
5789
5359
  }
5790
5360
 
5791
- export interface TypingIndicators {
5792
- enabled: boolean;
5793
- }
5794
-
5795
5361
  export interface TypingIndicatorsResponse {
5796
5362
  enabled: boolean;
5797
5363
  }
5798
5364
 
5799
- export interface UnbanActionRequest {
5365
+ export interface UnbanActionRequestPayload {
5366
+ channel_cid?: string;
5367
+
5800
5368
  decision_reason?: string;
5801
5369
  }
5802
5370
 
5803
- export interface UnblockActionRequest {
5371
+ export interface UnblockActionRequestPayload {
5804
5372
  decision_reason?: string;
5805
5373
  }
5806
5374
 
@@ -5894,6 +5462,8 @@ export interface UpdateActivityRequest {
5894
5462
  custom?: Record<string, any>;
5895
5463
 
5896
5464
  location?: ActivityLocation;
5465
+
5466
+ search_data?: Record<string, any>;
5897
5467
  }
5898
5468
 
5899
5469
  export interface UpdateActivityResponse {
@@ -6185,74 +5755,52 @@ export interface UpsertPushPreferencesResponse {
6185
5755
 
6186
5756
  user_channel_preferences: Record<
6187
5757
  string,
6188
- Record<string, ChannelPushPreferences | null>
5758
+ Record<string, ChannelPushPreferencesResponse | null>
6189
5759
  >;
6190
5760
 
6191
- user_preferences: Record<string, PushPreferences>;
5761
+ user_preferences: Record<string, PushPreferencesResponse>;
6192
5762
  }
6193
5763
 
6194
5764
  export interface User {
6195
- banned: boolean;
6196
-
6197
5765
  id: string;
6198
5766
 
6199
- online: boolean;
5767
+ data?: Record<string, any>;
5768
+ }
6200
5769
 
6201
- role: string;
5770
+ export interface UserBannedEvent {
5771
+ created_at: Date;
6202
5772
 
6203
5773
  custom: Record<string, any>;
6204
5774
 
6205
- teams_role: Record<string, string>;
6206
-
6207
- avg_response_time?: number;
6208
-
6209
- ban_expires?: Date;
6210
-
6211
- created_at?: Date;
6212
-
6213
- deactivated_at?: Date;
6214
-
6215
- deleted_at?: Date;
6216
-
6217
- invisible?: boolean;
6218
-
6219
- language?: string;
6220
-
6221
- last_active?: Date;
6222
-
6223
- last_engaged_at?: Date;
6224
-
6225
- revoke_tokens_issued_before?: Date;
5775
+ user: UserResponseCommonFields;
6226
5776
 
6227
- updated_at?: Date;
5777
+ type: string;
6228
5778
 
6229
- teams?: string[];
5779
+ channel_id?: string;
6230
5780
 
6231
- privacy_settings?: PrivacySettings;
6232
- }
5781
+ channel_member_count?: number;
6233
5782
 
6234
- export interface UserBannedEvent {
6235
- channel_id: string;
5783
+ channel_message_count?: number;
6236
5784
 
6237
- channel_type: string;
5785
+ channel_type?: string;
6238
5786
 
6239
- cid: string;
5787
+ cid?: string;
6240
5788
 
6241
- created_at: Date;
5789
+ expiration?: Date;
6242
5790
 
6243
- shadow: boolean;
5791
+ reason?: string;
6244
5792
 
6245
- created_by: User;
5793
+ received_at?: Date;
6246
5794
 
6247
- type: string;
5795
+ shadow?: boolean;
6248
5796
 
6249
- expiration?: Date;
5797
+ team?: string;
6250
5798
 
6251
- reason?: string;
5799
+ total_bans?: number;
6252
5800
 
6253
- team?: string;
5801
+ channel_custom?: Record<string, any>;
6254
5802
 
6255
- user?: User;
5803
+ created_by?: UserResponseCommonFields;
6256
5804
  }
6257
5805
 
6258
5806
  export interface UserCreatedWithinParameters {
@@ -6268,11 +5816,15 @@ export interface UserCustomPropertyParameters {
6268
5816
  export interface UserDeactivatedEvent {
6269
5817
  created_at: Date;
6270
5818
 
6271
- created_by: User;
5819
+ custom: Record<string, any>;
5820
+
5821
+ user: UserResponseCommonFields;
6272
5822
 
6273
5823
  type: string;
6274
5824
 
6275
- user?: User;
5825
+ received_at?: Date;
5826
+
5827
+ created_by?: UserResponseCommonFields;
6276
5828
  }
6277
5829
 
6278
5830
  export interface UserIdenticalContentCountParameters {
@@ -6281,18 +5833,6 @@ export interface UserIdenticalContentCountParameters {
6281
5833
  time_window?: string;
6282
5834
  }
6283
5835
 
6284
- export interface UserMute {
6285
- created_at: Date;
6286
-
6287
- updated_at: Date;
6288
-
6289
- expires?: Date;
6290
-
6291
- target?: User;
6292
-
6293
- user?: User;
6294
- }
6295
-
6296
5836
  export interface UserMuteResponse {
6297
5837
  created_at: Date;
6298
5838
 
@@ -6305,24 +5845,18 @@ export interface UserMuteResponse {
6305
5845
  user?: UserResponse;
6306
5846
  }
6307
5847
 
6308
- export interface UserMutedEvent {
5848
+ export interface UserReactivatedEvent {
6309
5849
  created_at: Date;
6310
5850
 
6311
- type: string;
6312
-
6313
- target_user?: string;
6314
-
6315
- target_users?: string[];
6316
-
6317
- user?: User;
6318
- }
5851
+ custom: Record<string, any>;
6319
5852
 
6320
- export interface UserReactivatedEvent {
6321
- created_at: Date;
5853
+ user: UserResponseCommonFields;
6322
5854
 
6323
5855
  type: string;
6324
5856
 
6325
- user?: User;
5857
+ received_at?: Date;
5858
+
5859
+ created_by?: UserResponseCommonFields;
6326
5860
  }
6327
5861
 
6328
5862
  export interface UserRequest {
@@ -6469,6 +6003,36 @@ export interface UserRuleParameters {
6469
6003
  max_age?: string;
6470
6004
  }
6471
6005
 
6006
+ export interface UserUnbannedEvent {
6007
+ created_at: Date;
6008
+
6009
+ custom: Record<string, any>;
6010
+
6011
+ user: UserResponseCommonFields;
6012
+
6013
+ type: string;
6014
+
6015
+ channel_id?: string;
6016
+
6017
+ channel_member_count?: number;
6018
+
6019
+ channel_message_count?: number;
6020
+
6021
+ channel_type?: string;
6022
+
6023
+ cid?: string;
6024
+
6025
+ received_at?: Date;
6026
+
6027
+ shadow?: boolean;
6028
+
6029
+ team?: string;
6030
+
6031
+ channel_custom?: Record<string, any>;
6032
+
6033
+ created_by?: UserResponseCommonFields;
6034
+ }
6035
+
6472
6036
  export interface UserUpdatedEvent {
6473
6037
  created_at: Date;
6474
6038
 
@@ -6539,9 +6103,9 @@ export interface VideoContentParameters {
6539
6103
  harm_labels?: string[];
6540
6104
  }
6541
6105
 
6542
- export interface VideoEndCallRequest {}
6106
+ export interface VideoEndCallRequestPayload {}
6543
6107
 
6544
- export interface VideoKickUserRequest {}
6108
+ export interface VideoKickUserRequestPayload {}
6545
6109
 
6546
6110
  export interface VideoRuleParameters {
6547
6111
  threshold?: number;
@@ -6629,7 +6193,12 @@ export type WSClientEvent =
6629
6193
  | ({ type: 'feeds.stories_feed.updated' } & StoriesFeedUpdatedEvent)
6630
6194
  | ({ type: 'health.check' } & HealthCheckEvent)
6631
6195
  | ({ type: 'moderation.custom_action' } & ModerationCustomActionEvent)
6196
+ | ({ type: 'moderation.flagged' } & ModerationFlaggedEvent)
6632
6197
  | ({ type: 'moderation.mark_reviewed' } & ModerationMarkReviewedEvent)
6198
+ | ({ type: 'user.banned' } & UserBannedEvent)
6199
+ | ({ type: 'user.deactivated' } & UserDeactivatedEvent)
6200
+ | ({ type: 'user.reactivated' } & UserReactivatedEvent)
6201
+ | ({ type: 'user.unbanned' } & UserUnbannedEvent)
6633
6202
  | ({ type: 'user.updated' } & UserUpdatedEvent);
6634
6203
 
6635
6204
  export type WSEvent =
@@ -6684,6 +6253,6 @@ export type WSEvent =
6684
6253
  | ({ type: 'moderation.mark_reviewed' } & ModerationMarkReviewedEvent)
6685
6254
  | ({ type: 'user.banned' } & UserBannedEvent)
6686
6255
  | ({ type: 'user.deactivated' } & UserDeactivatedEvent)
6687
- | ({ type: 'user.muted' } & UserMutedEvent)
6688
6256
  | ({ type: 'user.reactivated' } & UserReactivatedEvent)
6257
+ | ({ type: 'user.unbanned' } & UserUnbannedEvent)
6689
6258
  | ({ type: 'user.updated' } & UserUpdatedEvent);