@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.
@@ -10,6 +10,11 @@ export interface AITextConfig {
10
10
  severity_rules: BodyguardSeverityRule[];
11
11
  async?: boolean;
12
12
  }
13
+ export interface AIVideoConfig {
14
+ enabled: boolean;
15
+ rules: AWSRekognitionRule[];
16
+ async?: boolean;
17
+ }
13
18
  export interface APIError {
14
19
  code: number;
15
20
  duration: string;
@@ -90,6 +95,10 @@ export interface AggregatedStats {
90
95
  publisher_aggregate_stats?: PublisherAggregateStats;
91
96
  turn?: TURNAggregatedStats;
92
97
  }
98
+ export interface AnyEvent {
99
+ created_at: Date;
100
+ type: string;
101
+ }
93
102
  export interface AppResponseFields {
94
103
  async_url_enrich_enabled: boolean;
95
104
  auto_translation_enabled: boolean;
@@ -115,7 +124,6 @@ export interface AppResponseFields {
115
124
  sqs_url: string;
116
125
  suspended: boolean;
117
126
  suspended_explanation: string;
118
- video_provider: string;
119
127
  webhook_url: string;
120
128
  user_search_disallowed_roles: string[];
121
129
  webhook_events: string[];
@@ -131,9 +139,7 @@ export interface AppResponseFields {
131
139
  allowed_flag_reasons?: string[];
132
140
  geofences?: GeofenceResponse[];
133
141
  image_moderation_labels?: string[];
134
- agora_options?: Config;
135
142
  datadog_info?: DataDogInfo;
136
- hms_options?: Config;
137
143
  }
138
144
  export interface AsyncModerationCallbackConfig {
139
145
  mode?: 'CALLBACK_MODE_NONE' | 'CALLBACK_MODE_REST' | 'CALLBACK_MODE_TWIRP';
@@ -319,6 +325,13 @@ export interface BlockUsersResponse {
319
325
  created_at: Date;
320
326
  duration: string;
321
327
  }
328
+ export interface BlockedUserEvent {
329
+ call_cid: string;
330
+ created_at: Date;
331
+ user: UserResponse;
332
+ type: string;
333
+ blocked_by_user?: UserResponse;
334
+ }
322
335
  export interface BlockedUserResponse {
323
336
  blocked_user_id: string;
324
337
  created_at: Date;
@@ -335,6 +348,10 @@ export interface BodyguardSeverityRule {
335
348
  action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
336
349
  severity: 'low' | 'medium' | 'high' | 'critical';
337
350
  }
351
+ export interface Bound {
352
+ inclusive: boolean;
353
+ value: number;
354
+ }
338
355
  export interface BroadcastSettings {
339
356
  enabled: boolean;
340
357
  hls?: HLSSettings;
@@ -350,6 +367,61 @@ export interface BroadcastSettingsResponse {
350
367
  hls: HLSSettingsResponse;
351
368
  rtmp: RTMPSettingsResponse;
352
369
  }
370
+ export interface CallAcceptedEvent {
371
+ call_cid: string;
372
+ created_at: Date;
373
+ call: CallResponse;
374
+ user: UserResponse;
375
+ type: string;
376
+ }
377
+ export interface CallClosedCaption {
378
+ end_time: Date;
379
+ speaker_id: string;
380
+ start_time: Date;
381
+ text: string;
382
+ user: UserResponse;
383
+ }
384
+ export interface CallClosedCaptionsFailedEvent {
385
+ call_cid: string;
386
+ created_at: Date;
387
+ type: string;
388
+ }
389
+ export interface CallClosedCaptionsStartedEvent {
390
+ call_cid: string;
391
+ created_at: Date;
392
+ type: string;
393
+ }
394
+ export interface CallClosedCaptionsStoppedEvent {
395
+ call_cid: string;
396
+ created_at: Date;
397
+ type: string;
398
+ }
399
+ export interface CallCreatedEvent {
400
+ call_cid: string;
401
+ created_at: Date;
402
+ members: MemberResponse[];
403
+ call: CallResponse;
404
+ type: string;
405
+ }
406
+ export interface CallDeletedEvent {
407
+ call_cid: string;
408
+ created_at: Date;
409
+ call: CallResponse;
410
+ type: string;
411
+ }
412
+ export interface CallDurationReport {
413
+ histogram: ReportByHistogramBucket[];
414
+ }
415
+ export interface CallDurationReportResponse {
416
+ daily: DailyAggregateCallDurationReportResponse[];
417
+ }
418
+ export interface CallEndedEvent {
419
+ call_cid: string;
420
+ created_at: Date;
421
+ call: CallResponse;
422
+ type: string;
423
+ user?: UserResponse;
424
+ }
353
425
  export interface CallEvent {
354
426
  description: string;
355
427
  end_timestamp: number;
@@ -362,21 +434,132 @@ export interface CallEvent {
362
434
  component?: string;
363
435
  issue_tags?: string[];
364
436
  }
437
+ export interface CallHLSBroadcastingFailedEvent {
438
+ call_cid: string;
439
+ created_at: Date;
440
+ type: string;
441
+ }
442
+ export interface CallHLSBroadcastingStartedEvent {
443
+ call_cid: string;
444
+ created_at: Date;
445
+ hls_playlist_url: string;
446
+ type: string;
447
+ }
448
+ export interface CallHLSBroadcastingStoppedEvent {
449
+ call_cid: string;
450
+ created_at: Date;
451
+ type: string;
452
+ }
365
453
  export interface CallIngressResponse {
366
454
  rtmp: RTMPIngress;
367
455
  }
456
+ export interface CallLiveStartedEvent {
457
+ call_cid: string;
458
+ created_at: Date;
459
+ call: CallResponse;
460
+ type: string;
461
+ }
462
+ export interface CallMemberAddedEvent {
463
+ call_cid: string;
464
+ created_at: Date;
465
+ members: MemberResponse[];
466
+ call: CallResponse;
467
+ type: string;
468
+ }
469
+ export interface CallMemberRemovedEvent {
470
+ call_cid: string;
471
+ created_at: Date;
472
+ members: string[];
473
+ call: CallResponse;
474
+ type: string;
475
+ }
476
+ export interface CallMemberUpdatedEvent {
477
+ call_cid: string;
478
+ created_at: Date;
479
+ members: MemberResponse[];
480
+ call: CallResponse;
481
+ type: string;
482
+ }
483
+ export interface CallMemberUpdatedPermissionEvent {
484
+ call_cid: string;
485
+ created_at: Date;
486
+ members: MemberResponse[];
487
+ call: CallResponse;
488
+ capabilities_by_role: Record<string, string[]>;
489
+ type: string;
490
+ }
491
+ export interface CallMissedEvent {
492
+ call_cid: string;
493
+ created_at: Date;
494
+ notify_user: boolean;
495
+ session_id: string;
496
+ members: MemberResponse[];
497
+ call: CallResponse;
498
+ user: UserResponse;
499
+ type: string;
500
+ }
501
+ export interface CallNotificationEvent {
502
+ call_cid: string;
503
+ created_at: Date;
504
+ session_id: string;
505
+ members: MemberResponse[];
506
+ call: CallResponse;
507
+ user: UserResponse;
508
+ type: string;
509
+ }
510
+ export interface CallParticipantCountReport {
511
+ histogram: ReportByHistogramBucket[];
512
+ }
513
+ export interface CallParticipantCountReportResponse {
514
+ daily: DailyAggregateCallParticipantCountReportResponse[];
515
+ }
368
516
  export interface CallParticipantResponse {
369
517
  joined_at: Date;
370
518
  role: string;
371
519
  user_session_id: string;
372
520
  user: UserResponse;
373
521
  }
522
+ export interface CallReactionEvent {
523
+ call_cid: string;
524
+ created_at: Date;
525
+ reaction: ReactionResponse;
526
+ type: string;
527
+ }
374
528
  export interface CallRecording {
375
529
  end_time: Date;
376
530
  filename: string;
377
531
  start_time: Date;
378
532
  url: string;
379
533
  }
534
+ export interface CallRecordingFailedEvent {
535
+ call_cid: string;
536
+ created_at: Date;
537
+ type: string;
538
+ }
539
+ export interface CallRecordingReadyEvent {
540
+ call_cid: string;
541
+ created_at: Date;
542
+ call_recording: CallRecording;
543
+ type: string;
544
+ }
545
+ export interface CallRecordingStartedEvent {
546
+ call_cid: string;
547
+ created_at: Date;
548
+ type: string;
549
+ }
550
+ export interface CallRecordingStoppedEvent {
551
+ call_cid: string;
552
+ created_at: Date;
553
+ type: string;
554
+ }
555
+ export interface CallRejectedEvent {
556
+ call_cid: string;
557
+ created_at: Date;
558
+ call: CallResponse;
559
+ user: UserResponse;
560
+ type: string;
561
+ reason?: string;
562
+ }
380
563
  export interface CallRequest {
381
564
  created_by_id?: string;
382
565
  starts_at?: Date;
@@ -411,6 +594,56 @@ export interface CallResponse {
411
594
  session?: CallSessionResponse;
412
595
  thumbnails?: ThumbnailResponse;
413
596
  }
597
+ export interface CallRingEvent {
598
+ call_cid: string;
599
+ created_at: Date;
600
+ session_id: string;
601
+ video: boolean;
602
+ members: MemberResponse[];
603
+ call: CallResponse;
604
+ user: UserResponse;
605
+ type: string;
606
+ }
607
+ export interface CallRtmpBroadcastFailedEvent {
608
+ call_cid: string;
609
+ created_at: Date;
610
+ name: string;
611
+ type: string;
612
+ }
613
+ export interface CallRtmpBroadcastStartedEvent {
614
+ call_cid: string;
615
+ created_at: Date;
616
+ name: string;
617
+ type: string;
618
+ }
619
+ export interface CallRtmpBroadcastStoppedEvent {
620
+ call_cid: string;
621
+ created_at: Date;
622
+ name: string;
623
+ type: string;
624
+ }
625
+ export interface CallSessionEndedEvent {
626
+ call_cid: string;
627
+ created_at: Date;
628
+ session_id: string;
629
+ call: CallResponse;
630
+ type: string;
631
+ }
632
+ export interface CallSessionParticipantJoinedEvent {
633
+ call_cid: string;
634
+ created_at: Date;
635
+ session_id: string;
636
+ participant: CallParticipantResponse;
637
+ type: string;
638
+ }
639
+ export interface CallSessionParticipantLeftEvent {
640
+ call_cid: string;
641
+ created_at: Date;
642
+ duration_seconds: number;
643
+ session_id: string;
644
+ participant: CallParticipantResponse;
645
+ type: string;
646
+ }
414
647
  export interface CallSessionResponse {
415
648
  anonymous_participant_count: number;
416
649
  id: string;
@@ -425,6 +658,13 @@ export interface CallSessionResponse {
425
658
  started_at?: Date;
426
659
  timer_ends_at?: Date;
427
660
  }
661
+ export interface CallSessionStartedEvent {
662
+ call_cid: string;
663
+ created_at: Date;
664
+ session_id: string;
665
+ call: CallResponse;
666
+ type: string;
667
+ }
428
668
  export interface CallSettings {
429
669
  audio?: AudioSettings;
430
670
  backstage?: BackstageSettings;
@@ -476,6 +716,7 @@ export interface CallStatsReportSummaryResponse {
476
716
  call_status: string;
477
717
  first_stats_time: Date;
478
718
  created_at?: Date;
719
+ min_user_rating?: number;
479
720
  quality_score?: number;
480
721
  }
481
722
  export interface CallTimeline {
@@ -487,6 +728,27 @@ export interface CallTranscription {
487
728
  start_time: Date;
488
729
  url: string;
489
730
  }
731
+ export interface CallTranscriptionFailedEvent {
732
+ call_cid: string;
733
+ created_at: Date;
734
+ type: string;
735
+ }
736
+ export interface CallTranscriptionReadyEvent {
737
+ call_cid: string;
738
+ created_at: Date;
739
+ call_transcription: CallTranscription;
740
+ type: string;
741
+ }
742
+ export interface CallTranscriptionStartedEvent {
743
+ call_cid: string;
744
+ created_at: Date;
745
+ type: string;
746
+ }
747
+ export interface CallTranscriptionStoppedEvent {
748
+ call_cid: string;
749
+ created_at: Date;
750
+ type: string;
751
+ }
490
752
  export interface CallType {
491
753
  app_pk: number;
492
754
  created_at: Date;
@@ -506,12 +768,39 @@ export interface CallTypeResponse {
506
768
  settings: CallSettingsResponse;
507
769
  external_storage?: string;
508
770
  }
771
+ export interface CallUpdatedEvent {
772
+ call_cid: string;
773
+ created_at: Date;
774
+ call: CallResponse;
775
+ capabilities_by_role: Record<string, string[]>;
776
+ type: string;
777
+ }
778
+ export interface CallUserMutedEvent {
779
+ call_cid: string;
780
+ created_at: Date;
781
+ from_user_id: string;
782
+ muted_user_ids: string[];
783
+ type: string;
784
+ }
785
+ export interface CallsPerDayReport {
786
+ count: number;
787
+ }
788
+ export interface CallsPerDayReportResponse {
789
+ daily: DailyAggregateCallsPerDayReportResponse[];
790
+ }
509
791
  export interface CampaignChannelTemplate {
510
792
  type: string;
511
793
  custom: Record<string, any>;
512
794
  id?: string;
795
+ team?: string;
513
796
  members?: string[];
514
797
  }
798
+ export interface CampaignCompletedEvent {
799
+ created_at: Date;
800
+ type: string;
801
+ received_at?: Date;
802
+ campaign?: CampaignResponse;
803
+ }
515
804
  export interface CampaignMessageTemplate {
516
805
  poll_id: string;
517
806
  text: string;
@@ -540,6 +829,12 @@ export interface CampaignResponse {
540
829
  message_template?: CampaignMessageTemplate;
541
830
  sender?: UserResponse;
542
831
  }
832
+ export interface CampaignStartedEvent {
833
+ created_at: Date;
834
+ type: string;
835
+ received_at?: Date;
836
+ campaign?: CampaignResponse;
837
+ }
543
838
  export interface CampaignStatsResponse {
544
839
  progress: number;
545
840
  stats_channels_created: number;
@@ -640,6 +935,20 @@ export interface ChannelConfigWithInfo {
640
935
  automod_thresholds?: Thresholds;
641
936
  grants?: Record<string, string[]>;
642
937
  }
938
+ export interface ChannelCreatedEvent {
939
+ created_at: Date;
940
+ type: string;
941
+ }
942
+ export interface ChannelDeletedEvent {
943
+ channel_id: string;
944
+ channel_member_count: number;
945
+ channel_type: string;
946
+ cid: string;
947
+ created_at: Date;
948
+ type: string;
949
+ team?: string;
950
+ channel?: ChannelResponse;
951
+ }
643
952
  export interface ChannelExport {
644
953
  cid?: string;
645
954
  id?: string;
@@ -647,6 +956,13 @@ export interface ChannelExport {
647
956
  messages_until?: Date;
648
957
  type?: string;
649
958
  }
959
+ export interface ChannelFrozenEvent {
960
+ channel_id: string;
961
+ channel_type: string;
962
+ cid: string;
963
+ created_at: Date;
964
+ type: string;
965
+ }
650
966
  export interface ChannelGetOrCreateRequest {
651
967
  hide_for_creator?: boolean;
652
968
  state?: boolean;
@@ -656,6 +972,17 @@ export interface ChannelGetOrCreateRequest {
656
972
  messages?: MessagePaginationParams;
657
973
  watchers?: PaginationParams;
658
974
  }
975
+ export interface ChannelHiddenEvent {
976
+ channel_id: string;
977
+ channel_member_count: number;
978
+ channel_type: string;
979
+ cid: string;
980
+ clear_history: boolean;
981
+ created_at: Date;
982
+ type: string;
983
+ channel?: ChannelResponse;
984
+ user?: User;
985
+ }
659
986
  export interface ChannelInput {
660
987
  auto_translation_enabled?: boolean;
661
988
  auto_translation_language?: string;
@@ -712,6 +1039,10 @@ export interface ChannelMemberResponse {
712
1039
  user_id?: string;
713
1040
  user?: UserResponse;
714
1041
  }
1042
+ export interface ChannelMessages {
1043
+ messages: Message[];
1044
+ channel?: ChannelResponse;
1045
+ }
715
1046
  export interface ChannelMute {
716
1047
  created_at: Date;
717
1048
  updated_at: Date;
@@ -719,18 +1050,20 @@ export interface ChannelMute {
719
1050
  channel?: ChannelResponse;
720
1051
  user?: UserResponse;
721
1052
  }
1053
+ export interface ChannelMutedEvent {
1054
+ created_at: Date;
1055
+ type: string;
1056
+ }
722
1057
  export declare const ChannelOwnCapability: {
723
1058
  readonly BAN_CHANNEL_MEMBERS: "ban-channel-members";
724
1059
  readonly CAST_POLL_VOTE: "cast-poll-vote";
725
1060
  readonly CONNECT_EVENTS: "connect-events";
726
1061
  readonly CREATE_ATTACHMENT: "create-attachment";
727
- readonly CREATE_CALL: "create-call";
728
1062
  readonly DELETE_ANY_MESSAGE: "delete-any-message";
729
1063
  readonly DELETE_CHANNEL: "delete-channel";
730
1064
  readonly DELETE_OWN_MESSAGE: "delete-own-message";
731
1065
  readonly FLAG_MESSAGE: "flag-message";
732
1066
  readonly FREEZE_CHANNEL: "freeze-channel";
733
- readonly JOIN_CALL: "join-call";
734
1067
  readonly JOIN_CHANNEL: "join-channel";
735
1068
  readonly LEAVE_CHANNEL: "leave-channel";
736
1069
  readonly MUTE_CHANNEL: "mute-channel";
@@ -815,6 +1148,15 @@ export interface ChannelStateResponseFields {
815
1148
  channel?: ChannelResponse;
816
1149
  membership?: ChannelMember;
817
1150
  }
1151
+ export interface ChannelTruncatedEvent {
1152
+ channel_id: string;
1153
+ channel_member_count: number;
1154
+ channel_type: string;
1155
+ cid: string;
1156
+ created_at: Date;
1157
+ type: string;
1158
+ channel?: ChannelResponse;
1159
+ }
818
1160
  export interface ChannelTypeConfig {
819
1161
  automod: 'disabled' | 'simple' | 'AI';
820
1162
  automod_behavior: 'flag' | 'block' | 'shadow_block';
@@ -849,6 +1191,37 @@ export interface ChannelTypeConfig {
849
1191
  blocklists?: BlockListOptions[];
850
1192
  automod_thresholds?: Thresholds;
851
1193
  }
1194
+ export interface ChannelUnFrozenEvent {
1195
+ channel_id: string;
1196
+ channel_type: string;
1197
+ cid: string;
1198
+ created_at: Date;
1199
+ type: string;
1200
+ }
1201
+ export interface ChannelUnmutedEvent {
1202
+ created_at: Date;
1203
+ type: string;
1204
+ }
1205
+ export interface ChannelUpdatedEvent {
1206
+ channel_id: string;
1207
+ channel_member_count: number;
1208
+ channel_type: string;
1209
+ cid: string;
1210
+ created_at: Date;
1211
+ type: string;
1212
+ team?: string;
1213
+ channel?: ChannelResponse;
1214
+ message?: Message;
1215
+ user?: User;
1216
+ }
1217
+ export interface ChannelVisibleEvent {
1218
+ channel_id: string;
1219
+ channel_type: string;
1220
+ cid: string;
1221
+ created_at: Date;
1222
+ type: string;
1223
+ user?: User;
1224
+ }
852
1225
  export interface CheckExternalStorageResponse {
853
1226
  duration: string;
854
1227
  file_url: string;
@@ -913,6 +1286,12 @@ export interface CheckSQSResponse {
913
1286
  error?: string;
914
1287
  data?: Record<string, any>;
915
1288
  }
1289
+ export interface ClosedCaptionEvent {
1290
+ call_cid: string;
1291
+ created_at: Date;
1292
+ closed_caption: CallClosedCaption;
1293
+ type: string;
1294
+ }
916
1295
  export interface CollectUserFeedbackRequest {
917
1296
  rating: number;
918
1297
  sdk: string;
@@ -934,12 +1313,6 @@ export interface Command {
934
1313
  }
935
1314
  export interface CommitMessageRequest {
936
1315
  }
937
- export interface Config {
938
- app_certificate: string;
939
- app_id: string;
940
- default_role?: 'attendee' | 'publisher' | 'subscriber' | 'admin';
941
- role_map?: Record<string, string>;
942
- }
943
1316
  export interface ConfigOverrides {
944
1317
  commands: string[];
945
1318
  grants: Record<string, string[]>;
@@ -957,9 +1330,11 @@ export interface ConfigResponse {
957
1330
  async: boolean;
958
1331
  created_at: Date;
959
1332
  key: string;
1333
+ team: string;
960
1334
  updated_at: Date;
961
1335
  ai_image_config?: AIImageConfig;
962
1336
  ai_text_config?: AITextConfig;
1337
+ ai_video_config?: AIVideoConfig;
963
1338
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
964
1339
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
965
1340
  automod_toxicity_config?: AutomodToxicityConfig;
@@ -1154,13 +1529,17 @@ export interface CustomActionRequest {
1154
1529
  id?: string;
1155
1530
  options?: Record<string, any>;
1156
1531
  }
1532
+ export interface CustomCheckFlag {
1533
+ type: string;
1534
+ reason?: string;
1535
+ labels?: string[];
1536
+ custom?: Record<string, any>;
1537
+ }
1157
1538
  export interface CustomCheckRequest {
1158
- entity_creator_id: string;
1159
1539
  entity_id: string;
1160
1540
  entity_type: string;
1161
- name?: string;
1162
- reason?: string;
1163
- recommended_action?: string;
1541
+ flags: CustomCheckFlag[];
1542
+ entity_creator_id?: string;
1164
1543
  user_id?: string;
1165
1544
  moderation_payload?: ModerationPayload;
1166
1545
  user?: UserRequest;
@@ -1168,12 +1547,39 @@ export interface CustomCheckRequest {
1168
1547
  export interface CustomCheckResponse {
1169
1548
  duration: string;
1170
1549
  id: string;
1171
- recommended_action: string;
1172
- scored_at: Date;
1173
1550
  status: string;
1174
- report: any[];
1175
- moderator_action?: string;
1176
- reviewed_at?: Date;
1551
+ item?: ReviewQueueItemResponse;
1552
+ }
1553
+ export interface CustomVideoEvent {
1554
+ call_cid: string;
1555
+ created_at: Date;
1556
+ custom: Record<string, any>;
1557
+ user: UserResponse;
1558
+ type: string;
1559
+ }
1560
+ export interface DailyAggregateCallDurationReportResponse {
1561
+ date: string;
1562
+ report: CallDurationReport;
1563
+ }
1564
+ export interface DailyAggregateCallParticipantCountReportResponse {
1565
+ date: string;
1566
+ report: CallParticipantCountReport;
1567
+ }
1568
+ export interface DailyAggregateCallsPerDayReportResponse {
1569
+ date: string;
1570
+ report: CallsPerDayReport;
1571
+ }
1572
+ export interface DailyAggregateQualityScoreReportResponse {
1573
+ date: string;
1574
+ report: QualityScoreReport;
1575
+ }
1576
+ export interface DailyAggregateSDKUsageReportResponse {
1577
+ date: string;
1578
+ report: SDKUsageReport;
1579
+ }
1580
+ export interface DailyAggregateUserFeedbackReportResponse {
1581
+ date: string;
1582
+ report: UserFeedbackReport;
1177
1583
  }
1178
1584
  export interface Data {
1179
1585
  id: string;
@@ -1343,10 +1749,10 @@ export interface EnrichedActivity {
1343
1749
  verb?: string;
1344
1750
  to?: string[];
1345
1751
  actor?: Data;
1346
- latest_reactions?: Record<string, Array<EnrichedReaction | null>>;
1752
+ latest_reactions?: Record<string, EnrichedReaction[]>;
1347
1753
  object?: Data;
1348
1754
  origin?: Data;
1349
- own_reactions?: Record<string, Array<EnrichedReaction | null>>;
1755
+ own_reactions?: Record<string, EnrichedReaction[]>;
1350
1756
  reaction_counts?: Record<string, number>;
1351
1757
  target?: Data;
1352
1758
  }
@@ -1360,8 +1766,8 @@ export interface EnrichedReaction {
1360
1766
  children_counts?: Record<string, number>;
1361
1767
  created_at?: Time;
1362
1768
  data?: Record<string, any>;
1363
- latest_children?: Record<string, Array<EnrichedReaction | null>>;
1364
- own_children?: Record<string, Array<EnrichedReaction | null>>;
1769
+ latest_children?: Record<string, EnrichedReaction[]>;
1770
+ own_children?: Record<string, EnrichedReaction[]>;
1365
1771
  updated_at?: Time;
1366
1772
  user?: Data;
1367
1773
  }
@@ -1510,6 +1916,22 @@ export interface FirebaseConfigFields {
1510
1916
  credentials_json?: string;
1511
1917
  server_key?: string;
1512
1918
  }
1919
+ export interface Flag {
1920
+ created_at: Date;
1921
+ created_by_automod: boolean;
1922
+ updated_at: Date;
1923
+ approved_at?: Date;
1924
+ reason?: string;
1925
+ rejected_at?: Date;
1926
+ reviewed_at?: Date;
1927
+ reviewed_by?: string;
1928
+ target_message_id?: string;
1929
+ custom?: Record<string, any>;
1930
+ details?: FlagDetails;
1931
+ target_message?: Message;
1932
+ target_user?: User;
1933
+ user?: User;
1934
+ }
1513
1935
  export interface Flag2 {
1514
1936
  created_at: Date;
1515
1937
  entity_id: string;
@@ -1572,6 +1994,14 @@ export interface FlagResponse {
1572
1994
  duration: string;
1573
1995
  item_id: string;
1574
1996
  }
1997
+ export interface FlagUpdatedEvent {
1998
+ created_at: Date;
1999
+ type: string;
2000
+ received_at?: Date;
2001
+ created_by?: UserResponse;
2002
+ message?: MessageResponse;
2003
+ user?: UserResponse;
2004
+ }
1575
2005
  export interface FullUserResponse {
1576
2006
  banned: boolean;
1577
2007
  created_at: Date;
@@ -1659,6 +2089,7 @@ export interface GetCallStatsResponse {
1659
2089
  sfu_count: number;
1660
2090
  participant_report: UserStats[];
1661
2091
  sfus: SFULocationResponse[];
2092
+ average_connection_time?: number;
1662
2093
  aggregated?: AggregatedStats;
1663
2094
  call_timeline?: CallTimeline;
1664
2095
  jitter?: TimeStats;
@@ -1843,6 +2274,7 @@ export interface GetUserModerationReportResponse {
1843
2274
  }
1844
2275
  export interface GoLiveRequest {
1845
2276
  recording_storage_name?: string;
2277
+ start_closed_caption?: boolean;
1846
2278
  start_hls?: boolean;
1847
2279
  start_recording?: boolean;
1848
2280
  start_rtmp_broadcasts?: boolean;
@@ -2071,6 +2503,25 @@ export interface MediaPubSubHint {
2071
2503
  video_published: boolean;
2072
2504
  video_subscribed: boolean;
2073
2505
  }
2506
+ export interface MemberAddedEvent {
2507
+ channel_id: string;
2508
+ channel_type: string;
2509
+ cid: string;
2510
+ created_at: Date;
2511
+ type: string;
2512
+ team?: string;
2513
+ member?: ChannelMember;
2514
+ user?: User;
2515
+ }
2516
+ export interface MemberRemovedEvent {
2517
+ channel_id: string;
2518
+ channel_type: string;
2519
+ cid: string;
2520
+ created_at: Date;
2521
+ type: string;
2522
+ member?: ChannelMember;
2523
+ user?: User;
2524
+ }
2074
2525
  export interface MemberRequest {
2075
2526
  user_id: string;
2076
2527
  role?: string;
@@ -2085,6 +2536,16 @@ export interface MemberResponse {
2085
2536
  deleted_at?: Date;
2086
2537
  role?: string;
2087
2538
  }
2539
+ export interface MemberUpdatedEvent {
2540
+ channel_id: string;
2541
+ channel_type: string;
2542
+ cid: string;
2543
+ created_at: Date;
2544
+ type: string;
2545
+ team?: string;
2546
+ member?: ChannelMember;
2547
+ user?: User;
2548
+ }
2088
2549
  export interface MembersResponse {
2089
2550
  duration: string;
2090
2551
  members: ChannelMember[];
@@ -2146,6 +2607,18 @@ export interface MessageChangeSet {
2146
2607
  silent: boolean;
2147
2608
  text: boolean;
2148
2609
  }
2610
+ export interface MessageDeletedEvent {
2611
+ channel_id: string;
2612
+ channel_type: string;
2613
+ cid: string;
2614
+ created_at: Date;
2615
+ hard_delete: boolean;
2616
+ type: string;
2617
+ team?: string;
2618
+ thread_participants?: User[];
2619
+ message?: Message;
2620
+ user?: User;
2621
+ }
2149
2622
  export interface MessageFlagResponse {
2150
2623
  created_at: Date;
2151
2624
  created_by_automod: boolean;
@@ -2162,6 +2635,15 @@ export interface MessageFlagResponse {
2162
2635
  reviewed_by?: UserResponse;
2163
2636
  user?: UserResponse;
2164
2637
  }
2638
+ export interface MessageFlaggedEvent {
2639
+ cid: string;
2640
+ created_at: Date;
2641
+ type: string;
2642
+ thread_participants?: User[];
2643
+ flag?: Flag;
2644
+ message?: Message;
2645
+ user?: User;
2646
+ }
2165
2647
  export interface MessageHistoryEntryResponse {
2166
2648
  is_deleted: boolean;
2167
2649
  message_id: string;
@@ -2184,6 +2666,18 @@ export interface MessageModerationResult {
2184
2666
  ai_moderation_response?: ModerationResponse;
2185
2667
  moderation_thresholds?: Thresholds;
2186
2668
  }
2669
+ export interface MessageNewEvent {
2670
+ channel_id: string;
2671
+ channel_type: string;
2672
+ cid: string;
2673
+ created_at: Date;
2674
+ watcher_count: number;
2675
+ type: string;
2676
+ team?: string;
2677
+ thread_participants?: User[];
2678
+ message?: Message;
2679
+ user?: User;
2680
+ }
2187
2681
  export interface MessagePaginationParams {
2188
2682
  }
2189
2683
  export interface MessageReadEvent {
@@ -2257,10 +2751,40 @@ export interface MessageResponse {
2257
2751
  quoted_message?: MessageResponse;
2258
2752
  reaction_groups?: Record<string, ReactionGroupResponse>;
2259
2753
  }
2754
+ export interface MessageUnblockedEvent {
2755
+ cid: string;
2756
+ created_at: Date;
2757
+ type: string;
2758
+ thread_participants?: User[];
2759
+ message?: Message;
2760
+ user?: User;
2761
+ }
2762
+ export interface MessageUndeletedEvent {
2763
+ channel_id: string;
2764
+ channel_type: string;
2765
+ cid: string;
2766
+ created_at: Date;
2767
+ type: string;
2768
+ team?: string;
2769
+ thread_participants?: User[];
2770
+ message?: Message;
2771
+ user?: User;
2772
+ }
2260
2773
  export interface MessageUpdate {
2261
2774
  old_text?: string;
2262
2775
  change_set?: MessageChangeSet;
2263
2776
  }
2777
+ export interface MessageUpdatedEvent {
2778
+ channel_id: string;
2779
+ channel_type: string;
2780
+ cid: string;
2781
+ created_at: Date;
2782
+ type: string;
2783
+ team?: string;
2784
+ thread_participants?: User[];
2785
+ message?: Message;
2786
+ user?: User;
2787
+ }
2264
2788
  export interface MessageWithChannelResponse {
2265
2789
  cid: string;
2266
2790
  created_at: Date;
@@ -2310,6 +2834,35 @@ export interface ModerationActionConfig {
2310
2834
  order: number;
2311
2835
  custom: Record<string, any>;
2312
2836
  }
2837
+ export interface ModerationCustomActionEvent {
2838
+ created_at: Date;
2839
+ type: string;
2840
+ item?: ReviewQueueItem;
2841
+ message?: Message;
2842
+ user?: User;
2843
+ }
2844
+ export interface ModerationEvent {
2845
+ created_at: Date;
2846
+ type: string;
2847
+ received_at?: Date;
2848
+ flags?: Flag2Response[];
2849
+ action?: ActionLogResponse;
2850
+ review_queue_item?: ReviewQueueItemResponse;
2851
+ }
2852
+ export interface ModerationFlaggedEvent {
2853
+ created_at: Date;
2854
+ type: string;
2855
+ item?: string;
2856
+ object_id?: string;
2857
+ user?: User;
2858
+ }
2859
+ export interface ModerationMarkReviewedEvent {
2860
+ created_at: Date;
2861
+ type: string;
2862
+ item?: ReviewQueueItem;
2863
+ message?: Message;
2864
+ user?: User;
2865
+ }
2313
2866
  export interface ModerationPayload {
2314
2867
  images?: string[];
2315
2868
  texts?: string[];
@@ -2386,9 +2939,35 @@ export interface MuteUsersRequest {
2386
2939
  export interface MuteUsersResponse {
2387
2940
  duration: string;
2388
2941
  }
2942
+ export interface NetworkMetricsReportResponse {
2943
+ average_connection_time?: number;
2944
+ average_jitter?: number;
2945
+ average_latency?: number;
2946
+ average_time_to_reconnect?: number;
2947
+ }
2389
2948
  export interface NoiseCancellationSettings {
2390
2949
  mode: 'available' | 'disabled' | 'auto-on';
2391
2950
  }
2951
+ export interface NotificationMarkUnreadEvent {
2952
+ channel_id: string;
2953
+ channel_member_count: number;
2954
+ channel_type: string;
2955
+ cid: string;
2956
+ created_at: Date;
2957
+ first_unread_message_id: string;
2958
+ last_read_at: Date;
2959
+ total_unread_count: number;
2960
+ unread_channels: number;
2961
+ unread_count: number;
2962
+ unread_messages: number;
2963
+ unread_threads: number;
2964
+ type: string;
2965
+ last_read_message_id?: string;
2966
+ team?: string;
2967
+ thread_id?: string;
2968
+ channel?: ChannelResponse;
2969
+ user?: User;
2970
+ }
2392
2971
  export interface NotificationSettings {
2393
2972
  enabled: boolean;
2394
2973
  call_live_started: EventNotificationSettings;
@@ -2505,6 +3084,10 @@ export interface PendingMessageResponse {
2505
3084
  metadata?: Record<string, string>;
2506
3085
  user?: UserResponse;
2507
3086
  }
3087
+ export interface PerSDKUsageReport {
3088
+ total: number;
3089
+ by_version: Record<string, number>;
3090
+ }
2508
3091
  export interface Permission {
2509
3092
  action: string;
2510
3093
  custom: boolean;
@@ -2517,6 +3100,13 @@ export interface Permission {
2517
3100
  tags: string[];
2518
3101
  condition?: Record<string, any>;
2519
3102
  }
3103
+ export interface PermissionRequestEvent {
3104
+ call_cid: string;
3105
+ created_at: Date;
3106
+ permissions: string[];
3107
+ user: UserResponse;
3108
+ type: string;
3109
+ }
2520
3110
  export interface PinRequest {
2521
3111
  session_id: string;
2522
3112
  user_id: string;
@@ -2558,7 +3148,7 @@ export interface Poll {
2558
3148
  options: PollOption[];
2559
3149
  own_votes: PollVote[];
2560
3150
  custom: Record<string, any>;
2561
- latest_votes_by_option: Record<string, Array<PollVote | null>>;
3151
+ latest_votes_by_option: Record<string, PollVote[]>;
2562
3152
  vote_counts_by_option: Record<string, number>;
2563
3153
  is_closed?: boolean;
2564
3154
  max_votes_allowed?: number;
@@ -2609,7 +3199,7 @@ export interface PollResponseData {
2609
3199
  options: PollOptionResponseData[];
2610
3200
  own_votes: PollVoteResponseData[];
2611
3201
  custom: Record<string, any>;
2612
- latest_votes_by_option: Record<string, Array<PollVoteResponseData | null>>;
3202
+ latest_votes_by_option: Record<string, PollVoteResponseData[]>;
2613
3203
  vote_counts_by_option: Record<string, number>;
2614
3204
  is_closed?: boolean;
2615
3205
  max_votes_allowed?: number;
@@ -2747,6 +3337,27 @@ export interface PushProviderResponse {
2747
3337
  xiaomi_app_secret?: string;
2748
3338
  xiaomi_package_name?: string;
2749
3339
  }
3340
+ export interface QualityScoreReport {
3341
+ histogram: ReportByHistogramBucket[];
3342
+ }
3343
+ export interface QualityScoreReportResponse {
3344
+ daily: DailyAggregateQualityScoreReportResponse[];
3345
+ }
3346
+ export interface QueryAggregateCallStatsRequest {
3347
+ from?: string;
3348
+ to?: string;
3349
+ report_types?: string[];
3350
+ }
3351
+ export interface QueryAggregateCallStatsResponse {
3352
+ duration: string;
3353
+ call_duration_report?: CallDurationReportResponse;
3354
+ call_participant_count_report?: CallParticipantCountReportResponse;
3355
+ calls_per_day_report?: CallsPerDayReportResponse;
3356
+ network_metrics_report?: NetworkMetricsReportResponse;
3357
+ quality_score_report?: QualityScoreReportResponse;
3358
+ sdk_usage_report?: SDKUsageReportResponse;
3359
+ user_feedback_report?: UserFeedbackReportResponse;
3360
+ }
2750
3361
  export interface QueryBannedUsersPayload {
2751
3362
  filter_conditions: Record<string, any>;
2752
3363
  exclude_expired_bans?: boolean;
@@ -2957,7 +3568,7 @@ export interface QueryReviewQueueRequest {
2957
3568
  export interface QueryReviewQueueResponse {
2958
3569
  duration: string;
2959
3570
  items: ReviewQueueItemResponse[];
2960
- action_config: Record<string, Array<ModerationActionConfig | null>>;
3571
+ action_config: Record<string, ModerationActionConfig[]>;
2961
3572
  stats: Record<string, number>;
2962
3573
  next?: string;
2963
3574
  prev?: string;
@@ -3079,12 +3690,36 @@ export interface Reaction {
3079
3690
  user_id?: string;
3080
3691
  user?: User;
3081
3692
  }
3693
+ export interface ReactionDeletedEvent {
3694
+ channel_id: string;
3695
+ channel_type: string;
3696
+ cid: string;
3697
+ created_at: Date;
3698
+ type: string;
3699
+ team?: string;
3700
+ thread_participants?: User[];
3701
+ message?: Message;
3702
+ reaction?: Reaction;
3703
+ user?: User;
3704
+ }
3082
3705
  export interface ReactionGroupResponse {
3083
3706
  count: number;
3084
3707
  first_reaction_at: Date;
3085
3708
  last_reaction_at: Date;
3086
3709
  sum_scores: number;
3087
3710
  }
3711
+ export interface ReactionNewEvent {
3712
+ channel_id: string;
3713
+ channel_type: string;
3714
+ cid: string;
3715
+ created_at: Date;
3716
+ type: string;
3717
+ team?: string;
3718
+ thread_participants?: User[];
3719
+ message?: Message;
3720
+ reaction?: Reaction;
3721
+ user?: User;
3722
+ }
3088
3723
  export interface ReactionRemovalResponse {
3089
3724
  duration: string;
3090
3725
  message?: Message;
@@ -3109,6 +3744,17 @@ export interface ReactionResponse {
3109
3744
  custom: Record<string, any>;
3110
3745
  user: UserResponse;
3111
3746
  }
3747
+ export interface ReactionUpdatedEvent {
3748
+ channel_id: string;
3749
+ channel_type: string;
3750
+ cid: string;
3751
+ created_at: Date;
3752
+ message: Message;
3753
+ reaction: Reaction;
3754
+ type: string;
3755
+ team?: string;
3756
+ user?: User;
3757
+ }
3112
3758
  export interface ReactivateUserRequest {
3113
3759
  created_by_id?: string;
3114
3760
  name?: string;
@@ -3158,6 +3804,14 @@ export interface RecordSettingsResponse {
3158
3804
  quality: string;
3159
3805
  layout: LayoutSettingsResponse;
3160
3806
  }
3807
+ export interface ReportByHistogramBucket {
3808
+ category: string;
3809
+ count: number;
3810
+ mean: number;
3811
+ sum: number;
3812
+ lower_bound?: Bound;
3813
+ upper_bound?: Bound;
3814
+ }
3161
3815
  export interface Response {
3162
3816
  duration: string;
3163
3817
  }
@@ -3167,6 +3821,7 @@ export interface RestoreUsersRequest {
3167
3821
  user_ids: string[];
3168
3822
  }
3169
3823
  export interface ReviewQueueItem {
3824
+ bounce_count: number;
3170
3825
  content_changed: boolean;
3171
3826
  created_at: Date;
3172
3827
  entity_id: string;
@@ -3246,6 +3901,12 @@ export interface S3Request {
3246
3901
  s3_api_key?: string;
3247
3902
  s3_secret?: string;
3248
3903
  }
3904
+ export interface SDKUsageReport {
3905
+ per_sdk_usage: Record<string, PerSDKUsageReport>;
3906
+ }
3907
+ export interface SDKUsageReportResponse {
3908
+ daily: DailyAggregateSDKUsageReportResponse[];
3909
+ }
3249
3910
  export interface SFULocationResponse {
3250
3911
  datacenter: string;
3251
3912
  id: string;
@@ -3424,6 +4085,9 @@ export interface StartCampaignResponse {
3424
4085
  campaign?: CampaignResponse;
3425
4086
  }
3426
4087
  export interface StartClosedCaptionsRequest {
4088
+ enable_transcription?: boolean;
4089
+ external_storage?: string;
4090
+ language?: string;
3427
4091
  }
3428
4092
  export interface StartClosedCaptionsResponse {
3429
4093
  duration: string;
@@ -3447,6 +4111,8 @@ export interface StartRecordingResponse {
3447
4111
  duration: string;
3448
4112
  }
3449
4113
  export interface StartTranscriptionRequest {
4114
+ enable_closed_captions?: boolean;
4115
+ language?: string;
3450
4116
  transcription_external_storage?: string;
3451
4117
  }
3452
4118
  export interface StartTranscriptionResponse {
@@ -3460,6 +4126,7 @@ export interface StopAllRTMPBroadcastsResponse {
3460
4126
  export interface StopCampaignRequest {
3461
4127
  }
3462
4128
  export interface StopClosedCaptionsRequest {
4129
+ stop_transcription?: boolean;
3463
4130
  }
3464
4131
  export interface StopClosedCaptionsResponse {
3465
4132
  duration: string;
@@ -3470,9 +4137,10 @@ export interface StopHLSBroadcastingResponse {
3470
4137
  duration: string;
3471
4138
  }
3472
4139
  export interface StopLiveRequest {
4140
+ continue_closed_caption?: boolean;
3473
4141
  continue_hls?: boolean;
3474
4142
  continue_recording?: boolean;
3475
- continue_rtmp_broadcast?: boolean;
4143
+ continue_rtmp_broadcasts?: boolean;
3476
4144
  continue_transcription?: boolean;
3477
4145
  }
3478
4146
  export interface StopLiveResponse {
@@ -3490,6 +4158,7 @@ export interface StopRecordingResponse {
3490
4158
  duration: string;
3491
4159
  }
3492
4160
  export interface StopTranscriptionRequest {
4161
+ stop_closed_captions?: boolean;
3493
4162
  }
3494
4163
  export interface StopTranscriptionResponse {
3495
4164
  duration: string;
@@ -3577,6 +4246,15 @@ export interface ThreadStateResponse {
3577
4246
  created_by?: UserResponse;
3578
4247
  parent_message?: MessageResponse;
3579
4248
  }
4249
+ export interface ThreadUpdatedEvent {
4250
+ channel_id: string;
4251
+ channel_type: string;
4252
+ cid: string;
4253
+ created_at: Date;
4254
+ type: string;
4255
+ thread?: ThreadResponse;
4256
+ user?: User;
4257
+ }
3580
4258
  export interface Thresholds {
3581
4259
  explicit?: LabelThresholds;
3582
4260
  spam?: LabelThresholds;
@@ -3602,18 +4280,18 @@ export interface TimeStats {
3602
4280
  }
3603
4281
  export interface TranscriptionSettings {
3604
4282
  closed_caption_mode: 'available' | 'disabled' | 'auto-on';
4283
+ language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk';
3605
4284
  mode: 'available' | 'disabled' | 'auto-on';
3606
- languages: string[];
3607
4285
  }
3608
4286
  export interface TranscriptionSettingsRequest {
3609
4287
  mode: 'available' | 'disabled' | 'auto-on';
3610
4288
  closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
3611
- languages?: string[];
4289
+ language?: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk';
3612
4290
  }
3613
4291
  export interface TranscriptionSettingsResponse {
3614
4292
  closed_caption_mode: 'available' | 'disabled' | 'auto-on';
4293
+ language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk';
3615
4294
  mode: 'available' | 'disabled' | 'auto-on';
3616
- languages: string[];
3617
4295
  }
3618
4296
  export interface TranslateMessageRequest {
3619
4297
  language: 'af' | 'sq' | 'am' | 'ar' | 'az' | 'bn' | 'bs' | 'bg' | 'zh' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'fa-AF' | 'nl' | 'en' | 'et' | 'fi' | 'fr' | 'fr-CA' | 'ka' | 'de' | 'el' | 'ha' | 'he' | 'hi' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lv' | 'ms' | 'no' | 'fa' | 'ps' | 'pl' | 'pt' | 'ro' | 'ru' | 'sr' | 'sk' | 'sl' | 'so' | 'es' | 'es-MX' | 'sw' | 'sv' | 'tl' | 'ta' | 'th' | 'tr' | 'uk' | 'ur' | 'vi' | 'lt';
@@ -3662,6 +4340,12 @@ export interface UnblockUsersRequest {
3662
4340
  export interface UnblockUsersResponse {
3663
4341
  duration: string;
3664
4342
  }
4343
+ export interface UnblockedUserEvent {
4344
+ call_cid: string;
4345
+ created_at: Date;
4346
+ user: UserResponse;
4347
+ type: string;
4348
+ }
3665
4349
  export interface UnmuteChannelRequest {
3666
4350
  expiration?: number;
3667
4351
  user_id?: string;
@@ -3741,21 +4425,18 @@ export interface UpdateAppRequest {
3741
4425
  sqs_key?: string;
3742
4426
  sqs_secret?: string;
3743
4427
  sqs_url?: string;
3744
- video_provider?: 'agora' | 'hms';
3745
4428
  webhook_url?: string;
3746
4429
  allowed_flag_reasons?: string[];
3747
4430
  image_moderation_block_labels?: string[];
3748
4431
  image_moderation_labels?: string[];
3749
4432
  user_search_disallowed_roles?: string[];
3750
4433
  webhook_events?: string[];
3751
- agora_options?: Config;
3752
4434
  apn_config?: APNConfig;
3753
4435
  async_moderation_config?: AsyncModerationConfiguration;
3754
4436
  datadog_info?: DataDogInfo;
3755
4437
  file_upload_config?: FileUploadConfig;
3756
4438
  firebase_config?: FirebaseConfig;
3757
4439
  grants?: Record<string, string[]>;
3758
- hms_options?: Config;
3759
4440
  huawei_config?: HuaweiConfig;
3760
4441
  image_upload_config?: FileUploadConfig;
3761
4442
  push_config?: PushConfig;
@@ -4014,11 +4695,21 @@ export interface UpdateUsersResponse {
4014
4695
  membership_deletion_task_id: string;
4015
4696
  users: Record<string, FullUserResponse>;
4016
4697
  }
4698
+ export interface UpdatedCallPermissionsEvent {
4699
+ call_cid: string;
4700
+ created_at: Date;
4701
+ own_capabilities: OwnCapability[];
4702
+ user: UserResponse;
4703
+ type: string;
4704
+ }
4017
4705
  export interface UpsertConfigRequest {
4018
4706
  key: string;
4019
4707
  async?: boolean;
4708
+ team?: string;
4709
+ user_id?: string;
4020
4710
  ai_image_config?: AIImageConfig;
4021
4711
  ai_text_config?: AITextConfig;
4712
+ ai_video_config?: AIVideoConfig;
4022
4713
  automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
4023
4714
  automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
4024
4715
  automod_toxicity_config?: AutomodToxicityConfig;
@@ -4026,6 +4717,7 @@ export interface UpsertConfigRequest {
4026
4717
  block_list_config?: BlockListConfig;
4027
4718
  bodyguard_config?: AITextConfig;
4028
4719
  google_vision_config?: GoogleVisionConfig;
4720
+ user?: UserRequest;
4029
4721
  velocity_filter_config?: VelocityFilterConfig;
4030
4722
  }
4031
4723
  export interface UpsertConfigResponse {
@@ -4070,6 +4762,19 @@ export interface User {
4070
4762
  privacy_settings?: PrivacySettings;
4071
4763
  push_notifications?: PushNotificationSettings;
4072
4764
  }
4765
+ export interface UserBannedEvent {
4766
+ channel_id: string;
4767
+ channel_type: string;
4768
+ cid: string;
4769
+ created_at: Date;
4770
+ shadow: boolean;
4771
+ created_by: User;
4772
+ type: string;
4773
+ expiration?: Date;
4774
+ reason?: string;
4775
+ team?: string;
4776
+ user?: User;
4777
+ }
4073
4778
  export interface UserBlock {
4074
4779
  blocked_by_user_id: string;
4075
4780
  blocked_user_id: string;
@@ -4079,6 +4784,54 @@ export interface UserCustomEventRequest {
4079
4784
  type: string;
4080
4785
  custom?: Record<string, any>;
4081
4786
  }
4787
+ export interface UserDeactivatedEvent {
4788
+ created_at: Date;
4789
+ created_by: User;
4790
+ type: string;
4791
+ user?: User;
4792
+ }
4793
+ export interface UserDeletedEvent {
4794
+ created_at: Date;
4795
+ delete_conversation_channels: boolean;
4796
+ hard_delete: boolean;
4797
+ mark_messages_deleted: boolean;
4798
+ type: string;
4799
+ user?: User;
4800
+ }
4801
+ export interface UserEventPayload {
4802
+ banned: boolean;
4803
+ created_at: Date;
4804
+ id: string;
4805
+ language: string;
4806
+ online: boolean;
4807
+ role: string;
4808
+ updated_at: Date;
4809
+ blocked_user_ids: string[];
4810
+ teams: string[];
4811
+ custom: Record<string, any>;
4812
+ deactivated_at?: Date;
4813
+ deleted_at?: Date;
4814
+ image?: string;
4815
+ invisible?: boolean;
4816
+ last_active?: Date;
4817
+ name?: string;
4818
+ revoke_tokens_issued_before?: Date;
4819
+ privacy_settings?: PrivacySettingsResponse;
4820
+ }
4821
+ export interface UserFeedbackReport {
4822
+ unreported_count: number;
4823
+ count_by_rating: Record<string, number>;
4824
+ }
4825
+ export interface UserFeedbackReportResponse {
4826
+ daily: DailyAggregateUserFeedbackReportResponse[];
4827
+ }
4828
+ export interface UserFlaggedEvent {
4829
+ created_at: Date;
4830
+ type: string;
4831
+ target_user?: string;
4832
+ target_users?: string[];
4833
+ user?: User;
4834
+ }
4082
4835
  export interface UserInfoResponse {
4083
4836
  id: string;
4084
4837
  image: string;
@@ -4100,6 +4853,18 @@ export interface UserMuteResponse {
4100
4853
  target?: UserResponse;
4101
4854
  user?: UserResponse;
4102
4855
  }
4856
+ export interface UserMutedEvent {
4857
+ created_at: Date;
4858
+ type: string;
4859
+ target_user?: string;
4860
+ target_users?: string[];
4861
+ user?: User;
4862
+ }
4863
+ export interface UserReactivatedEvent {
4864
+ created_at: Date;
4865
+ type: string;
4866
+ user?: User;
4867
+ }
4103
4868
  export interface UserRequest {
4104
4869
  id: string;
4105
4870
  image?: string;
@@ -4150,6 +4915,7 @@ export interface UserSessionStats {
4150
4915
  session_id: string;
4151
4916
  total_pixels_in: number;
4152
4917
  total_pixels_out: number;
4918
+ average_connection_time?: number;
4153
4919
  browser?: string;
4154
4920
  browser_version?: string;
4155
4921
  current_ip?: string;
@@ -4195,6 +4961,35 @@ export interface UserStats {
4195
4961
  info: UserInfoResponse;
4196
4962
  rating?: number;
4197
4963
  }
4964
+ export interface UserUnbannedEvent {
4965
+ channel_id: string;
4966
+ channel_type: string;
4967
+ cid: string;
4968
+ created_at: Date;
4969
+ shadow: boolean;
4970
+ type: string;
4971
+ team?: string;
4972
+ user?: User;
4973
+ }
4974
+ export interface UserUnmutedEvent {
4975
+ created_at: Date;
4976
+ type: string;
4977
+ target_user?: string;
4978
+ target_users?: string[];
4979
+ user?: User;
4980
+ }
4981
+ export interface UserUnreadReminderEvent {
4982
+ created_at: Date;
4983
+ channels: Record<string, ChannelMessages>;
4984
+ type: string;
4985
+ user?: User;
4986
+ }
4987
+ export interface UserUpdatedEvent {
4988
+ created_at: Date;
4989
+ user: UserEventPayload;
4990
+ type: string;
4991
+ received_at?: Date;
4992
+ }
4198
4993
  export interface VelocityFilterConfig {
4199
4994
  cascading_actions: boolean;
4200
4995
  enabled: boolean;
@@ -4278,6 +5073,9 @@ export interface WSEvent {
4278
5073
  thread?: ThreadResponse;
4279
5074
  user?: UserResponse;
4280
5075
  }
5076
+ export interface WebhookEvent {
5077
+ type: string;
5078
+ }
4281
5079
  export interface WrappedUnreadCountsResponse {
4282
5080
  duration: string;
4283
5081
  total_unread_count: number;