@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.
@@ -73,8 +73,6 @@ export interface APNConfigFields {
73
73
 
74
74
  enabled: boolean;
75
75
 
76
- notification_template: string;
77
-
78
76
  auth_key?: string;
79
77
 
80
78
  auth_type?: string;
@@ -85,6 +83,8 @@ export interface APNConfigFields {
85
83
 
86
84
  key_id?: string;
87
85
 
86
+ notification_template?: string;
87
+
88
88
  p12_cert?: string;
89
89
 
90
90
  team_id?: string;
@@ -94,6 +94,14 @@ export interface APNS {
94
94
  body: string;
95
95
 
96
96
  title: string;
97
+
98
+ content_available?: number;
99
+
100
+ mutable_content?: number;
101
+
102
+ sound?: string;
103
+
104
+ data?: Record<string, any>;
97
105
  }
98
106
 
99
107
  export interface AWSRekognitionRule {
@@ -161,13 +169,63 @@ export interface ActionLogResponse {
161
169
 
162
170
  custom: Record<string, any>;
163
171
 
164
- review_queue_item?: ReviewQueueItem;
172
+ review_queue_item?: ReviewQueueItemResponse;
165
173
 
166
174
  target_user?: UserResponse;
167
175
 
168
176
  user?: UserResponse;
169
177
  }
170
178
 
179
+ export interface ActionSequence {
180
+ action: string;
181
+
182
+ blur: boolean;
183
+
184
+ cooldown_period: number;
185
+
186
+ threshold: number;
187
+
188
+ time_window: number;
189
+
190
+ warning: boolean;
191
+
192
+ warning_text: string;
193
+ }
194
+
195
+ export interface ActiveCallsFPSStats {
196
+ p05: number;
197
+
198
+ p10: number;
199
+
200
+ p50: number;
201
+
202
+ p90: number;
203
+ }
204
+
205
+ export interface ActiveCallsLatencyStats {
206
+ p50: number;
207
+
208
+ p90: number;
209
+ }
210
+
211
+ export interface ActiveCallsMetrics {
212
+ join_call_api?: JoinCallAPIMetrics;
213
+
214
+ publishers?: PublishersMetrics;
215
+
216
+ subscribers?: SubscribersMetrics;
217
+ }
218
+
219
+ export interface ActiveCallsSummary {
220
+ active_calls: number;
221
+
222
+ active_publishers: number;
223
+
224
+ active_subscribers: number;
225
+
226
+ participants: number;
227
+ }
228
+
171
229
  export interface AnyEvent {
172
230
  created_at: Date;
173
231
 
@@ -227,8 +285,12 @@ export interface AppResponseFields {
227
285
 
228
286
  suspended_explanation: string;
229
287
 
288
+ use_hook_v2: boolean;
289
+
230
290
  webhook_url: string;
231
291
 
292
+ event_hooks: EventHook[];
293
+
232
294
  user_search_disallowed_roles: string[];
233
295
 
234
296
  webhook_events: string[];
@@ -258,6 +320,26 @@ export interface AppResponseFields {
258
320
  image_moderation_labels?: string[];
259
321
 
260
322
  datadog_info?: DataDogInfo;
323
+
324
+ moderation_dashboard_preferences?: ModerationDashboardPreferences;
325
+ }
326
+
327
+ export interface AsyncBulkImageModerationEvent {
328
+ created_at: Date;
329
+
330
+ finished_at: Date;
331
+
332
+ started_at: Date;
333
+
334
+ task_id: string;
335
+
336
+ url: string;
337
+
338
+ custom: Record<string, any>;
339
+
340
+ type: string;
341
+
342
+ received_at?: Date;
261
343
  }
262
344
 
263
345
  export interface AsyncExportChannelsEvent {
@@ -365,10 +447,6 @@ export interface Attachment {
365
447
 
366
448
  image_url?: string;
367
449
 
368
- latitude?: number;
369
-
370
- longitude?: number;
371
-
372
450
  og_scrape_url?: string;
373
451
 
374
452
  original_height?: number;
@@ -377,8 +455,6 @@ export interface Attachment {
377
455
 
378
456
  pretext?: string;
379
457
 
380
- stopped_sharing?: boolean;
381
-
382
458
  text?: string;
383
459
 
384
460
  thumb_url?: string;
@@ -549,6 +625,8 @@ export interface Ban {
549
625
  export interface BanActionRequest {
550
626
  channel_ban_only?: boolean;
551
627
 
628
+ delete_messages?: 'soft' | 'pruning' | 'hard';
629
+
552
630
  ip_ban?: boolean;
553
631
 
554
632
  reason?: string;
@@ -558,6 +636,16 @@ export interface BanActionRequest {
558
636
  timeout?: number;
559
637
  }
560
638
 
639
+ export interface BanOptions {
640
+ duration: number;
641
+
642
+ ip_ban: boolean;
643
+
644
+ reason: string;
645
+
646
+ shadow_ban: boolean;
647
+ }
648
+
561
649
  export interface BanRequest {
562
650
  target_user_id: string;
563
651
 
@@ -565,6 +653,8 @@ export interface BanRequest {
565
653
 
566
654
  channel_cid?: string;
567
655
 
656
+ delete_messages?: 'soft' | 'pruning' | 'hard';
657
+
568
658
  ip_ban?: boolean;
569
659
 
570
660
  reason?: string;
@@ -592,6 +682,10 @@ export interface BanResponse {
592
682
  user?: UserResponse;
593
683
  }
594
684
 
685
+ export interface BlockContentOptions {
686
+ reason: string;
687
+ }
688
+
595
689
  export interface BlockListConfig {
596
690
  enabled: boolean;
597
691
 
@@ -625,6 +719,7 @@ export interface BlockListResponse {
625
719
  export interface BlockListRule {
626
720
  action:
627
721
  | 'flag'
722
+ | 'mask_flag'
628
723
  | 'shadow'
629
724
  | 'remove'
630
725
  | 'bounce'
@@ -748,6 +843,80 @@ export interface BrowserDataResponse {
748
843
  version?: string;
749
844
  }
750
845
 
846
+ export interface BulkImageModerationRequest {
847
+ csv_file: string;
848
+ }
849
+
850
+ export interface BulkImageModerationResponse {
851
+ duration: string;
852
+
853
+ task_id: string;
854
+ }
855
+
856
+ export interface Call {
857
+ app_pk: number;
858
+
859
+ backstage: boolean;
860
+
861
+ channel_cid: string;
862
+
863
+ cid: string;
864
+
865
+ created_at: Date;
866
+
867
+ created_by_user_id: string;
868
+
869
+ current_session_id: string;
870
+
871
+ id: string;
872
+
873
+ last_session_id: string;
874
+
875
+ team: string;
876
+
877
+ thumbnail_url: string;
878
+
879
+ type: string;
880
+
881
+ updated_at: Date;
882
+
883
+ blocked_user_i_ds: string[];
884
+
885
+ blocked_users: User[];
886
+
887
+ egresses: CallEgress[];
888
+
889
+ members: CallMember[];
890
+
891
+ custom: Record<string, any>;
892
+
893
+ deleted_at?: Date;
894
+
895
+ egress_updated_at?: Date;
896
+
897
+ ended_at?: Date;
898
+
899
+ join_ahead_time_seconds?: number;
900
+
901
+ last_heartbeat_at?: Date;
902
+
903
+ member_count?: number;
904
+
905
+ starts_at?: Date;
906
+
907
+ call_type?: CallType;
908
+
909
+ created_by?: User;
910
+
911
+ member_lookup?: MemberLookup;
912
+
913
+ session?: CallSession;
914
+
915
+ settings?: CallSettings;
916
+
917
+ settings_overrides?: CallSettings;
918
+ }
919
+
751
920
  export interface CallAcceptedEvent {
752
921
  call_cid: string;
753
922
 
@@ -826,6 +995,30 @@ export interface CallDurationReportResponse {
826
995
  daily: DailyAggregateCallDurationReportResponse[];
827
996
  }
828
997
 
998
+ export interface CallEgress {
999
+ app_pk: number;
1000
+
1001
+ call_id: string;
1002
+
1003
+ call_type: string;
1004
+
1005
+ egress_id: string;
1006
+
1007
+ egress_type: string;
1008
+
1009
+ instance_ip: string;
1010
+
1011
+ started_at: Date;
1012
+
1013
+ state: string;
1014
+
1015
+ updated_at: Date;
1016
+
1017
+ stopped_at?: Date;
1018
+
1019
+ config?: EgressTaskConfig;
1020
+ }
1021
+
829
1022
  export interface CallEndedEvent {
830
1023
  call_cid: string;
831
1024
 
@@ -835,6 +1028,8 @@ export interface CallEndedEvent {
835
1028
 
836
1029
  type: string;
837
1030
 
1031
+ reason?: string;
1032
+
838
1033
  user?: UserResponse;
839
1034
  }
840
1035
 
@@ -936,6 +1131,22 @@ export interface CallLiveStartedEvent {
936
1131
  type: string;
937
1132
  }
938
1133
 
1134
+ export interface CallMember {
1135
+ created_at: Date;
1136
+
1137
+ role: string;
1138
+
1139
+ updated_at: Date;
1140
+
1141
+ user_id: string;
1142
+
1143
+ custom: Record<string, any>;
1144
+
1145
+ deleted_at?: Date;
1146
+
1147
+ user?: User;
1148
+ }
1149
+
939
1150
  export interface CallMemberAddedEvent {
940
1151
  call_cid: string;
941
1152
 
@@ -1004,6 +1215,32 @@ export interface CallMissedEvent {
1004
1215
  type: string;
1005
1216
  }
1006
1217
 
1218
+ export interface CallModerationBlurEvent {
1219
+ call_cid: string;
1220
+
1221
+ created_at: Date;
1222
+
1223
+ user_id: string;
1224
+
1225
+ custom: Record<string, any>;
1226
+
1227
+ type: string;
1228
+ }
1229
+
1230
+ export interface CallModerationWarningEvent {
1231
+ call_cid: string;
1232
+
1233
+ created_at: Date;
1234
+
1235
+ message: string;
1236
+
1237
+ user_id: string;
1238
+
1239
+ custom: Record<string, any>;
1240
+
1241
+ type: string;
1242
+ }
1243
+
1007
1244
  export interface CallNotificationEvent {
1008
1245
  call_cid: string;
1009
1246
 
@@ -1020,6 +1257,48 @@ export interface CallNotificationEvent {
1020
1257
  type: string;
1021
1258
  }
1022
1259
 
1260
+ export interface CallParticipant {
1261
+ banned: boolean;
1262
+
1263
+ id: string;
1264
+
1265
+ joined_at: Date;
1266
+
1267
+ online: boolean;
1268
+
1269
+ role: string;
1270
+
1271
+ user_session_id: string;
1272
+
1273
+ custom: Record<string, any>;
1274
+
1275
+ teams_role: Record<string, string>;
1276
+
1277
+ ban_expires?: Date;
1278
+
1279
+ created_at?: Date;
1280
+
1281
+ deactivated_at?: Date;
1282
+
1283
+ deleted_at?: Date;
1284
+
1285
+ invisible?: boolean;
1286
+
1287
+ language?: string;
1288
+
1289
+ last_active?: Date;
1290
+
1291
+ last_engaged_at?: Date;
1292
+
1293
+ revoke_tokens_issued_before?: Date;
1294
+
1295
+ updated_at?: Date;
1296
+
1297
+ teams?: string[];
1298
+
1299
+ privacy_settings?: PrivacySettings;
1300
+ }
1301
+
1023
1302
  export interface CallParticipantCountReport {
1024
1303
  histogram: ReportByHistogramBucket[];
1025
1304
  }
@@ -1240,6 +1519,50 @@ export interface CallRtmpBroadcastStoppedEvent {
1240
1519
  type: string;
1241
1520
  }
1242
1521
 
1522
+ export interface CallSession {
1523
+ anonymous_participant_count: number;
1524
+
1525
+ app_pk: number;
1526
+
1527
+ call_id: string;
1528
+
1529
+ call_type: string;
1530
+
1531
+ created_at: Date;
1532
+
1533
+ session_id: string;
1534
+
1535
+ active_sf_us: SFUIDLastSeen[];
1536
+
1537
+ participants: CallParticipant[];
1538
+
1539
+ sfui_ds: string[];
1540
+
1541
+ accepted_by: Record<string, Date>;
1542
+
1543
+ missed_by: Record<string, Date>;
1544
+
1545
+ participants_count_by_role: Record<string, number>;
1546
+
1547
+ rejected_by: Record<string, Date>;
1548
+
1549
+ user_permission_overrides: Record<string, Record<string, boolean>>;
1550
+
1551
+ deleted_at?: Date;
1552
+
1553
+ ended_at?: Date;
1554
+
1555
+ live_ended_at?: Date;
1556
+
1557
+ live_started_at?: Date;
1558
+
1559
+ ring_at?: Date;
1560
+
1561
+ started_at?: Date;
1562
+
1563
+ timer_ends_at?: Date;
1564
+ }
1565
+
1243
1566
  export interface CallSessionEndedEvent {
1244
1567
  call_cid: string;
1245
1568
 
@@ -1441,6 +1764,8 @@ export interface CallTranscription {
1441
1764
 
1442
1765
  filename: string;
1443
1766
 
1767
+ session_id: string;
1768
+
1444
1769
  start_time: Date;
1445
1770
 
1446
1771
  url: string;
@@ -1454,6 +1779,8 @@ export interface CallTranscriptionFailedEvent {
1454
1779
  egress_id: string;
1455
1780
 
1456
1781
  type: string;
1782
+
1783
+ error?: string;
1457
1784
  }
1458
1785
 
1459
1786
  export interface CallTranscriptionReadyEvent {
@@ -1493,8 +1820,6 @@ export interface CallType {
1493
1820
 
1494
1821
  created_at: Date;
1495
1822
 
1496
- enable_live_insights: boolean;
1497
-
1498
1823
  external_storage: string;
1499
1824
 
1500
1825
  name: string;
@@ -1727,6 +2052,8 @@ export interface Channel {
1727
2052
 
1728
2053
  team?: string;
1729
2054
 
2055
+ active_live_locations?: SharedLocation[];
2056
+
1730
2057
  invites?: ChannelMember[];
1731
2058
 
1732
2059
  members?: ChannelMember[];
@@ -1775,6 +2102,8 @@ export interface ChannelConfig {
1775
2102
 
1776
2103
  search: boolean;
1777
2104
 
2105
+ shared_locations: boolean;
2106
+
1778
2107
  skip_last_msg_update_for_system_msgs: boolean;
1779
2108
 
1780
2109
  typing_events: boolean;
@@ -1785,6 +2114,8 @@ export interface ChannelConfig {
1785
2114
 
1786
2115
  url_enrichment: boolean;
1787
2116
 
2117
+ user_message_reminders: boolean;
2118
+
1788
2119
  commands: string[];
1789
2120
 
1790
2121
  blocklist?: string;
@@ -1793,7 +2124,7 @@ export interface ChannelConfig {
1793
2124
 
1794
2125
  partition_size?: number;
1795
2126
 
1796
- partition_ttl?: string;
2127
+ partition_ttl?: number;
1797
2128
 
1798
2129
  allowed_flag_reasons?: string[];
1799
2130
 
@@ -1837,6 +2168,8 @@ export interface ChannelConfigWithInfo {
1837
2168
 
1838
2169
  search: boolean;
1839
2170
 
2171
+ shared_locations: boolean;
2172
+
1840
2173
  skip_last_msg_update_for_system_msgs: boolean;
1841
2174
 
1842
2175
  typing_events: boolean;
@@ -1847,6 +2180,8 @@ export interface ChannelConfigWithInfo {
1847
2180
 
1848
2181
  url_enrichment: boolean;
1849
2182
 
2183
+ user_message_reminders: boolean;
2184
+
1850
2185
  commands: Command[];
1851
2186
 
1852
2187
  blocklist?: string;
@@ -2107,6 +2442,7 @@ export const ChannelOwnCapability = {
2107
2442
  SEND_RESTRICTED_VISIBILITY_MESSAGE: 'send-restricted-visibility-message',
2108
2443
  SEND_TYPING_EVENTS: 'send-typing-events',
2109
2444
  SET_CHANNEL_COOLDOWN: 'set-channel-cooldown',
2445
+ SHARE_LOCATION: 'share-location',
2110
2446
  SKIP_SLOW_MODE: 'skip-slow-mode',
2111
2447
  SLOW_MODE: 'slow-mode',
2112
2448
  TYPING_EVENTS: 'typing-events',
@@ -2199,6 +2535,8 @@ export interface ChannelStateResponse {
2199
2535
 
2200
2536
  watcher_count?: number;
2201
2537
 
2538
+ active_live_locations?: SharedLocationResponseData[];
2539
+
2202
2540
  pending_messages?: PendingMessageResponse[];
2203
2541
 
2204
2542
  read?: ReadStateResponse[];
@@ -2229,6 +2567,8 @@ export interface ChannelStateResponseFields {
2229
2567
 
2230
2568
  watcher_count?: number;
2231
2569
 
2570
+ active_live_locations?: SharedLocationResponseData[];
2571
+
2232
2572
  pending_messages?: PendingMessageResponse[];
2233
2573
 
2234
2574
  read?: ReadStateResponse[];
@@ -2295,6 +2635,8 @@ export interface ChannelTypeConfig {
2295
2635
 
2296
2636
  search: boolean;
2297
2637
 
2638
+ shared_locations: boolean;
2639
+
2298
2640
  skip_last_msg_update_for_system_msgs: boolean;
2299
2641
 
2300
2642
  typing_events: boolean;
@@ -2305,6 +2647,8 @@ export interface ChannelTypeConfig {
2305
2647
 
2306
2648
  url_enrichment: boolean;
2307
2649
 
2650
+ user_message_reminders: boolean;
2651
+
2308
2652
  commands: Command[];
2309
2653
 
2310
2654
  permissions: PolicyRequest[];
@@ -2393,6 +2737,13 @@ export interface CheckExternalStorageResponse {
2393
2737
  export interface CheckPushRequest {
2394
2738
  apn_template?: string;
2395
2739
 
2740
+ event_type?:
2741
+ | 'message.new'
2742
+ | 'message.updated'
2743
+ | 'reaction.new'
2744
+ | 'reaction.updated'
2745
+ | 'notification.reminder_due';
2746
+
2396
2747
  firebase_data_template?: string;
2397
2748
 
2398
2749
  firebase_template?: string;
@@ -2413,6 +2764,8 @@ export interface CheckPushRequest {
2413
2764
  export interface CheckPushResponse {
2414
2765
  duration: string;
2415
2766
 
2767
+ event_type?: string;
2768
+
2416
2769
  rendered_apn_template?: string;
2417
2770
 
2418
2771
  rendered_firebase_template?: string;
@@ -2457,7 +2810,7 @@ export interface CheckResponse {
2457
2810
 
2458
2811
  task_id?: string;
2459
2812
 
2460
- item?: ReviewQueueItem;
2813
+ item?: ReviewQueueItemResponse;
2461
2814
  }
2462
2815
 
2463
2816
  export interface CheckSNSRequest {
@@ -2548,6 +2901,12 @@ export interface Command {
2548
2901
 
2549
2902
  export interface CommitMessageRequest {}
2550
2903
 
2904
+ export interface CompositeAppSettings {
2905
+ json_encoded_settings?: string;
2906
+
2907
+ url?: string;
2908
+ }
2909
+
2551
2910
  export interface ConfigOverrides {
2552
2911
  commands: string[];
2553
2912
 
@@ -2565,11 +2924,15 @@ export interface ConfigOverrides {
2565
2924
 
2566
2925
  replies?: boolean;
2567
2926
 
2927
+ shared_locations?: boolean;
2928
+
2568
2929
  typing_events?: boolean;
2569
2930
 
2570
2931
  uploads?: boolean;
2571
2932
 
2572
2933
  url_enrichment?: boolean;
2934
+
2935
+ user_message_reminders?: boolean;
2573
2936
  }
2574
2937
 
2575
2938
  export interface ConfigResponse {
@@ -2597,7 +2960,17 @@ export interface ConfigResponse {
2597
2960
 
2598
2961
  block_list_config?: BlockListConfig;
2599
2962
 
2963
+ rule_builder_config?: RuleBuilderConfig;
2964
+
2600
2965
  velocity_filter_config?: VelocityFilterConfig;
2966
+
2967
+ video_call_rule_config?: VideoCallRuleConfig;
2968
+ }
2969
+
2970
+ export interface ContentCountRuleParameters {
2971
+ threshold: number;
2972
+
2973
+ time_window: string;
2601
2974
  }
2602
2975
 
2603
2976
  export interface CountByMinuteResponse {
@@ -2691,6 +3064,8 @@ export interface CreateChannelTypeRequest {
2691
3064
 
2692
3065
  search?: boolean;
2693
3066
 
3067
+ shared_locations?: boolean;
3068
+
2694
3069
  skip_last_msg_update_for_system_msgs?: boolean;
2695
3070
 
2696
3071
  typing_events?: boolean;
@@ -2699,6 +3074,8 @@ export interface CreateChannelTypeRequest {
2699
3074
 
2700
3075
  url_enrichment?: boolean;
2701
3076
 
3077
+ user_message_reminders?: boolean;
3078
+
2702
3079
  blocklists?: BlockListOptions[];
2703
3080
 
2704
3081
  commands?: string[];
@@ -2745,6 +3122,8 @@ export interface CreateChannelTypeResponse {
2745
3122
 
2746
3123
  search: boolean;
2747
3124
 
3125
+ shared_locations: boolean;
3126
+
2748
3127
  skip_last_msg_update_for_system_msgs: boolean;
2749
3128
 
2750
3129
  typing_events: boolean;
@@ -2755,6 +3134,8 @@ export interface CreateChannelTypeResponse {
2755
3134
 
2756
3135
  url_enrichment: boolean;
2757
3136
 
3137
+ user_message_reminders: boolean;
3138
+
2758
3139
  commands: string[];
2759
3140
 
2760
3141
  permissions: PolicyRequest[];
@@ -2902,6 +3283,14 @@ export interface CreatePollRequest {
2902
3283
  user?: UserRequest;
2903
3284
  }
2904
3285
 
3286
+ export interface CreateReminderRequest {
3287
+ remind_at?: Date;
3288
+
3289
+ user_id?: string;
3290
+
3291
+ user?: UserRequest;
3292
+ }
3293
+
2905
3294
  export interface CreateRoleRequest {
2906
3295
  name: string;
2907
3296
  }
@@ -3128,6 +3517,10 @@ export interface DeleteRecordingResponse {
3128
3517
  duration: string;
3129
3518
  }
3130
3519
 
3520
+ export interface DeleteReminderResponse {
3521
+ duration: string;
3522
+ }
3523
+
3131
3524
  export interface DeleteSegmentTargetsRequest {
3132
3525
  target_ids: string[];
3133
3526
  }
@@ -3310,6 +3703,24 @@ export interface EgressResponse {
3310
3703
  hls?: EgressHLSResponse;
3311
3704
  }
3312
3705
 
3706
+ export interface EgressTaskConfig {
3707
+ egress_user?: EgressUser;
3708
+
3709
+ frame_recording_egress_config?: FrameRecordingEgressConfig;
3710
+
3711
+ hls_egress_config?: HLSEgressConfig;
3712
+
3713
+ recording_egress_config?: RecordingEgressConfig;
3714
+
3715
+ rtmp_egress_config?: RTMPEgressConfig;
3716
+
3717
+ stt_egress_config?: STTEgressConfig;
3718
+ }
3719
+
3720
+ export interface EgressUser {
3721
+ token?: string;
3722
+ }
3723
+
3313
3724
  export interface EndCallRequest {}
3314
3725
 
3315
3726
  export interface EndCallResponse {
@@ -3474,10 +3885,56 @@ export interface ErrorResult {
3474
3885
  version?: string;
3475
3886
  }
3476
3887
 
3888
+ export interface EventHook {
3889
+ created_at?: Date;
3890
+
3891
+ enabled?: boolean;
3892
+
3893
+ hook_type?: string;
3894
+
3895
+ id?: string;
3896
+
3897
+ sns_auth_type?: string;
3898
+
3899
+ sns_key?: string;
3900
+
3901
+ sns_region?: string;
3902
+
3903
+ sns_role_arn?: string;
3904
+
3905
+ sns_secret?: string;
3906
+
3907
+ sns_topic_arn?: string;
3908
+
3909
+ sqs_auth_type?: string;
3910
+
3911
+ sqs_key?: string;
3912
+
3913
+ sqs_queue_url?: string;
3914
+
3915
+ sqs_region?: string;
3916
+
3917
+ sqs_role_arn?: string;
3918
+
3919
+ sqs_secret?: string;
3920
+
3921
+ timeout_ms?: number;
3922
+
3923
+ updated_at?: Date;
3924
+
3925
+ webhook_url?: string;
3926
+
3927
+ event_types?: string[];
3928
+
3929
+ callback?: AsyncModerationCallbackConfig;
3930
+ }
3931
+
3477
3932
  export interface EventNotificationSettings {
3478
3933
  enabled: boolean;
3479
3934
 
3480
3935
  apns: APNS;
3936
+
3937
+ fcm: FCM;
3481
3938
  }
3482
3939
 
3483
3940
  export interface EventRequest {
@@ -3523,19 +3980,47 @@ export interface ExportUserResponse {
3523
3980
 
3524
3981
  messages?: MessageResponse[];
3525
3982
 
3526
- reactions?: ReactionResponse[];
3983
+ reactions?: ReactionResponse[];
3984
+
3985
+ user?: UserResponse;
3986
+ }
3987
+
3988
+ export interface ExportUsersRequest {
3989
+ user_ids: string[];
3990
+ }
3991
+
3992
+ export interface ExportUsersResponse {
3993
+ duration: string;
3994
+
3995
+ task_id: string;
3996
+ }
3997
+
3998
+ export interface ExternalStorage {
3999
+ abs_account_name?: string;
4000
+
4001
+ abs_client_id?: string;
4002
+
4003
+ abs_client_secret?: string;
4004
+
4005
+ abs_tenant_id?: string;
4006
+
4007
+ bucket?: string;
4008
+
4009
+ gcs_credentials?: string;
4010
+
4011
+ path?: string;
4012
+
4013
+ s3_api_key?: string;
4014
+
4015
+ s3_custom_endpoint?: string;
3527
4016
 
3528
- user?: UserResponse;
3529
- }
4017
+ s3_region?: string;
3530
4018
 
3531
- export interface ExportUsersRequest {
3532
- user_ids: string[];
3533
- }
4019
+ s3_secret_key?: string;
3534
4020
 
3535
- export interface ExportUsersResponse {
3536
- duration: string;
4021
+ storage_name?: string;
3537
4022
 
3538
- task_id: string;
4023
+ storage_type?: number;
3539
4024
  }
3540
4025
 
3541
4026
  export interface ExternalStorageResponse {
@@ -3548,6 +4033,10 @@ export interface ExternalStorageResponse {
3548
4033
  type: 's3' | 'gcs' | 'abs';
3549
4034
  }
3550
4035
 
4036
+ export interface FCM {
4037
+ data?: Record<string, any>;
4038
+ }
4039
+
3551
4040
  export interface FeedsModerationTemplateConfig {
3552
4041
  config_key: string;
3553
4042
 
@@ -3603,49 +4092,53 @@ export interface FirebaseConfig {
3603
4092
  }
3604
4093
 
3605
4094
  export interface FirebaseConfigFields {
3606
- apn_template: string;
3607
-
3608
- data_template: string;
3609
-
3610
4095
  enabled: boolean;
3611
4096
 
3612
- notification_template: string;
4097
+ apn_template?: string;
3613
4098
 
3614
4099
  credentials_json?: string;
3615
4100
 
4101
+ data_template?: string;
4102
+
4103
+ notification_template?: string;
4104
+
3616
4105
  server_key?: string;
3617
4106
  }
3618
4107
 
3619
4108
  export interface Flag {
3620
4109
  created_at: Date;
3621
4110
 
3622
- entity_id: string;
3623
-
3624
- entity_type: string;
4111
+ created_by_automod: boolean;
3625
4112
 
3626
4113
  updated_at: Date;
3627
4114
 
3628
- result: Array<Record<string, any>>;
3629
-
3630
- entity_creator_id?: string;
3631
-
3632
- moderation_payload_hash?: string;
4115
+ approved_at?: Date;
3633
4116
 
3634
4117
  reason?: string;
3635
4118
 
3636
- review_queue_item_id?: string;
4119
+ rejected_at?: Date;
3637
4120
 
3638
- type?: string;
4121
+ reviewed_at?: Date;
3639
4122
 
3640
- labels?: string[];
4123
+ reviewed_by?: string;
4124
+
4125
+ target_message_id?: string;
3641
4126
 
3642
4127
  custom?: Record<string, any>;
3643
4128
 
3644
- moderation_payload?: ModerationPayload;
4129
+ details?: FlagDetails;
4130
+
4131
+ target_message?: Message;
4132
+
4133
+ target_user?: User;
3645
4134
 
3646
4135
  user?: User;
3647
4136
  }
3648
4137
 
4138
+ export interface FlagContentOptions {
4139
+ reason: string;
4140
+ }
4141
+
3649
4142
  export interface FlagDetails {
3650
4143
  original_text: string;
3651
4144
 
@@ -3712,6 +4205,10 @@ export interface FlagUpdatedEvent {
3712
4205
  user?: UserResponse;
3713
4206
  }
3714
4207
 
4208
+ export interface FlagUserOptions {
4209
+ reason: string;
4210
+ }
4211
+
3715
4212
  export interface FrameRecordSettings {
3716
4213
  capture_interval_in_seconds: number;
3717
4214
 
@@ -3720,6 +4217,16 @@ export interface FrameRecordSettings {
3720
4217
  quality?: string;
3721
4218
  }
3722
4219
 
4220
+ export interface FrameRecordingEgressConfig {
4221
+ capture_interval_in_seconds?: number;
4222
+
4223
+ storage_name?: string;
4224
+
4225
+ external_storage?: ExternalStorage;
4226
+
4227
+ quality?: Quality;
4228
+ }
4229
+
3723
4230
  export interface FrameRecordingResponse {
3724
4231
  status: string;
3725
4232
  }
@@ -3822,6 +4329,18 @@ export interface GeofenceSettingsResponse {
3822
4329
  names: string[];
3823
4330
  }
3824
4331
 
4332
+ export interface GetActiveCallsStatusResponse {
4333
+ duration: string;
4334
+
4335
+ end_time: Date;
4336
+
4337
+ start_time: Date;
4338
+
4339
+ metrics?: ActiveCallsMetrics;
4340
+
4341
+ summary?: ActiveCallsSummary;
4342
+ }
4343
+
3825
4344
  export interface GetApplicationResponse {
3826
4345
  duration: string;
3827
4346
 
@@ -3847,6 +4366,8 @@ export interface GetCallReportResponse {
3847
4366
 
3848
4367
  report: ReportResponse;
3849
4368
 
4369
+ video_reactions?: VideoReactionsResponse[];
4370
+
3850
4371
  chat_activity?: ChatActivityStatsResponse;
3851
4372
  }
3852
4373
 
@@ -3923,6 +4444,8 @@ export interface GetChannelTypeResponse {
3923
4444
 
3924
4445
  search: boolean;
3925
4446
 
4447
+ shared_locations: boolean;
4448
+
3926
4449
  skip_last_msg_update_for_system_msgs: boolean;
3927
4450
 
3928
4451
  typing_events: boolean;
@@ -3933,6 +4456,8 @@ export interface GetChannelTypeResponse {
3933
4456
 
3934
4457
  url_enrichment: boolean;
3935
4458
 
4459
+ user_message_reminders: boolean;
4460
+
3936
4461
  commands: Command[];
3937
4462
 
3938
4463
  permissions: PolicyRequest[];
@@ -4037,10 +4562,6 @@ export interface GetOGResponse {
4037
4562
 
4038
4563
  image_url?: string;
4039
4564
 
4040
- latitude?: number;
4041
-
4042
- longitude?: number;
4043
-
4044
4565
  og_scrape_url?: string;
4045
4566
 
4046
4567
  original_height?: number;
@@ -4049,8 +4570,6 @@ export interface GetOGResponse {
4049
4570
 
4050
4571
  pretext?: string;
4051
4572
 
4052
- stopped_sharing?: boolean;
4053
-
4054
4573
  text?: string;
4055
4574
 
4056
4575
  thumb_url?: string;
@@ -4092,6 +4611,12 @@ export interface GetOrCreateCallResponse {
4092
4611
  call: CallResponse;
4093
4612
  }
4094
4613
 
4614
+ export interface GetPushTemplatesResponse {
4615
+ duration: string;
4616
+
4617
+ templates: PushTemplate[];
4618
+ }
4619
+
4095
4620
  export interface GetRateLimitsResponse {
4096
4621
  duration: string;
4097
4622
 
@@ -4180,6 +4705,16 @@ export interface GroupedStatsResponse {
4180
4705
  unique: number;
4181
4706
  }
4182
4707
 
4708
+ export interface HLSEgressConfig {
4709
+ playlist_url?: string;
4710
+
4711
+ start_unix_nano?: number;
4712
+
4713
+ qualities?: Quality[];
4714
+
4715
+ composite_app_settings?: CompositeAppSettings;
4716
+ }
4717
+
4183
4718
  export interface HLSSettings {
4184
4719
  auto_on: boolean;
4185
4720
 
@@ -4210,6 +4745,12 @@ export interface HLSSettingsResponse {
4210
4745
  layout: LayoutSettingsResponse;
4211
4746
  }
4212
4747
 
4748
+ export interface HarmConfig {
4749
+ severity: number;
4750
+
4751
+ action_sequences: ActionSequence[];
4752
+ }
4753
+
4213
4754
  export interface HideChannelRequest {
4214
4755
  clear_history?: boolean;
4215
4756
 
@@ -4238,6 +4779,10 @@ export interface HuaweiConfigFields {
4238
4779
  secret?: string;
4239
4780
  }
4240
4781
 
4782
+ export interface ImageContentParameters {
4783
+ harm_labels?: string[];
4784
+ }
4785
+
4241
4786
  export interface ImageData {
4242
4787
  frames: string;
4243
4788
 
@@ -4250,6 +4795,14 @@ export interface ImageData {
4250
4795
  width: string;
4251
4796
  }
4252
4797
 
4798
+ export interface ImageRuleParameters {
4799
+ threshold: number;
4800
+
4801
+ time_window: string;
4802
+
4803
+ harm_labels?: string[];
4804
+ }
4805
+
4253
4806
  export interface ImageSize {
4254
4807
  crop?: 'top' | 'bottom' | 'left' | 'right' | 'center';
4255
4808
 
@@ -4320,6 +4873,14 @@ export interface ImportTaskHistory {
4320
4873
  prev_state: string;
4321
4874
  }
4322
4875
 
4876
+ export interface JoinCallAPIMetrics {
4877
+ failures: number;
4878
+
4879
+ total: number;
4880
+
4881
+ latency?: ActiveCallsLatencyStats;
4882
+ }
4883
+
4323
4884
  export interface Label {
4324
4885
  name: string;
4325
4886
 
@@ -4379,21 +4940,33 @@ export interface LimitInfo {
4379
4940
  }
4380
4941
 
4381
4942
  export interface LimitsSettings {
4943
+ max_participants_exclude_roles: string[];
4944
+
4382
4945
  max_duration_seconds?: number;
4383
4946
 
4384
4947
  max_participants?: number;
4948
+
4949
+ max_participants_exclude_owner?: boolean;
4385
4950
  }
4386
4951
 
4387
4952
  export interface LimitsSettingsRequest {
4388
4953
  max_duration_seconds?: number;
4389
4954
 
4390
4955
  max_participants?: number;
4956
+
4957
+ max_participants_exclude_owner?: boolean;
4958
+
4959
+ max_participants_exclude_roles?: string[];
4391
4960
  }
4392
4961
 
4393
4962
  export interface LimitsSettingsResponse {
4963
+ max_participants_exclude_roles: string[];
4964
+
4394
4965
  max_duration_seconds?: number;
4395
4966
 
4396
4967
  max_participants?: number;
4968
+
4969
+ max_participants_exclude_owner?: boolean;
4397
4970
  }
4398
4971
 
4399
4972
  export interface ListBlockListResponse {
@@ -4526,6 +5099,10 @@ export interface MemberAddedEvent {
4526
5099
  user?: User;
4527
5100
  }
4528
5101
 
5102
+ export interface MemberLookup {
5103
+ limit: number;
5104
+ }
5105
+
4529
5106
  export interface MemberRemovedEvent {
4530
5107
  channel_id: string;
4531
5108
 
@@ -4669,6 +5246,10 @@ export interface Message {
4669
5246
 
4670
5247
  quoted_message?: Message;
4671
5248
 
5249
+ reminder?: MessageReminder;
5250
+
5251
+ shared_location?: SharedLocation;
5252
+
4672
5253
  user?: User;
4673
5254
  }
4674
5255
 
@@ -4858,6 +5439,28 @@ export interface MessageReadEvent {
4858
5439
  user?: UserResponseCommonFields;
4859
5440
  }
4860
5441
 
5442
+ export interface MessageReminder {
5443
+ channel_cid: string;
5444
+
5445
+ created_at: Date;
5446
+
5447
+ message_id: string;
5448
+
5449
+ task_id: string;
5450
+
5451
+ updated_at: Date;
5452
+
5453
+ user_id: string;
5454
+
5455
+ remind_at?: Date;
5456
+
5457
+ channel?: Channel;
5458
+
5459
+ message?: Message;
5460
+
5461
+ user?: User;
5462
+ }
5463
+
4861
5464
  export interface MessageRequest {
4862
5465
  html?: string;
4863
5466
 
@@ -4895,6 +5498,8 @@ export interface MessageRequest {
4895
5498
 
4896
5499
  custom?: Record<string, any>;
4897
5500
 
5501
+ shared_location?: SharedLocation;
5502
+
4898
5503
  user?: UserRequest;
4899
5504
  }
4900
5505
 
@@ -4978,6 +5583,10 @@ export interface MessageResponse {
4978
5583
  quoted_message?: MessageResponse;
4979
5584
 
4980
5585
  reaction_groups?: Record<string, ReactionGroupResponse>;
5586
+
5587
+ reminder?: ReminderResponseData;
5588
+
5589
+ shared_location?: SharedLocationResponseData;
4981
5590
  }
4982
5591
 
4983
5592
  export interface MessageStatsResponse {
@@ -5126,6 +5735,10 @@ export interface MessageWithChannelResponse {
5126
5735
  quoted_message?: MessageResponse;
5127
5736
 
5128
5737
  reaction_groups?: Record<string, ReactionGroupResponse>;
5738
+
5739
+ reminder?: ReminderResponseData;
5740
+
5741
+ shared_location?: SharedLocationResponseData;
5129
5742
  }
5130
5743
 
5131
5744
  export interface ModerationActionConfig {
@@ -5172,6 +5785,44 @@ export interface ModerationCustomActionEvent {
5172
5785
  user?: User;
5173
5786
  }
5174
5787
 
5788
+ export interface ModerationDashboardPreferences {
5789
+ flag_user_on_flagged_content?: boolean;
5790
+
5791
+ media_queue_blur_enabled?: boolean;
5792
+ }
5793
+
5794
+ export interface ModerationFlagResponse {
5795
+ created_at: string;
5796
+
5797
+ entity_id: string;
5798
+
5799
+ entity_type: string;
5800
+
5801
+ id: string;
5802
+
5803
+ type: string;
5804
+
5805
+ updated_at: string;
5806
+
5807
+ entity_creator_id?: string;
5808
+
5809
+ reason?: string;
5810
+
5811
+ review_queue_item_id?: string;
5812
+
5813
+ labels?: string[];
5814
+
5815
+ result?: Array<Record<string, any>>;
5816
+
5817
+ custom?: Record<string, any>;
5818
+
5819
+ moderation_payload?: ModerationPayload;
5820
+
5821
+ review_queue_item?: ReviewQueueItemResponse;
5822
+
5823
+ user?: UserResponse;
5824
+ }
5825
+
5175
5826
  export interface ModerationFlaggedEvent {
5176
5827
  created_at: Date;
5177
5828
 
@@ -5445,6 +6096,8 @@ export interface OwnUser {
5445
6096
 
5446
6097
  custom: Record<string, any>;
5447
6098
 
6099
+ total_unread_count_by_team: Record<string, number>;
6100
+
5448
6101
  deactivated_at?: Date;
5449
6102
 
5450
6103
  deleted_at?: Date;
@@ -5524,6 +6177,8 @@ export interface OwnUserResponse {
5524
6177
  push_preferences?: PushPreferences;
5525
6178
 
5526
6179
  teams_role?: Record<string, string>;
6180
+
6181
+ total_unread_count_by_team?: Record<string, number>;
5527
6182
  }
5528
6183
 
5529
6184
  export interface PagerResponse {
@@ -5576,6 +6231,26 @@ export interface ParticipantReportResponse {
5576
6231
  subscribers?: SubscriberStatsResponse;
5577
6232
  }
5578
6233
 
6234
+ export interface PendingMessageEvent {
6235
+ created_at: Date;
6236
+
6237
+ method: string;
6238
+
6239
+ custom: Record<string, any>;
6240
+
6241
+ type: string;
6242
+
6243
+ received_at?: Date;
6244
+
6245
+ channel?: Channel;
6246
+
6247
+ message?: Message;
6248
+
6249
+ metadata?: Record<string, string>;
6250
+
6251
+ user?: User;
6252
+ }
6253
+
5579
6254
  export interface PendingMessageResponse {
5580
6255
  channel?: ChannelResponse;
5581
6256
 
@@ -5874,6 +6549,18 @@ export interface PrivacySettingsResponse {
5874
6549
  typing_indicators?: TypingIndicatorsResponse;
5875
6550
  }
5876
6551
 
6552
+ export interface PublisherAllMetrics {
6553
+ audio?: PublisherAudioMetrics;
6554
+
6555
+ rtt_ms?: ActiveCallsLatencyStats;
6556
+
6557
+ video?: PublisherVideoMetrics;
6558
+ }
6559
+
6560
+ export interface PublisherAudioMetrics {
6561
+ jitter_ms?: ActiveCallsLatencyStats;
6562
+ }
6563
+
5877
6564
  export interface PublisherStatsResponse {
5878
6565
  total: number;
5879
6566
 
@@ -5882,8 +6569,20 @@ export interface PublisherStatsResponse {
5882
6569
  by_track?: TrackStatsResponse[];
5883
6570
  }
5884
6571
 
6572
+ export interface PublisherVideoMetrics {
6573
+ fps_30?: ActiveCallsFPSStats;
6574
+
6575
+ frame_encoding_time_ms?: ActiveCallsLatencyStats;
6576
+
6577
+ jitter_ms?: ActiveCallsLatencyStats;
6578
+ }
6579
+
6580
+ export interface PublishersMetrics {
6581
+ all?: PublisherAllMetrics;
6582
+ }
6583
+
5885
6584
  export interface PushConfig {
5886
- version: 'v1' | 'v2';
6585
+ version: 'v1' | 'v2' | 'v3';
5887
6586
 
5888
6587
  offline_only?: boolean;
5889
6588
  }
@@ -5911,6 +6610,8 @@ export interface PushNotificationSettingsResponse {
5911
6610
  }
5912
6611
 
5913
6612
  export interface PushPreferenceInput {
6613
+ call_level?: 'all' | 'none' | 'default';
6614
+
5914
6615
  channel_cid?: string;
5915
6616
 
5916
6617
  chat_level?: 'all' | 'mentions' | 'none' | 'default';
@@ -5982,6 +6683,8 @@ export interface PushProvider {
5982
6683
  xiaomi_app_secret?: string;
5983
6684
 
5984
6685
  xiaomi_package_name?: string;
6686
+
6687
+ push_templates?: PushTemplate[];
5985
6688
  }
5986
6689
 
5987
6690
  export interface PushProviderResponse {
@@ -6042,6 +6745,36 @@ export interface PushProviderResponse {
6042
6745
  xiaomi_package_name?: string;
6043
6746
  }
6044
6747
 
6748
+ export interface PushTemplate {
6749
+ created_at: Date;
6750
+
6751
+ enable_push: boolean;
6752
+
6753
+ event_type:
6754
+ | 'message.new'
6755
+ | 'message.updated'
6756
+ | 'reaction.new'
6757
+ | 'notification.reminder_due';
6758
+
6759
+ updated_at: Date;
6760
+
6761
+ template?: string;
6762
+ }
6763
+
6764
+ export interface Quality {
6765
+ bitdepth?: number;
6766
+
6767
+ framerate?: number;
6768
+
6769
+ height?: number;
6770
+
6771
+ name?: string;
6772
+
6773
+ video_bitrate?: number;
6774
+
6775
+ width?: number;
6776
+ }
6777
+
6045
6778
  export interface QualityScoreReport {
6046
6779
  histogram: ReportByHistogramBucket[];
6047
6780
  }
@@ -6368,6 +7101,28 @@ export interface QueryModerationConfigsResponse {
6368
7101
  prev?: string;
6369
7102
  }
6370
7103
 
7104
+ export interface QueryModerationFlagsRequest {
7105
+ limit?: number;
7106
+
7107
+ next?: string;
7108
+
7109
+ prev?: string;
7110
+
7111
+ sort?: SortParam[];
7112
+
7113
+ filter?: Record<string, any>;
7114
+ }
7115
+
7116
+ export interface QueryModerationFlagsResponse {
7117
+ duration: string;
7118
+
7119
+ flags: ModerationFlagResponse[];
7120
+
7121
+ next?: string;
7122
+
7123
+ prev?: string;
7124
+ }
7125
+
6371
7126
  export interface QueryModerationLogsRequest {
6372
7127
  limit?: number;
6373
7128
 
@@ -6421,14 +7176,40 @@ export interface QueryPollsRequest {
6421
7176
  export interface QueryPollsResponse {
6422
7177
  duration: string;
6423
7178
 
6424
- polls: PollResponseData[];
7179
+ polls: PollResponseData[];
7180
+
7181
+ next?: string;
7182
+
7183
+ prev?: string;
7184
+ }
7185
+
7186
+ export interface QueryReactionsRequest {
7187
+ limit?: number;
7188
+
7189
+ next?: string;
7190
+
7191
+ prev?: string;
7192
+
7193
+ user_id?: string;
7194
+
7195
+ sort?: SortParamRequest[];
7196
+
7197
+ filter?: Record<string, any>;
7198
+
7199
+ user?: UserRequest;
7200
+ }
7201
+
7202
+ export interface QueryReactionsResponse {
7203
+ duration: string;
7204
+
7205
+ reactions: ReactionResponse[];
6425
7206
 
6426
7207
  next?: string;
6427
7208
 
6428
7209
  prev?: string;
6429
7210
  }
6430
7211
 
6431
- export interface QueryReactionsRequest {
7212
+ export interface QueryRemindersRequest {
6432
7213
  limit?: number;
6433
7214
 
6434
7215
  next?: string;
@@ -6444,10 +7225,10 @@ export interface QueryReactionsRequest {
6444
7225
  user?: UserRequest;
6445
7226
  }
6446
7227
 
6447
- export interface QueryReactionsResponse {
7228
+ export interface QueryRemindersResponse {
6448
7229
  duration: string;
6449
7230
 
6450
- reactions: ReactionResponse[];
7231
+ reminders: ReminderResponseData[];
6451
7232
 
6452
7233
  next?: string;
6453
7234
 
@@ -6636,6 +7417,14 @@ export interface RTMPBroadcastRequest {
6636
7417
  layout?: LayoutSettingsRequest;
6637
7418
  }
6638
7419
 
7420
+ export interface RTMPEgressConfig {
7421
+ rtmp_location?: string;
7422
+
7423
+ composite_app_settings?: CompositeAppSettings;
7424
+
7425
+ quality?: Quality;
7426
+ }
7427
+
6639
7428
  export interface RTMPIngress {
6640
7429
  address: string;
6641
7430
  }
@@ -6898,6 +7687,40 @@ export interface RecordSettingsResponse {
6898
7687
  layout: LayoutSettingsResponse;
6899
7688
  }
6900
7689
 
7690
+ export interface RecordingEgressConfig {
7691
+ audio_only?: boolean;
7692
+
7693
+ storage_name?: string;
7694
+
7695
+ composite_app_settings?: CompositeAppSettings;
7696
+
7697
+ external_storage?: ExternalStorage;
7698
+
7699
+ quality?: Quality;
7700
+
7701
+ video_orientation_hint?: VideoOrientation;
7702
+ }
7703
+
7704
+ export interface ReminderResponseData {
7705
+ channel_cid: string;
7706
+
7707
+ created_at: Date;
7708
+
7709
+ message_id: string;
7710
+
7711
+ updated_at: Date;
7712
+
7713
+ user_id: string;
7714
+
7715
+ remind_at?: Date;
7716
+
7717
+ channel?: ChannelResponse;
7718
+
7719
+ message?: Message;
7720
+
7721
+ user?: User;
7722
+ }
7723
+
6901
7724
  export interface ReportByHistogramBucket {
6902
7725
  category: string;
6903
7726
 
@@ -6975,12 +7798,16 @@ export interface ReviewQueueItem {
6975
7798
 
6976
7799
  teams: string[];
6977
7800
 
7801
+ completed_at: NullTime;
7802
+
6978
7803
  reviewed_at: NullTime;
6979
7804
 
6980
7805
  activity?: EnrichedActivity;
6981
7806
 
6982
7807
  assigned_to?: User;
6983
7808
 
7809
+ call?: Call;
7810
+
6984
7811
  entity_creator?: EntityCreator;
6985
7812
 
6986
7813
  feeds_v2_activity?: EnrichedActivity;
@@ -7055,6 +7882,8 @@ export interface ReviewQueueItemResponse {
7055
7882
 
7056
7883
  assigned_to?: UserResponse;
7057
7884
 
7885
+ call?: CallResponse;
7886
+
7058
7887
  entity_creator?: EntityCreatorResponse;
7059
7888
 
7060
7889
  feeds_v2_activity?: EnrichedActivity;
@@ -7121,45 +7950,71 @@ export interface Role {
7121
7950
  }
7122
7951
 
7123
7952
  export interface RuleBuilderAction {
7124
- duration?: number;
7953
+ type: string;
7125
7954
 
7126
- ip_ban?: boolean;
7955
+ ban_options?: BanOptions;
7127
7956
 
7128
- reason?: string;
7957
+ flag_content_options?: FlagContentOptions;
7129
7958
 
7130
- shadow_ban?: boolean;
7959
+ flag_user_options?: FlagUserOptions;
7131
7960
 
7132
- type?: string;
7961
+ remove_content_options?: BlockContentOptions;
7133
7962
  }
7134
7963
 
7135
7964
  export interface RuleBuilderCondition {
7136
- provider?: string;
7965
+ type: string;
7137
7966
 
7138
- threshold?: number;
7967
+ confidence?: number;
7139
7968
 
7140
- time_window?: string;
7969
+ content_count_rule_params?: ContentCountRuleParameters;
7141
7970
 
7142
- labels?: string[];
7971
+ image_content_params?: ImageContentParameters;
7972
+
7973
+ image_rule_params?: ImageRuleParameters;
7974
+
7975
+ text_content_params?: TextContentParameters;
7976
+
7977
+ text_rule_params?: TextRuleParameters;
7978
+
7979
+ user_created_within_params?: UserCreatedWithinParameters;
7980
+
7981
+ user_rule_params?: UserRuleParameters;
7982
+
7983
+ video_content_params?: VideoContentParameters;
7984
+
7985
+ video_rule_params?: VideoRuleParameters;
7143
7986
  }
7144
7987
 
7145
- export interface RuleBuilderConfig {
7146
- async?: boolean;
7988
+ export interface RuleBuilderConditionGroup {
7989
+ logic: string;
7147
7990
 
7148
- enabled?: boolean;
7991
+ conditions: RuleBuilderCondition[];
7992
+ }
7993
+
7994
+ export interface RuleBuilderConfig {
7995
+ rules: RuleBuilderRule[];
7149
7996
 
7150
- rules?: RuleBuilderRule[];
7997
+ async?: boolean;
7151
7998
  }
7152
7999
 
7153
8000
  export interface RuleBuilderRule {
7154
- enabled?: boolean;
8001
+ enabled: boolean;
7155
8002
 
7156
- id?: string;
8003
+ id: string;
7157
8004
 
7158
- name?: string;
8005
+ name: string;
8006
+
8007
+ rule_type: string;
8008
+
8009
+ action: RuleBuilderAction;
8010
+
8011
+ cooldown_period?: string;
8012
+
8013
+ logic?: string;
7159
8014
 
7160
8015
  conditions?: RuleBuilderCondition[];
7161
8016
 
7162
- action?: RuleBuilderAction;
8017
+ groups?: RuleBuilderConditionGroup[];
7163
8018
  }
7164
8019
 
7165
8020
  export interface S3Request {
@@ -7180,6 +8035,32 @@ export interface SDKUsageReportResponse {
7180
8035
  daily: DailyAggregateSDKUsageReportResponse[];
7181
8036
  }
7182
8037
 
8038
+ export interface SFUIDLastSeen {
8039
+ id: string;
8040
+
8041
+ last_seen: Date;
8042
+
8043
+ process_start_time: number;
8044
+ }
8045
+
8046
+ export interface STTEgressConfig {
8047
+ closed_captions_enabled?: boolean;
8048
+
8049
+ language?: string;
8050
+
8051
+ storage_name?: string;
8052
+
8053
+ translations_enabled?: boolean;
8054
+
8055
+ upload_transcriptions?: boolean;
8056
+
8057
+ whisper_server_base_url?: string;
8058
+
8059
+ translation_languages?: string[];
8060
+
8061
+ external_storage?: ExternalStorage;
8062
+ }
8063
+
7183
8064
  export interface ScreensharingSettings {
7184
8065
  access_request_enabled: boolean;
7185
8066
 
@@ -7320,6 +8201,10 @@ export interface SearchResultMessage {
7320
8201
  quoted_message?: MessageResponse;
7321
8202
 
7322
8203
  reaction_groups?: Record<string, ReactionGroupResponse>;
8204
+
8205
+ reminder?: ReminderResponseData;
8206
+
8207
+ shared_location?: SharedLocationResponseData;
7323
8208
  }
7324
8209
 
7325
8210
  export interface SearchWarning {
@@ -7466,6 +8351,86 @@ export interface SessionSettingsResponse {
7466
8351
 
7467
8352
  export interface ShadowBlockActionRequest {}
7468
8353
 
8354
+ export interface SharedLocation {
8355
+ channel_cid: string;
8356
+
8357
+ created_at: Date;
8358
+
8359
+ created_by_device_id: string;
8360
+
8361
+ message_id: string;
8362
+
8363
+ updated_at: Date;
8364
+
8365
+ user_id: string;
8366
+
8367
+ end_at?: Date;
8368
+
8369
+ latitude?: number;
8370
+
8371
+ longitude?: number;
8372
+
8373
+ channel?: Channel;
8374
+
8375
+ message?: Message;
8376
+ }
8377
+
8378
+ export interface SharedLocationResponse {
8379
+ channel_cid: string;
8380
+
8381
+ created_at: Date;
8382
+
8383
+ created_by_device_id: string;
8384
+
8385
+ duration: string;
8386
+
8387
+ latitude: number;
8388
+
8389
+ longitude: number;
8390
+
8391
+ message_id: string;
8392
+
8393
+ updated_at: Date;
8394
+
8395
+ user_id: string;
8396
+
8397
+ end_at?: Date;
8398
+
8399
+ channel?: ChannelResponse;
8400
+
8401
+ message?: MessageResponse;
8402
+ }
8403
+
8404
+ export interface SharedLocationResponseData {
8405
+ channel_cid: string;
8406
+
8407
+ created_at: Date;
8408
+
8409
+ created_by_device_id: string;
8410
+
8411
+ latitude: number;
8412
+
8413
+ longitude: number;
8414
+
8415
+ message_id: string;
8416
+
8417
+ updated_at: Date;
8418
+
8419
+ user_id: string;
8420
+
8421
+ end_at?: Date;
8422
+
8423
+ channel?: ChannelResponse;
8424
+
8425
+ message?: MessageResponse;
8426
+ }
8427
+
8428
+ export interface SharedLocationsResponse {
8429
+ duration: string;
8430
+
8431
+ active_live_locations: SharedLocationResponseData[];
8432
+ }
8433
+
7469
8434
  export interface ShowChannelRequest {
7470
8435
  user_id?: string;
7471
8436
 
@@ -7476,6 +8441,12 @@ export interface ShowChannelResponse {
7476
8441
  duration: string;
7477
8442
  }
7478
8443
 
8444
+ export interface SortParam {
8445
+ direction?: number;
8446
+
8447
+ field?: string;
8448
+ }
8449
+
7479
8450
  export interface SortParamRequest {
7480
8451
  direction?: number;
7481
8452
 
@@ -7704,7 +8675,9 @@ export interface SubmitActionRequest {
7704
8675
  | 'restore'
7705
8676
  | 'delete_user'
7706
8677
  | 'unblock'
7707
- | 'shadow_block';
8678
+ | 'shadow_block'
8679
+ | 'kick_user'
8680
+ | 'end_call';
7708
8681
 
7709
8682
  item_id: string;
7710
8683
 
@@ -7732,7 +8705,23 @@ export interface SubmitActionRequest {
7732
8705
  export interface SubmitActionResponse {
7733
8706
  duration: string;
7734
8707
 
7735
- item?: ReviewQueueItem;
8708
+ item?: ReviewQueueItemResponse;
8709
+ }
8710
+
8711
+ export interface SubscriberAllMetrics {
8712
+ audio?: SubscriberAudioMetrics;
8713
+
8714
+ rtt_ms?: ActiveCallsLatencyStats;
8715
+
8716
+ video?: SubscriberVideoMetrics;
8717
+ }
8718
+
8719
+ export interface SubscriberAudioMetrics {
8720
+ concealment_pct?: ActiveCallsLatencyStats;
8721
+
8722
+ jitter_ms?: ActiveCallsLatencyStats;
8723
+
8724
+ packets_lost_pct?: ActiveCallsLatencyStats;
7736
8725
  }
7737
8726
 
7738
8727
  export interface SubscriberStatsResponse {
@@ -7743,6 +8732,18 @@ export interface SubscriberStatsResponse {
7743
8732
  unique: number;
7744
8733
  }
7745
8734
 
8735
+ export interface SubscriberVideoMetrics {
8736
+ fps_30?: ActiveCallsFPSStats;
8737
+
8738
+ jitter_ms?: ActiveCallsLatencyStats;
8739
+
8740
+ packets_lost_pct?: ActiveCallsLatencyStats;
8741
+ }
8742
+
8743
+ export interface SubscribersMetrics {
8744
+ all?: SubscriberAllMetrics;
8745
+ }
8746
+
7746
8747
  export interface TargetResolution {
7747
8748
  bitrate: number;
7748
8749
 
@@ -7751,6 +8752,30 @@ export interface TargetResolution {
7751
8752
  width: number;
7752
8753
  }
7753
8754
 
8755
+ export interface TextContentParameters {
8756
+ contains_url?: boolean;
8757
+
8758
+ severity?: string;
8759
+
8760
+ blocklist_match?: string[];
8761
+
8762
+ harm_labels?: string[];
8763
+ }
8764
+
8765
+ export interface TextRuleParameters {
8766
+ threshold: number;
8767
+
8768
+ time_window: string;
8769
+
8770
+ contains_url?: boolean;
8771
+
8772
+ severity?: string;
8773
+
8774
+ blocklist_match?: string[];
8775
+
8776
+ harm_labels?: string[];
8777
+ }
8778
+
7754
8779
  export interface ThreadParticipant {
7755
8780
  app_pk: number;
7756
8781
 
@@ -8100,6 +9125,8 @@ export interface TruncateChannelRequest {
8100
9125
 
8101
9126
  user_id?: string;
8102
9127
 
9128
+ member_ids?: string[];
9129
+
8103
9130
  message?: MessageRequest;
8104
9131
 
8105
9132
  user?: UserRequest;
@@ -8235,6 +9262,8 @@ export interface UnreadCountsResponse {
8235
9262
  channels: UnreadCountsChannel[];
8236
9263
 
8237
9264
  threads: UnreadCountsThread[];
9265
+
9266
+ total_unread_count_by_team: Record<string, number>;
8238
9267
  }
8239
9268
 
8240
9269
  export interface UnreadCountsThread {
@@ -8306,6 +9335,8 @@ export interface UpdateAppRequest {
8306
9335
 
8307
9336
  allowed_flag_reasons?: string[];
8308
9337
 
9338
+ event_hooks?: EventHook[];
9339
+
8309
9340
  image_moderation_block_labels?: string[];
8310
9341
 
8311
9342
  image_moderation_labels?: string[];
@@ -8330,6 +9361,8 @@ export interface UpdateAppRequest {
8330
9361
 
8331
9362
  image_upload_config?: FileUploadConfig;
8332
9363
 
9364
+ moderation_dashboard_preferences?: ModerationDashboardPreferences;
9365
+
8333
9366
  push_config?: PushConfig;
8334
9367
 
8335
9368
  xiaomi_config?: XiaomiConfig;
@@ -8504,6 +9537,8 @@ export interface UpdateChannelTypeRequest {
8504
9537
 
8505
9538
  search?: boolean;
8506
9539
 
9540
+ shared_locations?: boolean;
9541
+
8507
9542
  skip_last_msg_update_for_system_msgs?: boolean;
8508
9543
 
8509
9544
  typing_events?: boolean;
@@ -8512,6 +9547,8 @@ export interface UpdateChannelTypeRequest {
8512
9547
 
8513
9548
  url_enrichment?: boolean;
8514
9549
 
9550
+ user_message_reminders?: boolean;
9551
+
8515
9552
  allowed_flag_reasons?: string[];
8516
9553
 
8517
9554
  blocklists?: BlockListOptions[];
@@ -8562,6 +9599,8 @@ export interface UpdateChannelTypeResponse {
8562
9599
 
8563
9600
  search: boolean;
8564
9601
 
9602
+ shared_locations: boolean;
9603
+
8565
9604
  skip_last_msg_update_for_system_msgs: boolean;
8566
9605
 
8567
9606
  typing_events: boolean;
@@ -8572,6 +9611,8 @@ export interface UpdateChannelTypeResponse {
8572
9611
 
8573
9612
  url_enrichment: boolean;
8574
9613
 
9614
+ user_message_reminders: boolean;
9615
+
8575
9616
  commands: string[];
8576
9617
 
8577
9618
  permissions: PolicyRequest[];
@@ -8633,6 +9674,18 @@ export interface UpdateExternalStorageResponse {
8633
9674
  type: 's3' | 'gcs' | 'abs';
8634
9675
  }
8635
9676
 
9677
+ export interface UpdateLiveLocationRequest {
9678
+ created_by_device_id: string;
9679
+
9680
+ message_id: string;
9681
+
9682
+ end_at?: Date;
9683
+
9684
+ latitude?: number;
9685
+
9686
+ longitude?: number;
9687
+ }
9688
+
8636
9689
  export interface UpdateMemberPartialRequest {
8637
9690
  unset?: string[];
8638
9691
 
@@ -8669,6 +9722,8 @@ export interface UpdateMessageRequest {
8669
9722
  message: MessageRequest;
8670
9723
 
8671
9724
  skip_enrich_url?: boolean;
9725
+
9726
+ skip_push?: boolean;
8672
9727
  }
8673
9728
 
8674
9729
  export interface UpdateMessageResponse {
@@ -8729,6 +9784,20 @@ export interface UpdatePollRequest {
8729
9784
  user?: UserRequest;
8730
9785
  }
8731
9786
 
9787
+ export interface UpdateReminderRequest {
9788
+ remind_at?: Date;
9789
+
9790
+ user_id?: string;
9791
+
9792
+ user?: UserRequest;
9793
+ }
9794
+
9795
+ export interface UpdateReminderResponse {
9796
+ duration: string;
9797
+
9798
+ reminder: ReminderResponseData;
9799
+ }
9800
+
8732
9801
  export interface UpdateThreadPartialRequest {
8733
9802
  user_id?: string;
8734
9803
 
@@ -8827,6 +9896,8 @@ export interface UpsertConfigRequest {
8827
9896
  user?: UserRequest;
8828
9897
 
8829
9898
  velocity_filter_config?: VelocityFilterConfig;
9899
+
9900
+ video_call_rule_config?: VideoCallRuleConfig;
8830
9901
  }
8831
9902
 
8832
9903
  export interface UpsertConfigResponse {
@@ -8878,6 +9949,28 @@ export interface UpsertPushProviderResponse {
8878
9949
  push_provider: PushProviderResponse;
8879
9950
  }
8880
9951
 
9952
+ export interface UpsertPushTemplateRequest {
9953
+ event_type:
9954
+ | 'message.new'
9955
+ | 'message.updated'
9956
+ | 'reaction.new'
9957
+ | 'notification.reminder_due';
9958
+
9959
+ push_provider_type: 'firebase' | 'apn';
9960
+
9961
+ enable_push?: boolean;
9962
+
9963
+ push_provider_name?: string;
9964
+
9965
+ template?: string;
9966
+ }
9967
+
9968
+ export interface UpsertPushTemplateResponse {
9969
+ duration: string;
9970
+
9971
+ template?: PushTemplate;
9972
+ }
9973
+
8881
9974
  export interface User {
8882
9975
  banned: boolean;
8883
9976
 
@@ -8940,6 +10033,10 @@ export interface UserBannedEvent {
8940
10033
  user?: User;
8941
10034
  }
8942
10035
 
10036
+ export interface UserCreatedWithinParameters {
10037
+ max_age?: string;
10038
+ }
10039
+
8943
10040
  export interface UserCustomEventRequest {
8944
10041
  type: string;
8945
10042
 
@@ -9208,6 +10305,10 @@ export interface UserResponsePrivacyFields {
9208
10305
  teams_role?: Record<string, string>;
9209
10306
  }
9210
10307
 
10308
+ export interface UserRuleParameters {
10309
+ max_age?: string;
10310
+ }
10311
+
9211
10312
  export interface UserUnbannedEvent {
9212
10313
  channel_id: string;
9213
10314
 
@@ -9306,6 +10407,40 @@ export interface VelocityFilterConfigRule {
9306
10407
  slow_spam_ban_duration?: number;
9307
10408
  }
9308
10409
 
10410
+ export interface VideoCallRuleConfig {
10411
+ rules: Record<string, HarmConfig>;
10412
+ }
10413
+
10414
+ export interface VideoContentParameters {
10415
+ harm_labels?: string[];
10416
+ }
10417
+
10418
+ export interface VideoEndCallRequest {}
10419
+
10420
+ export interface VideoKickUserRequest {}
10421
+
10422
+ export interface VideoOrientation {
10423
+ orientation?: number;
10424
+ }
10425
+
10426
+ export interface VideoReactionOverTimeResponse {
10427
+ by_minute?: CountByMinuteResponse[];
10428
+ }
10429
+
10430
+ export interface VideoReactionsResponse {
10431
+ reaction: string;
10432
+
10433
+ count_over_time?: VideoReactionOverTimeResponse;
10434
+ }
10435
+
10436
+ export interface VideoRuleParameters {
10437
+ threshold: number;
10438
+
10439
+ time_window: string;
10440
+
10441
+ harm_labels?: string[];
10442
+ }
10443
+
9309
10444
  export interface VideoSettings {
9310
10445
  access_request_enabled: boolean;
9311
10446
 
@@ -9422,6 +10557,8 @@ export interface WrappedUnreadCountsResponse {
9422
10557
  channels: UnreadCountsChannel[];
9423
10558
 
9424
10559
  threads: UnreadCountsThread[];
10560
+
10561
+ total_unread_count_by_team: Record<string, number>;
9425
10562
  }
9426
10563
 
9427
10564
  export interface XiaomiConfig {