@stream-io/node-sdk 0.4.5 → 0.4.6

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;
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;
705
1081
  }
706
1082
 
707
- export interface CallResponse {
708
- backstage: boolean;
1083
+ export interface CallRtmpBroadcastStartedEvent {
1084
+ call_cid: string;
709
1085
 
710
- captioning: boolean;
1086
+ created_at: Date;
711
1087
 
712
- cid: string;
1088
+ name: string;
1089
+
1090
+ type: string;
1091
+ }
1092
+
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
 
@@ -869,6 +1269,8 @@ export interface CallStatsReportSummaryResponse {
869
1269
 
870
1270
  created_at?: Date;
871
1271
 
1272
+ min_user_rating?: number;
1273
+
872
1274
  quality_score?: number;
873
1275
  }
874
1276
 
@@ -886,6 +1288,40 @@ export interface CallTranscription {
886
1288
  url: string;
887
1289
  }
888
1290
 
1291
+ export interface CallTranscriptionFailedEvent {
1292
+ call_cid: string;
1293
+
1294
+ created_at: Date;
1295
+
1296
+ type: string;
1297
+ }
1298
+
1299
+ export interface CallTranscriptionReadyEvent {
1300
+ call_cid: string;
1301
+
1302
+ created_at: Date;
1303
+
1304
+ call_transcription: CallTranscription;
1305
+
1306
+ type: string;
1307
+ }
1308
+
1309
+ export interface CallTranscriptionStartedEvent {
1310
+ call_cid: string;
1311
+
1312
+ created_at: Date;
1313
+
1314
+ type: string;
1315
+ }
1316
+
1317
+ export interface CallTranscriptionStoppedEvent {
1318
+ call_cid: string;
1319
+
1320
+ created_at: Date;
1321
+
1322
+ type: string;
1323
+ }
1324
+
889
1325
  export interface CallType {
890
1326
  app_pk: number;
891
1327
 
@@ -920,6 +1356,38 @@ export interface CallTypeResponse {
920
1356
  external_storage?: string;
921
1357
  }
922
1358
 
1359
+ export interface CallUpdatedEvent {
1360
+ call_cid: string;
1361
+
1362
+ created_at: Date;
1363
+
1364
+ call: CallResponse;
1365
+
1366
+ capabilities_by_role: Record<string, string[]>;
1367
+
1368
+ type: string;
1369
+ }
1370
+
1371
+ export interface CallUserMutedEvent {
1372
+ call_cid: string;
1373
+
1374
+ created_at: Date;
1375
+
1376
+ from_user_id: string;
1377
+
1378
+ muted_user_ids: string[];
1379
+
1380
+ type: string;
1381
+ }
1382
+
1383
+ export interface CallsPerDayReport {
1384
+ count: number;
1385
+ }
1386
+
1387
+ export interface CallsPerDayReportResponse {
1388
+ daily: DailyAggregateCallsPerDayReportResponse[];
1389
+ }
1390
+
923
1391
  export interface CampaignChannelTemplate {
924
1392
  type: string;
925
1393
 
@@ -927,9 +1395,21 @@ export interface CampaignChannelTemplate {
927
1395
 
928
1396
  id?: string;
929
1397
 
1398
+ team?: string;
1399
+
930
1400
  members?: string[];
931
1401
  }
932
1402
 
1403
+ export interface CampaignCompletedEvent {
1404
+ created_at: Date;
1405
+
1406
+ type: string;
1407
+
1408
+ received_at?: Date;
1409
+
1410
+ campaign?: CampaignResponse;
1411
+ }
1412
+
933
1413
  export interface CampaignMessageTemplate {
934
1414
  poll_id: string;
935
1415
 
@@ -982,6 +1462,16 @@ export interface CampaignResponse {
982
1462
  sender?: UserResponse;
983
1463
  }
984
1464
 
1465
+ export interface CampaignStartedEvent {
1466
+ created_at: Date;
1467
+
1468
+ type: string;
1469
+
1470
+ received_at?: Date;
1471
+
1472
+ campaign?: CampaignResponse;
1473
+ }
1474
+
985
1475
  export interface CampaignStatsResponse {
986
1476
  progress: number;
987
1477
 
@@ -1172,6 +1662,30 @@ export interface ChannelConfigWithInfo {
1172
1662
  grants?: Record<string, string[]>;
1173
1663
  }
1174
1664
 
1665
+ export interface ChannelCreatedEvent {
1666
+ created_at: Date;
1667
+
1668
+ type: string;
1669
+ }
1670
+
1671
+ export interface ChannelDeletedEvent {
1672
+ channel_id: string;
1673
+
1674
+ channel_member_count: number;
1675
+
1676
+ channel_type: string;
1677
+
1678
+ cid: string;
1679
+
1680
+ created_at: Date;
1681
+
1682
+ type: string;
1683
+
1684
+ team?: string;
1685
+
1686
+ channel?: ChannelResponse;
1687
+ }
1688
+
1175
1689
  export interface ChannelExport {
1176
1690
  cid?: string;
1177
1691
 
@@ -1184,6 +1698,18 @@ export interface ChannelExport {
1184
1698
  type?: string;
1185
1699
  }
1186
1700
 
1701
+ export interface ChannelFrozenEvent {
1702
+ channel_id: string;
1703
+
1704
+ channel_type: string;
1705
+
1706
+ cid: string;
1707
+
1708
+ created_at: Date;
1709
+
1710
+ type: string;
1711
+ }
1712
+
1187
1713
  export interface ChannelGetOrCreateRequest {
1188
1714
  hide_for_creator?: boolean;
1189
1715
 
@@ -1200,6 +1726,26 @@ export interface ChannelGetOrCreateRequest {
1200
1726
  watchers?: PaginationParams;
1201
1727
  }
1202
1728
 
1729
+ export interface ChannelHiddenEvent {
1730
+ channel_id: string;
1731
+
1732
+ channel_member_count: number;
1733
+
1734
+ channel_type: string;
1735
+
1736
+ cid: string;
1737
+
1738
+ clear_history: boolean;
1739
+
1740
+ created_at: Date;
1741
+
1742
+ type: string;
1743
+
1744
+ channel?: ChannelResponse;
1745
+
1746
+ user?: User;
1747
+ }
1748
+
1203
1749
  export interface ChannelInput {
1204
1750
  auto_translation_enabled?: boolean;
1205
1751
 
@@ -1306,6 +1852,12 @@ export interface ChannelMemberResponse {
1306
1852
  user?: UserResponse;
1307
1853
  }
1308
1854
 
1855
+ export interface ChannelMessages {
1856
+ messages: Message[];
1857
+
1858
+ channel?: ChannelResponse;
1859
+ }
1860
+
1309
1861
  export interface ChannelMute {
1310
1862
  created_at: Date;
1311
1863
 
@@ -1318,18 +1870,22 @@ export interface ChannelMute {
1318
1870
  user?: UserResponse;
1319
1871
  }
1320
1872
 
1873
+ export interface ChannelMutedEvent {
1874
+ created_at: Date;
1875
+
1876
+ type: string;
1877
+ }
1878
+
1321
1879
  export const ChannelOwnCapability = {
1322
1880
  BAN_CHANNEL_MEMBERS: 'ban-channel-members',
1323
1881
  CAST_POLL_VOTE: 'cast-poll-vote',
1324
1882
  CONNECT_EVENTS: 'connect-events',
1325
1883
  CREATE_ATTACHMENT: 'create-attachment',
1326
- CREATE_CALL: 'create-call',
1327
1884
  DELETE_ANY_MESSAGE: 'delete-any-message',
1328
1885
  DELETE_CHANNEL: 'delete-channel',
1329
1886
  DELETE_OWN_MESSAGE: 'delete-own-message',
1330
1887
  FLAG_MESSAGE: 'flag-message',
1331
1888
  FREEZE_CHANNEL: 'freeze-channel',
1332
- JOIN_CALL: 'join-call',
1333
1889
  JOIN_CHANNEL: 'join-channel',
1334
1890
  LEAVE_CHANNEL: 'leave-channel',
1335
1891
  MUTE_CHANNEL: 'mute-channel',
@@ -1469,6 +2025,22 @@ export interface ChannelStateResponseFields {
1469
2025
  membership?: ChannelMember;
1470
2026
  }
1471
2027
 
2028
+ export interface ChannelTruncatedEvent {
2029
+ channel_id: string;
2030
+
2031
+ channel_member_count: number;
2032
+
2033
+ channel_type: string;
2034
+
2035
+ cid: string;
2036
+
2037
+ created_at: Date;
2038
+
2039
+ type: string;
2040
+
2041
+ channel?: ChannelResponse;
2042
+ }
2043
+
1472
2044
  export interface ChannelTypeConfig {
1473
2045
  automod: 'disabled' | 'simple' | 'AI';
1474
2046
 
@@ -1532,7 +2104,61 @@ export interface ChannelTypeConfig {
1532
2104
 
1533
2105
  blocklists?: BlockListOptions[];
1534
2106
 
1535
- automod_thresholds?: Thresholds;
2107
+ automod_thresholds?: Thresholds;
2108
+ }
2109
+
2110
+ export interface ChannelUnFrozenEvent {
2111
+ channel_id: string;
2112
+
2113
+ channel_type: string;
2114
+
2115
+ cid: string;
2116
+
2117
+ created_at: Date;
2118
+
2119
+ type: string;
2120
+ }
2121
+
2122
+ export interface ChannelUnmutedEvent {
2123
+ created_at: Date;
2124
+
2125
+ type: string;
2126
+ }
2127
+
2128
+ export interface ChannelUpdatedEvent {
2129
+ channel_id: string;
2130
+
2131
+ channel_member_count: number;
2132
+
2133
+ channel_type: string;
2134
+
2135
+ cid: string;
2136
+
2137
+ created_at: Date;
2138
+
2139
+ type: string;
2140
+
2141
+ team?: string;
2142
+
2143
+ channel?: ChannelResponse;
2144
+
2145
+ message?: Message;
2146
+
2147
+ user?: User;
2148
+ }
2149
+
2150
+ export interface ChannelVisibleEvent {
2151
+ channel_id: string;
2152
+
2153
+ channel_type: string;
2154
+
2155
+ cid: string;
2156
+
2157
+ created_at: Date;
2158
+
2159
+ type: string;
2160
+
2161
+ user?: User;
1536
2162
  }
1537
2163
 
1538
2164
  export interface CheckExternalStorageResponse {
@@ -1645,6 +2271,16 @@ export interface CheckSQSResponse {
1645
2271
  data?: Record<string, any>;
1646
2272
  }
1647
2273
 
2274
+ export interface ClosedCaptionEvent {
2275
+ call_cid: string;
2276
+
2277
+ created_at: Date;
2278
+
2279
+ closed_caption: CallClosedCaption;
2280
+
2281
+ type: string;
2282
+ }
2283
+
1648
2284
  export interface CollectUserFeedbackRequest {
1649
2285
  rating: number;
1650
2286
 
@@ -1679,16 +2315,6 @@ export interface Command {
1679
2315
 
1680
2316
  export interface CommitMessageRequest {}
1681
2317
 
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
2318
  export interface ConfigOverrides {
1693
2319
  commands: string[];
1694
2320
 
@@ -1720,12 +2346,16 @@ export interface ConfigResponse {
1720
2346
 
1721
2347
  key: string;
1722
2348
 
2349
+ team: string;
2350
+
1723
2351
  updated_at: Date;
1724
2352
 
1725
2353
  ai_image_config?: AIImageConfig;
1726
2354
 
1727
2355
  ai_text_config?: AITextConfig;
1728
2356
 
2357
+ ai_video_config?: AIVideoConfig;
2358
+
1729
2359
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
1730
2360
 
1731
2361
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
@@ -2065,18 +2695,24 @@ export interface CustomActionRequest {
2065
2695
  options?: Record<string, any>;
2066
2696
  }
2067
2697
 
2068
- export interface CustomCheckRequest {
2069
- entity_creator_id: string;
2698
+ export interface CustomCheckFlag {
2699
+ type: string;
2700
+
2701
+ reason?: string;
2702
+
2703
+ labels?: string[];
2070
2704
 
2705
+ custom?: Record<string, any>;
2706
+ }
2707
+
2708
+ export interface CustomCheckRequest {
2071
2709
  entity_id: string;
2072
2710
 
2073
2711
  entity_type: string;
2074
2712
 
2075
- name?: string;
2076
-
2077
- reason?: string;
2713
+ flags: CustomCheckFlag[];
2078
2714
 
2079
- recommended_action?: string;
2715
+ entity_creator_id?: string;
2080
2716
 
2081
2717
  user_id?: string;
2082
2718
 
@@ -2090,17 +2726,57 @@ export interface CustomCheckResponse {
2090
2726
 
2091
2727
  id: string;
2092
2728
 
2093
- recommended_action: string;
2729
+ status: string;
2730
+
2731
+ item?: ReviewQueueItemResponse;
2732
+ }
2094
2733
 
2095
- scored_at: Date;
2734
+ export interface CustomVideoEvent {
2735
+ call_cid: string;
2096
2736
 
2097
- status: string;
2737
+ created_at: Date;
2098
2738
 
2099
- report: any[];
2739
+ custom: Record<string, any>;
2100
2740
 
2101
- moderator_action?: string;
2741
+ user: UserResponse;
2102
2742
 
2103
- reviewed_at?: Date;
2743
+ type: string;
2744
+ }
2745
+
2746
+ export interface DailyAggregateCallDurationReportResponse {
2747
+ date: string;
2748
+
2749
+ report: CallDurationReport;
2750
+ }
2751
+
2752
+ export interface DailyAggregateCallParticipantCountReportResponse {
2753
+ date: string;
2754
+
2755
+ report: CallParticipantCountReport;
2756
+ }
2757
+
2758
+ export interface DailyAggregateCallsPerDayReportResponse {
2759
+ date: string;
2760
+
2761
+ report: CallsPerDayReport;
2762
+ }
2763
+
2764
+ export interface DailyAggregateQualityScoreReportResponse {
2765
+ date: string;
2766
+
2767
+ report: QualityScoreReport;
2768
+ }
2769
+
2770
+ export interface DailyAggregateSDKUsageReportResponse {
2771
+ date: string;
2772
+
2773
+ report: SDKUsageReport;
2774
+ }
2775
+
2776
+ export interface DailyAggregateUserFeedbackReportResponse {
2777
+ date: string;
2778
+
2779
+ report: UserFeedbackReport;
2104
2780
  }
2105
2781
 
2106
2782
  export interface Data {
@@ -2368,13 +3044,13 @@ export interface EnrichedActivity {
2368
3044
 
2369
3045
  actor?: Data;
2370
3046
 
2371
- latest_reactions?: Record<string, Array<EnrichedReaction | null>>;
3047
+ latest_reactions?: Record<string, EnrichedReaction[]>;
2372
3048
 
2373
3049
  object?: Data;
2374
3050
 
2375
3051
  origin?: Data;
2376
3052
 
2377
- own_reactions?: Record<string, Array<EnrichedReaction | null>>;
3053
+ own_reactions?: Record<string, EnrichedReaction[]>;
2378
3054
 
2379
3055
  reaction_counts?: Record<string, number>;
2380
3056
 
@@ -2400,9 +3076,9 @@ export interface EnrichedReaction {
2400
3076
 
2401
3077
  data?: Record<string, any>;
2402
3078
 
2403
- latest_children?: Record<string, Array<EnrichedReaction | null>>;
3079
+ latest_children?: Record<string, EnrichedReaction[]>;
2404
3080
 
2405
- own_children?: Record<string, Array<EnrichedReaction | null>>;
3081
+ own_children?: Record<string, EnrichedReaction[]>;
2406
3082
 
2407
3083
  updated_at?: Time;
2408
3084
 
@@ -2659,6 +3335,36 @@ export interface FirebaseConfigFields {
2659
3335
  server_key?: string;
2660
3336
  }
2661
3337
 
3338
+ export interface Flag {
3339
+ created_at: Date;
3340
+
3341
+ created_by_automod: boolean;
3342
+
3343
+ updated_at: Date;
3344
+
3345
+ approved_at?: Date;
3346
+
3347
+ reason?: string;
3348
+
3349
+ rejected_at?: Date;
3350
+
3351
+ reviewed_at?: Date;
3352
+
3353
+ reviewed_by?: string;
3354
+
3355
+ target_message_id?: string;
3356
+
3357
+ custom?: Record<string, any>;
3358
+
3359
+ details?: FlagDetails;
3360
+
3361
+ target_message?: Message;
3362
+
3363
+ target_user?: User;
3364
+
3365
+ user?: User;
3366
+ }
3367
+
2662
3368
  export interface Flag2 {
2663
3369
  created_at: Date;
2664
3370
 
@@ -2769,6 +3475,20 @@ export interface FlagResponse {
2769
3475
  item_id: string;
2770
3476
  }
2771
3477
 
3478
+ export interface FlagUpdatedEvent {
3479
+ created_at: Date;
3480
+
3481
+ type: string;
3482
+
3483
+ received_at?: Date;
3484
+
3485
+ created_by?: UserResponse;
3486
+
3487
+ message?: MessageResponse;
3488
+
3489
+ user?: UserResponse;
3490
+ }
3491
+
2772
3492
  export interface FullUserResponse {
2773
3493
  banned: boolean;
2774
3494
 
@@ -2922,6 +3642,8 @@ export interface GetCallStatsResponse {
2922
3642
 
2923
3643
  sfus: SFULocationResponse[];
2924
3644
 
3645
+ average_connection_time?: number;
3646
+
2925
3647
  aggregated?: AggregatedStats;
2926
3648
 
2927
3649
  call_timeline?: CallTimeline;
@@ -3250,6 +3972,8 @@ export interface GetUserModerationReportResponse {
3250
3972
  export interface GoLiveRequest {
3251
3973
  recording_storage_name?: string;
3252
3974
 
3975
+ start_closed_caption?: boolean;
3976
+
3253
3977
  start_hls?: boolean;
3254
3978
 
3255
3979
  start_recording?: boolean;
@@ -3617,6 +4341,40 @@ export interface MediaPubSubHint {
3617
4341
  video_subscribed: boolean;
3618
4342
  }
3619
4343
 
4344
+ export interface MemberAddedEvent {
4345
+ channel_id: string;
4346
+
4347
+ channel_type: string;
4348
+
4349
+ cid: string;
4350
+
4351
+ created_at: Date;
4352
+
4353
+ type: string;
4354
+
4355
+ team?: string;
4356
+
4357
+ member?: ChannelMember;
4358
+
4359
+ user?: User;
4360
+ }
4361
+
4362
+ export interface MemberRemovedEvent {
4363
+ channel_id: string;
4364
+
4365
+ channel_type: string;
4366
+
4367
+ cid: string;
4368
+
4369
+ created_at: Date;
4370
+
4371
+ type: string;
4372
+
4373
+ member?: ChannelMember;
4374
+
4375
+ user?: User;
4376
+ }
4377
+
3620
4378
  export interface MemberRequest {
3621
4379
  user_id: string;
3622
4380
 
@@ -3641,6 +4399,24 @@ export interface MemberResponse {
3641
4399
  role?: string;
3642
4400
  }
3643
4401
 
4402
+ export interface MemberUpdatedEvent {
4403
+ channel_id: string;
4404
+
4405
+ channel_type: string;
4406
+
4407
+ cid: string;
4408
+
4409
+ created_at: Date;
4410
+
4411
+ type: string;
4412
+
4413
+ team?: string;
4414
+
4415
+ member?: ChannelMember;
4416
+
4417
+ user?: User;
4418
+ }
4419
+
3644
4420
  export interface MembersResponse {
3645
4421
  duration: string;
3646
4422
 
@@ -3755,6 +4531,28 @@ export interface MessageChangeSet {
3755
4531
  text: boolean;
3756
4532
  }
3757
4533
 
4534
+ export interface MessageDeletedEvent {
4535
+ channel_id: string;
4536
+
4537
+ channel_type: string;
4538
+
4539
+ cid: string;
4540
+
4541
+ created_at: Date;
4542
+
4543
+ hard_delete: boolean;
4544
+
4545
+ type: string;
4546
+
4547
+ team?: string;
4548
+
4549
+ thread_participants?: User[];
4550
+
4551
+ message?: Message;
4552
+
4553
+ user?: User;
4554
+ }
4555
+
3758
4556
  export interface MessageFlagResponse {
3759
4557
  created_at: Date;
3760
4558
 
@@ -3785,6 +4583,22 @@ export interface MessageFlagResponse {
3785
4583
  user?: UserResponse;
3786
4584
  }
3787
4585
 
4586
+ export interface MessageFlaggedEvent {
4587
+ cid: string;
4588
+
4589
+ created_at: Date;
4590
+
4591
+ type: string;
4592
+
4593
+ thread_participants?: User[];
4594
+
4595
+ flag?: Flag;
4596
+
4597
+ message?: Message;
4598
+
4599
+ user?: User;
4600
+ }
4601
+
3788
4602
  export interface MessageHistoryEntryResponse {
3789
4603
  is_deleted: boolean;
3790
4604
 
@@ -3825,6 +4639,28 @@ export interface MessageModerationResult {
3825
4639
  moderation_thresholds?: Thresholds;
3826
4640
  }
3827
4641
 
4642
+ export interface MessageNewEvent {
4643
+ channel_id: string;
4644
+
4645
+ channel_type: string;
4646
+
4647
+ cid: string;
4648
+
4649
+ created_at: Date;
4650
+
4651
+ watcher_count: number;
4652
+
4653
+ type: string;
4654
+
4655
+ team?: string;
4656
+
4657
+ thread_participants?: User[];
4658
+
4659
+ message?: Message;
4660
+
4661
+ user?: User;
4662
+ }
4663
+
3828
4664
  export interface MessagePaginationParams {}
3829
4665
 
3830
4666
  export interface MessageReadEvent {
@@ -3946,27 +4782,81 @@ export interface MessageResponse {
3946
4782
 
3947
4783
  show_in_channel?: boolean;
3948
4784
 
3949
- thread_participants?: UserResponse[];
4785
+ thread_participants?: UserResponse[];
4786
+
4787
+ i18n?: Record<string, string>;
4788
+
4789
+ image_labels?: Record<string, string[]>;
4790
+
4791
+ moderation?: ModerationV2Response;
4792
+
4793
+ pinned_by?: UserResponse;
4794
+
4795
+ poll?: PollResponseData;
4796
+
4797
+ quoted_message?: MessageResponse;
4798
+
4799
+ reaction_groups?: Record<string, ReactionGroupResponse>;
4800
+ }
4801
+
4802
+ export interface MessageUnblockedEvent {
4803
+ cid: string;
4804
+
4805
+ created_at: Date;
4806
+
4807
+ type: string;
4808
+
4809
+ thread_participants?: User[];
4810
+
4811
+ message?: Message;
4812
+
4813
+ user?: User;
4814
+ }
4815
+
4816
+ export interface MessageUndeletedEvent {
4817
+ channel_id: string;
4818
+
4819
+ channel_type: string;
4820
+
4821
+ cid: string;
4822
+
4823
+ created_at: Date;
4824
+
4825
+ type: string;
4826
+
4827
+ team?: string;
4828
+
4829
+ thread_participants?: User[];
4830
+
4831
+ message?: Message;
4832
+
4833
+ user?: User;
4834
+ }
4835
+
4836
+ export interface MessageUpdate {
4837
+ old_text?: string;
4838
+
4839
+ change_set?: MessageChangeSet;
4840
+ }
3950
4841
 
3951
- i18n?: Record<string, string>;
4842
+ export interface MessageUpdatedEvent {
4843
+ channel_id: string;
3952
4844
 
3953
- image_labels?: Record<string, string[]>;
4845
+ channel_type: string;
3954
4846
 
3955
- moderation?: ModerationV2Response;
4847
+ cid: string;
3956
4848
 
3957
- pinned_by?: UserResponse;
4849
+ created_at: Date;
3958
4850
 
3959
- poll?: PollResponseData;
4851
+ type: string;
3960
4852
 
3961
- quoted_message?: MessageResponse;
4853
+ team?: string;
3962
4854
 
3963
- reaction_groups?: Record<string, ReactionGroupResponse>;
3964
- }
4855
+ thread_participants?: User[];
3965
4856
 
3966
- export interface MessageUpdate {
3967
- old_text?: string;
4857
+ message?: Message;
3968
4858
 
3969
- change_set?: MessageChangeSet;
4859
+ user?: User;
3970
4860
  }
3971
4861
 
3972
4862
  export interface MessageWithChannelResponse {
@@ -4063,6 +4953,56 @@ export interface ModerationActionConfig {
4063
4953
  custom: Record<string, any>;
4064
4954
  }
4065
4955
 
4956
+ export interface ModerationCustomActionEvent {
4957
+ created_at: Date;
4958
+
4959
+ type: string;
4960
+
4961
+ item?: ReviewQueueItem;
4962
+
4963
+ message?: Message;
4964
+
4965
+ user?: User;
4966
+ }
4967
+
4968
+ export interface ModerationEvent {
4969
+ created_at: Date;
4970
+
4971
+ type: string;
4972
+
4973
+ received_at?: Date;
4974
+
4975
+ flags?: Flag2Response[];
4976
+
4977
+ action?: ActionLogResponse;
4978
+
4979
+ review_queue_item?: ReviewQueueItemResponse;
4980
+ }
4981
+
4982
+ export interface ModerationFlaggedEvent {
4983
+ created_at: Date;
4984
+
4985
+ type: string;
4986
+
4987
+ item?: string;
4988
+
4989
+ object_id?: string;
4990
+
4991
+ user?: User;
4992
+ }
4993
+
4994
+ export interface ModerationMarkReviewedEvent {
4995
+ created_at: Date;
4996
+
4997
+ type: string;
4998
+
4999
+ item?: ReviewQueueItem;
5000
+
5001
+ message?: Message;
5002
+
5003
+ user?: User;
5004
+ }
5005
+
4066
5006
  export interface ModerationPayload {
4067
5007
  images?: string[];
4068
5008
 
@@ -4191,10 +5131,58 @@ export interface MuteUsersResponse {
4191
5131
  duration: string;
4192
5132
  }
4193
5133
 
5134
+ export interface NetworkMetricsReportResponse {
5135
+ average_connection_time?: number;
5136
+
5137
+ average_jitter?: number;
5138
+
5139
+ average_latency?: number;
5140
+
5141
+ average_time_to_reconnect?: number;
5142
+ }
5143
+
4194
5144
  export interface NoiseCancellationSettings {
4195
5145
  mode: 'available' | 'disabled' | 'auto-on';
4196
5146
  }
4197
5147
 
5148
+ export interface NotificationMarkUnreadEvent {
5149
+ channel_id: string;
5150
+
5151
+ channel_member_count: number;
5152
+
5153
+ channel_type: string;
5154
+
5155
+ cid: string;
5156
+
5157
+ created_at: Date;
5158
+
5159
+ first_unread_message_id: string;
5160
+
5161
+ last_read_at: Date;
5162
+
5163
+ total_unread_count: number;
5164
+
5165
+ unread_channels: number;
5166
+
5167
+ unread_count: number;
5168
+
5169
+ unread_messages: number;
5170
+
5171
+ unread_threads: number;
5172
+
5173
+ type: string;
5174
+
5175
+ last_read_message_id?: string;
5176
+
5177
+ team?: string;
5178
+
5179
+ thread_id?: string;
5180
+
5181
+ channel?: ChannelResponse;
5182
+
5183
+ user?: User;
5184
+ }
5185
+
4198
5186
  export interface NotificationSettings {
4199
5187
  enabled: boolean;
4200
5188
 
@@ -4383,6 +5371,12 @@ export interface PendingMessageResponse {
4383
5371
  user?: UserResponse;
4384
5372
  }
4385
5373
 
5374
+ export interface PerSDKUsageReport {
5375
+ total: number;
5376
+
5377
+ by_version: Record<string, number>;
5378
+ }
5379
+
4386
5380
  export interface Permission {
4387
5381
  action: string;
4388
5382
 
@@ -4405,6 +5399,18 @@ export interface Permission {
4405
5399
  condition?: Record<string, any>;
4406
5400
  }
4407
5401
 
5402
+ export interface PermissionRequestEvent {
5403
+ call_cid: string;
5404
+
5405
+ created_at: Date;
5406
+
5407
+ permissions: string[];
5408
+
5409
+ user: UserResponse;
5410
+
5411
+ type: string;
5412
+ }
5413
+
4408
5414
  export interface PinRequest {
4409
5415
  session_id: string;
4410
5416
 
@@ -4478,7 +5484,7 @@ export interface Poll {
4478
5484
 
4479
5485
  custom: Record<string, any>;
4480
5486
 
4481
- latest_votes_by_option: Record<string, Array<PollVote | null>>;
5487
+ latest_votes_by_option: Record<string, PollVote[]>;
4482
5488
 
4483
5489
  vote_counts_by_option: Record<string, number>;
4484
5490
 
@@ -4566,7 +5572,7 @@ export interface PollResponseData {
4566
5572
 
4567
5573
  custom: Record<string, any>;
4568
5574
 
4569
- latest_votes_by_option: Record<string, Array<PollVoteResponseData | null>>;
5575
+ latest_votes_by_option: Record<string, PollVoteResponseData[]>;
4570
5576
 
4571
5577
  vote_counts_by_option: Record<string, number>;
4572
5578
 
@@ -4811,6 +5817,40 @@ export interface PushProviderResponse {
4811
5817
  xiaomi_package_name?: string;
4812
5818
  }
4813
5819
 
5820
+ export interface QualityScoreReport {
5821
+ histogram: ReportByHistogramBucket[];
5822
+ }
5823
+
5824
+ export interface QualityScoreReportResponse {
5825
+ daily: DailyAggregateQualityScoreReportResponse[];
5826
+ }
5827
+
5828
+ export interface QueryAggregateCallStatsRequest {
5829
+ from?: string;
5830
+
5831
+ to?: string;
5832
+
5833
+ report_types?: string[];
5834
+ }
5835
+
5836
+ export interface QueryAggregateCallStatsResponse {
5837
+ duration: string;
5838
+
5839
+ call_duration_report?: CallDurationReportResponse;
5840
+
5841
+ call_participant_count_report?: CallParticipantCountReportResponse;
5842
+
5843
+ calls_per_day_report?: CallsPerDayReportResponse;
5844
+
5845
+ network_metrics_report?: NetworkMetricsReportResponse;
5846
+
5847
+ quality_score_report?: QualityScoreReportResponse;
5848
+
5849
+ sdk_usage_report?: SDKUsageReportResponse;
5850
+
5851
+ user_feedback_report?: UserFeedbackReportResponse;
5852
+ }
5853
+
4814
5854
  export interface QueryBannedUsersPayload {
4815
5855
  filter_conditions: Record<string, any>;
4816
5856
 
@@ -5172,7 +6212,7 @@ export interface QueryReviewQueueResponse {
5172
6212
 
5173
6213
  items: ReviewQueueItemResponse[];
5174
6214
 
5175
- action_config: Record<string, Array<ModerationActionConfig | null>>;
6215
+ action_config: Record<string, ModerationActionConfig[]>;
5176
6216
 
5177
6217
  stats: Record<string, number>;
5178
6218
 
@@ -5399,6 +6439,28 @@ export interface Reaction {
5399
6439
  user?: User;
5400
6440
  }
5401
6441
 
6442
+ export interface ReactionDeletedEvent {
6443
+ channel_id: string;
6444
+
6445
+ channel_type: string;
6446
+
6447
+ cid: string;
6448
+
6449
+ created_at: Date;
6450
+
6451
+ type: string;
6452
+
6453
+ team?: string;
6454
+
6455
+ thread_participants?: User[];
6456
+
6457
+ message?: Message;
6458
+
6459
+ reaction?: Reaction;
6460
+
6461
+ user?: User;
6462
+ }
6463
+
5402
6464
  export interface ReactionGroupResponse {
5403
6465
  count: number;
5404
6466
 
@@ -5409,6 +6471,28 @@ export interface ReactionGroupResponse {
5409
6471
  sum_scores: number;
5410
6472
  }
5411
6473
 
6474
+ export interface ReactionNewEvent {
6475
+ channel_id: string;
6476
+
6477
+ channel_type: string;
6478
+
6479
+ cid: string;
6480
+
6481
+ created_at: Date;
6482
+
6483
+ type: string;
6484
+
6485
+ team?: string;
6486
+
6487
+ thread_participants?: User[];
6488
+
6489
+ message?: Message;
6490
+
6491
+ reaction?: Reaction;
6492
+
6493
+ user?: User;
6494
+ }
6495
+
5412
6496
  export interface ReactionRemovalResponse {
5413
6497
  duration: string;
5414
6498
 
@@ -5451,6 +6535,26 @@ export interface ReactionResponse {
5451
6535
  user: UserResponse;
5452
6536
  }
5453
6537
 
6538
+ export interface ReactionUpdatedEvent {
6539
+ channel_id: string;
6540
+
6541
+ channel_type: string;
6542
+
6543
+ cid: string;
6544
+
6545
+ created_at: Date;
6546
+
6547
+ message: Message;
6548
+
6549
+ reaction: Reaction;
6550
+
6551
+ type: string;
6552
+
6553
+ team?: string;
6554
+
6555
+ user?: User;
6556
+ }
6557
+
5454
6558
  export interface ReactivateUserRequest {
5455
6559
  created_by_id?: string;
5456
6560
 
@@ -5539,6 +6643,20 @@ export interface RecordSettingsResponse {
5539
6643
  layout: LayoutSettingsResponse;
5540
6644
  }
5541
6645
 
6646
+ export interface ReportByHistogramBucket {
6647
+ category: string;
6648
+
6649
+ count: number;
6650
+
6651
+ mean: number;
6652
+
6653
+ sum: number;
6654
+
6655
+ lower_bound?: Bound;
6656
+
6657
+ upper_bound?: Bound;
6658
+ }
6659
+
5542
6660
  export interface Response {
5543
6661
  duration: string;
5544
6662
  }
@@ -5550,6 +6668,8 @@ export interface RestoreUsersRequest {
5550
6668
  }
5551
6669
 
5552
6670
  export interface ReviewQueueItem {
6671
+ bounce_count: number;
6672
+
5553
6673
  content_changed: boolean;
5554
6674
 
5555
6675
  created_at: Date;
@@ -5695,6 +6815,14 @@ export interface S3Request {
5695
6815
  s3_secret?: string;
5696
6816
  }
5697
6817
 
6818
+ export interface SDKUsageReport {
6819
+ per_sdk_usage: Record<string, PerSDKUsageReport>;
6820
+ }
6821
+
6822
+ export interface SDKUsageReportResponse {
6823
+ daily: DailyAggregateSDKUsageReportResponse[];
6824
+ }
6825
+
5698
6826
  export interface SFULocationResponse {
5699
6827
  datacenter: string;
5700
6828
 
@@ -5999,7 +7127,13 @@ export interface StartCampaignResponse {
5999
7127
  campaign?: CampaignResponse;
6000
7128
  }
6001
7129
 
6002
- export interface StartClosedCaptionsRequest {}
7130
+ export interface StartClosedCaptionsRequest {
7131
+ enable_transcription?: boolean;
7132
+
7133
+ external_storage?: string;
7134
+
7135
+ language?: string;
7136
+ }
6003
7137
 
6004
7138
  export interface StartClosedCaptionsResponse {
6005
7139
  duration: string;
@@ -6030,6 +7164,10 @@ export interface StartRecordingResponse {
6030
7164
  }
6031
7165
 
6032
7166
  export interface StartTranscriptionRequest {
7167
+ enable_closed_captions?: boolean;
7168
+
7169
+ language?: string;
7170
+
6033
7171
  transcription_external_storage?: string;
6034
7172
  }
6035
7173
 
@@ -6045,7 +7183,9 @@ export interface StopAllRTMPBroadcastsResponse {
6045
7183
 
6046
7184
  export interface StopCampaignRequest {}
6047
7185
 
6048
- export interface StopClosedCaptionsRequest {}
7186
+ export interface StopClosedCaptionsRequest {
7187
+ stop_transcription?: boolean;
7188
+ }
6049
7189
 
6050
7190
  export interface StopClosedCaptionsResponse {
6051
7191
  duration: string;
@@ -6058,11 +7198,13 @@ export interface StopHLSBroadcastingResponse {
6058
7198
  }
6059
7199
 
6060
7200
  export interface StopLiveRequest {
7201
+ continue_closed_caption?: boolean;
7202
+
6061
7203
  continue_hls?: boolean;
6062
7204
 
6063
7205
  continue_recording?: boolean;
6064
7206
 
6065
- continue_rtmp_broadcast?: boolean;
7207
+ continue_rtmp_broadcasts?: boolean;
6066
7208
 
6067
7209
  continue_transcription?: boolean;
6068
7210
  }
@@ -6085,7 +7227,9 @@ export interface StopRecordingResponse {
6085
7227
  duration: string;
6086
7228
  }
6087
7229
 
6088
- export interface StopTranscriptionRequest {}
7230
+ export interface StopTranscriptionRequest {
7231
+ stop_closed_captions?: boolean;
7232
+ }
6089
7233
 
6090
7234
  export interface StopTranscriptionResponse {
6091
7235
  duration: string;
@@ -6251,6 +7395,22 @@ export interface ThreadStateResponse {
6251
7395
  parent_message?: MessageResponse;
6252
7396
  }
6253
7397
 
7398
+ export interface ThreadUpdatedEvent {
7399
+ channel_id: string;
7400
+
7401
+ channel_type: string;
7402
+
7403
+ cid: string;
7404
+
7405
+ created_at: Date;
7406
+
7407
+ type: string;
7408
+
7409
+ thread?: ThreadResponse;
7410
+
7411
+ user?: User;
7412
+ }
7413
+
6254
7414
  export interface Thresholds {
6255
7415
  explicit?: LabelThresholds;
6256
7416
 
@@ -6286,9 +7446,42 @@ export interface TimeStats {
6286
7446
  export interface TranscriptionSettings {
6287
7447
  closed_caption_mode: 'available' | 'disabled' | 'auto-on';
6288
7448
 
7449
+ language:
7450
+ | 'auto'
7451
+ | 'en'
7452
+ | 'fr'
7453
+ | 'es'
7454
+ | 'de'
7455
+ | 'it'
7456
+ | 'nl'
7457
+ | 'pt'
7458
+ | 'pl'
7459
+ | 'ca'
7460
+ | 'cs'
7461
+ | 'da'
7462
+ | 'el'
7463
+ | 'fi'
7464
+ | 'id'
7465
+ | 'ja'
7466
+ | 'ru'
7467
+ | 'sv'
7468
+ | 'ta'
7469
+ | 'th'
7470
+ | 'tr'
7471
+ | 'hu'
7472
+ | 'ro'
7473
+ | 'zh'
7474
+ | 'ar'
7475
+ | 'tl'
7476
+ | 'he'
7477
+ | 'hi'
7478
+ | 'hr'
7479
+ | 'ko'
7480
+ | 'ms'
7481
+ | 'no'
7482
+ | 'uk';
7483
+
6289
7484
  mode: 'available' | 'disabled' | 'auto-on';
6290
-
6291
- languages: string[];
6292
7485
  }
6293
7486
 
6294
7487
  export interface TranscriptionSettingsRequest {
@@ -6296,15 +7489,81 @@ export interface TranscriptionSettingsRequest {
6296
7489
 
6297
7490
  closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
6298
7491
 
6299
- languages?: string[];
7492
+ language?:
7493
+ | 'auto'
7494
+ | 'en'
7495
+ | 'fr'
7496
+ | 'es'
7497
+ | 'de'
7498
+ | 'it'
7499
+ | 'nl'
7500
+ | 'pt'
7501
+ | 'pl'
7502
+ | 'ca'
7503
+ | 'cs'
7504
+ | 'da'
7505
+ | 'el'
7506
+ | 'fi'
7507
+ | 'id'
7508
+ | 'ja'
7509
+ | 'ru'
7510
+ | 'sv'
7511
+ | 'ta'
7512
+ | 'th'
7513
+ | 'tr'
7514
+ | 'hu'
7515
+ | 'ro'
7516
+ | 'zh'
7517
+ | 'ar'
7518
+ | 'tl'
7519
+ | 'he'
7520
+ | 'hi'
7521
+ | 'hr'
7522
+ | 'ko'
7523
+ | 'ms'
7524
+ | 'no'
7525
+ | 'uk';
6300
7526
  }
6301
7527
 
6302
7528
  export interface TranscriptionSettingsResponse {
6303
7529
  closed_caption_mode: 'available' | 'disabled' | 'auto-on';
6304
7530
 
6305
- mode: 'available' | 'disabled' | 'auto-on';
7531
+ language:
7532
+ | 'auto'
7533
+ | 'en'
7534
+ | 'fr'
7535
+ | 'es'
7536
+ | 'de'
7537
+ | 'it'
7538
+ | 'nl'
7539
+ | 'pt'
7540
+ | 'pl'
7541
+ | 'ca'
7542
+ | 'cs'
7543
+ | 'da'
7544
+ | 'el'
7545
+ | 'fi'
7546
+ | 'id'
7547
+ | 'ja'
7548
+ | 'ru'
7549
+ | 'sv'
7550
+ | 'ta'
7551
+ | 'th'
7552
+ | 'tr'
7553
+ | 'hu'
7554
+ | 'ro'
7555
+ | 'zh'
7556
+ | 'ar'
7557
+ | 'tl'
7558
+ | 'he'
7559
+ | 'hi'
7560
+ | 'hr'
7561
+ | 'ko'
7562
+ | 'ms'
7563
+ | 'no'
7564
+ | 'uk';
6306
7565
 
6307
- languages: string[];
7566
+ mode: 'available' | 'disabled' | 'auto-on';
6308
7567
  }
6309
7568
 
6310
7569
  export interface TranslateMessageRequest {
@@ -6431,6 +7690,16 @@ export interface UnblockUsersResponse {
6431
7690
  duration: string;
6432
7691
  }
6433
7692
 
7693
+ export interface UnblockedUserEvent {
7694
+ call_cid: string;
7695
+
7696
+ created_at: Date;
7697
+
7698
+ user: UserResponse;
7699
+
7700
+ type: string;
7701
+ }
7702
+
6434
7703
  export interface UnmuteChannelRequest {
6435
7704
  expiration?: number;
6436
7705
 
@@ -6566,8 +7835,6 @@ export interface UpdateAppRequest {
6566
7835
 
6567
7836
  sqs_url?: string;
6568
7837
 
6569
- video_provider?: 'agora' | 'hms';
6570
-
6571
7838
  webhook_url?: string;
6572
7839
 
6573
7840
  allowed_flag_reasons?: string[];
@@ -6580,8 +7847,6 @@ export interface UpdateAppRequest {
6580
7847
 
6581
7848
  webhook_events?: string[];
6582
7849
 
6583
- agora_options?: Config;
6584
-
6585
7850
  apn_config?: APNConfig;
6586
7851
 
6587
7852
  async_moderation_config?: AsyncModerationConfiguration;
@@ -6594,8 +7859,6 @@ export interface UpdateAppRequest {
6594
7859
 
6595
7860
  grants?: Record<string, string[]>;
6596
7861
 
6597
- hms_options?: Config;
6598
-
6599
7862
  huawei_config?: HuaweiConfig;
6600
7863
 
6601
7864
  image_upload_config?: FileUploadConfig;
@@ -7043,15 +8306,33 @@ export interface UpdateUsersResponse {
7043
8306
  users: Record<string, FullUserResponse>;
7044
8307
  }
7045
8308
 
8309
+ export interface UpdatedCallPermissionsEvent {
8310
+ call_cid: string;
8311
+
8312
+ created_at: Date;
8313
+
8314
+ own_capabilities: OwnCapability[];
8315
+
8316
+ user: UserResponse;
8317
+
8318
+ type: string;
8319
+ }
8320
+
7046
8321
  export interface UpsertConfigRequest {
7047
8322
  key: string;
7048
8323
 
7049
8324
  async?: boolean;
7050
8325
 
8326
+ team?: string;
8327
+
8328
+ user_id?: string;
8329
+
7051
8330
  ai_image_config?: AIImageConfig;
7052
8331
 
7053
8332
  ai_text_config?: AITextConfig;
7054
8333
 
8334
+ ai_video_config?: AIVideoConfig;
8335
+
7055
8336
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
7056
8337
 
7057
8338
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
@@ -7066,6 +8347,8 @@ export interface UpsertConfigRequest {
7066
8347
 
7067
8348
  google_vision_config?: GoogleVisionConfig;
7068
8349
 
8350
+ user?: UserRequest;
8351
+
7069
8352
  velocity_filter_config?: VelocityFilterConfig;
7070
8353
  }
7071
8354
 
@@ -7141,6 +8424,30 @@ export interface User {
7141
8424
  push_notifications?: PushNotificationSettings;
7142
8425
  }
7143
8426
 
8427
+ export interface UserBannedEvent {
8428
+ channel_id: string;
8429
+
8430
+ channel_type: string;
8431
+
8432
+ cid: string;
8433
+
8434
+ created_at: Date;
8435
+
8436
+ shadow: boolean;
8437
+
8438
+ created_by: User;
8439
+
8440
+ type: string;
8441
+
8442
+ expiration?: Date;
8443
+
8444
+ reason?: string;
8445
+
8446
+ team?: string;
8447
+
8448
+ user?: User;
8449
+ }
8450
+
7144
8451
  export interface UserBlock {
7145
8452
  blocked_by_user_id: string;
7146
8453
 
@@ -7155,6 +8462,90 @@ export interface UserCustomEventRequest {
7155
8462
  custom?: Record<string, any>;
7156
8463
  }
7157
8464
 
8465
+ export interface UserDeactivatedEvent {
8466
+ created_at: Date;
8467
+
8468
+ created_by: User;
8469
+
8470
+ type: string;
8471
+
8472
+ user?: User;
8473
+ }
8474
+
8475
+ export interface UserDeletedEvent {
8476
+ created_at: Date;
8477
+
8478
+ delete_conversation_channels: boolean;
8479
+
8480
+ hard_delete: boolean;
8481
+
8482
+ mark_messages_deleted: boolean;
8483
+
8484
+ type: string;
8485
+
8486
+ user?: User;
8487
+ }
8488
+
8489
+ export interface UserEventPayload {
8490
+ banned: boolean;
8491
+
8492
+ created_at: Date;
8493
+
8494
+ id: string;
8495
+
8496
+ language: string;
8497
+
8498
+ online: boolean;
8499
+
8500
+ role: string;
8501
+
8502
+ updated_at: Date;
8503
+
8504
+ blocked_user_ids: string[];
8505
+
8506
+ teams: string[];
8507
+
8508
+ custom: Record<string, any>;
8509
+
8510
+ deactivated_at?: Date;
8511
+
8512
+ deleted_at?: Date;
8513
+
8514
+ image?: string;
8515
+
8516
+ invisible?: boolean;
8517
+
8518
+ last_active?: Date;
8519
+
8520
+ name?: string;
8521
+
8522
+ revoke_tokens_issued_before?: Date;
8523
+
8524
+ privacy_settings?: PrivacySettingsResponse;
8525
+ }
8526
+
8527
+ export interface UserFeedbackReport {
8528
+ unreported_count: number;
8529
+
8530
+ count_by_rating: Record<string, number>;
8531
+ }
8532
+
8533
+ export interface UserFeedbackReportResponse {
8534
+ daily: DailyAggregateUserFeedbackReportResponse[];
8535
+ }
8536
+
8537
+ export interface UserFlaggedEvent {
8538
+ created_at: Date;
8539
+
8540
+ type: string;
8541
+
8542
+ target_user?: string;
8543
+
8544
+ target_users?: string[];
8545
+
8546
+ user?: User;
8547
+ }
8548
+
7158
8549
  export interface UserInfoResponse {
7159
8550
  id: string;
7160
8551
 
@@ -7191,6 +8582,26 @@ export interface UserMuteResponse {
7191
8582
  user?: UserResponse;
7192
8583
  }
7193
8584
 
8585
+ export interface UserMutedEvent {
8586
+ created_at: Date;
8587
+
8588
+ type: string;
8589
+
8590
+ target_user?: string;
8591
+
8592
+ target_users?: string[];
8593
+
8594
+ user?: User;
8595
+ }
8596
+
8597
+ export interface UserReactivatedEvent {
8598
+ created_at: Date;
8599
+
8600
+ type: string;
8601
+
8602
+ user?: User;
8603
+ }
8604
+
7194
8605
  export interface UserRequest {
7195
8606
  id: string;
7196
8607
 
@@ -7286,6 +8697,8 @@ export interface UserSessionStats {
7286
8697
 
7287
8698
  total_pixels_out: number;
7288
8699
 
8700
+ average_connection_time?: number;
8701
+
7289
8702
  browser?: string;
7290
8703
 
7291
8704
  browser_version?: string;
@@ -7373,6 +8786,56 @@ export interface UserStats {
7373
8786
  rating?: number;
7374
8787
  }
7375
8788
 
8789
+ export interface UserUnbannedEvent {
8790
+ channel_id: string;
8791
+
8792
+ channel_type: string;
8793
+
8794
+ cid: string;
8795
+
8796
+ created_at: Date;
8797
+
8798
+ shadow: boolean;
8799
+
8800
+ type: string;
8801
+
8802
+ team?: string;
8803
+
8804
+ user?: User;
8805
+ }
8806
+
8807
+ export interface UserUnmutedEvent {
8808
+ created_at: Date;
8809
+
8810
+ type: string;
8811
+
8812
+ target_user?: string;
8813
+
8814
+ target_users?: string[];
8815
+
8816
+ user?: User;
8817
+ }
8818
+
8819
+ export interface UserUnreadReminderEvent {
8820
+ created_at: Date;
8821
+
8822
+ channels: Record<string, ChannelMessages>;
8823
+
8824
+ type: string;
8825
+
8826
+ user?: User;
8827
+ }
8828
+
8829
+ export interface UserUpdatedEvent {
8830
+ created_at: Date;
8831
+
8832
+ user: UserEventPayload;
8833
+
8834
+ type: string;
8835
+
8836
+ received_at?: Date;
8837
+ }
8838
+
7376
8839
  export interface VelocityFilterConfig {
7377
8840
  cascading_actions: boolean;
7378
8841
 
@@ -7521,6 +8984,10 @@ export interface WSEvent {
7521
8984
  user?: UserResponse;
7522
8985
  }
7523
8986
 
8987
+ export interface WebhookEvent {
8988
+ type: string;
8989
+ }
8990
+
7524
8991
  export interface WrappedUnreadCountsResponse {
7525
8992
  duration: string;
7526
8993