@stream-io/node-sdk 0.4.24 → 0.4.26

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.
@@ -41,18 +41,22 @@ export interface APNConfig {
41
41
  export interface APNConfigFields {
42
42
  development: boolean;
43
43
  enabled: boolean;
44
- notification_template: string;
45
44
  auth_key?: string;
46
45
  auth_type?: string;
47
46
  bundle_id?: string;
48
47
  host?: string;
49
48
  key_id?: string;
49
+ notification_template?: string;
50
50
  p12_cert?: string;
51
51
  team_id?: string;
52
52
  }
53
53
  export interface APNS {
54
54
  body: string;
55
55
  title: string;
56
+ content_available?: number;
57
+ mutable_content?: number;
58
+ sound?: string;
59
+ data?: Record<string, any>;
56
60
  }
57
61
  export interface AWSRekognitionRule {
58
62
  action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
@@ -87,10 +91,40 @@ export interface ActionLogResponse {
87
91
  type: string;
88
92
  user_id: string;
89
93
  custom: Record<string, any>;
90
- review_queue_item?: ReviewQueueItem;
94
+ review_queue_item?: ReviewQueueItemResponse;
91
95
  target_user?: UserResponse;
92
96
  user?: UserResponse;
93
97
  }
98
+ export interface ActionSequence {
99
+ action: string;
100
+ blur: boolean;
101
+ cooldown_period: number;
102
+ threshold: number;
103
+ time_window: number;
104
+ warning: boolean;
105
+ warning_text: string;
106
+ }
107
+ export interface ActiveCallsFPSStats {
108
+ p05: number;
109
+ p10: number;
110
+ p50: number;
111
+ p90: number;
112
+ }
113
+ export interface ActiveCallsLatencyStats {
114
+ p50: number;
115
+ p90: number;
116
+ }
117
+ export interface ActiveCallsMetrics {
118
+ join_call_api?: JoinCallAPIMetrics;
119
+ publishers?: PublishersMetrics;
120
+ subscribers?: SubscribersMetrics;
121
+ }
122
+ export interface ActiveCallsSummary {
123
+ active_calls: number;
124
+ active_publishers: number;
125
+ active_subscribers: number;
126
+ participants: number;
127
+ }
94
128
  export interface AnyEvent {
95
129
  created_at: Date;
96
130
  type: string;
@@ -122,7 +156,9 @@ export interface AppResponseFields {
122
156
  sqs_url: string;
123
157
  suspended: boolean;
124
158
  suspended_explanation: string;
159
+ use_hook_v2: boolean;
125
160
  webhook_url: string;
161
+ event_hooks: EventHook[];
126
162
  user_search_disallowed_roles: string[];
127
163
  webhook_events: string[];
128
164
  call_types: Record<string, CallType>;
@@ -138,6 +174,17 @@ export interface AppResponseFields {
138
174
  geofences?: GeofenceResponse[];
139
175
  image_moderation_labels?: string[];
140
176
  datadog_info?: DataDogInfo;
177
+ moderation_dashboard_preferences?: ModerationDashboardPreferences;
178
+ }
179
+ export interface AsyncBulkImageModerationEvent {
180
+ created_at: Date;
181
+ finished_at: Date;
182
+ started_at: Date;
183
+ task_id: string;
184
+ url: string;
185
+ custom: Record<string, any>;
186
+ type: string;
187
+ received_at?: Date;
141
188
  }
142
189
  export interface AsyncExportChannelsEvent {
143
190
  created_at: Date;
@@ -198,13 +245,10 @@ export interface Attachment {
198
245
  footer?: string;
199
246
  footer_icon?: string;
200
247
  image_url?: string;
201
- latitude?: number;
202
- longitude?: number;
203
248
  og_scrape_url?: string;
204
249
  original_height?: number;
205
250
  original_width?: number;
206
251
  pretext?: string;
207
- stopped_sharing?: boolean;
208
252
  text?: string;
209
253
  thumb_url?: string;
210
254
  title?: string;
@@ -302,15 +346,23 @@ export interface Ban {
302
346
  }
303
347
  export interface BanActionRequest {
304
348
  channel_ban_only?: boolean;
349
+ delete_messages?: 'soft' | 'pruning' | 'hard';
305
350
  ip_ban?: boolean;
306
351
  reason?: string;
307
352
  shadow?: boolean;
308
353
  timeout?: number;
309
354
  }
355
+ export interface BanOptions {
356
+ duration: number;
357
+ ip_ban: boolean;
358
+ reason: string;
359
+ shadow_ban: boolean;
360
+ }
310
361
  export interface BanRequest {
311
362
  target_user_id: string;
312
363
  banned_by_id?: string;
313
364
  channel_cid?: string;
365
+ delete_messages?: 'soft' | 'pruning' | 'hard';
314
366
  ip_ban?: boolean;
315
367
  reason?: string;
316
368
  shadow?: boolean;
@@ -326,6 +378,9 @@ export interface BanResponse {
326
378
  channel?: ChannelResponse;
327
379
  user?: UserResponse;
328
380
  }
381
+ export interface BlockContentOptions {
382
+ reason: string;
383
+ }
329
384
  export interface BlockListConfig {
330
385
  enabled: boolean;
331
386
  rules: BlockListRule[];
@@ -345,7 +400,7 @@ export interface BlockListResponse {
345
400
  updated_at?: Date;
346
401
  }
347
402
  export interface BlockListRule {
348
- action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
403
+ action: 'flag' | 'mask_flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
349
404
  name: string;
350
405
  team: string;
351
406
  }
@@ -412,6 +467,46 @@ export interface BrowserDataResponse {
412
467
  name?: string;
413
468
  version?: string;
414
469
  }
470
+ export interface BulkImageModerationRequest {
471
+ csv_file: string;
472
+ }
473
+ export interface BulkImageModerationResponse {
474
+ duration: string;
475
+ task_id: string;
476
+ }
477
+ export interface Call {
478
+ app_pk: number;
479
+ backstage: boolean;
480
+ channel_cid: string;
481
+ cid: string;
482
+ created_at: Date;
483
+ created_by_user_id: string;
484
+ current_session_id: string;
485
+ id: string;
486
+ last_session_id: string;
487
+ team: string;
488
+ thumbnail_url: string;
489
+ type: string;
490
+ updated_at: Date;
491
+ blocked_user_i_ds: string[];
492
+ blocked_users: User[];
493
+ egresses: CallEgress[];
494
+ members: CallMember[];
495
+ custom: Record<string, any>;
496
+ deleted_at?: Date;
497
+ egress_updated_at?: Date;
498
+ ended_at?: Date;
499
+ join_ahead_time_seconds?: number;
500
+ last_heartbeat_at?: Date;
501
+ member_count?: number;
502
+ starts_at?: Date;
503
+ call_type?: CallType;
504
+ created_by?: User;
505
+ member_lookup?: MemberLookup;
506
+ session?: CallSession;
507
+ settings?: CallSettings;
508
+ settings_overrides?: CallSettings;
509
+ }
415
510
  export interface CallAcceptedEvent {
416
511
  call_cid: string;
417
512
  created_at: Date;
@@ -460,11 +555,25 @@ export interface CallDurationReport {
460
555
  export interface CallDurationReportResponse {
461
556
  daily: DailyAggregateCallDurationReportResponse[];
462
557
  }
558
+ export interface CallEgress {
559
+ app_pk: number;
560
+ call_id: string;
561
+ call_type: string;
562
+ egress_id: string;
563
+ egress_type: string;
564
+ instance_ip: string;
565
+ started_at: Date;
566
+ state: string;
567
+ updated_at: Date;
568
+ stopped_at?: Date;
569
+ config?: EgressTaskConfig;
570
+ }
463
571
  export interface CallEndedEvent {
464
572
  call_cid: string;
465
573
  created_at: Date;
466
574
  call: CallResponse;
467
575
  type: string;
576
+ reason?: string;
468
577
  user?: UserResponse;
469
578
  }
470
579
  export interface CallFrameRecordingFailedEvent {
@@ -525,6 +634,15 @@ export interface CallLiveStartedEvent {
525
634
  call: CallResponse;
526
635
  type: string;
527
636
  }
637
+ export interface CallMember {
638
+ created_at: Date;
639
+ role: string;
640
+ updated_at: Date;
641
+ user_id: string;
642
+ custom: Record<string, any>;
643
+ deleted_at?: Date;
644
+ user?: User;
645
+ }
528
646
  export interface CallMemberAddedEvent {
529
647
  call_cid: string;
530
648
  created_at: Date;
@@ -564,6 +682,21 @@ export interface CallMissedEvent {
564
682
  user: UserResponse;
565
683
  type: string;
566
684
  }
685
+ export interface CallModerationBlurEvent {
686
+ call_cid: string;
687
+ created_at: Date;
688
+ user_id: string;
689
+ custom: Record<string, any>;
690
+ type: string;
691
+ }
692
+ export interface CallModerationWarningEvent {
693
+ call_cid: string;
694
+ created_at: Date;
695
+ message: string;
696
+ user_id: string;
697
+ custom: Record<string, any>;
698
+ type: string;
699
+ }
567
700
  export interface CallNotificationEvent {
568
701
  call_cid: string;
569
702
  created_at: Date;
@@ -573,6 +706,28 @@ export interface CallNotificationEvent {
573
706
  user: UserResponse;
574
707
  type: string;
575
708
  }
709
+ export interface CallParticipant {
710
+ banned: boolean;
711
+ id: string;
712
+ joined_at: Date;
713
+ online: boolean;
714
+ role: string;
715
+ user_session_id: string;
716
+ custom: Record<string, any>;
717
+ teams_role: Record<string, string>;
718
+ ban_expires?: Date;
719
+ created_at?: Date;
720
+ deactivated_at?: Date;
721
+ deleted_at?: Date;
722
+ invisible?: boolean;
723
+ language?: string;
724
+ last_active?: Date;
725
+ last_engaged_at?: Date;
726
+ revoke_tokens_issued_before?: Date;
727
+ updated_at?: Date;
728
+ teams?: string[];
729
+ privacy_settings?: PrivacySettings;
730
+ }
576
731
  export interface CallParticipantCountReport {
577
732
  histogram: ReportByHistogramBucket[];
578
733
  }
@@ -700,6 +855,29 @@ export interface CallRtmpBroadcastStoppedEvent {
700
855
  name: string;
701
856
  type: string;
702
857
  }
858
+ export interface CallSession {
859
+ anonymous_participant_count: number;
860
+ app_pk: number;
861
+ call_id: string;
862
+ call_type: string;
863
+ created_at: Date;
864
+ session_id: string;
865
+ active_sf_us: SFUIDLastSeen[];
866
+ participants: CallParticipant[];
867
+ sfui_ds: string[];
868
+ accepted_by: Record<string, Date>;
869
+ missed_by: Record<string, Date>;
870
+ participants_count_by_role: Record<string, number>;
871
+ rejected_by: Record<string, Date>;
872
+ user_permission_overrides: Record<string, Record<string, boolean>>;
873
+ deleted_at?: Date;
874
+ ended_at?: Date;
875
+ live_ended_at?: Date;
876
+ live_started_at?: Date;
877
+ ring_at?: Date;
878
+ started_at?: Date;
879
+ timer_ends_at?: Date;
880
+ }
703
881
  export interface CallSessionEndedEvent {
704
882
  call_cid: string;
705
883
  created_at: Date;
@@ -812,6 +990,7 @@ export interface CallStatsReportSummaryResponse {
812
990
  export interface CallTranscription {
813
991
  end_time: Date;
814
992
  filename: string;
993
+ session_id: string;
815
994
  start_time: Date;
816
995
  url: string;
817
996
  }
@@ -820,6 +999,7 @@ export interface CallTranscriptionFailedEvent {
820
999
  created_at: Date;
821
1000
  egress_id: string;
822
1001
  type: string;
1002
+ error?: string;
823
1003
  }
824
1004
  export interface CallTranscriptionReadyEvent {
825
1005
  call_cid: string;
@@ -843,7 +1023,6 @@ export interface CallTranscriptionStoppedEvent {
843
1023
  export interface CallType {
844
1024
  app_pk: number;
845
1025
  created_at: Date;
846
- enable_live_insights: boolean;
847
1026
  external_storage: string;
848
1027
  name: string;
849
1028
  pk: number;
@@ -974,6 +1153,7 @@ export interface Channel {
974
1153
  last_message_at?: Date;
975
1154
  member_count?: number;
976
1155
  team?: string;
1156
+ active_live_locations?: SharedLocation[];
977
1157
  invites?: ChannelMember[];
978
1158
  members?: ChannelMember[];
979
1159
  config?: ChannelConfig;
@@ -999,16 +1179,18 @@ export interface ChannelConfig {
999
1179
  reminders: boolean;
1000
1180
  replies: boolean;
1001
1181
  search: boolean;
1182
+ shared_locations: boolean;
1002
1183
  skip_last_msg_update_for_system_msgs: boolean;
1003
1184
  typing_events: boolean;
1004
1185
  updated_at: Date;
1005
1186
  uploads: boolean;
1006
1187
  url_enrichment: boolean;
1188
+ user_message_reminders: boolean;
1007
1189
  commands: string[];
1008
1190
  blocklist?: string;
1009
1191
  blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
1010
1192
  partition_size?: number;
1011
- partition_ttl?: string;
1193
+ partition_ttl?: number;
1012
1194
  allowed_flag_reasons?: string[];
1013
1195
  blocklists?: BlockListOptions[];
1014
1196
  automod_thresholds?: Thresholds;
@@ -1031,11 +1213,13 @@ export interface ChannelConfigWithInfo {
1031
1213
  reminders: boolean;
1032
1214
  replies: boolean;
1033
1215
  search: boolean;
1216
+ shared_locations: boolean;
1034
1217
  skip_last_msg_update_for_system_msgs: boolean;
1035
1218
  typing_events: boolean;
1036
1219
  updated_at: Date;
1037
1220
  uploads: boolean;
1038
1221
  url_enrichment: boolean;
1222
+ user_message_reminders: boolean;
1039
1223
  commands: Command[];
1040
1224
  blocklist?: string;
1041
1225
  blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
@@ -1192,6 +1376,7 @@ export declare const ChannelOwnCapability: {
1192
1376
  readonly SEND_RESTRICTED_VISIBILITY_MESSAGE: "send-restricted-visibility-message";
1193
1377
  readonly SEND_TYPING_EVENTS: "send-typing-events";
1194
1378
  readonly SET_CHANNEL_COOLDOWN: "set-channel-cooldown";
1379
+ readonly SHARE_LOCATION: "share-location";
1195
1380
  readonly SKIP_SLOW_MODE: "skip-slow-mode";
1196
1381
  readonly SLOW_MODE: "slow-mode";
1197
1382
  readonly TYPING_EVENTS: "typing-events";
@@ -1244,6 +1429,7 @@ export interface ChannelStateResponse {
1244
1429
  hidden?: boolean;
1245
1430
  hide_messages_before?: Date;
1246
1431
  watcher_count?: number;
1432
+ active_live_locations?: SharedLocationResponseData[];
1247
1433
  pending_messages?: PendingMessageResponse[];
1248
1434
  read?: ReadStateResponse[];
1249
1435
  watchers?: UserResponse[];
@@ -1260,6 +1446,7 @@ export interface ChannelStateResponseFields {
1260
1446
  hidden?: boolean;
1261
1447
  hide_messages_before?: Date;
1262
1448
  watcher_count?: number;
1449
+ active_live_locations?: SharedLocationResponseData[];
1263
1450
  pending_messages?: PendingMessageResponse[];
1264
1451
  read?: ReadStateResponse[];
1265
1452
  watchers?: UserResponse[];
@@ -1295,11 +1482,13 @@ export interface ChannelTypeConfig {
1295
1482
  reminders: boolean;
1296
1483
  replies: boolean;
1297
1484
  search: boolean;
1485
+ shared_locations: boolean;
1298
1486
  skip_last_msg_update_for_system_msgs: boolean;
1299
1487
  typing_events: boolean;
1300
1488
  updated_at: Date;
1301
1489
  uploads: boolean;
1302
1490
  url_enrichment: boolean;
1491
+ user_message_reminders: boolean;
1303
1492
  commands: Command[];
1304
1493
  permissions: PolicyRequest[];
1305
1494
  grants: Record<string, string[]>;
@@ -1351,6 +1540,7 @@ export interface CheckExternalStorageResponse {
1351
1540
  }
1352
1541
  export interface CheckPushRequest {
1353
1542
  apn_template?: string;
1543
+ event_type?: 'message.new' | 'message.updated' | 'reaction.new' | 'reaction.updated' | 'notification.reminder_due';
1354
1544
  firebase_data_template?: string;
1355
1545
  firebase_template?: string;
1356
1546
  message_id?: string;
@@ -1362,6 +1552,7 @@ export interface CheckPushRequest {
1362
1552
  }
1363
1553
  export interface CheckPushResponse {
1364
1554
  duration: string;
1555
+ event_type?: string;
1365
1556
  rendered_apn_template?: string;
1366
1557
  rendered_firebase_template?: string;
1367
1558
  skip_devices?: boolean;
@@ -1386,7 +1577,7 @@ export interface CheckResponse {
1386
1577
  recommended_action: string;
1387
1578
  status: string;
1388
1579
  task_id?: string;
1389
- item?: ReviewQueueItem;
1580
+ item?: ReviewQueueItemResponse;
1390
1581
  }
1391
1582
  export interface CheckSNSRequest {
1392
1583
  sns_key?: string;
@@ -1442,6 +1633,10 @@ export interface Command {
1442
1633
  }
1443
1634
  export interface CommitMessageRequest {
1444
1635
  }
1636
+ export interface CompositeAppSettings {
1637
+ json_encoded_settings?: string;
1638
+ url?: string;
1639
+ }
1445
1640
  export interface ConfigOverrides {
1446
1641
  commands: string[];
1447
1642
  grants: Record<string, string[]>;
@@ -1451,9 +1646,11 @@ export interface ConfigOverrides {
1451
1646
  quotes?: boolean;
1452
1647
  reactions?: boolean;
1453
1648
  replies?: boolean;
1649
+ shared_locations?: boolean;
1454
1650
  typing_events?: boolean;
1455
1651
  uploads?: boolean;
1456
1652
  url_enrichment?: boolean;
1653
+ user_message_reminders?: boolean;
1457
1654
  }
1458
1655
  export interface ConfigResponse {
1459
1656
  async: boolean;
@@ -1468,7 +1665,13 @@ export interface ConfigResponse {
1468
1665
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
1469
1666
  automod_toxicity_config?: AutomodToxicityConfig;
1470
1667
  block_list_config?: BlockListConfig;
1668
+ rule_builder_config?: RuleBuilderConfig;
1471
1669
  velocity_filter_config?: VelocityFilterConfig;
1670
+ video_call_rule_config?: VideoCallRuleConfig;
1671
+ }
1672
+ export interface ContentCountRuleParameters {
1673
+ threshold: number;
1674
+ time_window: string;
1472
1675
  }
1473
1676
  export interface CountByMinuteResponse {
1474
1677
  count: number;
@@ -1521,10 +1724,12 @@ export interface CreateChannelTypeRequest {
1521
1724
  read_events?: boolean;
1522
1725
  replies?: boolean;
1523
1726
  search?: boolean;
1727
+ shared_locations?: boolean;
1524
1728
  skip_last_msg_update_for_system_msgs?: boolean;
1525
1729
  typing_events?: boolean;
1526
1730
  uploads?: boolean;
1527
1731
  url_enrichment?: boolean;
1732
+ user_message_reminders?: boolean;
1528
1733
  blocklists?: BlockListOptions[];
1529
1734
  commands?: string[];
1530
1735
  permissions?: PolicyRequest[];
@@ -1549,11 +1754,13 @@ export interface CreateChannelTypeResponse {
1549
1754
  reminders: boolean;
1550
1755
  replies: boolean;
1551
1756
  search: boolean;
1757
+ shared_locations: boolean;
1552
1758
  skip_last_msg_update_for_system_msgs: boolean;
1553
1759
  typing_events: boolean;
1554
1760
  updated_at: Date;
1555
1761
  uploads: boolean;
1556
1762
  url_enrichment: boolean;
1763
+ user_message_reminders: boolean;
1557
1764
  commands: string[];
1558
1765
  permissions: PolicyRequest[];
1559
1766
  grants: Record<string, string[]>;
@@ -1641,6 +1848,11 @@ export interface CreatePollRequest {
1641
1848
  custom?: Record<string, any>;
1642
1849
  user?: UserRequest;
1643
1850
  }
1851
+ export interface CreateReminderRequest {
1852
+ remind_at?: Date;
1853
+ user_id?: string;
1854
+ user?: UserRequest;
1855
+ }
1644
1856
  export interface CreateRoleRequest {
1645
1857
  name: string;
1646
1858
  }
@@ -1789,6 +2001,9 @@ export interface DeleteReactionResponse {
1789
2001
  export interface DeleteRecordingResponse {
1790
2002
  duration: string;
1791
2003
  }
2004
+ export interface DeleteReminderResponse {
2005
+ duration: string;
2006
+ }
1792
2007
  export interface DeleteSegmentTargetsRequest {
1793
2008
  target_ids: string[];
1794
2009
  }
@@ -1895,6 +2110,17 @@ export interface EgressResponse {
1895
2110
  frame_recording?: FrameRecordingResponse;
1896
2111
  hls?: EgressHLSResponse;
1897
2112
  }
2113
+ export interface EgressTaskConfig {
2114
+ egress_user?: EgressUser;
2115
+ frame_recording_egress_config?: FrameRecordingEgressConfig;
2116
+ hls_egress_config?: HLSEgressConfig;
2117
+ recording_egress_config?: RecordingEgressConfig;
2118
+ rtmp_egress_config?: RTMPEgressConfig;
2119
+ stt_egress_config?: STTEgressConfig;
2120
+ }
2121
+ export interface EgressUser {
2122
+ token?: string;
2123
+ }
1898
2124
  export interface EndCallRequest {
1899
2125
  }
1900
2126
  export interface EndCallResponse {
@@ -1984,9 +2210,33 @@ export interface ErrorResult {
1984
2210
  stacktrace?: string;
1985
2211
  version?: string;
1986
2212
  }
2213
+ export interface EventHook {
2214
+ created_at?: Date;
2215
+ enabled?: boolean;
2216
+ hook_type?: string;
2217
+ id?: string;
2218
+ sns_auth_type?: string;
2219
+ sns_key?: string;
2220
+ sns_region?: string;
2221
+ sns_role_arn?: string;
2222
+ sns_secret?: string;
2223
+ sns_topic_arn?: string;
2224
+ sqs_auth_type?: string;
2225
+ sqs_key?: string;
2226
+ sqs_queue_url?: string;
2227
+ sqs_region?: string;
2228
+ sqs_role_arn?: string;
2229
+ sqs_secret?: string;
2230
+ timeout_ms?: number;
2231
+ updated_at?: Date;
2232
+ webhook_url?: string;
2233
+ event_types?: string[];
2234
+ callback?: AsyncModerationCallbackConfig;
2235
+ }
1987
2236
  export interface EventNotificationSettings {
1988
2237
  enabled: boolean;
1989
2238
  apns: APNS;
2239
+ fcm: FCM;
1990
2240
  }
1991
2241
  export interface EventRequest {
1992
2242
  type: string;
@@ -2024,12 +2274,30 @@ export interface ExportUsersResponse {
2024
2274
  duration: string;
2025
2275
  task_id: string;
2026
2276
  }
2277
+ export interface ExternalStorage {
2278
+ abs_account_name?: string;
2279
+ abs_client_id?: string;
2280
+ abs_client_secret?: string;
2281
+ abs_tenant_id?: string;
2282
+ bucket?: string;
2283
+ gcs_credentials?: string;
2284
+ path?: string;
2285
+ s3_api_key?: string;
2286
+ s3_custom_endpoint?: string;
2287
+ s3_region?: string;
2288
+ s3_secret_key?: string;
2289
+ storage_name?: string;
2290
+ storage_type?: number;
2291
+ }
2027
2292
  export interface ExternalStorageResponse {
2028
2293
  bucket: string;
2029
2294
  name: string;
2030
2295
  path: string;
2031
2296
  type: 's3' | 'gcs' | 'abs';
2032
2297
  }
2298
+ export interface FCM {
2299
+ data?: Record<string, any>;
2300
+ }
2033
2301
  export interface FeedsModerationTemplateConfig {
2034
2302
  config_key: string;
2035
2303
  data_types: Record<string, string>;
@@ -2064,29 +2332,32 @@ export interface FirebaseConfig {
2064
2332
  server_key?: string;
2065
2333
  }
2066
2334
  export interface FirebaseConfigFields {
2067
- apn_template: string;
2068
- data_template: string;
2069
2335
  enabled: boolean;
2070
- notification_template: string;
2336
+ apn_template?: string;
2071
2337
  credentials_json?: string;
2338
+ data_template?: string;
2339
+ notification_template?: string;
2072
2340
  server_key?: string;
2073
2341
  }
2074
2342
  export interface Flag {
2075
2343
  created_at: Date;
2076
- entity_id: string;
2077
- entity_type: string;
2344
+ created_by_automod: boolean;
2078
2345
  updated_at: Date;
2079
- result: Array<Record<string, any>>;
2080
- entity_creator_id?: string;
2081
- moderation_payload_hash?: string;
2346
+ approved_at?: Date;
2082
2347
  reason?: string;
2083
- review_queue_item_id?: string;
2084
- type?: string;
2085
- labels?: string[];
2348
+ rejected_at?: Date;
2349
+ reviewed_at?: Date;
2350
+ reviewed_by?: string;
2351
+ target_message_id?: string;
2086
2352
  custom?: Record<string, any>;
2087
- moderation_payload?: ModerationPayload;
2353
+ details?: FlagDetails;
2354
+ target_message?: Message;
2355
+ target_user?: User;
2088
2356
  user?: User;
2089
2357
  }
2358
+ export interface FlagContentOptions {
2359
+ reason: string;
2360
+ }
2090
2361
  export interface FlagDetails {
2091
2362
  original_text: string;
2092
2363
  extra: Record<string, any>;
@@ -2126,11 +2397,20 @@ export interface FlagUpdatedEvent {
2126
2397
  message?: MessageResponse;
2127
2398
  user?: UserResponse;
2128
2399
  }
2400
+ export interface FlagUserOptions {
2401
+ reason: string;
2402
+ }
2129
2403
  export interface FrameRecordSettings {
2130
2404
  capture_interval_in_seconds: number;
2131
2405
  mode: 'available' | 'disabled' | 'auto-on';
2132
2406
  quality?: string;
2133
2407
  }
2408
+ export interface FrameRecordingEgressConfig {
2409
+ capture_interval_in_seconds?: number;
2410
+ storage_name?: string;
2411
+ external_storage?: ExternalStorage;
2412
+ quality?: Quality;
2413
+ }
2134
2414
  export interface FrameRecordingResponse {
2135
2415
  status: string;
2136
2416
  }
@@ -2190,6 +2470,13 @@ export interface GeofenceSettingsRequest {
2190
2470
  export interface GeofenceSettingsResponse {
2191
2471
  names: string[];
2192
2472
  }
2473
+ export interface GetActiveCallsStatusResponse {
2474
+ duration: string;
2475
+ end_time: Date;
2476
+ start_time: Date;
2477
+ metrics?: ActiveCallsMetrics;
2478
+ summary?: ActiveCallsSummary;
2479
+ }
2193
2480
  export interface GetApplicationResponse {
2194
2481
  duration: string;
2195
2482
  app: AppResponseFields;
@@ -2206,6 +2493,7 @@ export interface GetCallReportResponse {
2206
2493
  duration: string;
2207
2494
  session_id: string;
2208
2495
  report: ReportResponse;
2496
+ video_reactions?: VideoReactionsResponse[];
2209
2497
  chat_activity?: ChatActivityStatsResponse;
2210
2498
  }
2211
2499
  export interface GetCallResponse {
@@ -2248,11 +2536,13 @@ export interface GetChannelTypeResponse {
2248
2536
  reminders: boolean;
2249
2537
  replies: boolean;
2250
2538
  search: boolean;
2539
+ shared_locations: boolean;
2251
2540
  skip_last_msg_update_for_system_msgs: boolean;
2252
2541
  typing_events: boolean;
2253
2542
  updated_at: Date;
2254
2543
  uploads: boolean;
2255
2544
  url_enrichment: boolean;
2545
+ user_message_reminders: boolean;
2256
2546
  commands: Command[];
2257
2547
  permissions: PolicyRequest[];
2258
2548
  grants: Record<string, string[]>;
@@ -2314,13 +2604,10 @@ export interface GetOGResponse {
2314
2604
  footer?: string;
2315
2605
  footer_icon?: string;
2316
2606
  image_url?: string;
2317
- latitude?: number;
2318
- longitude?: number;
2319
2607
  og_scrape_url?: string;
2320
2608
  original_height?: number;
2321
2609
  original_width?: number;
2322
2610
  pretext?: string;
2323
- stopped_sharing?: boolean;
2324
2611
  text?: string;
2325
2612
  thumb_url?: string;
2326
2613
  title?: string;
@@ -2344,6 +2631,10 @@ export interface GetOrCreateCallResponse {
2344
2631
  own_capabilities: OwnCapability[];
2345
2632
  call: CallResponse;
2346
2633
  }
2634
+ export interface GetPushTemplatesResponse {
2635
+ duration: string;
2636
+ templates: PushTemplate[];
2637
+ }
2347
2638
  export interface GetRateLimitsResponse {
2348
2639
  duration: string;
2349
2640
  android?: Record<string, LimitInfo>;
@@ -2399,6 +2690,12 @@ export interface GroupedStatsResponse {
2399
2690
  name: string;
2400
2691
  unique: number;
2401
2692
  }
2693
+ export interface HLSEgressConfig {
2694
+ playlist_url?: string;
2695
+ start_unix_nano?: number;
2696
+ qualities?: Quality[];
2697
+ composite_app_settings?: CompositeAppSettings;
2698
+ }
2402
2699
  export interface HLSSettings {
2403
2700
  auto_on: boolean;
2404
2701
  enabled: boolean;
@@ -2417,6 +2714,10 @@ export interface HLSSettingsResponse {
2417
2714
  quality_tracks: string[];
2418
2715
  layout: LayoutSettingsResponse;
2419
2716
  }
2717
+ export interface HarmConfig {
2718
+ severity: number;
2719
+ action_sequences: ActionSequence[];
2720
+ }
2420
2721
  export interface HideChannelRequest {
2421
2722
  clear_history?: boolean;
2422
2723
  user_id?: string;
@@ -2435,6 +2736,9 @@ export interface HuaweiConfigFields {
2435
2736
  id?: string;
2436
2737
  secret?: string;
2437
2738
  }
2739
+ export interface ImageContentParameters {
2740
+ harm_labels?: string[];
2741
+ }
2438
2742
  export interface ImageData {
2439
2743
  frames: string;
2440
2744
  height: string;
@@ -2442,6 +2746,11 @@ export interface ImageData {
2442
2746
  url: string;
2443
2747
  width: string;
2444
2748
  }
2749
+ export interface ImageRuleParameters {
2750
+ threshold: number;
2751
+ time_window: string;
2752
+ harm_labels?: string[];
2753
+ }
2445
2754
  export interface ImageSize {
2446
2755
  crop?: 'top' | 'bottom' | 'left' | 'right' | 'center';
2447
2756
  height?: number;
@@ -2483,6 +2792,11 @@ export interface ImportTaskHistory {
2483
2792
  next_state: string;
2484
2793
  prev_state: string;
2485
2794
  }
2795
+ export interface JoinCallAPIMetrics {
2796
+ failures: number;
2797
+ total: number;
2798
+ latency?: ActiveCallsLatencyStats;
2799
+ }
2486
2800
  export interface Label {
2487
2801
  name: string;
2488
2802
  harm_labels?: string[];
@@ -2519,16 +2833,22 @@ export interface LimitInfo {
2519
2833
  reset: number;
2520
2834
  }
2521
2835
  export interface LimitsSettings {
2836
+ max_participants_exclude_roles: string[];
2522
2837
  max_duration_seconds?: number;
2523
2838
  max_participants?: number;
2839
+ max_participants_exclude_owner?: boolean;
2524
2840
  }
2525
2841
  export interface LimitsSettingsRequest {
2526
2842
  max_duration_seconds?: number;
2527
2843
  max_participants?: number;
2844
+ max_participants_exclude_owner?: boolean;
2845
+ max_participants_exclude_roles?: string[];
2528
2846
  }
2529
2847
  export interface LimitsSettingsResponse {
2848
+ max_participants_exclude_roles: string[];
2530
2849
  max_duration_seconds?: number;
2531
2850
  max_participants?: number;
2851
+ max_participants_exclude_owner?: boolean;
2532
2852
  }
2533
2853
  export interface ListBlockListResponse {
2534
2854
  duration: string;
@@ -2613,6 +2933,9 @@ export interface MemberAddedEvent {
2613
2933
  member?: ChannelMember;
2614
2934
  user?: User;
2615
2935
  }
2936
+ export interface MemberLookup {
2937
+ limit: number;
2938
+ }
2616
2939
  export interface MemberRemovedEvent {
2617
2940
  channel_id: string;
2618
2941
  channel_type: string;
@@ -2690,6 +3013,8 @@ export interface Message {
2690
3013
  pinned_by?: User;
2691
3014
  poll?: Poll;
2692
3015
  quoted_message?: Message;
3016
+ reminder?: MessageReminder;
3017
+ shared_location?: SharedLocation;
2693
3018
  user?: User;
2694
3019
  }
2695
3020
  export interface MessageActionRequest {
@@ -2796,6 +3121,18 @@ export interface MessageReadEvent {
2796
3121
  thread?: ThreadResponse;
2797
3122
  user?: UserResponseCommonFields;
2798
3123
  }
3124
+ export interface MessageReminder {
3125
+ channel_cid: string;
3126
+ created_at: Date;
3127
+ message_id: string;
3128
+ task_id: string;
3129
+ updated_at: Date;
3130
+ user_id: string;
3131
+ remind_at?: Date;
3132
+ channel?: Channel;
3133
+ message?: Message;
3134
+ user?: User;
3135
+ }
2799
3136
  export interface MessageRequest {
2800
3137
  html?: string;
2801
3138
  id?: string;
@@ -2815,6 +3152,7 @@ export interface MessageRequest {
2815
3152
  mentioned_users?: string[];
2816
3153
  restricted_visibility?: string[];
2817
3154
  custom?: Record<string, any>;
3155
+ shared_location?: SharedLocation;
2818
3156
  user?: UserRequest;
2819
3157
  }
2820
3158
  export interface MessageResponse {
@@ -2858,6 +3196,8 @@ export interface MessageResponse {
2858
3196
  poll?: PollResponseData;
2859
3197
  quoted_message?: MessageResponse;
2860
3198
  reaction_groups?: Record<string, ReactionGroupResponse>;
3199
+ reminder?: ReminderResponseData;
3200
+ shared_location?: SharedLocationResponseData;
2861
3201
  }
2862
3202
  export interface MessageStatsResponse {
2863
3203
  count_over_time?: CountByMinuteResponse[];
@@ -2938,6 +3278,8 @@ export interface MessageWithChannelResponse {
2938
3278
  poll?: PollResponseData;
2939
3279
  quoted_message?: MessageResponse;
2940
3280
  reaction_groups?: Record<string, ReactionGroupResponse>;
3281
+ reminder?: ReminderResponseData;
3282
+ shared_location?: SharedLocationResponseData;
2941
3283
  }
2942
3284
  export interface ModerationActionConfig {
2943
3285
  action: string;
@@ -2964,6 +3306,27 @@ export interface ModerationCustomActionEvent {
2964
3306
  message?: Message;
2965
3307
  user?: User;
2966
3308
  }
3309
+ export interface ModerationDashboardPreferences {
3310
+ flag_user_on_flagged_content?: boolean;
3311
+ media_queue_blur_enabled?: boolean;
3312
+ }
3313
+ export interface ModerationFlagResponse {
3314
+ created_at: string;
3315
+ entity_id: string;
3316
+ entity_type: string;
3317
+ id: string;
3318
+ type: string;
3319
+ updated_at: string;
3320
+ entity_creator_id?: string;
3321
+ reason?: string;
3322
+ review_queue_item_id?: string;
3323
+ labels?: string[];
3324
+ result?: Array<Record<string, any>>;
3325
+ custom?: Record<string, any>;
3326
+ moderation_payload?: ModerationPayload;
3327
+ review_queue_item?: ReviewQueueItemResponse;
3328
+ user?: UserResponse;
3329
+ }
2967
3330
  export interface ModerationFlaggedEvent {
2968
3331
  created_at: Date;
2969
3332
  type: string;
@@ -3131,6 +3494,7 @@ export interface OwnUser {
3131
3494
  devices: Device[];
3132
3495
  mutes: UserMute[];
3133
3496
  custom: Record<string, any>;
3497
+ total_unread_count_by_team: Record<string, number>;
3134
3498
  deactivated_at?: Date;
3135
3499
  deleted_at?: Date;
3136
3500
  invisible?: boolean;
@@ -3172,6 +3536,7 @@ export interface OwnUserResponse {
3172
3536
  privacy_settings?: PrivacySettingsResponse;
3173
3537
  push_preferences?: PushPreferences;
3174
3538
  teams_role?: Record<string, string>;
3539
+ total_unread_count_by_team?: Record<string, number>;
3175
3540
  }
3176
3541
  export interface PagerResponse {
3177
3542
  next?: string;
@@ -3203,6 +3568,17 @@ export interface ParticipantReportResponse {
3203
3568
  publishers?: PublisherStatsResponse;
3204
3569
  subscribers?: SubscriberStatsResponse;
3205
3570
  }
3571
+ export interface PendingMessageEvent {
3572
+ created_at: Date;
3573
+ method: string;
3574
+ custom: Record<string, any>;
3575
+ type: string;
3576
+ received_at?: Date;
3577
+ channel?: Channel;
3578
+ message?: Message;
3579
+ metadata?: Record<string, string>;
3580
+ user?: User;
3581
+ }
3206
3582
  export interface PendingMessageResponse {
3207
3583
  channel?: ChannelResponse;
3208
3584
  message?: MessageResponse;
@@ -3375,13 +3751,29 @@ export interface PrivacySettingsResponse {
3375
3751
  read_receipts?: ReadReceiptsResponse;
3376
3752
  typing_indicators?: TypingIndicatorsResponse;
3377
3753
  }
3754
+ export interface PublisherAllMetrics {
3755
+ audio?: PublisherAudioMetrics;
3756
+ rtt_ms?: ActiveCallsLatencyStats;
3757
+ video?: PublisherVideoMetrics;
3758
+ }
3759
+ export interface PublisherAudioMetrics {
3760
+ jitter_ms?: ActiveCallsLatencyStats;
3761
+ }
3378
3762
  export interface PublisherStatsResponse {
3379
3763
  total: number;
3380
3764
  unique: number;
3381
3765
  by_track?: TrackStatsResponse[];
3382
3766
  }
3767
+ export interface PublisherVideoMetrics {
3768
+ fps_30?: ActiveCallsFPSStats;
3769
+ frame_encoding_time_ms?: ActiveCallsLatencyStats;
3770
+ jitter_ms?: ActiveCallsLatencyStats;
3771
+ }
3772
+ export interface PublishersMetrics {
3773
+ all?: PublisherAllMetrics;
3774
+ }
3383
3775
  export interface PushConfig {
3384
- version: 'v1' | 'v2';
3776
+ version: 'v1' | 'v2' | 'v3';
3385
3777
  offline_only?: boolean;
3386
3778
  }
3387
3779
  export interface PushNotificationFields {
@@ -3398,6 +3790,7 @@ export interface PushNotificationSettingsResponse {
3398
3790
  disabled_until?: Date;
3399
3791
  }
3400
3792
  export interface PushPreferenceInput {
3793
+ call_level?: 'all' | 'none' | 'default';
3401
3794
  channel_cid?: string;
3402
3795
  chat_level?: 'all' | 'mentions' | 'none' | 'default';
3403
3796
  disabled_until?: Date;
@@ -3436,6 +3829,7 @@ export interface PushProvider {
3436
3829
  huawei_app_secret?: string;
3437
3830
  xiaomi_app_secret?: string;
3438
3831
  xiaomi_package_name?: string;
3832
+ push_templates?: PushTemplate[];
3439
3833
  }
3440
3834
  export interface PushProviderResponse {
3441
3835
  created_at: Date;
@@ -3467,6 +3861,21 @@ export interface PushProviderResponse {
3467
3861
  xiaomi_app_secret?: string;
3468
3862
  xiaomi_package_name?: string;
3469
3863
  }
3864
+ export interface PushTemplate {
3865
+ created_at: Date;
3866
+ enable_push: boolean;
3867
+ event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due';
3868
+ updated_at: Date;
3869
+ template?: string;
3870
+ }
3871
+ export interface Quality {
3872
+ bitdepth?: number;
3873
+ framerate?: number;
3874
+ height?: number;
3875
+ name?: string;
3876
+ video_bitrate?: number;
3877
+ width?: number;
3878
+ }
3470
3879
  export interface QualityScoreReport {
3471
3880
  histogram: ReportByHistogramBucket[];
3472
3881
  }
@@ -3659,6 +4068,19 @@ export interface QueryModerationConfigsResponse {
3659
4068
  next?: string;
3660
4069
  prev?: string;
3661
4070
  }
4071
+ export interface QueryModerationFlagsRequest {
4072
+ limit?: number;
4073
+ next?: string;
4074
+ prev?: string;
4075
+ sort?: SortParam[];
4076
+ filter?: Record<string, any>;
4077
+ }
4078
+ export interface QueryModerationFlagsResponse {
4079
+ duration: string;
4080
+ flags: ModerationFlagResponse[];
4081
+ next?: string;
4082
+ prev?: string;
4083
+ }
3662
4084
  export interface QueryModerationLogsRequest {
3663
4085
  limit?: number;
3664
4086
  next?: string;
@@ -3709,6 +4131,21 @@ export interface QueryReactionsResponse {
3709
4131
  next?: string;
3710
4132
  prev?: string;
3711
4133
  }
4134
+ export interface QueryRemindersRequest {
4135
+ limit?: number;
4136
+ next?: string;
4137
+ prev?: string;
4138
+ user_id?: string;
4139
+ sort?: SortParamRequest[];
4140
+ filter?: Record<string, any>;
4141
+ user?: UserRequest;
4142
+ }
4143
+ export interface QueryRemindersResponse {
4144
+ duration: string;
4145
+ reminders: ReminderResponseData[];
4146
+ next?: string;
4147
+ prev?: string;
4148
+ }
3712
4149
  export interface QueryReviewQueueRequest {
3713
4150
  limit?: number;
3714
4151
  lock_count?: number;
@@ -3808,6 +4245,11 @@ export interface RTMPBroadcastRequest {
3808
4245
  stream_key?: string;
3809
4246
  layout?: LayoutSettingsRequest;
3810
4247
  }
4248
+ export interface RTMPEgressConfig {
4249
+ rtmp_location?: string;
4250
+ composite_app_settings?: CompositeAppSettings;
4251
+ quality?: Quality;
4252
+ }
3811
4253
  export interface RTMPIngress {
3812
4254
  address: string;
3813
4255
  }
@@ -3951,6 +4393,25 @@ export interface RecordSettingsResponse {
3951
4393
  quality: string;
3952
4394
  layout: LayoutSettingsResponse;
3953
4395
  }
4396
+ export interface RecordingEgressConfig {
4397
+ audio_only?: boolean;
4398
+ storage_name?: string;
4399
+ composite_app_settings?: CompositeAppSettings;
4400
+ external_storage?: ExternalStorage;
4401
+ quality?: Quality;
4402
+ video_orientation_hint?: VideoOrientation;
4403
+ }
4404
+ export interface ReminderResponseData {
4405
+ channel_cid: string;
4406
+ created_at: Date;
4407
+ message_id: string;
4408
+ updated_at: Date;
4409
+ user_id: string;
4410
+ remind_at?: Date;
4411
+ channel?: ChannelResponse;
4412
+ message?: Message;
4413
+ user?: User;
4414
+ }
3954
4415
  export interface ReportByHistogramBucket {
3955
4416
  category: string;
3956
4417
  count: number;
@@ -3995,9 +4456,11 @@ export interface ReviewQueueItem {
3995
4456
  flags: Flag[];
3996
4457
  languages: string[];
3997
4458
  teams: string[];
4459
+ completed_at: NullTime;
3998
4460
  reviewed_at: NullTime;
3999
4461
  activity?: EnrichedActivity;
4000
4462
  assigned_to?: User;
4463
+ call?: Call;
4001
4464
  entity_creator?: EntityCreator;
4002
4465
  feeds_v2_activity?: EnrichedActivity;
4003
4466
  feeds_v2_reaction?: Reaction;
@@ -4037,6 +4500,7 @@ export interface ReviewQueueItemResponse {
4037
4500
  teams?: string[];
4038
4501
  activity?: EnrichedActivity;
4039
4502
  assigned_to?: UserResponse;
4503
+ call?: CallResponse;
4040
4504
  entity_creator?: EntityCreatorResponse;
4041
4505
  feeds_v2_activity?: EnrichedActivity;
4042
4506
  feeds_v2_reaction?: Reaction;
@@ -4076,29 +4540,43 @@ export interface Role {
4076
4540
  scopes: string[];
4077
4541
  }
4078
4542
  export interface RuleBuilderAction {
4079
- duration?: number;
4080
- ip_ban?: boolean;
4081
- reason?: string;
4082
- shadow_ban?: boolean;
4083
- type?: string;
4543
+ type: string;
4544
+ ban_options?: BanOptions;
4545
+ flag_content_options?: FlagContentOptions;
4546
+ flag_user_options?: FlagUserOptions;
4547
+ remove_content_options?: BlockContentOptions;
4084
4548
  }
4085
4549
  export interface RuleBuilderCondition {
4086
- provider?: string;
4087
- threshold?: number;
4088
- time_window?: string;
4089
- labels?: string[];
4550
+ type: string;
4551
+ confidence?: number;
4552
+ content_count_rule_params?: ContentCountRuleParameters;
4553
+ image_content_params?: ImageContentParameters;
4554
+ image_rule_params?: ImageRuleParameters;
4555
+ text_content_params?: TextContentParameters;
4556
+ text_rule_params?: TextRuleParameters;
4557
+ user_created_within_params?: UserCreatedWithinParameters;
4558
+ user_rule_params?: UserRuleParameters;
4559
+ video_content_params?: VideoContentParameters;
4560
+ video_rule_params?: VideoRuleParameters;
4561
+ }
4562
+ export interface RuleBuilderConditionGroup {
4563
+ logic: string;
4564
+ conditions: RuleBuilderCondition[];
4090
4565
  }
4091
4566
  export interface RuleBuilderConfig {
4567
+ rules: RuleBuilderRule[];
4092
4568
  async?: boolean;
4093
- enabled?: boolean;
4094
- rules?: RuleBuilderRule[];
4095
4569
  }
4096
4570
  export interface RuleBuilderRule {
4097
- enabled?: boolean;
4098
- id?: string;
4099
- name?: string;
4571
+ enabled: boolean;
4572
+ id: string;
4573
+ name: string;
4574
+ rule_type: string;
4575
+ action: RuleBuilderAction;
4576
+ cooldown_period?: string;
4577
+ logic?: string;
4100
4578
  conditions?: RuleBuilderCondition[];
4101
- action?: RuleBuilderAction;
4579
+ groups?: RuleBuilderConditionGroup[];
4102
4580
  }
4103
4581
  export interface S3Request {
4104
4582
  s3_region: string;
@@ -4112,6 +4590,21 @@ export interface SDKUsageReport {
4112
4590
  export interface SDKUsageReportResponse {
4113
4591
  daily: DailyAggregateSDKUsageReportResponse[];
4114
4592
  }
4593
+ export interface SFUIDLastSeen {
4594
+ id: string;
4595
+ last_seen: Date;
4596
+ process_start_time: number;
4597
+ }
4598
+ export interface STTEgressConfig {
4599
+ closed_captions_enabled?: boolean;
4600
+ language?: string;
4601
+ storage_name?: string;
4602
+ translations_enabled?: boolean;
4603
+ upload_transcriptions?: boolean;
4604
+ whisper_server_base_url?: string;
4605
+ translation_languages?: string[];
4606
+ external_storage?: ExternalStorage;
4607
+ }
4115
4608
  export interface ScreensharingSettings {
4116
4609
  access_request_enabled: boolean;
4117
4610
  enabled: boolean;
@@ -4189,6 +4682,8 @@ export interface SearchResultMessage {
4189
4682
  poll?: PollResponseData;
4190
4683
  quoted_message?: MessageResponse;
4191
4684
  reaction_groups?: Record<string, ReactionGroupResponse>;
4685
+ reminder?: ReminderResponseData;
4686
+ shared_location?: SharedLocationResponseData;
4192
4687
  }
4193
4688
  export interface SearchWarning {
4194
4689
  warning_code: number;
@@ -4278,6 +4773,50 @@ export interface SessionSettingsResponse {
4278
4773
  }
4279
4774
  export interface ShadowBlockActionRequest {
4280
4775
  }
4776
+ export interface SharedLocation {
4777
+ channel_cid: string;
4778
+ created_at: Date;
4779
+ created_by_device_id: string;
4780
+ message_id: string;
4781
+ updated_at: Date;
4782
+ user_id: string;
4783
+ end_at?: Date;
4784
+ latitude?: number;
4785
+ longitude?: number;
4786
+ channel?: Channel;
4787
+ message?: Message;
4788
+ }
4789
+ export interface SharedLocationResponse {
4790
+ channel_cid: string;
4791
+ created_at: Date;
4792
+ created_by_device_id: string;
4793
+ duration: string;
4794
+ latitude: number;
4795
+ longitude: number;
4796
+ message_id: string;
4797
+ updated_at: Date;
4798
+ user_id: string;
4799
+ end_at?: Date;
4800
+ channel?: ChannelResponse;
4801
+ message?: MessageResponse;
4802
+ }
4803
+ export interface SharedLocationResponseData {
4804
+ channel_cid: string;
4805
+ created_at: Date;
4806
+ created_by_device_id: string;
4807
+ latitude: number;
4808
+ longitude: number;
4809
+ message_id: string;
4810
+ updated_at: Date;
4811
+ user_id: string;
4812
+ end_at?: Date;
4813
+ channel?: ChannelResponse;
4814
+ message?: MessageResponse;
4815
+ }
4816
+ export interface SharedLocationsResponse {
4817
+ duration: string;
4818
+ active_live_locations: SharedLocationResponseData[];
4819
+ }
4281
4820
  export interface ShowChannelRequest {
4282
4821
  user_id?: string;
4283
4822
  user?: UserRequest;
@@ -4285,6 +4824,10 @@ export interface ShowChannelRequest {
4285
4824
  export interface ShowChannelResponse {
4286
4825
  duration: string;
4287
4826
  }
4827
+ export interface SortParam {
4828
+ direction?: number;
4829
+ field?: string;
4830
+ }
4288
4831
  export interface SortParamRequest {
4289
4832
  direction?: number;
4290
4833
  field?: string;
@@ -4389,7 +4932,7 @@ export interface StopTranscriptionResponse {
4389
4932
  duration: string;
4390
4933
  }
4391
4934
  export interface SubmitActionRequest {
4392
- action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block';
4935
+ action_type: 'mark_reviewed' | 'delete_message' | 'delete_activity' | 'delete_reaction' | 'ban' | 'custom' | 'unban' | 'restore' | 'delete_user' | 'unblock' | 'shadow_block' | 'kick_user' | 'end_call';
4393
4936
  item_id: string;
4394
4937
  user_id?: string;
4395
4938
  ban?: BanActionRequest;
@@ -4404,18 +4947,50 @@ export interface SubmitActionRequest {
4404
4947
  }
4405
4948
  export interface SubmitActionResponse {
4406
4949
  duration: string;
4407
- item?: ReviewQueueItem;
4950
+ item?: ReviewQueueItemResponse;
4951
+ }
4952
+ export interface SubscriberAllMetrics {
4953
+ audio?: SubscriberAudioMetrics;
4954
+ rtt_ms?: ActiveCallsLatencyStats;
4955
+ video?: SubscriberVideoMetrics;
4956
+ }
4957
+ export interface SubscriberAudioMetrics {
4958
+ concealment_pct?: ActiveCallsLatencyStats;
4959
+ jitter_ms?: ActiveCallsLatencyStats;
4960
+ packets_lost_pct?: ActiveCallsLatencyStats;
4408
4961
  }
4409
4962
  export interface SubscriberStatsResponse {
4410
4963
  total: number;
4411
4964
  total_subscribed_duration_seconds: number;
4412
4965
  unique: number;
4413
4966
  }
4967
+ export interface SubscriberVideoMetrics {
4968
+ fps_30?: ActiveCallsFPSStats;
4969
+ jitter_ms?: ActiveCallsLatencyStats;
4970
+ packets_lost_pct?: ActiveCallsLatencyStats;
4971
+ }
4972
+ export interface SubscribersMetrics {
4973
+ all?: SubscriberAllMetrics;
4974
+ }
4414
4975
  export interface TargetResolution {
4415
4976
  bitrate: number;
4416
4977
  height: number;
4417
4978
  width: number;
4418
4979
  }
4980
+ export interface TextContentParameters {
4981
+ contains_url?: boolean;
4982
+ severity?: string;
4983
+ blocklist_match?: string[];
4984
+ harm_labels?: string[];
4985
+ }
4986
+ export interface TextRuleParameters {
4987
+ threshold: number;
4988
+ time_window: string;
4989
+ contains_url?: boolean;
4990
+ severity?: string;
4991
+ blocklist_match?: string[];
4992
+ harm_labels?: string[];
4993
+ }
4419
4994
  export interface ThreadParticipant {
4420
4995
  app_pk: number;
4421
4996
  channel_cid: string;
@@ -4522,6 +5097,7 @@ export interface TruncateChannelRequest {
4522
5097
  skip_push?: boolean;
4523
5098
  truncated_at?: Date;
4524
5099
  user_id?: string;
5100
+ member_ids?: string[];
4525
5101
  message?: MessageRequest;
4526
5102
  user?: UserRequest;
4527
5103
  }
@@ -4612,6 +5188,7 @@ export interface UnreadCountsResponse {
4612
5188
  channel_type: UnreadCountsChannelType[];
4613
5189
  channels: UnreadCountsChannel[];
4614
5190
  threads: UnreadCountsThread[];
5191
+ total_unread_count_by_team: Record<string, number>;
4615
5192
  }
4616
5193
  export interface UnreadCountsThread {
4617
5194
  last_read: Date;
@@ -4649,6 +5226,7 @@ export interface UpdateAppRequest {
4649
5226
  sqs_url?: string;
4650
5227
  webhook_url?: string;
4651
5228
  allowed_flag_reasons?: string[];
5229
+ event_hooks?: EventHook[];
4652
5230
  image_moderation_block_labels?: string[];
4653
5231
  image_moderation_labels?: string[];
4654
5232
  user_search_disallowed_roles?: string[];
@@ -4661,6 +5239,7 @@ export interface UpdateAppRequest {
4661
5239
  grants?: Record<string, string[]>;
4662
5240
  huawei_config?: HuaweiConfig;
4663
5241
  image_upload_config?: FileUploadConfig;
5242
+ moderation_dashboard_preferences?: ModerationDashboardPreferences;
4664
5243
  push_config?: PushConfig;
4665
5244
  xiaomi_config?: XiaomiConfig;
4666
5245
  }
@@ -4761,10 +5340,12 @@ export interface UpdateChannelTypeRequest {
4761
5340
  reminders?: boolean;
4762
5341
  replies?: boolean;
4763
5342
  search?: boolean;
5343
+ shared_locations?: boolean;
4764
5344
  skip_last_msg_update_for_system_msgs?: boolean;
4765
5345
  typing_events?: boolean;
4766
5346
  uploads?: boolean;
4767
5347
  url_enrichment?: boolean;
5348
+ user_message_reminders?: boolean;
4768
5349
  allowed_flag_reasons?: string[];
4769
5350
  blocklists?: BlockListOptions[];
4770
5351
  commands?: string[];
@@ -4791,11 +5372,13 @@ export interface UpdateChannelTypeResponse {
4791
5372
  reminders: boolean;
4792
5373
  replies: boolean;
4793
5374
  search: boolean;
5375
+ shared_locations: boolean;
4794
5376
  skip_last_msg_update_for_system_msgs: boolean;
4795
5377
  typing_events: boolean;
4796
5378
  updated_at: Date;
4797
5379
  uploads: boolean;
4798
5380
  url_enrichment: boolean;
5381
+ user_message_reminders: boolean;
4799
5382
  commands: string[];
4800
5383
  permissions: PolicyRequest[];
4801
5384
  grants: Record<string, string[]>;
@@ -4831,6 +5414,13 @@ export interface UpdateExternalStorageResponse {
4831
5414
  path: string;
4832
5415
  type: 's3' | 'gcs' | 'abs';
4833
5416
  }
5417
+ export interface UpdateLiveLocationRequest {
5418
+ created_by_device_id: string;
5419
+ message_id: string;
5420
+ end_at?: Date;
5421
+ latitude?: number;
5422
+ longitude?: number;
5423
+ }
4834
5424
  export interface UpdateMemberPartialRequest {
4835
5425
  unset?: string[];
4836
5426
  set?: Record<string, any>;
@@ -4854,6 +5444,7 @@ export interface UpdateMessagePartialResponse {
4854
5444
  export interface UpdateMessageRequest {
4855
5445
  message: MessageRequest;
4856
5446
  skip_enrich_url?: boolean;
5447
+ skip_push?: boolean;
4857
5448
  }
4858
5449
  export interface UpdateMessageResponse {
4859
5450
  duration: string;
@@ -4888,6 +5479,15 @@ export interface UpdatePollRequest {
4888
5479
  custom?: Record<string, any>;
4889
5480
  user?: UserRequest;
4890
5481
  }
5482
+ export interface UpdateReminderRequest {
5483
+ remind_at?: Date;
5484
+ user_id?: string;
5485
+ user?: UserRequest;
5486
+ }
5487
+ export interface UpdateReminderResponse {
5488
+ duration: string;
5489
+ reminder: ReminderResponseData;
5490
+ }
4891
5491
  export interface UpdateThreadPartialRequest {
4892
5492
  user_id?: string;
4893
5493
  unset?: string[];
@@ -4947,6 +5547,7 @@ export interface UpsertConfigRequest {
4947
5547
  rule_builder_config?: RuleBuilderConfig;
4948
5548
  user?: UserRequest;
4949
5549
  velocity_filter_config?: VelocityFilterConfig;
5550
+ video_call_rule_config?: VideoCallRuleConfig;
4950
5551
  }
4951
5552
  export interface UpsertConfigResponse {
4952
5553
  duration: string;
@@ -4978,6 +5579,17 @@ export interface UpsertPushProviderResponse {
4978
5579
  duration: string;
4979
5580
  push_provider: PushProviderResponse;
4980
5581
  }
5582
+ export interface UpsertPushTemplateRequest {
5583
+ event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due';
5584
+ push_provider_type: 'firebase' | 'apn';
5585
+ enable_push?: boolean;
5586
+ push_provider_name?: string;
5587
+ template?: string;
5588
+ }
5589
+ export interface UpsertPushTemplateResponse {
5590
+ duration: string;
5591
+ template?: PushTemplate;
5592
+ }
4981
5593
  export interface User {
4982
5594
  banned: boolean;
4983
5595
  id: string;
@@ -5011,6 +5623,9 @@ export interface UserBannedEvent {
5011
5623
  team?: string;
5012
5624
  user?: User;
5013
5625
  }
5626
+ export interface UserCreatedWithinParameters {
5627
+ max_age?: string;
5628
+ }
5014
5629
  export interface UserCustomEventRequest {
5015
5630
  type: string;
5016
5631
  custom?: Record<string, any>;
@@ -5161,6 +5776,9 @@ export interface UserResponsePrivacyFields {
5161
5776
  privacy_settings?: PrivacySettingsResponse;
5162
5777
  teams_role?: Record<string, string>;
5163
5778
  }
5779
+ export interface UserRuleParameters {
5780
+ max_age?: string;
5781
+ }
5164
5782
  export interface UserUnbannedEvent {
5165
5783
  channel_id: string;
5166
5784
  channel_type: string;
@@ -5216,6 +5834,31 @@ export interface VelocityFilterConfigRule {
5216
5834
  url_only: boolean;
5217
5835
  slow_spam_ban_duration?: number;
5218
5836
  }
5837
+ export interface VideoCallRuleConfig {
5838
+ rules: Record<string, HarmConfig>;
5839
+ }
5840
+ export interface VideoContentParameters {
5841
+ harm_labels?: string[];
5842
+ }
5843
+ export interface VideoEndCallRequest {
5844
+ }
5845
+ export interface VideoKickUserRequest {
5846
+ }
5847
+ export interface VideoOrientation {
5848
+ orientation?: number;
5849
+ }
5850
+ export interface VideoReactionOverTimeResponse {
5851
+ by_minute?: CountByMinuteResponse[];
5852
+ }
5853
+ export interface VideoReactionsResponse {
5854
+ reaction: string;
5855
+ count_over_time?: VideoReactionOverTimeResponse;
5856
+ }
5857
+ export interface VideoRuleParameters {
5858
+ threshold: number;
5859
+ time_window: string;
5860
+ harm_labels?: string[];
5861
+ }
5219
5862
  export interface VideoSettings {
5220
5863
  access_request_enabled: boolean;
5221
5864
  camera_default_on: boolean;
@@ -5281,6 +5924,7 @@ export interface WrappedUnreadCountsResponse {
5281
5924
  channel_type: UnreadCountsChannelType[];
5282
5925
  channels: UnreadCountsChannel[];
5283
5926
  threads: UnreadCountsThread[];
5927
+ total_unread_count_by_team: Record<string, number>;
5284
5928
  }
5285
5929
  export interface XiaomiConfig {
5286
5930
  disabled?: boolean;