@stream-io/node-sdk 0.4.3 → 0.4.5

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.
@@ -1,3 +1,23 @@
1
+ export interface AIImageConfig {
2
+ enabled: boolean;
3
+
4
+ rules: AWSRekognitionRule[];
5
+
6
+ async?: boolean;
7
+ }
8
+
9
+ export interface AITextConfig {
10
+ enabled: boolean;
11
+
12
+ profile: string;
13
+
14
+ rules: BodyguardRule[];
15
+
16
+ severity_rules: BodyguardSeverityRule[];
17
+
18
+ async?: boolean;
19
+ }
20
+
1
21
  export interface APIError {
2
22
  code: number;
3
23
 
@@ -66,16 +86,18 @@ export interface APNS {
66
86
  title: string;
67
87
  }
68
88
 
69
- export interface AWSRekognitionConfig {
70
- enabled?: boolean;
71
-
72
- rules?: AWSRekognitionRule[];
73
- }
74
-
75
89
  export interface AWSRekognitionRule {
76
- action: 'flag' | 'shadow' | 'remove';
90
+ action:
91
+ | 'flag'
92
+ | 'shadow'
93
+ | 'remove'
94
+ | 'bounce'
95
+ | 'bounce_flag'
96
+ | 'bounce_remove';
77
97
 
78
98
  label: string;
99
+
100
+ min_confidence: number;
79
101
  }
80
102
 
81
103
  export interface Action {
@@ -97,6 +119,8 @@ export interface ActionLog {
97
119
 
98
120
  reason: string;
99
121
 
122
+ reporter_type: string;
123
+
100
124
  review_queue_item_id: string;
101
125
 
102
126
  target_user_id: string;
@@ -107,9 +131,9 @@ export interface ActionLog {
107
131
 
108
132
  review_queue_item?: ReviewQueueItem;
109
133
 
110
- target_user?: UserObject;
134
+ target_user?: User;
111
135
 
112
- user?: UserObject;
136
+ user?: User;
113
137
  }
114
138
 
115
139
  export interface ActionLogResponse {
@@ -119,8 +143,12 @@ export interface ActionLogResponse {
119
143
 
120
144
  reason: string;
121
145
 
146
+ target_user_id: string;
147
+
122
148
  type: string;
123
149
 
150
+ user_id: string;
151
+
124
152
  custom: Record<string, any>;
125
153
 
126
154
  review_queue_item?: ReviewQueueItem;
@@ -259,6 +287,10 @@ export interface Attachment {
259
287
 
260
288
  image_url?: string;
261
289
 
290
+ latitude?: number;
291
+
292
+ longitude?: number;
293
+
262
294
  og_scrape_url?: string;
263
295
 
264
296
  original_height?: number;
@@ -267,6 +299,8 @@ export interface Attachment {
267
299
 
268
300
  pretext?: string;
269
301
 
302
+ stopped_sharing?: boolean;
303
+
270
304
  text?: string;
271
305
 
272
306
  thumb_url?: string;
@@ -345,13 +379,21 @@ export interface AutomodDetails {
345
379
  }
346
380
 
347
381
  export interface AutomodPlatformCircumventionConfig {
348
- enabled?: boolean;
382
+ enabled: boolean;
349
383
 
350
- rules?: AutomodRule[];
384
+ rules: AutomodRule[];
385
+
386
+ async?: boolean;
351
387
  }
352
388
 
353
389
  export interface AutomodRule {
354
- action: 'flag' | 'shadow' | 'remove';
390
+ action:
391
+ | 'flag'
392
+ | 'shadow'
393
+ | 'remove'
394
+ | 'bounce'
395
+ | 'bounce_flag'
396
+ | 'bounce_remove';
355
397
 
356
398
  label: string;
357
399
 
@@ -359,9 +401,11 @@ export interface AutomodRule {
359
401
  }
360
402
 
361
403
  export interface AutomodSemanticFiltersConfig {
362
- enabled?: boolean;
404
+ enabled: boolean;
405
+
406
+ rules: AutomodSemanticFiltersRule[];
363
407
 
364
- rules?: AutomodSemanticFiltersRule[];
408
+ async?: boolean;
365
409
  }
366
410
 
367
411
  export interface AutomodSemanticFiltersRule {
@@ -373,9 +417,11 @@ export interface AutomodSemanticFiltersRule {
373
417
  }
374
418
 
375
419
  export interface AutomodToxicityConfig {
376
- enabled?: boolean;
420
+ enabled: boolean;
421
+
422
+ rules: AutomodRule[];
377
423
 
378
- rules?: AutomodRule[];
424
+ async?: boolean;
379
425
  }
380
426
 
381
427
  export interface AzureRequest {
@@ -417,14 +463,16 @@ export interface Ban {
417
463
 
418
464
  channel?: Channel;
419
465
 
420
- created_by?: UserObject;
466
+ created_by?: User;
421
467
 
422
- target?: UserObject;
468
+ target?: User;
423
469
  }
424
470
 
425
471
  export interface BanActionRequest {
426
472
  channel_ban_only?: boolean;
427
473
 
474
+ ip_ban?: boolean;
475
+
428
476
  reason?: string;
429
477
 
430
478
  shadow?: boolean;
@@ -467,9 +515,11 @@ export interface BanResponse {
467
515
  }
468
516
 
469
517
  export interface BlockListConfig {
470
- enabled?: boolean;
518
+ enabled: boolean;
519
+
520
+ rules: BlockListRule[];
471
521
 
472
- rules?: BlockListRule[];
522
+ async?: boolean;
473
523
  }
474
524
 
475
525
  export interface BlockListOptions {
@@ -491,7 +541,13 @@ export interface BlockListResponse {
491
541
  }
492
542
 
493
543
  export interface BlockListRule {
494
- action: 'flag' | 'shadow' | 'remove';
544
+ action:
545
+ | 'flag'
546
+ | 'shadow'
547
+ | 'remove'
548
+ | 'bounce'
549
+ | 'bounce_flag'
550
+ | 'bounce_remove';
495
551
 
496
552
  name: string;
497
553
  }
@@ -534,24 +590,28 @@ export interface BlockedUserResponse {
534
590
  user: UserResponse;
535
591
  }
536
592
 
537
- export interface BodyguardConfig {
538
- enabled?: boolean;
539
-
540
- profile?: string;
541
-
542
- rules?: BodyguardRule[];
543
-
544
- severity_rules?: BodyguardSeverityRule[];
545
- }
546
-
547
593
  export interface BodyguardRule {
548
- action: 'flag' | 'shadow' | 'remove';
594
+ action:
595
+ | 'flag'
596
+ | 'shadow'
597
+ | 'remove'
598
+ | 'bounce'
599
+ | 'bounce_flag'
600
+ | 'bounce_remove';
549
601
 
550
602
  label: string;
603
+
604
+ severity_rules: BodyguardSeverityRule[];
551
605
  }
552
606
 
553
607
  export interface BodyguardSeverityRule {
554
- action: 'flag' | 'shadow' | 'remove';
608
+ action:
609
+ | 'flag'
610
+ | 'shadow'
611
+ | 'remove'
612
+ | 'bounce'
613
+ | 'bounce_flag'
614
+ | 'bounce_remove';
555
615
 
556
616
  severity: 'low' | 'medium' | 'high' | 'critical';
557
617
  }
@@ -585,15 +645,21 @@ export interface CallEvent {
585
645
 
586
646
  end_timestamp: number;
587
647
 
648
+ internal: boolean;
649
+
650
+ kind: string;
651
+
588
652
  severity: number;
589
653
 
590
654
  timestamp: number;
591
655
 
592
656
  type: string;
593
657
 
658
+ category?: string;
659
+
594
660
  component?: string;
595
661
 
596
- additional?: Record<string, any>;
662
+ issue_tags?: string[];
597
663
  }
598
664
 
599
665
  export interface CallIngressResponse {
@@ -641,6 +707,8 @@ export interface CallRequest {
641
707
  export interface CallResponse {
642
708
  backstage: boolean;
643
709
 
710
+ captioning: boolean;
711
+
644
712
  cid: string;
645
713
 
646
714
  created_at: Date;
@@ -852,6 +920,80 @@ export interface CallTypeResponse {
852
920
  external_storage?: string;
853
921
  }
854
922
 
923
+ export interface CampaignChannelTemplate {
924
+ type: string;
925
+
926
+ custom: Record<string, any>;
927
+
928
+ id?: string;
929
+
930
+ members?: string[];
931
+ }
932
+
933
+ export interface CampaignMessageTemplate {
934
+ poll_id: string;
935
+
936
+ text: string;
937
+
938
+ attachments: Attachment[];
939
+
940
+ custom: Record<string, any>;
941
+ }
942
+
943
+ export interface CampaignResponse {
944
+ create_channels: boolean;
945
+
946
+ created_at: Date;
947
+
948
+ description: string;
949
+
950
+ id: string;
951
+
952
+ name: string;
953
+
954
+ sender_id: string;
955
+
956
+ skip_push: boolean;
957
+
958
+ skip_webhook: boolean;
959
+
960
+ status: string;
961
+
962
+ updated_at: Date;
963
+
964
+ segment_ids: string[];
965
+
966
+ segments: Segment[];
967
+
968
+ user_ids: string[];
969
+
970
+ users: UserResponse[];
971
+
972
+ stats: CampaignStatsResponse;
973
+
974
+ scheduled_for?: Date;
975
+
976
+ stop_at?: Date;
977
+
978
+ channel_template?: CampaignChannelTemplate;
979
+
980
+ message_template?: CampaignMessageTemplate;
981
+
982
+ sender?: UserResponse;
983
+ }
984
+
985
+ export interface CampaignStatsResponse {
986
+ progress: number;
987
+
988
+ stats_channels_created: number;
989
+
990
+ stats_completed_at: Date;
991
+
992
+ stats_messages_sent: number;
993
+
994
+ stats_started_at: Date;
995
+ }
996
+
855
997
  export interface CastPollVoteRequest {
856
998
  user_id?: string;
857
999
 
@@ -897,11 +1039,11 @@ export interface Channel {
897
1039
 
898
1040
  config?: ChannelConfig;
899
1041
 
900
- config_overrides?: ChannelConfig;
1042
+ config_overrides?: ConfigOverrides;
901
1043
 
902
- created_by?: UserObject;
1044
+ created_by?: User;
903
1045
 
904
- truncated_by?: UserObject;
1046
+ truncated_by?: User;
905
1047
  }
906
1048
 
907
1049
  export interface ChannelConfig {
@@ -939,6 +1081,8 @@ export interface ChannelConfig {
939
1081
 
940
1082
  search: boolean;
941
1083
 
1084
+ skip_last_msg_update_for_system_msgs: boolean;
1085
+
942
1086
  typing_events: boolean;
943
1087
 
944
1088
  updated_at: Date;
@@ -953,6 +1097,10 @@ export interface ChannelConfig {
953
1097
 
954
1098
  blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
955
1099
 
1100
+ partition_size?: number;
1101
+
1102
+ partition_ttl?: string;
1103
+
956
1104
  allowed_flag_reasons?: string[];
957
1105
 
958
1106
  blocklists?: BlockListOptions[];
@@ -995,6 +1143,8 @@ export interface ChannelConfigWithInfo {
995
1143
 
996
1144
  search: boolean;
997
1145
 
1146
+ skip_last_msg_update_for_system_msgs: boolean;
1147
+
998
1148
  typing_events: boolean;
999
1149
 
1000
1150
  updated_at: Date;
@@ -1011,7 +1161,7 @@ export interface ChannelConfigWithInfo {
1011
1161
 
1012
1162
  partition_size?: number;
1013
1163
 
1014
- partition_ttl?: number;
1164
+ partition_ttl?: string;
1015
1165
 
1016
1166
  allowed_flag_reasons?: string[];
1017
1167
 
@@ -1091,6 +1241,8 @@ export interface ChannelMember {
1091
1241
 
1092
1242
  custom: Record<string, any>;
1093
1243
 
1244
+ archived_at?: Date;
1245
+
1094
1246
  ban_expires?: Date;
1095
1247
 
1096
1248
  deleted_at?: Date;
@@ -1103,11 +1255,15 @@ export interface ChannelMember {
1103
1255
 
1104
1256
  is_moderator?: boolean;
1105
1257
 
1258
+ pinned_at?: Date;
1259
+
1260
+ role?: 'member' | 'moderator' | 'admin' | 'owner';
1261
+
1106
1262
  status?: string;
1107
1263
 
1108
1264
  user_id?: string;
1109
1265
 
1110
- user?: UserObject;
1266
+ user?: UserResponse;
1111
1267
  }
1112
1268
 
1113
1269
  export interface ChannelMemberResponse {
@@ -1125,6 +1281,8 @@ export interface ChannelMemberResponse {
1125
1281
 
1126
1282
  custom: Record<string, any>;
1127
1283
 
1284
+ archived_at?: Date;
1285
+
1128
1286
  ban_expires?: Date;
1129
1287
 
1130
1288
  deleted_at?: Date;
@@ -1137,6 +1295,8 @@ export interface ChannelMemberResponse {
1137
1295
 
1138
1296
  is_moderator?: boolean;
1139
1297
 
1298
+ pinned_at?: Date;
1299
+
1140
1300
  role?: 'member' | 'moderator' | 'admin' | 'owner';
1141
1301
 
1142
1302
  status?: string;
@@ -1155,9 +1315,52 @@ export interface ChannelMute {
1155
1315
 
1156
1316
  channel?: ChannelResponse;
1157
1317
 
1158
- user?: UserObject;
1318
+ user?: UserResponse;
1159
1319
  }
1160
1320
 
1321
+ export const ChannelOwnCapability = {
1322
+ BAN_CHANNEL_MEMBERS: 'ban-channel-members',
1323
+ CAST_POLL_VOTE: 'cast-poll-vote',
1324
+ CONNECT_EVENTS: 'connect-events',
1325
+ CREATE_ATTACHMENT: 'create-attachment',
1326
+ CREATE_CALL: 'create-call',
1327
+ DELETE_ANY_MESSAGE: 'delete-any-message',
1328
+ DELETE_CHANNEL: 'delete-channel',
1329
+ DELETE_OWN_MESSAGE: 'delete-own-message',
1330
+ FLAG_MESSAGE: 'flag-message',
1331
+ FREEZE_CHANNEL: 'freeze-channel',
1332
+ JOIN_CALL: 'join-call',
1333
+ JOIN_CHANNEL: 'join-channel',
1334
+ LEAVE_CHANNEL: 'leave-channel',
1335
+ MUTE_CHANNEL: 'mute-channel',
1336
+ PIN_MESSAGE: 'pin-message',
1337
+ QUERY_POLL_VOTES: 'query-poll-votes',
1338
+ QUOTE_MESSAGE: 'quote-message',
1339
+ READ_EVENTS: 'read-events',
1340
+ SEARCH_MESSAGES: 'search-messages',
1341
+ SEND_CUSTOM_EVENTS: 'send-custom-events',
1342
+ SEND_LINKS: 'send-links',
1343
+ SEND_MESSAGE: 'send-message',
1344
+ SEND_POLL: 'send-poll',
1345
+ SEND_REACTION: 'send-reaction',
1346
+ SEND_REPLY: 'send-reply',
1347
+ SEND_TYPING_EVENTS: 'send-typing-events',
1348
+ SET_CHANNEL_COOLDOWN: 'set-channel-cooldown',
1349
+ SKIP_SLOW_MODE: 'skip-slow-mode',
1350
+ SLOW_MODE: 'slow-mode',
1351
+ TYPING_EVENTS: 'typing-events',
1352
+ UPDATE_ANY_MESSAGE: 'update-any-message',
1353
+ UPDATE_CHANNEL: 'update-channel',
1354
+ UPDATE_CHANNEL_MEMBERS: 'update-channel-members',
1355
+ UPDATE_OWN_MESSAGE: 'update-own-message',
1356
+ UPDATE_THREAD: 'update-thread',
1357
+ UPLOAD_FILE: 'upload-file',
1358
+ } as const;
1359
+
1360
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
1361
+ export type ChannelOwnCapability =
1362
+ (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
1363
+
1161
1364
  export interface ChannelResponse {
1162
1365
  cid: string;
1163
1366
 
@@ -1203,13 +1406,13 @@ export interface ChannelResponse {
1203
1406
 
1204
1407
  members?: ChannelMember[];
1205
1408
 
1206
- own_capabilities?: string[];
1409
+ own_capabilities?: ChannelOwnCapability[];
1207
1410
 
1208
1411
  config?: ChannelConfigWithInfo;
1209
1412
 
1210
- created_by?: UserObject;
1413
+ created_by?: UserResponse;
1211
1414
 
1212
- truncated_by?: UserObject;
1415
+ truncated_by?: UserResponse;
1213
1416
  }
1214
1417
 
1215
1418
  export interface ChannelStateResponse {
@@ -1221,7 +1424,7 @@ export interface ChannelStateResponse {
1221
1424
 
1222
1425
  pinned_messages: MessageResponse[];
1223
1426
 
1224
- threads: ThreadState[];
1427
+ threads: ThreadStateResponse[];
1225
1428
 
1226
1429
  hidden?: boolean;
1227
1430
 
@@ -1247,7 +1450,7 @@ export interface ChannelStateResponseFields {
1247
1450
 
1248
1451
  pinned_messages: MessageResponse[];
1249
1452
 
1250
- threads: ThreadState[];
1453
+ threads: ThreadStateResponse[];
1251
1454
 
1252
1455
  hidden?: boolean;
1253
1456
 
@@ -1301,6 +1504,8 @@ export interface ChannelTypeConfig {
1301
1504
 
1302
1505
  search: boolean;
1303
1506
 
1507
+ skip_last_msg_update_for_system_msgs: boolean;
1508
+
1304
1509
  typing_events: boolean;
1305
1510
 
1306
1511
  updated_at: Date;
@@ -1321,7 +1526,7 @@ export interface ChannelTypeConfig {
1321
1526
 
1322
1527
  partition_size?: number;
1323
1528
 
1324
- partition_ttl?: number;
1529
+ partition_ttl?: string;
1325
1530
 
1326
1531
  allowed_flag_reasons?: string[];
1327
1532
 
@@ -1381,6 +1586,8 @@ export interface CheckRequest {
1381
1586
 
1382
1587
  entity_type: string;
1383
1588
 
1589
+ test_mode?: boolean;
1590
+
1384
1591
  user_id?: string;
1385
1592
 
1386
1593
  moderation_payload?: ModerationPayload;
@@ -1482,6 +1689,30 @@ export interface Config {
1482
1689
  role_map?: Record<string, string>;
1483
1690
  }
1484
1691
 
1692
+ export interface ConfigOverrides {
1693
+ commands: string[];
1694
+
1695
+ grants: Record<string, string[]>;
1696
+
1697
+ blocklist?: string;
1698
+
1699
+ blocklist_behavior?: 'flag' | 'block';
1700
+
1701
+ max_message_length?: number;
1702
+
1703
+ quotes?: boolean;
1704
+
1705
+ reactions?: boolean;
1706
+
1707
+ replies?: boolean;
1708
+
1709
+ typing_events?: boolean;
1710
+
1711
+ uploads?: boolean;
1712
+
1713
+ url_enrichment?: boolean;
1714
+ }
1715
+
1485
1716
  export interface ConfigResponse {
1486
1717
  async: boolean;
1487
1718
 
@@ -1491,20 +1722,18 @@ export interface ConfigResponse {
1491
1722
 
1492
1723
  updated_at: Date;
1493
1724
 
1725
+ ai_image_config?: AIImageConfig;
1726
+
1727
+ ai_text_config?: AITextConfig;
1728
+
1494
1729
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
1495
1730
 
1496
1731
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
1497
1732
 
1498
1733
  automod_toxicity_config?: AutomodToxicityConfig;
1499
1734
 
1500
- aws_rek_og_nition_config?: AWSRekognitionConfig;
1501
-
1502
1735
  block_list_config?: BlockListConfig;
1503
1736
 
1504
- bodyguard_config?: BodyguardConfig;
1505
-
1506
- go_og_le_vision_config?: GoogleVisionConfig;
1507
-
1508
1737
  velocity_filter_config?: VelocityFilterConfig;
1509
1738
  }
1510
1739
 
@@ -1515,7 +1744,7 @@ export interface Coordinates {
1515
1744
  }
1516
1745
 
1517
1746
  export interface Count {
1518
- app_roximate: boolean;
1747
+ approximate: boolean;
1519
1748
 
1520
1749
  value: number;
1521
1750
  }
@@ -1589,7 +1818,7 @@ export interface CreateChannelTypeRequest {
1589
1818
 
1590
1819
  mark_messages_pending?: boolean;
1591
1820
 
1592
- message_retention?: string;
1821
+ message_retention?: 'infinite' | 'numeric';
1593
1822
 
1594
1823
  mutes?: boolean;
1595
1824
 
@@ -1609,6 +1838,8 @@ export interface CreateChannelTypeRequest {
1609
1838
 
1610
1839
  search?: boolean;
1611
1840
 
1841
+ skip_last_msg_update_for_system_msgs?: boolean;
1842
+
1612
1843
  typing_events?: boolean;
1613
1844
 
1614
1845
  uploads?: boolean;
@@ -1661,6 +1892,8 @@ export interface CreateChannelTypeResponse {
1661
1892
 
1662
1893
  search: boolean;
1663
1894
 
1895
+ skip_last_msg_update_for_system_msgs: boolean;
1896
+
1664
1897
  typing_events: boolean;
1665
1898
 
1666
1899
  updated_at: Date;
@@ -1681,7 +1914,7 @@ export interface CreateChannelTypeResponse {
1681
1914
 
1682
1915
  partition_size?: number;
1683
1916
 
1684
- partition_ttl?: number;
1917
+ partition_ttl?: string;
1685
1918
 
1686
1919
  allowed_flag_reasons?: string[];
1687
1920
 
@@ -1972,6 +2205,10 @@ export interface DeleteMessageResponse {
1972
2205
  message: MessageResponse;
1973
2206
  }
1974
2207
 
2208
+ export interface DeleteModerationConfigResponse {
2209
+ duration: string;
2210
+ }
2211
+
1975
2212
  export interface DeleteModerationTemplateResponse {
1976
2213
  duration: string;
1977
2214
  }
@@ -1984,6 +2221,10 @@ export interface DeleteRecordingResponse {
1984
2221
  duration: string;
1985
2222
  }
1986
2223
 
2224
+ export interface DeleteSegmentTargetsRequest {
2225
+ target_ids: string[];
2226
+ }
2227
+
1987
2228
  export interface DeleteTranscriptionResponse {
1988
2229
  duration: string;
1989
2230
  }
@@ -1991,6 +2232,8 @@ export interface DeleteTranscriptionResponse {
1991
2232
  export interface DeleteUserRequest {
1992
2233
  delete_conversation_channels?: boolean;
1993
2234
 
2235
+ delete_feeds_content?: boolean;
2236
+
1994
2237
  hard_delete?: boolean;
1995
2238
 
1996
2239
  mark_messages_deleted?: boolean;
@@ -2023,7 +2266,7 @@ export interface Device {
2023
2266
 
2024
2267
  id: string;
2025
2268
 
2026
- push_provider: string;
2269
+ push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
2027
2270
 
2028
2271
  user_id: string;
2029
2272
 
@@ -2044,6 +2287,24 @@ export interface DeviceErrorInfo {
2044
2287
  provider_name: string;
2045
2288
  }
2046
2289
 
2290
+ export interface DeviceResponse {
2291
+ created_at: Date;
2292
+
2293
+ id: string;
2294
+
2295
+ push_provider: string;
2296
+
2297
+ user_id: string;
2298
+
2299
+ disabled?: boolean;
2300
+
2301
+ disabled_reason?: string;
2302
+
2303
+ push_provider_name?: string;
2304
+
2305
+ voip?: boolean;
2306
+ }
2307
+
2047
2308
  export interface EdgeResponse {
2048
2309
  continent_code: string;
2049
2310
 
@@ -2083,7 +2344,7 @@ export interface EgressRTMPResponse {
2083
2344
  export interface EgressResponse {
2084
2345
  broadcasting: boolean;
2085
2346
 
2086
- rtmp_s: EgressRTMPResponse[];
2347
+ rtmps: EgressRTMPResponse[];
2087
2348
 
2088
2349
  hls?: EgressHLSResponse;
2089
2350
  }
@@ -2148,72 +2409,164 @@ export interface EnrichedReaction {
2148
2409
  user?: Data;
2149
2410
  }
2150
2411
 
2151
- export interface ErrorResult {
2152
- type: string;
2412
+ export interface EntityCreator {
2413
+ ban_count: number;
2153
2414
 
2154
- stacktrace?: string;
2415
+ banned: boolean;
2155
2416
 
2156
- version?: string;
2157
- }
2417
+ deleted_content_count: number;
2158
2418
 
2159
- export interface EventNotificationSettings {
2160
- enabled: boolean;
2419
+ id: string;
2161
2420
 
2162
- apns: APNS;
2163
- }
2421
+ online: boolean;
2164
2422
 
2165
- export interface EventRequest {
2166
- type: string;
2423
+ role: string;
2167
2424
 
2168
- parent_id?: string;
2425
+ custom: Record<string, any>;
2169
2426
 
2170
- user_id?: string;
2427
+ ban_expires?: Date;
2171
2428
 
2172
- custom?: Record<string, any>;
2429
+ created_at?: Date;
2173
2430
 
2174
- user?: UserRequest;
2175
- }
2431
+ deactivated_at?: Date;
2176
2432
 
2177
- export interface EventResponse {
2178
- duration: string;
2433
+ deleted_at?: Date;
2179
2434
 
2180
- event: WSEvent;
2181
- }
2435
+ invisible?: boolean;
2182
2436
 
2183
- export interface ExportChannelsRequest {
2184
- channels: ChannelExport[];
2437
+ language?: string;
2185
2438
 
2186
- clear_deleted_message_text?: boolean;
2439
+ last_active?: Date;
2187
2440
 
2188
- export_users?: boolean;
2441
+ last_engaged_at?: Date;
2189
2442
 
2190
- include_soft_deleted_channels?: boolean;
2443
+ revoke_tokens_issued_before?: Date;
2191
2444
 
2192
- include_truncated_messages?: boolean;
2445
+ updated_at?: Date;
2193
2446
 
2194
- version?: string;
2195
- }
2447
+ teams?: string[];
2196
2448
 
2197
- export interface ExportChannelsResponse {
2198
- duration: string;
2449
+ privacy_settings?: PrivacySettings;
2199
2450
 
2200
- task_id: string;
2451
+ push_notifications?: PushNotificationSettings;
2201
2452
  }
2202
2453
 
2203
- export interface ExportChannelsResult {
2204
- url: string;
2454
+ export interface EntityCreatorResponse {
2455
+ ban_count: number;
2205
2456
 
2206
- path?: string;
2457
+ banned: boolean;
2207
2458
 
2208
- s3_bucket_name?: string;
2209
- }
2459
+ created_at: Date;
2210
2460
 
2211
- export interface ExportUserResponse {
2212
- duration: string;
2461
+ deleted_content_count: number;
2213
2462
 
2214
- messages?: Message[];
2463
+ id: string;
2215
2464
 
2216
- reactions?: Reaction[];
2465
+ invisible: boolean;
2466
+
2467
+ language: string;
2468
+
2469
+ online: boolean;
2470
+
2471
+ role: string;
2472
+
2473
+ shadow_banned: boolean;
2474
+
2475
+ updated_at: Date;
2476
+
2477
+ blocked_user_ids: string[];
2478
+
2479
+ devices: DeviceResponse[];
2480
+
2481
+ teams: string[];
2482
+
2483
+ custom: Record<string, any>;
2484
+
2485
+ ban_expires?: Date;
2486
+
2487
+ deactivated_at?: Date;
2488
+
2489
+ deleted_at?: Date;
2490
+
2491
+ image?: string;
2492
+
2493
+ last_active?: Date;
2494
+
2495
+ name?: string;
2496
+
2497
+ revoke_tokens_issued_before?: Date;
2498
+
2499
+ privacy_settings?: PrivacySettingsResponse;
2500
+
2501
+ push_notifications?: PushNotificationSettingsResponse;
2502
+ }
2503
+
2504
+ export interface ErrorResult {
2505
+ type: string;
2506
+
2507
+ stacktrace?: string;
2508
+
2509
+ version?: string;
2510
+ }
2511
+
2512
+ export interface EventNotificationSettings {
2513
+ enabled: boolean;
2514
+
2515
+ apns: APNS;
2516
+ }
2517
+
2518
+ export interface EventRequest {
2519
+ type: string;
2520
+
2521
+ parent_id?: string;
2522
+
2523
+ user_id?: string;
2524
+
2525
+ custom?: Record<string, any>;
2526
+
2527
+ user?: UserRequest;
2528
+ }
2529
+
2530
+ export interface EventResponse {
2531
+ duration: string;
2532
+
2533
+ event: WSEvent;
2534
+ }
2535
+
2536
+ export interface ExportChannelsRequest {
2537
+ channels: ChannelExport[];
2538
+
2539
+ clear_deleted_message_text?: boolean;
2540
+
2541
+ export_users?: boolean;
2542
+
2543
+ include_soft_deleted_channels?: boolean;
2544
+
2545
+ include_truncated_messages?: boolean;
2546
+
2547
+ version?: string;
2548
+ }
2549
+
2550
+ export interface ExportChannelsResponse {
2551
+ duration: string;
2552
+
2553
+ task_id: string;
2554
+ }
2555
+
2556
+ export interface ExportChannelsResult {
2557
+ url: string;
2558
+
2559
+ path?: string;
2560
+
2561
+ s3_bucket_name?: string;
2562
+ }
2563
+
2564
+ export interface ExportUserResponse {
2565
+ duration: string;
2566
+
2567
+ messages?: MessageResponse[];
2568
+
2569
+ reactions?: ReactionResponse[];
2217
2570
 
2218
2571
  user?: UserResponse;
2219
2572
  }
@@ -2333,7 +2686,37 @@ export interface Flag2 {
2333
2686
 
2334
2687
  moderation_payload?: ModerationPayload;
2335
2688
 
2336
- user?: UserObject;
2689
+ user?: User;
2690
+ }
2691
+
2692
+ export interface Flag2Response {
2693
+ created_at: Date;
2694
+
2695
+ entity_id: string;
2696
+
2697
+ entity_type: string;
2698
+
2699
+ updated_at: Date;
2700
+
2701
+ user_id: string;
2702
+
2703
+ result: Array<Record<string, any>>;
2704
+
2705
+ entity_creator_id?: string;
2706
+
2707
+ reason?: string;
2708
+
2709
+ review_queue_item_id?: string;
2710
+
2711
+ type?: string;
2712
+
2713
+ labels?: string[];
2714
+
2715
+ custom?: Record<string, any>;
2716
+
2717
+ moderation_payload?: ModerationPayload;
2718
+
2719
+ user?: UserResponse;
2337
2720
  }
2338
2721
 
2339
2722
  export interface FlagDetails {
@@ -2367,10 +2750,10 @@ export interface FlagRequest {
2367
2750
 
2368
2751
  entity_type: string;
2369
2752
 
2370
- reason: string;
2371
-
2372
2753
  entity_creator_id?: string;
2373
2754
 
2755
+ reason?: string;
2756
+
2374
2757
  user_id?: string;
2375
2758
 
2376
2759
  custom?: Record<string, any>;
@@ -2417,7 +2800,7 @@ export interface FullUserResponse {
2417
2800
 
2418
2801
  channel_mutes: ChannelMute[];
2419
2802
 
2420
- devices: Device[];
2803
+ devices: DeviceResponse[];
2421
2804
 
2422
2805
  mutes: UserMuteResponse[];
2423
2806
 
@@ -2566,6 +2949,12 @@ export interface GetCallTypeResponse {
2566
2949
  external_storage?: string;
2567
2950
  }
2568
2951
 
2952
+ export interface GetCampaignResponse {
2953
+ duration: string;
2954
+
2955
+ campaign?: CampaignResponse;
2956
+ }
2957
+
2569
2958
  export interface GetChannelTypeResponse {
2570
2959
  automod: 'disabled' | 'simple' | 'AI';
2571
2960
 
@@ -2603,6 +2992,8 @@ export interface GetChannelTypeResponse {
2603
2992
 
2604
2993
  search: boolean;
2605
2994
 
2995
+ skip_last_msg_update_for_system_msgs: boolean;
2996
+
2606
2997
  typing_events: boolean;
2607
2998
 
2608
2999
  updated_at: Date;
@@ -2623,7 +3014,7 @@ export interface GetChannelTypeResponse {
2623
3014
 
2624
3015
  partition_size?: number;
2625
3016
 
2626
- partition_ttl?: number;
3017
+ partition_ttl?: string;
2627
3018
 
2628
3019
  allowed_flag_reasons?: string[];
2629
3020
 
@@ -2697,7 +3088,7 @@ export interface GetImportResponse {
2697
3088
  export interface GetManyMessagesResponse {
2698
3089
  duration: string;
2699
3090
 
2700
- messages: Message[];
3091
+ messages: MessageResponse[];
2701
3092
  }
2702
3093
 
2703
3094
  export interface GetMessageResponse {
@@ -2731,6 +3122,10 @@ export interface GetOGResponse {
2731
3122
 
2732
3123
  image_url?: string;
2733
3124
 
3125
+ latitude?: number;
3126
+
3127
+ longitude?: number;
3128
+
2734
3129
  og_scrape_url?: string;
2735
3130
 
2736
3131
  original_height?: number;
@@ -2739,6 +3134,8 @@ export interface GetOGResponse {
2739
3134
 
2740
3135
  pretext?: string;
2741
3136
 
3137
+ stopped_sharing?: boolean;
3138
+
2742
3139
  text?: string;
2743
3140
 
2744
3141
  thumb_url?: string;
@@ -2807,9 +3204,15 @@ export interface GetRepliesResponse {
2807
3204
  export interface GetReviewQueueItemResponse {
2808
3205
  duration: string;
2809
3206
 
2810
- history: ReviewQueueItem[];
3207
+ history: ReviewQueueItemResponse[];
2811
3208
 
2812
- item?: ReviewQueueItem;
3209
+ item?: ReviewQueueItemResponse;
3210
+ }
3211
+
3212
+ export interface GetSegmentResponse {
3213
+ duration: string;
3214
+
3215
+ segment?: SegmentResponse;
2813
3216
  }
2814
3217
 
2815
3218
  export interface GetTaskResponse {
@@ -3029,12 +3432,16 @@ export interface LayoutSettings {
3029
3432
 
3030
3433
  name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
3031
3434
 
3435
+ detect_orientation?: boolean;
3436
+
3032
3437
  options?: Record<string, any>;
3033
3438
  }
3034
3439
 
3035
3440
  export interface LayoutSettingsRequest {
3036
3441
  name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
3037
3442
 
3443
+ detect_orientation?: boolean;
3444
+
3038
3445
  external_app_url?: string;
3039
3446
 
3040
3447
  external_css_url?: string;
@@ -3049,6 +3456,8 @@ export interface LayoutSettingsResponse {
3049
3456
 
3050
3457
  name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
3051
3458
 
3459
+ detect_orientation?: boolean;
3460
+
3052
3461
  options?: Record<string, any>;
3053
3462
  }
3054
3463
 
@@ -3105,7 +3514,7 @@ export interface ListCommandsResponse {
3105
3514
  export interface ListDevicesResponse {
3106
3515
  duration: string;
3107
3516
 
3108
- devices: Device[];
3517
+ devices: DeviceResponse[];
3109
3518
  }
3110
3519
 
3111
3520
  export interface ListExternalStorageResponse {
@@ -3158,16 +3567,6 @@ export interface Location {
3158
3567
  subdivision_iso_code: string;
3159
3568
  }
3160
3569
 
3161
- export interface MOSStats {
3162
- average_score: number;
3163
-
3164
- max_score: number;
3165
-
3166
- min_score: number;
3167
-
3168
- hist_og_ram_duration_seconds: number[];
3169
- }
3170
-
3171
3570
  export interface MarkChannelsReadRequest {
3172
3571
  user_id?: string;
3173
3572
 
@@ -3192,6 +3591,12 @@ export interface MarkReadResponse {
3192
3591
  event?: MessageReadEvent;
3193
3592
  }
3194
3593
 
3594
+ export interface MarkReviewedRequest {
3595
+ content_to_mark_as_reviewed_limit?: number;
3596
+
3597
+ disable_marking_content_as_reviewed?: boolean;
3598
+ }
3599
+
3195
3600
  export interface MarkUnreadRequest {
3196
3601
  message_id?: string;
3197
3602
 
@@ -3263,7 +3668,7 @@ export interface Message {
3263
3668
 
3264
3669
  text: string;
3265
3670
 
3266
- type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
3671
+ type: string;
3267
3672
 
3268
3673
  updated_at: Date;
3269
3674
 
@@ -3271,7 +3676,7 @@ export interface Message {
3271
3676
 
3272
3677
  latest_reactions: Reaction[];
3273
3678
 
3274
- mentioned_users: UserObject[];
3679
+ mentioned_users: User[];
3275
3680
 
3276
3681
  own_reactions: Reaction[];
3277
3682
 
@@ -3305,19 +3710,21 @@ export interface Message {
3305
3710
 
3306
3711
  show_in_channel?: boolean;
3307
3712
 
3308
- thread_participants?: UserObject[];
3713
+ thread_participants?: User[];
3309
3714
 
3310
3715
  i18n?: Record<string, string>;
3311
3716
 
3312
3717
  image_labels?: Record<string, string[]>;
3313
3718
 
3314
- pinned_by?: UserObject;
3719
+ moderation?: ModerationV2Response;
3720
+
3721
+ pinned_by?: User;
3315
3722
 
3316
3723
  poll?: Poll;
3317
3724
 
3318
3725
  quoted_message?: Message;
3319
3726
 
3320
- user?: UserObject;
3727
+ user?: User;
3321
3728
  }
3322
3729
 
3323
3730
  export interface MessageActionRequest {
@@ -3437,7 +3844,7 @@ export interface MessageReadEvent {
3437
3844
 
3438
3845
  thread?: ThreadResponse;
3439
3846
 
3440
- user?: UserObject;
3847
+ user?: UserResponse;
3441
3848
  }
3442
3849
 
3443
3850
  export interface MessageRequest {
@@ -3499,7 +3906,7 @@ export interface MessageResponse {
3499
3906
 
3500
3907
  text: string;
3501
3908
 
3502
- type: string;
3909
+ type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
3503
3910
 
3504
3911
  updated_at: Date;
3505
3912
 
@@ -3545,11 +3952,13 @@ export interface MessageResponse {
3545
3952
 
3546
3953
  image_labels?: Record<string, string[]>;
3547
3954
 
3955
+ moderation?: ModerationV2Response;
3956
+
3548
3957
  pinned_by?: UserResponse;
3549
3958
 
3550
- poll?: Poll;
3959
+ poll?: PollResponseData;
3551
3960
 
3552
- quoted_message?: Message;
3961
+ quoted_message?: MessageResponse;
3553
3962
 
3554
3963
  reaction_groups?: Record<string, ReactionGroupResponse>;
3555
3964
  }
@@ -3581,7 +3990,7 @@ export interface MessageWithChannelResponse {
3581
3990
 
3582
3991
  text: string;
3583
3992
 
3584
- type: string;
3993
+ type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
3585
3994
 
3586
3995
  updated_at: Date;
3587
3996
 
@@ -3629,11 +4038,13 @@ export interface MessageWithChannelResponse {
3629
4038
 
3630
4039
  image_labels?: Record<string, string[]>;
3631
4040
 
4041
+ moderation?: ModerationV2Response;
4042
+
3632
4043
  pinned_by?: UserResponse;
3633
4044
 
3634
- poll?: Poll;
4045
+ poll?: PollResponseData;
3635
4046
 
3636
- quoted_message?: Message;
4047
+ quoted_message?: MessageResponse;
3637
4048
 
3638
4049
  reaction_groups?: Record<string, ReactionGroupResponse>;
3639
4050
  }
@@ -3673,13 +4084,35 @@ export interface ModerationResponse {
3673
4084
  }
3674
4085
 
3675
4086
  export interface ModerationUsageStats {
3676
- bucket: string;
4087
+ app_pk: number;
4088
+
4089
+ id: number;
3677
4090
 
3678
- metric: string;
4091
+ organization_id: number;
4092
+
4093
+ reference_date: Date;
3679
4094
 
3680
4095
  updated_at: Date;
3681
4096
 
3682
- value: number;
4097
+ usage_amount: number;
4098
+
4099
+ usage_type: string;
4100
+ }
4101
+
4102
+ export interface ModerationV2Response {
4103
+ action: string;
4104
+
4105
+ original_text: string;
4106
+
4107
+ blocklist_matched?: string;
4108
+
4109
+ platform_circumvented?: boolean;
4110
+
4111
+ semantic_filter_matched?: string;
4112
+
4113
+ image_harms?: string[];
4114
+
4115
+ text_harms?: string[];
3683
4116
  }
3684
4117
 
3685
4118
  export interface ModeratorStats {
@@ -3810,9 +4243,11 @@ export const OwnCapability = {
3810
4243
  SEND_AUDIO: 'send-audio',
3811
4244
  SEND_VIDEO: 'send-video',
3812
4245
  START_BROADCAST_CALL: 'start-broadcast-call',
4246
+ START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
3813
4247
  START_RECORD_CALL: 'start-record-call',
3814
4248
  START_TRANSCRIPTION_CALL: 'start-transcription-call',
3815
4249
  STOP_BROADCAST_CALL: 'stop-broadcast-call',
4250
+ STOP_CLOSED_CAPTIONS_CALL: 'stop-closed-captions-call',
3816
4251
  STOP_RECORD_CALL: 'stop-record-call',
3817
4252
  STOP_TRANSCRIPTION_CALL: 'stop-transcription-call',
3818
4253
  UPDATE_CALL: 'update-call',
@@ -3863,6 +4298,8 @@ export interface OwnUser {
3863
4298
 
3864
4299
  last_active?: Date;
3865
4300
 
4301
+ last_engaged_at?: Date;
4302
+
3866
4303
  blocked_user_ids?: string[];
3867
4304
 
3868
4305
  latest_hidden_channels?: string[];
@@ -3874,6 +4311,62 @@ export interface OwnUser {
3874
4311
  push_notifications?: PushNotificationSettings;
3875
4312
  }
3876
4313
 
4314
+ export interface OwnUserResponse {
4315
+ banned: boolean;
4316
+
4317
+ created_at: Date;
4318
+
4319
+ id: string;
4320
+
4321
+ invisible: boolean;
4322
+
4323
+ language: string;
4324
+
4325
+ online: boolean;
4326
+
4327
+ role: string;
4328
+
4329
+ total_unread_count: number;
4330
+
4331
+ unread_channels: number;
4332
+
4333
+ unread_count: number;
4334
+
4335
+ unread_threads: number;
4336
+
4337
+ updated_at: Date;
4338
+
4339
+ channel_mutes: ChannelMute[];
4340
+
4341
+ devices: DeviceResponse[];
4342
+
4343
+ mutes: UserMuteResponse[];
4344
+
4345
+ teams: string[];
4346
+
4347
+ custom: Record<string, any>;
4348
+
4349
+ deactivated_at?: Date;
4350
+
4351
+ deleted_at?: Date;
4352
+
4353
+ image?: string;
4354
+
4355
+ last_active?: Date;
4356
+
4357
+ name?: string;
4358
+
4359
+ revoke_tokens_issued_before?: Date;
4360
+
4361
+ blocked_user_ids?: string[];
4362
+
4363
+ latest_hidden_channels?: string[];
4364
+
4365
+ privacy_settings?: PrivacySettingsResponse;
4366
+
4367
+ push_notifications?: PushNotificationSettingsResponse;
4368
+ }
4369
+
3877
4370
  export interface PaginationParams {
3878
4371
  limit?: number;
3879
4372
 
@@ -3995,7 +4488,7 @@ export interface Poll {
3995
4488
 
3996
4489
  voting_visibility?: string;
3997
4490
 
3998
- created_by?: UserObject;
4491
+ created_by?: User;
3999
4492
  }
4000
4493
 
4001
4494
  export interface PollOption {
@@ -4065,6 +4558,8 @@ export interface PollResponseData {
4065
4558
 
4066
4559
  voting_visibility: string;
4067
4560
 
4561
+ latest_answers: PollVoteResponseData[];
4562
+
4068
4563
  options: PollOptionResponseData[];
4069
4564
 
4070
4565
  own_votes: PollVoteResponseData[];
@@ -4099,7 +4594,7 @@ export interface PollVote {
4099
4594
 
4100
4595
  user_id?: string;
4101
4596
 
4102
- user?: UserObject;
4597
+ user?: User;
4103
4598
  }
4104
4599
 
4105
4600
  export interface PollVoteResponse {
@@ -4408,14 +4903,36 @@ export interface QueryCallsResponse {
4408
4903
  prev?: string;
4409
4904
  }
4410
4905
 
4411
- export interface QueryChannelsRequest {
4906
+ export interface QueryCampaignsRequest {
4412
4907
  limit?: number;
4413
4908
 
4414
- member_limit?: number;
4909
+ next?: string;
4415
4910
 
4416
- message_limit?: number;
4911
+ prev?: string;
4417
4912
 
4418
- offset?: number;
4913
+ sort?: SortParamRequest[];
4914
+
4915
+ filter?: Record<string, any>;
4916
+ }
4917
+
4918
+ export interface QueryCampaignsResponse {
4919
+ duration: string;
4920
+
4921
+ campaigns: CampaignResponse[];
4922
+
4923
+ next?: string;
4924
+
4925
+ prev?: string;
4926
+ }
4927
+
4928
+ export interface QueryChannelsRequest {
4929
+ limit?: number;
4930
+
4931
+ member_limit?: number;
4932
+
4933
+ message_limit?: number;
4934
+
4935
+ offset?: number;
4419
4936
 
4420
4937
  state?: boolean;
4421
4938
 
@@ -4479,7 +4996,7 @@ export interface QueryMessageFlagsPayload {
4479
4996
 
4480
4997
  user_id?: string;
4481
4998
 
4482
- sort?: SortParam[];
4999
+ sort?: SortParamRequest[];
4483
5000
 
4484
5001
  filter_conditions?: Record<string, any>;
4485
5002
 
@@ -4514,6 +5031,32 @@ export interface QueryMessageHistoryResponse {
4514
5031
  prev?: string;
4515
5032
  }
4516
5033
 
5034
+ export interface QueryModerationConfigsRequest {
5035
+ limit?: number;
5036
+
5037
+ next?: string;
5038
+
5039
+ prev?: string;
5040
+
5041
+ user_id?: string;
5042
+
5043
+ sort?: SortParamRequest[];
5044
+
5045
+ filter?: Record<string, any>;
5046
+
5047
+ user?: UserRequest;
5048
+ }
5049
+
5050
+ export interface QueryModerationConfigsResponse {
5051
+ duration: string;
5052
+
5053
+ configs: ConfigResponse[];
5054
+
5055
+ next?: string;
5056
+
5057
+ prev?: string;
5058
+ }
5059
+
4517
5060
  export interface QueryModerationLogsRequest {
4518
5061
  limit?: number;
4519
5062
 
@@ -4533,7 +5076,7 @@ export interface QueryModerationLogsRequest {
4533
5076
  export interface QueryModerationLogsResponse {
4534
5077
  duration: string;
4535
5078
 
4536
- l_og_s: ActionLogResponse[];
5079
+ logs: ActionLogResponse[];
4537
5080
 
4538
5081
  next?: string;
4539
5082
 
@@ -4603,9 +5146,11 @@ export interface QueryReactionsResponse {
4603
5146
  export interface QueryReviewQueueRequest {
4604
5147
  limit?: number;
4605
5148
 
4606
- lock_moderator_duration?: number;
5149
+ lock_count?: number;
5150
+
5151
+ lock_duration?: number;
4607
5152
 
4608
- lock_moderator_id?: string;
5153
+ lock_items?: boolean;
4609
5154
 
4610
5155
  next?: string;
4611
5156
 
@@ -4625,7 +5170,7 @@ export interface QueryReviewQueueRequest {
4625
5170
  export interface QueryReviewQueueResponse {
4626
5171
  duration: string;
4627
5172
 
4628
- items: ReviewQueueItem[];
5173
+ items: ReviewQueueItemResponse[];
4629
5174
 
4630
5175
  action_config: Record<string, Array<ModerationActionConfig | null>>;
4631
5176
 
@@ -4636,6 +5181,50 @@ export interface QueryReviewQueueResponse {
4636
5181
  prev?: string;
4637
5182
  }
4638
5183
 
5184
+ export interface QuerySegmentTargetsRequest {
5185
+ limit?: number;
5186
+
5187
+ next?: string;
5188
+
5189
+ prev?: string;
5190
+
5191
+ sort?: SortParamRequest[];
5192
+
5193
+ filter?: Record<string, any>;
5194
+ }
5195
+
5196
+ export interface QuerySegmentTargetsResponse {
5197
+ duration: string;
5198
+
5199
+ targets: SegmentTargetResponse[];
5200
+
5201
+ next?: string;
5202
+
5203
+ prev?: string;
5204
+ }
5205
+
5206
+ export interface QuerySegmentsRequest {
5207
+ filter: Record<string, any>;
5208
+
5209
+ limit?: number;
5210
+
5211
+ next?: string;
5212
+
5213
+ prev?: string;
5214
+
5215
+ sort?: SortParamRequest[];
5216
+ }
5217
+
5218
+ export interface QuerySegmentsResponse {
5219
+ duration: string;
5220
+
5221
+ segments: SegmentResponse[];
5222
+
5223
+ next?: string;
5224
+
5225
+ prev?: string;
5226
+ }
5227
+
4639
5228
  export interface QueryThreadsRequest {
4640
5229
  limit?: number;
4641
5230
 
@@ -4807,7 +5396,7 @@ export interface Reaction {
4807
5396
 
4808
5397
  user_id?: string;
4809
5398
 
4810
- user?: UserObject;
5399
+ user?: User;
4811
5400
  }
4812
5401
 
4813
5402
  export interface ReactionGroupResponse {
@@ -4892,22 +5481,12 @@ export interface ReactivateUsersResponse {
4892
5481
  task_id: string;
4893
5482
  }
4894
5483
 
4895
- export interface Read {
4896
- last_read: Date;
4897
-
4898
- unread_messages: number;
4899
-
4900
- last_read_message_id?: string;
4901
-
4902
- user?: UserObject;
4903
- }
4904
-
4905
5484
  export interface ReadReceipts {
4906
- enabled?: boolean;
5485
+ enabled: boolean;
4907
5486
  }
4908
5487
 
4909
5488
  export interface ReadReceiptsResponse {
4910
- enabled: boolean;
5489
+ enabled?: boolean;
4911
5490
  }
4912
5491
 
4913
5492
  export interface ReadStateResponse {
@@ -4921,11 +5500,11 @@ export interface ReadStateResponse {
4921
5500
  }
4922
5501
 
4923
5502
  export interface RecordSettings {
4924
- audio_only: boolean;
4925
-
4926
5503
  mode: string;
4927
5504
 
4928
- quality: string;
5505
+ audio_only?: boolean;
5506
+
5507
+ quality?: string;
4929
5508
 
4930
5509
  layout?: LayoutSettings;
4931
5510
  }
@@ -5007,13 +5586,15 @@ export interface ReviewQueueItem {
5007
5586
 
5008
5587
  languages: string[];
5009
5588
 
5589
+ teams: string[];
5590
+
5010
5591
  completed_at: NullTime;
5011
5592
 
5012
5593
  reviewed_at: NullTime;
5013
5594
 
5014
- assigned_to?: UserObject;
5595
+ assigned_to?: User;
5015
5596
 
5016
- entity_creator?: UserObject;
5597
+ entity_creator?: EntityCreator;
5017
5598
 
5018
5599
  feeds_v2_activity?: EnrichedActivity;
5019
5600
 
@@ -5024,6 +5605,52 @@ export interface ReviewQueueItem {
5024
5605
  moderation_payload?: ModerationPayload;
5025
5606
  }
5026
5607
 
5608
+ export interface ReviewQueueItemResponse {
5609
+ created_at: Date;
5610
+
5611
+ entity_id: string;
5612
+
5613
+ entity_type: string;
5614
+
5615
+ id: string;
5616
+
5617
+ recommended_action: string;
5618
+
5619
+ reviewed_by: string;
5620
+
5621
+ severity: number;
5622
+
5623
+ status: string;
5624
+
5625
+ updated_at: Date;
5626
+
5627
+ actions: ActionLogResponse[];
5628
+
5629
+ bans: Ban[];
5630
+
5631
+ flags: Flag2Response[];
5632
+
5633
+ languages: string[];
5634
+
5635
+ completed_at?: Date;
5636
+
5637
+ entity_creator_id?: string;
5638
+
5639
+ reviewed_at?: Date;
5640
+
5641
+ assigned_to?: UserResponse;
5642
+
5643
+ entity_creator?: EntityCreatorResponse;
5644
+
5645
+ feeds_v2_activity?: EnrichedActivity;
5646
+
5647
+ feeds_v2_reaction?: Reaction;
5648
+
5649
+ message?: MessageResponse;
5650
+
5651
+ moderation_payload?: ModerationPayload;
5652
+ }
5653
+
5027
5654
  export interface RingSettings {
5028
5655
  auto_cancel_timeout_ms: number;
5029
5656
 
@@ -5161,21 +5788,19 @@ export interface SearchResultMessage {
5161
5788
 
5162
5789
  attachments: Attachment[];
5163
5790
 
5164
- latest_reactions: Reaction[];
5791
+ latest_reactions: ReactionResponse[];
5165
5792
 
5166
- mentioned_users: UserObject[];
5793
+ mentioned_users: UserResponse[];
5167
5794
 
5168
- own_reactions: Reaction[];
5795
+ own_reactions: ReactionResponse[];
5169
5796
 
5170
5797
  custom: Record<string, any>;
5171
5798
 
5172
5799
  reaction_counts: Record<string, number>;
5173
5800
 
5174
- reaction_groups: Record<string, ReactionGroupResponse>;
5175
-
5176
5801
  reaction_scores: Record<string, number>;
5177
5802
 
5178
- before_message_send_failed?: boolean;
5803
+ user: UserResponse;
5179
5804
 
5180
5805
  command?: string;
5181
5806
 
@@ -5197,7 +5822,7 @@ export interface SearchResultMessage {
5197
5822
 
5198
5823
  show_in_channel?: boolean;
5199
5824
 
5200
- thread_participants?: UserObject[];
5825
+ thread_participants?: UserResponse[];
5201
5826
 
5202
5827
  channel?: ChannelResponse;
5203
5828
 
@@ -5205,13 +5830,15 @@ export interface SearchResultMessage {
5205
5830
 
5206
5831
  image_labels?: Record<string, string[]>;
5207
5832
 
5208
- pinned_by?: UserObject;
5833
+ moderation?: ModerationV2Response;
5209
5834
 
5210
- poll?: Poll;
5835
+ pinned_by?: UserResponse;
5211
5836
 
5212
- quoted_message?: Message;
5837
+ poll?: PollResponseData;
5838
+
5839
+ quoted_message?: MessageResponse;
5213
5840
 
5214
- user?: UserObject;
5841
+ reaction_groups?: Record<string, ReactionGroupResponse>;
5215
5842
  }
5216
5843
 
5217
5844
  export interface SearchWarning {
@@ -5224,6 +5851,66 @@ export interface SearchWarning {
5224
5851
  channel_search_cids?: string[];
5225
5852
  }
5226
5853
 
5854
+ export interface Segment {
5855
+ all_sender_channels: boolean;
5856
+
5857
+ all_users: boolean;
5858
+
5859
+ created_at: Date;
5860
+
5861
+ id: string;
5862
+
5863
+ name: string;
5864
+
5865
+ size: number;
5866
+
5867
+ type: string;
5868
+
5869
+ updated_at: Date;
5870
+
5871
+ deleted_at?: Date;
5872
+
5873
+ description?: string;
5874
+
5875
+ task_id?: string;
5876
+
5877
+ filter?: Record<string, any>;
5878
+ }
5879
+
5880
+ export interface SegmentResponse {
5881
+ all_sender_channels: boolean;
5882
+
5883
+ all_users: boolean;
5884
+
5885
+ created_at: Date;
5886
+
5887
+ deleted_at: Date;
5888
+
5889
+ description: string;
5890
+
5891
+ id: string;
5892
+
5893
+ name: string;
5894
+
5895
+ size: number;
5896
+
5897
+ type: string;
5898
+
5899
+ updated_at: Date;
5900
+
5901
+ filter: Record<string, any>;
5902
+ }
5903
+
5904
+ export interface SegmentTargetResponse {
5905
+ app_pk: number;
5906
+
5907
+ created_at: Date;
5908
+
5909
+ segment_id: string;
5910
+
5911
+ target_id: string;
5912
+ }
5913
+
5227
5914
  export interface SendCallEventRequest {
5228
5915
  user_id?: string;
5229
5916
 
@@ -5294,16 +5981,28 @@ export interface ShowChannelResponse {
5294
5981
  duration: string;
5295
5982
  }
5296
5983
 
5297
- export interface SortParam {
5984
+ export interface SortParamRequest {
5298
5985
  direction?: number;
5299
5986
 
5300
5987
  field?: string;
5301
5988
  }
5302
5989
 
5303
- export interface SortParamRequest {
5304
- direction?: number;
5990
+ export interface StartCampaignRequest {
5991
+ scheduled_for?: Date;
5305
5992
 
5306
- field?: string;
5993
+ stop_at?: Date;
5994
+ }
5995
+
5996
+ export interface StartCampaignResponse {
5997
+ duration: string;
5998
+
5999
+ campaign?: CampaignResponse;
6000
+ }
6001
+
6002
+ export interface StartClosedCaptionsRequest {}
6003
+
6004
+ export interface StartClosedCaptionsResponse {
6005
+ duration: string;
5307
6006
  }
5308
6007
 
5309
6008
  export interface StartHLSBroadcastingRequest {}
@@ -5344,13 +6043,29 @@ export interface StopAllRTMPBroadcastsResponse {
5344
6043
  duration: string;
5345
6044
  }
5346
6045
 
6046
+ export interface StopCampaignRequest {}
6047
+
6048
+ export interface StopClosedCaptionsRequest {}
6049
+
6050
+ export interface StopClosedCaptionsResponse {
6051
+ duration: string;
6052
+ }
6053
+
5347
6054
  export interface StopHLSBroadcastingRequest {}
5348
6055
 
5349
6056
  export interface StopHLSBroadcastingResponse {
5350
6057
  duration: string;
5351
6058
  }
5352
6059
 
5353
- export interface StopLiveRequest {}
6060
+ export interface StopLiveRequest {
6061
+ continue_hls?: boolean;
6062
+
6063
+ continue_recording?: boolean;
6064
+
6065
+ continue_rtmp_broadcast?: boolean;
6066
+
6067
+ continue_transcription?: boolean;
6068
+ }
5354
6069
 
5355
6070
  export interface StopLiveResponse {
5356
6071
  duration: string;
@@ -5405,6 +6120,8 @@ export interface SubmitActionRequest {
5405
6120
 
5406
6121
  delete_user?: DeleteUserRequest;
5407
6122
 
6123
+ mark_reviewed?: MarkReviewedRequest;
6124
+
5408
6125
  unban?: UnbanActionRequest;
5409
6126
 
5410
6127
  user?: UserRequest;
@@ -5459,7 +6176,7 @@ export interface ThreadParticipant {
5459
6176
 
5460
6177
  user_id?: string;
5461
6178
 
5462
- user?: UserObject;
6179
+ user?: UserResponse;
5463
6180
  }
5464
6181
 
5465
6182
  export interface ThreadResponse {
@@ -5491,45 +6208,9 @@ export interface ThreadResponse {
5491
6208
 
5492
6209
  channel?: ChannelResponse;
5493
6210
 
5494
- created_by?: UserObject;
5495
-
5496
- parent_message?: Message;
5497
- }
5498
-
5499
- export interface ThreadState {
5500
- channel_cid: string;
5501
-
5502
- created_at: Date;
5503
-
5504
- parent_message_id: string;
5505
-
5506
- title: string;
5507
-
5508
- updated_at: Date;
5509
-
5510
- latest_replies: Message[];
5511
-
5512
- custom: Record<string, any>;
5513
-
5514
- active_participant_count?: number;
5515
-
5516
- deleted_at?: Date;
5517
-
5518
- last_message_at?: Date;
5519
-
5520
- participant_count?: number;
5521
-
5522
- reply_count?: number;
5523
-
5524
- read?: Read[];
5525
-
5526
- thread_participants?: ThreadParticipant[];
5527
-
5528
- channel?: Channel;
5529
-
5530
- created_by?: UserObject;
6211
+ created_by?: UserResponse;
5531
6212
 
5532
- parent_message?: Message;
6213
+ parent_message?: MessageResponse;
5533
6214
  }
5534
6215
 
5535
6216
  export interface ThreadStateResponse {
@@ -5559,7 +6240,7 @@ export interface ThreadStateResponse {
5559
6240
 
5560
6241
  reply_count?: number;
5561
6242
 
5562
- read?: Read[];
6243
+ read?: ReadStateResponse[];
5563
6244
 
5564
6245
  thread_participants?: ThreadParticipant[];
5565
6246
 
@@ -5567,7 +6248,7 @@ export interface ThreadStateResponse {
5567
6248
 
5568
6249
  created_by?: UserResponse;
5569
6250
 
5570
- parent_message?: Message;
6251
+ parent_message?: MessageResponse;
5571
6252
  }
5572
6253
 
5573
6254
  export interface Thresholds {
@@ -5603,7 +6284,7 @@ export interface TimeStats {
5603
6284
  }
5604
6285
 
5605
6286
  export interface TranscriptionSettings {
5606
- closed_caption_mode: string;
6287
+ closed_caption_mode: 'available' | 'disabled' | 'auto-on';
5607
6288
 
5608
6289
  mode: 'available' | 'disabled' | 'auto-on';
5609
6290
 
@@ -5613,13 +6294,13 @@ export interface TranscriptionSettings {
5613
6294
  export interface TranscriptionSettingsRequest {
5614
6295
  mode: 'available' | 'disabled' | 'auto-on';
5615
6296
 
5616
- closed_caption_mode?: string;
6297
+ closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
5617
6298
 
5618
6299
  languages?: string[];
5619
6300
  }
5620
6301
 
5621
6302
  export interface TranscriptionSettingsResponse {
5622
- closed_caption_mode: string;
6303
+ closed_caption_mode: 'available' | 'disabled' | 'auto-on';
5623
6304
 
5624
6305
  mode: 'available' | 'disabled' | 'auto-on';
5625
6306
 
@@ -5682,7 +6363,8 @@ export interface TranslateMessageRequest {
5682
6363
  | 'tr'
5683
6364
  | 'uk'
5684
6365
  | 'ur'
5685
- | 'vi';
6366
+ | 'vi'
6367
+ | 'lt';
5686
6368
  }
5687
6369
 
5688
6370
  export interface TruncateChannelRequest {
@@ -5708,11 +6390,11 @@ export interface TruncateChannelResponse {
5708
6390
  }
5709
6391
 
5710
6392
  export interface TypingIndicators {
5711
- enabled?: boolean;
6393
+ enabled: boolean;
5712
6394
  }
5713
6395
 
5714
6396
  export interface TypingIndicatorsResponse {
5715
- enabled: boolean;
6397
+ enabled?: boolean;
5716
6398
  }
5717
6399
 
5718
6400
  export interface UnbanActionRequest {}
@@ -6042,7 +6724,7 @@ export interface UpdateChannelResponse {
6042
6724
 
6043
6725
  channel?: ChannelResponse;
6044
6726
 
6045
- message?: Message;
6727
+ message?: MessageResponse;
6046
6728
  }
6047
6729
 
6048
6730
  export interface UpdateChannelTypeRequest {
@@ -6084,6 +6766,8 @@ export interface UpdateChannelTypeRequest {
6084
6766
 
6085
6767
  search?: boolean;
6086
6768
 
6769
+ skip_last_msg_update_for_system_msgs?: boolean;
6770
+
6087
6771
  typing_events?: boolean;
6088
6772
 
6089
6773
  uploads?: boolean;
@@ -6140,6 +6824,8 @@ export interface UpdateChannelTypeResponse {
6140
6824
 
6141
6825
  search: boolean;
6142
6826
 
6827
+ skip_last_msg_update_for_system_msgs: boolean;
6828
+
6143
6829
  typing_events: boolean;
6144
6830
 
6145
6831
  updated_at: Date;
@@ -6160,7 +6846,7 @@ export interface UpdateChannelTypeResponse {
6160
6846
 
6161
6847
  partition_size?: number;
6162
6848
 
6163
- partition_ttl?: number;
6849
+ partition_ttl?: string;
6164
6850
 
6165
6851
  allowed_flag_reasons?: string[];
6166
6852
 
@@ -6236,7 +6922,7 @@ export interface UpdateMessagePartialRequest {
6236
6922
  export interface UpdateMessagePartialResponse {
6237
6923
  duration: string;
6238
6924
 
6239
- message?: Message;
6925
+ message?: MessageResponse;
6240
6926
 
6241
6927
  pending_message_metadata?: Record<string, string>;
6242
6928
  }
@@ -6250,7 +6936,7 @@ export interface UpdateMessageRequest {
6250
6936
  export interface UpdateMessageResponse {
6251
6937
  duration: string;
6252
6938
 
6253
- message: Message;
6939
+ message: MessageResponse;
6254
6940
 
6255
6941
  pending_message_metadata?: Record<string, string>;
6256
6942
  }
@@ -6362,19 +7048,23 @@ export interface UpsertConfigRequest {
6362
7048
 
6363
7049
  async?: boolean;
6364
7050
 
7051
+ ai_image_config?: AIImageConfig;
7052
+
7053
+ ai_text_config?: AITextConfig;
7054
+
6365
7055
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
6366
7056
 
6367
7057
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
6368
7058
 
6369
7059
  automod_toxicity_config?: AutomodToxicityConfig;
6370
7060
 
6371
- aws_rek_og_nition_config?: AWSRekognitionConfig;
7061
+ aws_rekognition_config?: AIImageConfig;
6372
7062
 
6373
7063
  block_list_config?: BlockListConfig;
6374
7064
 
6375
- bodyguard_config?: BodyguardConfig;
7065
+ bodyguard_config?: AITextConfig;
6376
7066
 
6377
- go_og_le_vision_config?: GoogleVisionConfig;
7067
+ google_vision_config?: GoogleVisionConfig;
6378
7068
 
6379
7069
  velocity_filter_config?: VelocityFilterConfig;
6380
7070
  }
@@ -6413,6 +7103,44 @@ export interface UpsertPushProviderResponse {
6413
7103
  push_provider: PushProviderResponse;
6414
7104
  }
6415
7105
 
7106
+ export interface User {
7107
+ banned: boolean;
7108
+
7109
+ id: string;
7110
+
7111
+ online: boolean;
7112
+
7113
+ role: string;
7114
+
7115
+ custom: Record<string, any>;
7116
+
7117
+ ban_expires?: Date;
7118
+
7119
+ created_at?: Date;
7120
+
7121
+ deactivated_at?: Date;
7122
+
7123
+ deleted_at?: Date;
7124
+
7125
+ invisible?: boolean;
7126
+
7127
+ language?: string;
7128
+
7129
+ last_active?: Date;
7130
+
7131
+ last_engaged_at?: Date;
7132
+
7133
+ revoke_tokens_issued_before?: Date;
7134
+
7135
+ updated_at?: Date;
7136
+
7137
+ teams?: string[];
7138
+
7139
+ privacy_settings?: PrivacySettings;
7140
+
7141
+ push_notifications?: PushNotificationSettings;
7142
+ }
7143
+
6416
7144
  export interface UserBlock {
6417
7145
  blocked_by_user_id: string;
6418
7146
 
@@ -6428,6 +7156,8 @@ export interface UserCustomEventRequest {
6428
7156
  }
6429
7157
 
6430
7158
  export interface UserInfoResponse {
7159
+ id: string;
7160
+
6431
7161
  image: string;
6432
7162
 
6433
7163
  name: string;
@@ -6444,9 +7174,9 @@ export interface UserMute {
6444
7174
 
6445
7175
  expires?: Date;
6446
7176
 
6447
- target?: UserObject;
7177
+ target?: User;
6448
7178
 
6449
- user?: UserObject;
7179
+ user?: User;
6450
7180
  }
6451
7181
 
6452
7182
  export interface UserMuteResponse {
@@ -6461,42 +7191,6 @@ export interface UserMuteResponse {
6461
7191
  user?: UserResponse;
6462
7192
  }
6463
7193
 
6464
- export interface UserObject {
6465
- banned: boolean;
6466
-
6467
- id: string;
6468
-
6469
- online: boolean;
6470
-
6471
- role: string;
6472
-
6473
- custom: Record<string, any>;
6474
-
6475
- ban_expires?: Date;
6476
-
6477
- created_at?: Date;
6478
-
6479
- deactivated_at?: Date;
6480
-
6481
- deleted_at?: Date;
6482
-
6483
- invisible?: boolean;
6484
-
6485
- language?: string;
6486
-
6487
- last_active?: Date;
6488
-
6489
- revoke_tokens_issued_before?: Date;
6490
-
6491
- updated_at?: Date;
6492
-
6493
- teams?: string[];
6494
-
6495
- privacy_settings?: PrivacySettings;
6496
-
6497
- push_notifications?: PushNotificationSettings;
6498
- }
6499
-
6500
7194
  export interface UserRequest {
6501
7195
  id: string;
6502
7196
 
@@ -6514,7 +7208,7 @@ export interface UserRequest {
6514
7208
 
6515
7209
  custom?: Record<string, any>;
6516
7210
 
6517
- privacy_settings?: PrivacySettings;
7211
+ privacy_settings?: PrivacySettingsResponse;
6518
7212
 
6519
7213
  push_notifications?: PushNotificationSettingsInput;
6520
7214
  }
@@ -6540,7 +7234,7 @@ export interface UserResponse {
6540
7234
 
6541
7235
  blocked_user_ids: string[];
6542
7236
 
6543
- devices: Device[];
7237
+ devices: DeviceResponse[];
6544
7238
 
6545
7239
  teams: string[];
6546
7240
 
@@ -6568,6 +7262,8 @@ export interface UserResponse {
6568
7262
  export interface UserSessionStats {
6569
7263
  freeze_duration_seconds: number;
6570
7264
 
7265
+ group: string;
7266
+
6571
7267
  max_freeze_fraction: number;
6572
7268
 
6573
7269
  max_freezes_duration_seconds: number;
@@ -6590,7 +7286,7 @@ export interface UserSessionStats {
6590
7286
 
6591
7287
  total_pixels_out: number;
6592
7288
 
6593
- bro_ws_er?: string;
7289
+ browser?: string;
6594
7290
 
6595
7291
  browser_version?: string;
6596
7292
 
@@ -6654,16 +7350,12 @@ export interface UserSessionStats {
6654
7350
 
6655
7351
  pub_sub_hints?: MediaPubSubHint;
6656
7352
 
6657
- publisher_audio_mos?: MOSStats;
6658
-
6659
7353
  publisher_jitter?: TimeStats;
6660
7354
 
6661
7355
  publisher_latency?: TimeStats;
6662
7356
 
6663
7357
  publisher_video_quality_limitation_duration_seconds?: Record<string, number>;
6664
7358
 
6665
- subscriber_audio_mos?: MOSStats;
6666
-
6667
7359
  subscriber_jitter?: TimeStats;
6668
7360
 
6669
7361
  subscriber_latency?: TimeStats;
@@ -6682,33 +7374,55 @@ export interface UserStats {
6682
7374
  }
6683
7375
 
6684
7376
  export interface VelocityFilterConfig {
6685
- enabled?: boolean;
7377
+ cascading_actions: boolean;
7378
+
7379
+ enabled: boolean;
7380
+
7381
+ first_message_only: boolean;
6686
7382
 
6687
- rule?: VelocityFilterConfigRule[];
7383
+ rules: VelocityFilterConfigRule[];
7384
+
7385
+ async?: boolean;
6688
7386
  }
6689
7387
 
6690
7388
  export interface VelocityFilterConfigRule {
6691
7389
  action: 'flag' | 'shadow' | 'remove' | 'ban';
6692
7390
 
6693
- ip_ban?: boolean;
7391
+ ban_duration: number;
6694
7392
 
6695
- shadow_ban?: boolean;
7393
+ cascading_action: 'flag' | 'shadow' | 'remove' | 'ban';
6696
7394
 
6697
- timeout?: Date;
6698
- }
7395
+ cascading_threshold: number;
6699
7396
 
6700
- export interface VideoQuality {
6701
- usage_type?: string;
7397
+ check_message_context: boolean;
7398
+
7399
+ fast_spam_threshold: number;
7400
+
7401
+ fast_spam_ttl: number;
7402
+
7403
+ ip_ban: boolean;
7404
+
7405
+ shadow_ban: boolean;
7406
+
7407
+ slow_spam_threshold: number;
7408
+
7409
+ slow_spam_ttl: number;
6702
7410
 
6703
- resolution?: VideoResolution;
7411
+ slow_spam_ban_duration?: number;
6704
7412
  }
6705
7413
 
6706
- export interface VideoResolution {
7414
+ export interface VideoDimension {
6707
7415
  height: number;
6708
7416
 
6709
7417
  width: number;
6710
7418
  }
6711
7419
 
7420
+ export interface VideoQuality {
7421
+ usage_type?: string;
7422
+
7423
+ resolution?: VideoDimension;
7424
+ }
7425
+
6712
7426
  export interface VideoSettings {
6713
7427
  access_request_enabled: boolean;
6714
7428
 
@@ -6750,7 +7464,7 @@ export interface VoteData {
6750
7464
 
6751
7465
  option_id?: string;
6752
7466
 
6753
- option?: PollOption;
7467
+ option?: PollOptionResponseData;
6754
7468
  }
6755
7469
 
6756
7470
  export interface WSEvent {
@@ -6786,25 +7500,25 @@ export interface WSEvent {
6786
7500
 
6787
7501
  channel?: ChannelResponse;
6788
7502
 
6789
- created_by?: UserObject;
7503
+ created_by?: UserResponse;
6790
7504
 
6791
- me?: OwnUser;
7505
+ me?: OwnUserResponse;
6792
7506
 
6793
7507
  member?: ChannelMember;
6794
7508
 
6795
- message?: Message;
7509
+ message?: MessageResponse;
6796
7510
 
6797
7511
  message_update?: MessageUpdate;
6798
7512
 
6799
- poll?: Poll;
7513
+ poll?: PollResponseData;
6800
7514
 
6801
- poll_vote?: PollVote;
7515
+ poll_vote?: PollVoteResponseData;
6802
7516
 
6803
- reaction?: Reaction;
7517
+ reaction?: ReactionResponse;
6804
7518
 
6805
7519
  thread?: ThreadResponse;
6806
7520
 
6807
- user?: UserObject;
7521
+ user?: UserResponse;
6808
7522
  }
6809
7523
 
6810
7524
  export interface WrappedUnreadCountsResponse {