@stream-io/node-sdk 0.4.5 → 0.4.7

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.
@@ -18,6 +18,14 @@ export interface AITextConfig {
18
18
  async?: boolean;
19
19
  }
20
20
 
21
+ export interface AIVideoConfig {
22
+ enabled: boolean;
23
+
24
+ rules: AWSRekognitionRule[];
25
+
26
+ async?: boolean;
27
+ }
28
+
21
29
  export interface APIError {
22
30
  code: number;
23
31
 
@@ -166,6 +174,12 @@ export interface AggregatedStats {
166
174
  turn?: TURNAggregatedStats;
167
175
  }
168
176
 
177
+ export interface AnyEvent {
178
+ created_at: Date;
179
+
180
+ type: string;
181
+ }
182
+
169
183
  export interface AppResponseFields {
170
184
  async_url_enrich_enabled: boolean;
171
185
 
@@ -215,8 +229,6 @@ export interface AppResponseFields {
215
229
 
216
230
  suspended_explanation: string;
217
231
 
218
- video_provider: string;
219
-
220
232
  webhook_url: string;
221
233
 
222
234
  user_search_disallowed_roles: string[];
@@ -247,11 +259,7 @@ export interface AppResponseFields {
247
259
 
248
260
  image_moderation_labels?: string[];
249
261
 
250
- agora_options?: Config;
251
-
252
262
  datadog_info?: DataDogInfo;
253
-
254
- hms_options?: Config;
255
263
  }
256
264
 
257
265
  export interface AsyncModerationCallbackConfig {
@@ -578,6 +586,18 @@ export interface BlockUsersResponse {
578
586
  duration: string;
579
587
  }
580
588
 
589
+ export interface BlockedUserEvent {
590
+ call_cid: string;
591
+
592
+ created_at: Date;
593
+
594
+ user: UserResponse;
595
+
596
+ type: string;
597
+
598
+ blocked_by_user?: UserResponse;
599
+ }
600
+
581
601
  export interface BlockedUserResponse {
582
602
  blocked_user_id: string;
583
603
 
@@ -616,6 +636,12 @@ export interface BodyguardSeverityRule {
616
636
  severity: 'low' | 'medium' | 'high' | 'critical';
617
637
  }
618
638
 
639
+ export interface Bound {
640
+ inclusive: boolean;
641
+
642
+ value: number;
643
+ }
644
+
619
645
  export interface BroadcastSettings {
620
646
  enabled: boolean;
621
647
 
@@ -640,6 +666,96 @@ export interface BroadcastSettingsResponse {
640
666
  rtmp: RTMPSettingsResponse;
641
667
  }
642
668
 
669
+ export interface CallAcceptedEvent {
670
+ call_cid: string;
671
+
672
+ created_at: Date;
673
+
674
+ call: CallResponse;
675
+
676
+ user: UserResponse;
677
+
678
+ type: string;
679
+ }
680
+
681
+ export interface CallClosedCaption {
682
+ end_time: Date;
683
+
684
+ speaker_id: string;
685
+
686
+ start_time: Date;
687
+
688
+ text: string;
689
+
690
+ user: UserResponse;
691
+ }
692
+
693
+ export interface CallClosedCaptionsFailedEvent {
694
+ call_cid: string;
695
+
696
+ created_at: Date;
697
+
698
+ type: string;
699
+ }
700
+
701
+ export interface CallClosedCaptionsStartedEvent {
702
+ call_cid: string;
703
+
704
+ created_at: Date;
705
+
706
+ type: string;
707
+ }
708
+
709
+ export interface CallClosedCaptionsStoppedEvent {
710
+ call_cid: string;
711
+
712
+ created_at: Date;
713
+
714
+ type: string;
715
+ }
716
+
717
+ export interface CallCreatedEvent {
718
+ call_cid: string;
719
+
720
+ created_at: Date;
721
+
722
+ members: MemberResponse[];
723
+
724
+ call: CallResponse;
725
+
726
+ type: string;
727
+ }
728
+
729
+ export interface CallDeletedEvent {
730
+ call_cid: string;
731
+
732
+ created_at: Date;
733
+
734
+ call: CallResponse;
735
+
736
+ type: string;
737
+ }
738
+
739
+ export interface CallDurationReport {
740
+ histogram: ReportByHistogramBucket[];
741
+ }
742
+
743
+ export interface CallDurationReportResponse {
744
+ daily: DailyAggregateCallDurationReportResponse[];
745
+ }
746
+
747
+ export interface CallEndedEvent {
748
+ call_cid: string;
749
+
750
+ created_at: Date;
751
+
752
+ call: CallResponse;
753
+
754
+ type: string;
755
+
756
+ user?: UserResponse;
757
+ }
758
+
643
759
  export interface CallEvent {
644
760
  description: string;
645
761
 
@@ -662,10 +778,138 @@ export interface CallEvent {
662
778
  issue_tags?: string[];
663
779
  }
664
780
 
781
+ export interface CallHLSBroadcastingFailedEvent {
782
+ call_cid: string;
783
+
784
+ created_at: Date;
785
+
786
+ type: string;
787
+ }
788
+
789
+ export interface CallHLSBroadcastingStartedEvent {
790
+ call_cid: string;
791
+
792
+ created_at: Date;
793
+
794
+ hls_playlist_url: string;
795
+
796
+ type: string;
797
+ }
798
+
799
+ export interface CallHLSBroadcastingStoppedEvent {
800
+ call_cid: string;
801
+
802
+ created_at: Date;
803
+
804
+ type: string;
805
+ }
806
+
665
807
  export interface CallIngressResponse {
666
808
  rtmp: RTMPIngress;
667
809
  }
668
810
 
811
+ export interface CallLiveStartedEvent {
812
+ call_cid: string;
813
+
814
+ created_at: Date;
815
+
816
+ call: CallResponse;
817
+
818
+ type: string;
819
+ }
820
+
821
+ export interface CallMemberAddedEvent {
822
+ call_cid: string;
823
+
824
+ created_at: Date;
825
+
826
+ members: MemberResponse[];
827
+
828
+ call: CallResponse;
829
+
830
+ type: string;
831
+ }
832
+
833
+ export interface CallMemberRemovedEvent {
834
+ call_cid: string;
835
+
836
+ created_at: Date;
837
+
838
+ members: string[];
839
+
840
+ call: CallResponse;
841
+
842
+ type: string;
843
+ }
844
+
845
+ export interface CallMemberUpdatedEvent {
846
+ call_cid: string;
847
+
848
+ created_at: Date;
849
+
850
+ members: MemberResponse[];
851
+
852
+ call: CallResponse;
853
+
854
+ type: string;
855
+ }
856
+
857
+ export interface CallMemberUpdatedPermissionEvent {
858
+ call_cid: string;
859
+
860
+ created_at: Date;
861
+
862
+ members: MemberResponse[];
863
+
864
+ call: CallResponse;
865
+
866
+ capabilities_by_role: Record<string, string[]>;
867
+
868
+ type: string;
869
+ }
870
+
871
+ export interface CallMissedEvent {
872
+ call_cid: string;
873
+
874
+ created_at: Date;
875
+
876
+ notify_user: boolean;
877
+
878
+ session_id: string;
879
+
880
+ members: MemberResponse[];
881
+
882
+ call: CallResponse;
883
+
884
+ user: UserResponse;
885
+
886
+ type: string;
887
+ }
888
+
889
+ export interface CallNotificationEvent {
890
+ call_cid: string;
891
+
892
+ created_at: Date;
893
+
894
+ session_id: string;
895
+
896
+ members: MemberResponse[];
897
+
898
+ call: CallResponse;
899
+
900
+ user: UserResponse;
901
+
902
+ type: string;
903
+ }
904
+
905
+ export interface CallParticipantCountReport {
906
+ histogram: ReportByHistogramBucket[];
907
+ }
908
+
909
+ export interface CallParticipantCountReportResponse {
910
+ daily: DailyAggregateCallParticipantCountReportResponse[];
911
+ }
912
+
669
913
  export interface CallParticipantResponse {
670
914
  joined_at: Date;
671
915
 
@@ -676,6 +920,16 @@ export interface CallParticipantResponse {
676
920
  user: UserResponse;
677
921
  }
678
922
 
923
+ export interface CallReactionEvent {
924
+ call_cid: string;
925
+
926
+ created_at: Date;
927
+
928
+ reaction: ReactionResponse;
929
+
930
+ type: string;
931
+ }
932
+
679
933
  export interface CallRecording {
680
934
  end_time: Date;
681
935
 
@@ -686,6 +940,54 @@ export interface CallRecording {
686
940
  url: string;
687
941
  }
688
942
 
943
+ export interface CallRecordingFailedEvent {
944
+ call_cid: string;
945
+
946
+ created_at: Date;
947
+
948
+ type: string;
949
+ }
950
+
951
+ export interface CallRecordingReadyEvent {
952
+ call_cid: string;
953
+
954
+ created_at: Date;
955
+
956
+ call_recording: CallRecording;
957
+
958
+ type: string;
959
+ }
960
+
961
+ export interface CallRecordingStartedEvent {
962
+ call_cid: string;
963
+
964
+ created_at: Date;
965
+
966
+ type: string;
967
+ }
968
+
969
+ export interface CallRecordingStoppedEvent {
970
+ call_cid: string;
971
+
972
+ created_at: Date;
973
+
974
+ type: string;
975
+ }
976
+
977
+ export interface CallRejectedEvent {
978
+ call_cid: string;
979
+
980
+ created_at: Date;
981
+
982
+ call: CallResponse;
983
+
984
+ user: UserResponse;
985
+
986
+ type: string;
987
+
988
+ reason?: string;
989
+ }
990
+
689
991
  export interface CallRequest {
690
992
  created_by_id?: string;
691
993
 
@@ -701,53 +1003,139 @@ export interface CallRequest {
701
1003
 
702
1004
  custom?: Record<string, any>;
703
1005
 
704
- settings_override?: CallSettingsRequest;
705
- }
1006
+ settings_override?: CallSettingsRequest;
1007
+ }
1008
+
1009
+ export interface CallResponse {
1010
+ backstage: boolean;
1011
+
1012
+ captioning: boolean;
1013
+
1014
+ cid: string;
1015
+
1016
+ created_at: Date;
1017
+
1018
+ current_session_id: string;
1019
+
1020
+ id: string;
1021
+
1022
+ recording: boolean;
1023
+
1024
+ transcribing: boolean;
1025
+
1026
+ type: string;
1027
+
1028
+ updated_at: Date;
1029
+
1030
+ blocked_user_ids: string[];
1031
+
1032
+ created_by: UserResponse;
1033
+
1034
+ custom: Record<string, any>;
1035
+
1036
+ egress: EgressResponse;
1037
+
1038
+ ingress: CallIngressResponse;
1039
+
1040
+ settings: CallSettingsResponse;
1041
+
1042
+ ended_at?: Date;
1043
+
1044
+ join_ahead_time_seconds?: number;
1045
+
1046
+ starts_at?: Date;
1047
+
1048
+ team?: string;
1049
+
1050
+ session?: CallSessionResponse;
1051
+
1052
+ thumbnails?: ThumbnailResponse;
1053
+ }
1054
+
1055
+ export interface CallRingEvent {
1056
+ call_cid: string;
1057
+
1058
+ created_at: Date;
1059
+
1060
+ session_id: string;
1061
+
1062
+ video: boolean;
1063
+
1064
+ members: MemberResponse[];
1065
+
1066
+ call: CallResponse;
1067
+
1068
+ user: UserResponse;
1069
+
1070
+ type: string;
1071
+ }
1072
+
1073
+ export interface CallRtmpBroadcastFailedEvent {
1074
+ call_cid: string;
1075
+
1076
+ created_at: Date;
1077
+
1078
+ name: string;
1079
+
1080
+ type: string;
1081
+ }
1082
+
1083
+ export interface CallRtmpBroadcastStartedEvent {
1084
+ call_cid: string;
1085
+
1086
+ created_at: Date;
706
1087
 
707
- export interface CallResponse {
708
- backstage: boolean;
1088
+ name: string;
709
1089
 
710
- captioning: boolean;
1090
+ type: string;
1091
+ }
711
1092
 
712
- cid: string;
1093
+ export interface CallRtmpBroadcastStoppedEvent {
1094
+ call_cid: string;
713
1095
 
714
1096
  created_at: Date;
715
1097
 
716
- current_session_id: string;
1098
+ name: string;
717
1099
 
718
- id: string;
1100
+ type: string;
1101
+ }
719
1102
 
720
- recording: boolean;
1103
+ export interface CallSessionEndedEvent {
1104
+ call_cid: string;
721
1105
 
722
- transcribing: boolean;
1106
+ created_at: Date;
723
1107
 
724
- type: string;
1108
+ session_id: string;
725
1109
 
726
- updated_at: Date;
1110
+ call: CallResponse;
727
1111
 
728
- blocked_user_ids: string[];
1112
+ type: string;
1113
+ }
729
1114
 
730
- created_by: UserResponse;
1115
+ export interface CallSessionParticipantJoinedEvent {
1116
+ call_cid: string;
731
1117
 
732
- custom: Record<string, any>;
1118
+ created_at: Date;
733
1119
 
734
- egress: EgressResponse;
1120
+ session_id: string;
735
1121
 
736
- ingress: CallIngressResponse;
1122
+ participant: CallParticipantResponse;
737
1123
 
738
- settings: CallSettingsResponse;
1124
+ type: string;
1125
+ }
739
1126
 
740
- ended_at?: Date;
1127
+ export interface CallSessionParticipantLeftEvent {
1128
+ call_cid: string;
741
1129
 
742
- join_ahead_time_seconds?: number;
1130
+ created_at: Date;
743
1131
 
744
- starts_at?: Date;
1132
+ duration_seconds: number;
745
1133
 
746
- team?: string;
1134
+ session_id: string;
747
1135
 
748
- session?: CallSessionResponse;
1136
+ participant: CallParticipantResponse;
749
1137
 
750
- thumbnails?: ThumbnailResponse;
1138
+ type: string;
751
1139
  }
752
1140
 
753
1141
  export interface CallSessionResponse {
@@ -776,6 +1164,18 @@ export interface CallSessionResponse {
776
1164
  timer_ends_at?: Date;
777
1165
  }
778
1166
 
1167
+ export interface CallSessionStartedEvent {
1168
+ call_cid: string;
1169
+
1170
+ created_at: Date;
1171
+
1172
+ session_id: string;
1173
+
1174
+ call: CallResponse;
1175
+
1176
+ type: string;
1177
+ }
1178
+
779
1179
  export interface CallSettings {
780
1180
  audio?: AudioSettings;
781
1181
 
@@ -793,6 +1193,8 @@ export interface CallSettings {
793
1193
 
794
1194
  screensharing?: ScreensharingSettings;
795
1195
 
1196
+ session?: SessionSettings;
1197
+
796
1198
  thumbnails?: ThumbnailsSettings;
797
1199
 
798
1200
  transcription?: TranscriptionSettings;
@@ -817,6 +1219,8 @@ export interface CallSettingsRequest {
817
1219
 
818
1220
  screensharing?: ScreensharingSettingsRequest;
819
1221
 
1222
+ session?: SessionSettingsRequest;
1223
+
820
1224
  thumbnails?: ThumbnailsSettingsRequest;
821
1225
 
822
1226
  transcription?: TranscriptionSettingsRequest;
@@ -841,6 +1245,8 @@ export interface CallSettingsResponse {
841
1245
 
842
1246
  screensharing: ScreensharingSettingsResponse;
843
1247
 
1248
+ session: SessionSettingsResponse;
1249
+
844
1250
  thumbnails: ThumbnailsSettingsResponse;
845
1251
 
846
1252
  transcription: TranscriptionSettingsResponse;
@@ -869,6 +1275,8 @@ export interface CallStatsReportSummaryResponse {
869
1275
 
870
1276
  created_at?: Date;
871
1277
 
1278
+ min_user_rating?: number;
1279
+
872
1280
  quality_score?: number;
873
1281
  }
874
1282
 
@@ -886,6 +1294,40 @@ export interface CallTranscription {
886
1294
  url: string;
887
1295
  }
888
1296
 
1297
+ export interface CallTranscriptionFailedEvent {
1298
+ call_cid: string;
1299
+
1300
+ created_at: Date;
1301
+
1302
+ type: string;
1303
+ }
1304
+
1305
+ export interface CallTranscriptionReadyEvent {
1306
+ call_cid: string;
1307
+
1308
+ created_at: Date;
1309
+
1310
+ call_transcription: CallTranscription;
1311
+
1312
+ type: string;
1313
+ }
1314
+
1315
+ export interface CallTranscriptionStartedEvent {
1316
+ call_cid: string;
1317
+
1318
+ created_at: Date;
1319
+
1320
+ type: string;
1321
+ }
1322
+
1323
+ export interface CallTranscriptionStoppedEvent {
1324
+ call_cid: string;
1325
+
1326
+ created_at: Date;
1327
+
1328
+ type: string;
1329
+ }
1330
+
889
1331
  export interface CallType {
890
1332
  app_pk: number;
891
1333
 
@@ -920,6 +1362,38 @@ export interface CallTypeResponse {
920
1362
  external_storage?: string;
921
1363
  }
922
1364
 
1365
+ export interface CallUpdatedEvent {
1366
+ call_cid: string;
1367
+
1368
+ created_at: Date;
1369
+
1370
+ call: CallResponse;
1371
+
1372
+ capabilities_by_role: Record<string, string[]>;
1373
+
1374
+ type: string;
1375
+ }
1376
+
1377
+ export interface CallUserMutedEvent {
1378
+ call_cid: string;
1379
+
1380
+ created_at: Date;
1381
+
1382
+ from_user_id: string;
1383
+
1384
+ muted_user_ids: string[];
1385
+
1386
+ type: string;
1387
+ }
1388
+
1389
+ export interface CallsPerDayReport {
1390
+ count: number;
1391
+ }
1392
+
1393
+ export interface CallsPerDayReportResponse {
1394
+ daily: DailyAggregateCallsPerDayReportResponse[];
1395
+ }
1396
+
923
1397
  export interface CampaignChannelTemplate {
924
1398
  type: string;
925
1399
 
@@ -927,9 +1401,21 @@ export interface CampaignChannelTemplate {
927
1401
 
928
1402
  id?: string;
929
1403
 
1404
+ team?: string;
1405
+
930
1406
  members?: string[];
931
1407
  }
932
1408
 
1409
+ export interface CampaignCompletedEvent {
1410
+ created_at: Date;
1411
+
1412
+ type: string;
1413
+
1414
+ received_at?: Date;
1415
+
1416
+ campaign?: CampaignResponse;
1417
+ }
1418
+
933
1419
  export interface CampaignMessageTemplate {
934
1420
  poll_id: string;
935
1421
 
@@ -982,6 +1468,16 @@ export interface CampaignResponse {
982
1468
  sender?: UserResponse;
983
1469
  }
984
1470
 
1471
+ export interface CampaignStartedEvent {
1472
+ created_at: Date;
1473
+
1474
+ type: string;
1475
+
1476
+ received_at?: Date;
1477
+
1478
+ campaign?: CampaignResponse;
1479
+ }
1480
+
985
1481
  export interface CampaignStatsResponse {
986
1482
  progress: number;
987
1483
 
@@ -1172,6 +1668,30 @@ export interface ChannelConfigWithInfo {
1172
1668
  grants?: Record<string, string[]>;
1173
1669
  }
1174
1670
 
1671
+ export interface ChannelCreatedEvent {
1672
+ created_at: Date;
1673
+
1674
+ type: string;
1675
+ }
1676
+
1677
+ export interface ChannelDeletedEvent {
1678
+ channel_id: string;
1679
+
1680
+ channel_member_count: number;
1681
+
1682
+ channel_type: string;
1683
+
1684
+ cid: string;
1685
+
1686
+ created_at: Date;
1687
+
1688
+ type: string;
1689
+
1690
+ team?: string;
1691
+
1692
+ channel?: ChannelResponse;
1693
+ }
1694
+
1175
1695
  export interface ChannelExport {
1176
1696
  cid?: string;
1177
1697
 
@@ -1184,6 +1704,18 @@ export interface ChannelExport {
1184
1704
  type?: string;
1185
1705
  }
1186
1706
 
1707
+ export interface ChannelFrozenEvent {
1708
+ channel_id: string;
1709
+
1710
+ channel_type: string;
1711
+
1712
+ cid: string;
1713
+
1714
+ created_at: Date;
1715
+
1716
+ type: string;
1717
+ }
1718
+
1187
1719
  export interface ChannelGetOrCreateRequest {
1188
1720
  hide_for_creator?: boolean;
1189
1721
 
@@ -1200,6 +1732,26 @@ export interface ChannelGetOrCreateRequest {
1200
1732
  watchers?: PaginationParams;
1201
1733
  }
1202
1734
 
1735
+ export interface ChannelHiddenEvent {
1736
+ channel_id: string;
1737
+
1738
+ channel_member_count: number;
1739
+
1740
+ channel_type: string;
1741
+
1742
+ cid: string;
1743
+
1744
+ clear_history: boolean;
1745
+
1746
+ created_at: Date;
1747
+
1748
+ type: string;
1749
+
1750
+ channel?: ChannelResponse;
1751
+
1752
+ user?: User;
1753
+ }
1754
+
1203
1755
  export interface ChannelInput {
1204
1756
  auto_translation_enabled?: boolean;
1205
1757
 
@@ -1306,6 +1858,12 @@ export interface ChannelMemberResponse {
1306
1858
  user?: UserResponse;
1307
1859
  }
1308
1860
 
1861
+ export interface ChannelMessages {
1862
+ messages: Message[];
1863
+
1864
+ channel?: ChannelResponse;
1865
+ }
1866
+
1309
1867
  export interface ChannelMute {
1310
1868
  created_at: Date;
1311
1869
 
@@ -1318,18 +1876,22 @@ export interface ChannelMute {
1318
1876
  user?: UserResponse;
1319
1877
  }
1320
1878
 
1879
+ export interface ChannelMutedEvent {
1880
+ created_at: Date;
1881
+
1882
+ type: string;
1883
+ }
1884
+
1321
1885
  export const ChannelOwnCapability = {
1322
1886
  BAN_CHANNEL_MEMBERS: 'ban-channel-members',
1323
1887
  CAST_POLL_VOTE: 'cast-poll-vote',
1324
1888
  CONNECT_EVENTS: 'connect-events',
1325
1889
  CREATE_ATTACHMENT: 'create-attachment',
1326
- CREATE_CALL: 'create-call',
1327
1890
  DELETE_ANY_MESSAGE: 'delete-any-message',
1328
1891
  DELETE_CHANNEL: 'delete-channel',
1329
1892
  DELETE_OWN_MESSAGE: 'delete-own-message',
1330
1893
  FLAG_MESSAGE: 'flag-message',
1331
1894
  FREEZE_CHANNEL: 'freeze-channel',
1332
- JOIN_CALL: 'join-call',
1333
1895
  JOIN_CHANNEL: 'join-channel',
1334
1896
  LEAVE_CHANNEL: 'leave-channel',
1335
1897
  MUTE_CHANNEL: 'mute-channel',
@@ -1469,6 +2031,22 @@ export interface ChannelStateResponseFields {
1469
2031
  membership?: ChannelMember;
1470
2032
  }
1471
2033
 
2034
+ export interface ChannelTruncatedEvent {
2035
+ channel_id: string;
2036
+
2037
+ channel_member_count: number;
2038
+
2039
+ channel_type: string;
2040
+
2041
+ cid: string;
2042
+
2043
+ created_at: Date;
2044
+
2045
+ type: string;
2046
+
2047
+ channel?: ChannelResponse;
2048
+ }
2049
+
1472
2050
  export interface ChannelTypeConfig {
1473
2051
  automod: 'disabled' | 'simple' | 'AI';
1474
2052
 
@@ -1535,6 +2113,60 @@ export interface ChannelTypeConfig {
1535
2113
  automod_thresholds?: Thresholds;
1536
2114
  }
1537
2115
 
2116
+ export interface ChannelUnFrozenEvent {
2117
+ channel_id: string;
2118
+
2119
+ channel_type: string;
2120
+
2121
+ cid: string;
2122
+
2123
+ created_at: Date;
2124
+
2125
+ type: string;
2126
+ }
2127
+
2128
+ export interface ChannelUnmutedEvent {
2129
+ created_at: Date;
2130
+
2131
+ type: string;
2132
+ }
2133
+
2134
+ export interface ChannelUpdatedEvent {
2135
+ channel_id: string;
2136
+
2137
+ channel_member_count: number;
2138
+
2139
+ channel_type: string;
2140
+
2141
+ cid: string;
2142
+
2143
+ created_at: Date;
2144
+
2145
+ type: string;
2146
+
2147
+ team?: string;
2148
+
2149
+ channel?: ChannelResponse;
2150
+
2151
+ message?: Message;
2152
+
2153
+ user?: User;
2154
+ }
2155
+
2156
+ export interface ChannelVisibleEvent {
2157
+ channel_id: string;
2158
+
2159
+ channel_type: string;
2160
+
2161
+ cid: string;
2162
+
2163
+ created_at: Date;
2164
+
2165
+ type: string;
2166
+
2167
+ user?: User;
2168
+ }
2169
+
1538
2170
  export interface CheckExternalStorageResponse {
1539
2171
  duration: string;
1540
2172
 
@@ -1645,6 +2277,16 @@ export interface CheckSQSResponse {
1645
2277
  data?: Record<string, any>;
1646
2278
  }
1647
2279
 
2280
+ export interface ClosedCaptionEvent {
2281
+ call_cid: string;
2282
+
2283
+ created_at: Date;
2284
+
2285
+ closed_caption: CallClosedCaption;
2286
+
2287
+ type: string;
2288
+ }
2289
+
1648
2290
  export interface CollectUserFeedbackRequest {
1649
2291
  rating: number;
1650
2292
 
@@ -1679,16 +2321,6 @@ export interface Command {
1679
2321
 
1680
2322
  export interface CommitMessageRequest {}
1681
2323
 
1682
- export interface Config {
1683
- app_certificate: string;
1684
-
1685
- app_id: string;
1686
-
1687
- default_role?: 'attendee' | 'publisher' | 'subscriber' | 'admin';
1688
-
1689
- role_map?: Record<string, string>;
1690
- }
1691
-
1692
2324
  export interface ConfigOverrides {
1693
2325
  commands: string[];
1694
2326
 
@@ -1720,12 +2352,16 @@ export interface ConfigResponse {
1720
2352
 
1721
2353
  key: string;
1722
2354
 
2355
+ team: string;
2356
+
1723
2357
  updated_at: Date;
1724
2358
 
1725
2359
  ai_image_config?: AIImageConfig;
1726
2360
 
1727
2361
  ai_text_config?: AITextConfig;
1728
2362
 
2363
+ ai_video_config?: AIVideoConfig;
2364
+
1729
2365
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
1730
2366
 
1731
2367
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
@@ -2065,18 +2701,24 @@ export interface CustomActionRequest {
2065
2701
  options?: Record<string, any>;
2066
2702
  }
2067
2703
 
2068
- export interface CustomCheckRequest {
2069
- entity_creator_id: string;
2704
+ export interface CustomCheckFlag {
2705
+ type: string;
2706
+
2707
+ reason?: string;
2708
+
2709
+ labels?: string[];
2710
+
2711
+ custom?: Record<string, any>;
2712
+ }
2070
2713
 
2714
+ export interface CustomCheckRequest {
2071
2715
  entity_id: string;
2072
2716
 
2073
2717
  entity_type: string;
2074
2718
 
2075
- name?: string;
2076
-
2077
- reason?: string;
2719
+ flags: CustomCheckFlag[];
2078
2720
 
2079
- recommended_action?: string;
2721
+ entity_creator_id?: string;
2080
2722
 
2081
2723
  user_id?: string;
2082
2724
 
@@ -2090,17 +2732,57 @@ export interface CustomCheckResponse {
2090
2732
 
2091
2733
  id: string;
2092
2734
 
2093
- recommended_action: string;
2735
+ status: string;
2094
2736
 
2095
- scored_at: Date;
2737
+ item?: ReviewQueueItemResponse;
2738
+ }
2096
2739
 
2097
- status: string;
2740
+ export interface CustomVideoEvent {
2741
+ call_cid: string;
2098
2742
 
2099
- report: any[];
2743
+ created_at: Date;
2100
2744
 
2101
- moderator_action?: string;
2745
+ custom: Record<string, any>;
2102
2746
 
2103
- reviewed_at?: Date;
2747
+ user: UserResponse;
2748
+
2749
+ type: string;
2750
+ }
2751
+
2752
+ export interface DailyAggregateCallDurationReportResponse {
2753
+ date: string;
2754
+
2755
+ report: CallDurationReport;
2756
+ }
2757
+
2758
+ export interface DailyAggregateCallParticipantCountReportResponse {
2759
+ date: string;
2760
+
2761
+ report: CallParticipantCountReport;
2762
+ }
2763
+
2764
+ export interface DailyAggregateCallsPerDayReportResponse {
2765
+ date: string;
2766
+
2767
+ report: CallsPerDayReport;
2768
+ }
2769
+
2770
+ export interface DailyAggregateQualityScoreReportResponse {
2771
+ date: string;
2772
+
2773
+ report: QualityScoreReport;
2774
+ }
2775
+
2776
+ export interface DailyAggregateSDKUsageReportResponse {
2777
+ date: string;
2778
+
2779
+ report: SDKUsageReport;
2780
+ }
2781
+
2782
+ export interface DailyAggregateUserFeedbackReportResponse {
2783
+ date: string;
2784
+
2785
+ report: UserFeedbackReport;
2104
2786
  }
2105
2787
 
2106
2788
  export interface Data {
@@ -2368,13 +3050,13 @@ export interface EnrichedActivity {
2368
3050
 
2369
3051
  actor?: Data;
2370
3052
 
2371
- latest_reactions?: Record<string, Array<EnrichedReaction | null>>;
3053
+ latest_reactions?: Record<string, EnrichedReaction[]>;
2372
3054
 
2373
3055
  object?: Data;
2374
3056
 
2375
3057
  origin?: Data;
2376
3058
 
2377
- own_reactions?: Record<string, Array<EnrichedReaction | null>>;
3059
+ own_reactions?: Record<string, EnrichedReaction[]>;
2378
3060
 
2379
3061
  reaction_counts?: Record<string, number>;
2380
3062
 
@@ -2400,9 +3082,9 @@ export interface EnrichedReaction {
2400
3082
 
2401
3083
  data?: Record<string, any>;
2402
3084
 
2403
- latest_children?: Record<string, Array<EnrichedReaction | null>>;
3085
+ latest_children?: Record<string, EnrichedReaction[]>;
2404
3086
 
2405
- own_children?: Record<string, Array<EnrichedReaction | null>>;
3087
+ own_children?: Record<string, EnrichedReaction[]>;
2406
3088
 
2407
3089
  updated_at?: Time;
2408
3090
 
@@ -2659,6 +3341,36 @@ export interface FirebaseConfigFields {
2659
3341
  server_key?: string;
2660
3342
  }
2661
3343
 
3344
+ export interface Flag {
3345
+ created_at: Date;
3346
+
3347
+ created_by_automod: boolean;
3348
+
3349
+ updated_at: Date;
3350
+
3351
+ approved_at?: Date;
3352
+
3353
+ reason?: string;
3354
+
3355
+ rejected_at?: Date;
3356
+
3357
+ reviewed_at?: Date;
3358
+
3359
+ reviewed_by?: string;
3360
+
3361
+ target_message_id?: string;
3362
+
3363
+ custom?: Record<string, any>;
3364
+
3365
+ details?: FlagDetails;
3366
+
3367
+ target_message?: Message;
3368
+
3369
+ target_user?: User;
3370
+
3371
+ user?: User;
3372
+ }
3373
+
2662
3374
  export interface Flag2 {
2663
3375
  created_at: Date;
2664
3376
 
@@ -2769,6 +3481,20 @@ export interface FlagResponse {
2769
3481
  item_id: string;
2770
3482
  }
2771
3483
 
3484
+ export interface FlagUpdatedEvent {
3485
+ created_at: Date;
3486
+
3487
+ type: string;
3488
+
3489
+ received_at?: Date;
3490
+
3491
+ created_by?: UserResponse;
3492
+
3493
+ message?: MessageResponse;
3494
+
3495
+ user?: UserResponse;
3496
+ }
3497
+
2772
3498
  export interface FullUserResponse {
2773
3499
  banned: boolean;
2774
3500
 
@@ -2922,6 +3648,8 @@ export interface GetCallStatsResponse {
2922
3648
 
2923
3649
  sfus: SFULocationResponse[];
2924
3650
 
3651
+ average_connection_time?: number;
3652
+
2925
3653
  aggregated?: AggregatedStats;
2926
3654
 
2927
3655
  call_timeline?: CallTimeline;
@@ -3250,6 +3978,8 @@ export interface GetUserModerationReportResponse {
3250
3978
  export interface GoLiveRequest {
3251
3979
  recording_storage_name?: string;
3252
3980
 
3981
+ start_closed_caption?: boolean;
3982
+
3253
3983
  start_hls?: boolean;
3254
3984
 
3255
3985
  start_recording?: boolean;
@@ -3617,6 +4347,40 @@ export interface MediaPubSubHint {
3617
4347
  video_subscribed: boolean;
3618
4348
  }
3619
4349
 
4350
+ export interface MemberAddedEvent {
4351
+ channel_id: string;
4352
+
4353
+ channel_type: string;
4354
+
4355
+ cid: string;
4356
+
4357
+ created_at: Date;
4358
+
4359
+ type: string;
4360
+
4361
+ team?: string;
4362
+
4363
+ member?: ChannelMember;
4364
+
4365
+ user?: User;
4366
+ }
4367
+
4368
+ export interface MemberRemovedEvent {
4369
+ channel_id: string;
4370
+
4371
+ channel_type: string;
4372
+
4373
+ cid: string;
4374
+
4375
+ created_at: Date;
4376
+
4377
+ type: string;
4378
+
4379
+ member?: ChannelMember;
4380
+
4381
+ user?: User;
4382
+ }
4383
+
3620
4384
  export interface MemberRequest {
3621
4385
  user_id: string;
3622
4386
 
@@ -3641,6 +4405,24 @@ export interface MemberResponse {
3641
4405
  role?: string;
3642
4406
  }
3643
4407
 
4408
+ export interface MemberUpdatedEvent {
4409
+ channel_id: string;
4410
+
4411
+ channel_type: string;
4412
+
4413
+ cid: string;
4414
+
4415
+ created_at: Date;
4416
+
4417
+ type: string;
4418
+
4419
+ team?: string;
4420
+
4421
+ member?: ChannelMember;
4422
+
4423
+ user?: User;
4424
+ }
4425
+
3644
4426
  export interface MembersResponse {
3645
4427
  duration: string;
3646
4428
 
@@ -3755,6 +4537,28 @@ export interface MessageChangeSet {
3755
4537
  text: boolean;
3756
4538
  }
3757
4539
 
4540
+ export interface MessageDeletedEvent {
4541
+ channel_id: string;
4542
+
4543
+ channel_type: string;
4544
+
4545
+ cid: string;
4546
+
4547
+ created_at: Date;
4548
+
4549
+ hard_delete: boolean;
4550
+
4551
+ type: string;
4552
+
4553
+ team?: string;
4554
+
4555
+ thread_participants?: User[];
4556
+
4557
+ message?: Message;
4558
+
4559
+ user?: User;
4560
+ }
4561
+
3758
4562
  export interface MessageFlagResponse {
3759
4563
  created_at: Date;
3760
4564
 
@@ -3785,6 +4589,22 @@ export interface MessageFlagResponse {
3785
4589
  user?: UserResponse;
3786
4590
  }
3787
4591
 
4592
+ export interface MessageFlaggedEvent {
4593
+ cid: string;
4594
+
4595
+ created_at: Date;
4596
+
4597
+ type: string;
4598
+
4599
+ thread_participants?: User[];
4600
+
4601
+ flag?: Flag;
4602
+
4603
+ message?: Message;
4604
+
4605
+ user?: User;
4606
+ }
4607
+
3788
4608
  export interface MessageHistoryEntryResponse {
3789
4609
  is_deleted: boolean;
3790
4610
 
@@ -3825,6 +4645,28 @@ export interface MessageModerationResult {
3825
4645
  moderation_thresholds?: Thresholds;
3826
4646
  }
3827
4647
 
4648
+ export interface MessageNewEvent {
4649
+ channel_id: string;
4650
+
4651
+ channel_type: string;
4652
+
4653
+ cid: string;
4654
+
4655
+ created_at: Date;
4656
+
4657
+ watcher_count: number;
4658
+
4659
+ type: string;
4660
+
4661
+ team?: string;
4662
+
4663
+ thread_participants?: User[];
4664
+
4665
+ message?: Message;
4666
+
4667
+ user?: User;
4668
+ }
4669
+
3828
4670
  export interface MessagePaginationParams {}
3829
4671
 
3830
4672
  export interface MessageReadEvent {
@@ -3950,23 +4792,77 @@ export interface MessageResponse {
3950
4792
 
3951
4793
  i18n?: Record<string, string>;
3952
4794
 
3953
- image_labels?: Record<string, string[]>;
4795
+ image_labels?: Record<string, string[]>;
4796
+
4797
+ moderation?: ModerationV2Response;
4798
+
4799
+ pinned_by?: UserResponse;
4800
+
4801
+ poll?: PollResponseData;
4802
+
4803
+ quoted_message?: MessageResponse;
4804
+
4805
+ reaction_groups?: Record<string, ReactionGroupResponse>;
4806
+ }
4807
+
4808
+ export interface MessageUnblockedEvent {
4809
+ cid: string;
4810
+
4811
+ created_at: Date;
4812
+
4813
+ type: string;
4814
+
4815
+ thread_participants?: User[];
4816
+
4817
+ message?: Message;
4818
+
4819
+ user?: User;
4820
+ }
4821
+
4822
+ export interface MessageUndeletedEvent {
4823
+ channel_id: string;
4824
+
4825
+ channel_type: string;
4826
+
4827
+ cid: string;
4828
+
4829
+ created_at: Date;
4830
+
4831
+ type: string;
4832
+
4833
+ team?: string;
4834
+
4835
+ thread_participants?: User[];
4836
+
4837
+ message?: Message;
4838
+
4839
+ user?: User;
4840
+ }
4841
+
4842
+ export interface MessageUpdate {
4843
+ old_text?: string;
4844
+
4845
+ change_set?: MessageChangeSet;
4846
+ }
4847
+
4848
+ export interface MessageUpdatedEvent {
4849
+ channel_id: string;
4850
+
4851
+ channel_type: string;
3954
4852
 
3955
- moderation?: ModerationV2Response;
4853
+ cid: string;
3956
4854
 
3957
- pinned_by?: UserResponse;
4855
+ created_at: Date;
3958
4856
 
3959
- poll?: PollResponseData;
4857
+ type: string;
3960
4858
 
3961
- quoted_message?: MessageResponse;
4859
+ team?: string;
3962
4860
 
3963
- reaction_groups?: Record<string, ReactionGroupResponse>;
3964
- }
4861
+ thread_participants?: User[];
3965
4862
 
3966
- export interface MessageUpdate {
3967
- old_text?: string;
4863
+ message?: Message;
3968
4864
 
3969
- change_set?: MessageChangeSet;
4865
+ user?: User;
3970
4866
  }
3971
4867
 
3972
4868
  export interface MessageWithChannelResponse {
@@ -4063,6 +4959,56 @@ export interface ModerationActionConfig {
4063
4959
  custom: Record<string, any>;
4064
4960
  }
4065
4961
 
4962
+ export interface ModerationCustomActionEvent {
4963
+ created_at: Date;
4964
+
4965
+ type: string;
4966
+
4967
+ item?: ReviewQueueItem;
4968
+
4969
+ message?: Message;
4970
+
4971
+ user?: User;
4972
+ }
4973
+
4974
+ export interface ModerationEvent {
4975
+ created_at: Date;
4976
+
4977
+ type: string;
4978
+
4979
+ received_at?: Date;
4980
+
4981
+ flags?: Flag2Response[];
4982
+
4983
+ action?: ActionLogResponse;
4984
+
4985
+ review_queue_item?: ReviewQueueItemResponse;
4986
+ }
4987
+
4988
+ export interface ModerationFlaggedEvent {
4989
+ created_at: Date;
4990
+
4991
+ type: string;
4992
+
4993
+ item?: string;
4994
+
4995
+ object_id?: string;
4996
+
4997
+ user?: User;
4998
+ }
4999
+
5000
+ export interface ModerationMarkReviewedEvent {
5001
+ created_at: Date;
5002
+
5003
+ type: string;
5004
+
5005
+ item?: ReviewQueueItem;
5006
+
5007
+ message?: Message;
5008
+
5009
+ user?: User;
5010
+ }
5011
+
4066
5012
  export interface ModerationPayload {
4067
5013
  images?: string[];
4068
5014
 
@@ -4191,10 +5137,58 @@ export interface MuteUsersResponse {
4191
5137
  duration: string;
4192
5138
  }
4193
5139
 
5140
+ export interface NetworkMetricsReportResponse {
5141
+ average_connection_time?: number;
5142
+
5143
+ average_jitter?: number;
5144
+
5145
+ average_latency?: number;
5146
+
5147
+ average_time_to_reconnect?: number;
5148
+ }
5149
+
4194
5150
  export interface NoiseCancellationSettings {
4195
5151
  mode: 'available' | 'disabled' | 'auto-on';
4196
5152
  }
4197
5153
 
5154
+ export interface NotificationMarkUnreadEvent {
5155
+ channel_id: string;
5156
+
5157
+ channel_member_count: number;
5158
+
5159
+ channel_type: string;
5160
+
5161
+ cid: string;
5162
+
5163
+ created_at: Date;
5164
+
5165
+ first_unread_message_id: string;
5166
+
5167
+ last_read_at: Date;
5168
+
5169
+ total_unread_count: number;
5170
+
5171
+ unread_channels: number;
5172
+
5173
+ unread_count: number;
5174
+
5175
+ unread_messages: number;
5176
+
5177
+ unread_threads: number;
5178
+
5179
+ type: string;
5180
+
5181
+ last_read_message_id?: string;
5182
+
5183
+ team?: string;
5184
+
5185
+ thread_id?: string;
5186
+
5187
+ channel?: ChannelResponse;
5188
+
5189
+ user?: User;
5190
+ }
5191
+
4198
5192
  export interface NotificationSettings {
4199
5193
  enabled: boolean;
4200
5194
 
@@ -4383,6 +5377,12 @@ export interface PendingMessageResponse {
4383
5377
  user?: UserResponse;
4384
5378
  }
4385
5379
 
5380
+ export interface PerSDKUsageReport {
5381
+ total: number;
5382
+
5383
+ by_version: Record<string, number>;
5384
+ }
5385
+
4386
5386
  export interface Permission {
4387
5387
  action: string;
4388
5388
 
@@ -4405,6 +5405,18 @@ export interface Permission {
4405
5405
  condition?: Record<string, any>;
4406
5406
  }
4407
5407
 
5408
+ export interface PermissionRequestEvent {
5409
+ call_cid: string;
5410
+
5411
+ created_at: Date;
5412
+
5413
+ permissions: string[];
5414
+
5415
+ user: UserResponse;
5416
+
5417
+ type: string;
5418
+ }
5419
+
4408
5420
  export interface PinRequest {
4409
5421
  session_id: string;
4410
5422
 
@@ -4478,7 +5490,7 @@ export interface Poll {
4478
5490
 
4479
5491
  custom: Record<string, any>;
4480
5492
 
4481
- latest_votes_by_option: Record<string, Array<PollVote | null>>;
5493
+ latest_votes_by_option: Record<string, PollVote[]>;
4482
5494
 
4483
5495
  vote_counts_by_option: Record<string, number>;
4484
5496
 
@@ -4566,7 +5578,7 @@ export interface PollResponseData {
4566
5578
 
4567
5579
  custom: Record<string, any>;
4568
5580
 
4569
- latest_votes_by_option: Record<string, Array<PollVoteResponseData | null>>;
5581
+ latest_votes_by_option: Record<string, PollVoteResponseData[]>;
4570
5582
 
4571
5583
  vote_counts_by_option: Record<string, number>;
4572
5584
 
@@ -4811,6 +5823,40 @@ export interface PushProviderResponse {
4811
5823
  xiaomi_package_name?: string;
4812
5824
  }
4813
5825
 
5826
+ export interface QualityScoreReport {
5827
+ histogram: ReportByHistogramBucket[];
5828
+ }
5829
+
5830
+ export interface QualityScoreReportResponse {
5831
+ daily: DailyAggregateQualityScoreReportResponse[];
5832
+ }
5833
+
5834
+ export interface QueryAggregateCallStatsRequest {
5835
+ from?: string;
5836
+
5837
+ to?: string;
5838
+
5839
+ report_types?: string[];
5840
+ }
5841
+
5842
+ export interface QueryAggregateCallStatsResponse {
5843
+ duration: string;
5844
+
5845
+ call_duration_report?: CallDurationReportResponse;
5846
+
5847
+ call_participant_count_report?: CallParticipantCountReportResponse;
5848
+
5849
+ calls_per_day_report?: CallsPerDayReportResponse;
5850
+
5851
+ network_metrics_report?: NetworkMetricsReportResponse;
5852
+
5853
+ quality_score_report?: QualityScoreReportResponse;
5854
+
5855
+ sdk_usage_report?: SDKUsageReportResponse;
5856
+
5857
+ user_feedback_report?: UserFeedbackReportResponse;
5858
+ }
5859
+
4814
5860
  export interface QueryBannedUsersPayload {
4815
5861
  filter_conditions: Record<string, any>;
4816
5862
 
@@ -5172,7 +6218,7 @@ export interface QueryReviewQueueResponse {
5172
6218
 
5173
6219
  items: ReviewQueueItemResponse[];
5174
6220
 
5175
- action_config: Record<string, Array<ModerationActionConfig | null>>;
6221
+ action_config: Record<string, ModerationActionConfig[]>;
5176
6222
 
5177
6223
  stats: Record<string, number>;
5178
6224
 
@@ -5399,6 +6445,28 @@ export interface Reaction {
5399
6445
  user?: User;
5400
6446
  }
5401
6447
 
6448
+ export interface ReactionDeletedEvent {
6449
+ channel_id: string;
6450
+
6451
+ channel_type: string;
6452
+
6453
+ cid: string;
6454
+
6455
+ created_at: Date;
6456
+
6457
+ type: string;
6458
+
6459
+ team?: string;
6460
+
6461
+ thread_participants?: User[];
6462
+
6463
+ message?: Message;
6464
+
6465
+ reaction?: Reaction;
6466
+
6467
+ user?: User;
6468
+ }
6469
+
5402
6470
  export interface ReactionGroupResponse {
5403
6471
  count: number;
5404
6472
 
@@ -5409,6 +6477,28 @@ export interface ReactionGroupResponse {
5409
6477
  sum_scores: number;
5410
6478
  }
5411
6479
 
6480
+ export interface ReactionNewEvent {
6481
+ channel_id: string;
6482
+
6483
+ channel_type: string;
6484
+
6485
+ cid: string;
6486
+
6487
+ created_at: Date;
6488
+
6489
+ type: string;
6490
+
6491
+ team?: string;
6492
+
6493
+ thread_participants?: User[];
6494
+
6495
+ message?: Message;
6496
+
6497
+ reaction?: Reaction;
6498
+
6499
+ user?: User;
6500
+ }
6501
+
5412
6502
  export interface ReactionRemovalResponse {
5413
6503
  duration: string;
5414
6504
 
@@ -5451,6 +6541,26 @@ export interface ReactionResponse {
5451
6541
  user: UserResponse;
5452
6542
  }
5453
6543
 
6544
+ export interface ReactionUpdatedEvent {
6545
+ channel_id: string;
6546
+
6547
+ channel_type: string;
6548
+
6549
+ cid: string;
6550
+
6551
+ created_at: Date;
6552
+
6553
+ message: Message;
6554
+
6555
+ reaction: Reaction;
6556
+
6557
+ type: string;
6558
+
6559
+ team?: string;
6560
+
6561
+ user?: User;
6562
+ }
6563
+
5454
6564
  export interface ReactivateUserRequest {
5455
6565
  created_by_id?: string;
5456
6566
 
@@ -5539,6 +6649,20 @@ export interface RecordSettingsResponse {
5539
6649
  layout: LayoutSettingsResponse;
5540
6650
  }
5541
6651
 
6652
+ export interface ReportByHistogramBucket {
6653
+ category: string;
6654
+
6655
+ count: number;
6656
+
6657
+ mean: number;
6658
+
6659
+ sum: number;
6660
+
6661
+ lower_bound?: Bound;
6662
+
6663
+ upper_bound?: Bound;
6664
+ }
6665
+
5542
6666
  export interface Response {
5543
6667
  duration: string;
5544
6668
  }
@@ -5550,6 +6674,8 @@ export interface RestoreUsersRequest {
5550
6674
  }
5551
6675
 
5552
6676
  export interface ReviewQueueItem {
6677
+ bounce_count: number;
6678
+
5553
6679
  content_changed: boolean;
5554
6680
 
5555
6681
  created_at: Date;
@@ -5695,6 +6821,14 @@ export interface S3Request {
5695
6821
  s3_secret?: string;
5696
6822
  }
5697
6823
 
6824
+ export interface SDKUsageReport {
6825
+ per_sdk_usage: Record<string, PerSDKUsageReport>;
6826
+ }
6827
+
6828
+ export interface SDKUsageReportResponse {
6829
+ daily: DailyAggregateSDKUsageReportResponse[];
6830
+ }
6831
+
5698
6832
  export interface SFULocationResponse {
5699
6833
  datacenter: string;
5700
6834
 
@@ -5971,6 +7105,18 @@ export interface SendUserCustomEventRequest {
5971
7105
  event: UserCustomEventRequest;
5972
7106
  }
5973
7107
 
7108
+ export interface SessionSettings {
7109
+ inactivity_timeout_seconds: number;
7110
+ }
7111
+
7112
+ export interface SessionSettingsRequest {
7113
+ inactivity_timeout_seconds: number;
7114
+ }
7115
+
7116
+ export interface SessionSettingsResponse {
7117
+ inactivity_timeout_seconds: number;
7118
+ }
7119
+
5974
7120
  export interface ShowChannelRequest {
5975
7121
  user_id?: string;
5976
7122
 
@@ -5999,7 +7145,13 @@ export interface StartCampaignResponse {
5999
7145
  campaign?: CampaignResponse;
6000
7146
  }
6001
7147
 
6002
- export interface StartClosedCaptionsRequest {}
7148
+ export interface StartClosedCaptionsRequest {
7149
+ enable_transcription?: boolean;
7150
+
7151
+ external_storage?: string;
7152
+
7153
+ language?: string;
7154
+ }
6003
7155
 
6004
7156
  export interface StartClosedCaptionsResponse {
6005
7157
  duration: string;
@@ -6030,6 +7182,10 @@ export interface StartRecordingResponse {
6030
7182
  }
6031
7183
 
6032
7184
  export interface StartTranscriptionRequest {
7185
+ enable_closed_captions?: boolean;
7186
+
7187
+ language?: string;
7188
+
6033
7189
  transcription_external_storage?: string;
6034
7190
  }
6035
7191
 
@@ -6045,7 +7201,9 @@ export interface StopAllRTMPBroadcastsResponse {
6045
7201
 
6046
7202
  export interface StopCampaignRequest {}
6047
7203
 
6048
- export interface StopClosedCaptionsRequest {}
7204
+ export interface StopClosedCaptionsRequest {
7205
+ stop_transcription?: boolean;
7206
+ }
6049
7207
 
6050
7208
  export interface StopClosedCaptionsResponse {
6051
7209
  duration: string;
@@ -6058,11 +7216,13 @@ export interface StopHLSBroadcastingResponse {
6058
7216
  }
6059
7217
 
6060
7218
  export interface StopLiveRequest {
7219
+ continue_closed_caption?: boolean;
7220
+
6061
7221
  continue_hls?: boolean;
6062
7222
 
6063
7223
  continue_recording?: boolean;
6064
7224
 
6065
- continue_rtmp_broadcast?: boolean;
7225
+ continue_rtmp_broadcasts?: boolean;
6066
7226
 
6067
7227
  continue_transcription?: boolean;
6068
7228
  }
@@ -6085,7 +7245,9 @@ export interface StopRecordingResponse {
6085
7245
  duration: string;
6086
7246
  }
6087
7247
 
6088
- export interface StopTranscriptionRequest {}
7248
+ export interface StopTranscriptionRequest {
7249
+ stop_closed_captions?: boolean;
7250
+ }
6089
7251
 
6090
7252
  export interface StopTranscriptionResponse {
6091
7253
  duration: string;
@@ -6251,6 +7413,22 @@ export interface ThreadStateResponse {
6251
7413
  parent_message?: MessageResponse;
6252
7414
  }
6253
7415
 
7416
+ export interface ThreadUpdatedEvent {
7417
+ channel_id: string;
7418
+
7419
+ channel_type: string;
7420
+
7421
+ cid: string;
7422
+
7423
+ created_at: Date;
7424
+
7425
+ type: string;
7426
+
7427
+ thread?: ThreadResponse;
7428
+
7429
+ user?: User;
7430
+ }
7431
+
6254
7432
  export interface Thresholds {
6255
7433
  explicit?: LabelThresholds;
6256
7434
 
@@ -6286,9 +7464,42 @@ export interface TimeStats {
6286
7464
  export interface TranscriptionSettings {
6287
7465
  closed_caption_mode: 'available' | 'disabled' | 'auto-on';
6288
7466
 
7467
+ language:
7468
+ | 'auto'
7469
+ | 'en'
7470
+ | 'fr'
7471
+ | 'es'
7472
+ | 'de'
7473
+ | 'it'
7474
+ | 'nl'
7475
+ | 'pt'
7476
+ | 'pl'
7477
+ | 'ca'
7478
+ | 'cs'
7479
+ | 'da'
7480
+ | 'el'
7481
+ | 'fi'
7482
+ | 'id'
7483
+ | 'ja'
7484
+ | 'ru'
7485
+ | 'sv'
7486
+ | 'ta'
7487
+ | 'th'
7488
+ | 'tr'
7489
+ | 'hu'
7490
+ | 'ro'
7491
+ | 'zh'
7492
+ | 'ar'
7493
+ | 'tl'
7494
+ | 'he'
7495
+ | 'hi'
7496
+ | 'hr'
7497
+ | 'ko'
7498
+ | 'ms'
7499
+ | 'no'
7500
+ | 'uk';
7501
+
6289
7502
  mode: 'available' | 'disabled' | 'auto-on';
6290
-
6291
- languages: string[];
6292
7503
  }
6293
7504
 
6294
7505
  export interface TranscriptionSettingsRequest {
@@ -6296,15 +7507,81 @@ export interface TranscriptionSettingsRequest {
6296
7507
 
6297
7508
  closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
6298
7509
 
6299
- languages?: string[];
7510
+ language?:
7511
+ | 'auto'
7512
+ | 'en'
7513
+ | 'fr'
7514
+ | 'es'
7515
+ | 'de'
7516
+ | 'it'
7517
+ | 'nl'
7518
+ | 'pt'
7519
+ | 'pl'
7520
+ | 'ca'
7521
+ | 'cs'
7522
+ | 'da'
7523
+ | 'el'
7524
+ | 'fi'
7525
+ | 'id'
7526
+ | 'ja'
7527
+ | 'ru'
7528
+ | 'sv'
7529
+ | 'ta'
7530
+ | 'th'
7531
+ | 'tr'
7532
+ | 'hu'
7533
+ | 'ro'
7534
+ | 'zh'
7535
+ | 'ar'
7536
+ | 'tl'
7537
+ | 'he'
7538
+ | 'hi'
7539
+ | 'hr'
7540
+ | 'ko'
7541
+ | 'ms'
7542
+ | 'no'
7543
+ | 'uk';
6300
7544
  }
6301
7545
 
6302
7546
  export interface TranscriptionSettingsResponse {
6303
7547
  closed_caption_mode: 'available' | 'disabled' | 'auto-on';
6304
7548
 
6305
- mode: 'available' | 'disabled' | 'auto-on';
7549
+ language:
7550
+ | 'auto'
7551
+ | 'en'
7552
+ | 'fr'
7553
+ | 'es'
7554
+ | 'de'
7555
+ | 'it'
7556
+ | 'nl'
7557
+ | 'pt'
7558
+ | 'pl'
7559
+ | 'ca'
7560
+ | 'cs'
7561
+ | 'da'
7562
+ | 'el'
7563
+ | 'fi'
7564
+ | 'id'
7565
+ | 'ja'
7566
+ | 'ru'
7567
+ | 'sv'
7568
+ | 'ta'
7569
+ | 'th'
7570
+ | 'tr'
7571
+ | 'hu'
7572
+ | 'ro'
7573
+ | 'zh'
7574
+ | 'ar'
7575
+ | 'tl'
7576
+ | 'he'
7577
+ | 'hi'
7578
+ | 'hr'
7579
+ | 'ko'
7580
+ | 'ms'
7581
+ | 'no'
7582
+ | 'uk';
6306
7583
 
6307
- languages: string[];
7584
+ mode: 'available' | 'disabled' | 'auto-on';
6308
7585
  }
6309
7586
 
6310
7587
  export interface TranslateMessageRequest {
@@ -6431,6 +7708,16 @@ export interface UnblockUsersResponse {
6431
7708
  duration: string;
6432
7709
  }
6433
7710
 
7711
+ export interface UnblockedUserEvent {
7712
+ call_cid: string;
7713
+
7714
+ created_at: Date;
7715
+
7716
+ user: UserResponse;
7717
+
7718
+ type: string;
7719
+ }
7720
+
6434
7721
  export interface UnmuteChannelRequest {
6435
7722
  expiration?: number;
6436
7723
 
@@ -6566,8 +7853,6 @@ export interface UpdateAppRequest {
6566
7853
 
6567
7854
  sqs_url?: string;
6568
7855
 
6569
- video_provider?: 'agora' | 'hms';
6570
-
6571
7856
  webhook_url?: string;
6572
7857
 
6573
7858
  allowed_flag_reasons?: string[];
@@ -6580,8 +7865,6 @@ export interface UpdateAppRequest {
6580
7865
 
6581
7866
  webhook_events?: string[];
6582
7867
 
6583
- agora_options?: Config;
6584
-
6585
7868
  apn_config?: APNConfig;
6586
7869
 
6587
7870
  async_moderation_config?: AsyncModerationConfiguration;
@@ -6594,8 +7877,6 @@ export interface UpdateAppRequest {
6594
7877
 
6595
7878
  grants?: Record<string, string[]>;
6596
7879
 
6597
- hms_options?: Config;
6598
-
6599
7880
  huawei_config?: HuaweiConfig;
6600
7881
 
6601
7882
  image_upload_config?: FileUploadConfig;
@@ -7043,15 +8324,33 @@ export interface UpdateUsersResponse {
7043
8324
  users: Record<string, FullUserResponse>;
7044
8325
  }
7045
8326
 
8327
+ export interface UpdatedCallPermissionsEvent {
8328
+ call_cid: string;
8329
+
8330
+ created_at: Date;
8331
+
8332
+ own_capabilities: OwnCapability[];
8333
+
8334
+ user: UserResponse;
8335
+
8336
+ type: string;
8337
+ }
8338
+
7046
8339
  export interface UpsertConfigRequest {
7047
8340
  key: string;
7048
8341
 
7049
8342
  async?: boolean;
7050
8343
 
8344
+ team?: string;
8345
+
8346
+ user_id?: string;
8347
+
7051
8348
  ai_image_config?: AIImageConfig;
7052
8349
 
7053
8350
  ai_text_config?: AITextConfig;
7054
8351
 
8352
+ ai_video_config?: AIVideoConfig;
8353
+
7055
8354
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
7056
8355
 
7057
8356
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
@@ -7066,6 +8365,8 @@ export interface UpsertConfigRequest {
7066
8365
 
7067
8366
  google_vision_config?: GoogleVisionConfig;
7068
8367
 
8368
+ user?: UserRequest;
8369
+
7069
8370
  velocity_filter_config?: VelocityFilterConfig;
7070
8371
  }
7071
8372
 
@@ -7141,6 +8442,30 @@ export interface User {
7141
8442
  push_notifications?: PushNotificationSettings;
7142
8443
  }
7143
8444
 
8445
+ export interface UserBannedEvent {
8446
+ channel_id: string;
8447
+
8448
+ channel_type: string;
8449
+
8450
+ cid: string;
8451
+
8452
+ created_at: Date;
8453
+
8454
+ shadow: boolean;
8455
+
8456
+ created_by: User;
8457
+
8458
+ type: string;
8459
+
8460
+ expiration?: Date;
8461
+
8462
+ reason?: string;
8463
+
8464
+ team?: string;
8465
+
8466
+ user?: User;
8467
+ }
8468
+
7144
8469
  export interface UserBlock {
7145
8470
  blocked_by_user_id: string;
7146
8471
 
@@ -7155,6 +8480,90 @@ export interface UserCustomEventRequest {
7155
8480
  custom?: Record<string, any>;
7156
8481
  }
7157
8482
 
8483
+ export interface UserDeactivatedEvent {
8484
+ created_at: Date;
8485
+
8486
+ created_by: User;
8487
+
8488
+ type: string;
8489
+
8490
+ user?: User;
8491
+ }
8492
+
8493
+ export interface UserDeletedEvent {
8494
+ created_at: Date;
8495
+
8496
+ delete_conversation_channels: boolean;
8497
+
8498
+ hard_delete: boolean;
8499
+
8500
+ mark_messages_deleted: boolean;
8501
+
8502
+ type: string;
8503
+
8504
+ user?: User;
8505
+ }
8506
+
8507
+ export interface UserEventPayload {
8508
+ banned: boolean;
8509
+
8510
+ created_at: Date;
8511
+
8512
+ id: string;
8513
+
8514
+ language: string;
8515
+
8516
+ online: boolean;
8517
+
8518
+ role: string;
8519
+
8520
+ updated_at: Date;
8521
+
8522
+ blocked_user_ids: string[];
8523
+
8524
+ teams: string[];
8525
+
8526
+ custom: Record<string, any>;
8527
+
8528
+ deactivated_at?: Date;
8529
+
8530
+ deleted_at?: Date;
8531
+
8532
+ image?: string;
8533
+
8534
+ invisible?: boolean;
8535
+
8536
+ last_active?: Date;
8537
+
8538
+ name?: string;
8539
+
8540
+ revoke_tokens_issued_before?: Date;
8541
+
8542
+ privacy_settings?: PrivacySettingsResponse;
8543
+ }
8544
+
8545
+ export interface UserFeedbackReport {
8546
+ unreported_count: number;
8547
+
8548
+ count_by_rating: Record<string, number>;
8549
+ }
8550
+
8551
+ export interface UserFeedbackReportResponse {
8552
+ daily: DailyAggregateUserFeedbackReportResponse[];
8553
+ }
8554
+
8555
+ export interface UserFlaggedEvent {
8556
+ created_at: Date;
8557
+
8558
+ type: string;
8559
+
8560
+ target_user?: string;
8561
+
8562
+ target_users?: string[];
8563
+
8564
+ user?: User;
8565
+ }
8566
+
7158
8567
  export interface UserInfoResponse {
7159
8568
  id: string;
7160
8569
 
@@ -7191,6 +8600,26 @@ export interface UserMuteResponse {
7191
8600
  user?: UserResponse;
7192
8601
  }
7193
8602
 
8603
+ export interface UserMutedEvent {
8604
+ created_at: Date;
8605
+
8606
+ type: string;
8607
+
8608
+ target_user?: string;
8609
+
8610
+ target_users?: string[];
8611
+
8612
+ user?: User;
8613
+ }
8614
+
8615
+ export interface UserReactivatedEvent {
8616
+ created_at: Date;
8617
+
8618
+ type: string;
8619
+
8620
+ user?: User;
8621
+ }
8622
+
7194
8623
  export interface UserRequest {
7195
8624
  id: string;
7196
8625
 
@@ -7286,6 +8715,8 @@ export interface UserSessionStats {
7286
8715
 
7287
8716
  total_pixels_out: number;
7288
8717
 
8718
+ average_connection_time?: number;
8719
+
7289
8720
  browser?: string;
7290
8721
 
7291
8722
  browser_version?: string;
@@ -7373,6 +8804,56 @@ export interface UserStats {
7373
8804
  rating?: number;
7374
8805
  }
7375
8806
 
8807
+ export interface UserUnbannedEvent {
8808
+ channel_id: string;
8809
+
8810
+ channel_type: string;
8811
+
8812
+ cid: string;
8813
+
8814
+ created_at: Date;
8815
+
8816
+ shadow: boolean;
8817
+
8818
+ type: string;
8819
+
8820
+ team?: string;
8821
+
8822
+ user?: User;
8823
+ }
8824
+
8825
+ export interface UserUnmutedEvent {
8826
+ created_at: Date;
8827
+
8828
+ type: string;
8829
+
8830
+ target_user?: string;
8831
+
8832
+ target_users?: string[];
8833
+
8834
+ user?: User;
8835
+ }
8836
+
8837
+ export interface UserUnreadReminderEvent {
8838
+ created_at: Date;
8839
+
8840
+ channels: Record<string, ChannelMessages>;
8841
+
8842
+ type: string;
8843
+
8844
+ user?: User;
8845
+ }
8846
+
8847
+ export interface UserUpdatedEvent {
8848
+ created_at: Date;
8849
+
8850
+ user: UserEventPayload;
8851
+
8852
+ type: string;
8853
+
8854
+ received_at?: Date;
8855
+ }
8856
+
7376
8857
  export interface VelocityFilterConfig {
7377
8858
  cascading_actions: boolean;
7378
8859
 
@@ -7521,6 +9002,10 @@ export interface WSEvent {
7521
9002
  user?: UserResponse;
7522
9003
  }
7523
9004
 
9005
+ export interface WebhookEvent {
9006
+ type: string;
9007
+ }
9008
+
7524
9009
  export interface WrappedUnreadCountsResponse {
7525
9010
  duration: string;
7526
9011