@stream-io/node-sdk 0.4.5 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +52 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +52 -24
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/models/index.d.ts +844 -34
- package/dist/src/gen/moderation/ModerationApi.d.ts +2 -0
- package/dist/src/gen/video/CallApi.d.ts +4 -4
- package/dist/src/gen/video/VideoApi.d.ts +5 -4
- package/package.json +3 -2
- package/src/gen/common/CommonApi.ts +0 -3
- package/src/gen/model-decoders/index.ts +1 -3
- package/src/gen/models/index.ts +1571 -86
- package/src/gen/moderation/ModerationApi.ts +16 -6
- package/src/gen/video/CallApi.ts +27 -12
- package/src/gen/video/VideoApi.ts +51 -13
|
@@ -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;
|
|
@@ -434,6 +674,7 @@ export interface CallSettings {
|
|
|
434
674
|
recording?: RecordSettings;
|
|
435
675
|
ring?: RingSettings;
|
|
436
676
|
screensharing?: ScreensharingSettings;
|
|
677
|
+
session?: SessionSettings;
|
|
437
678
|
thumbnails?: ThumbnailsSettings;
|
|
438
679
|
transcription?: TranscriptionSettings;
|
|
439
680
|
video?: VideoSettings;
|
|
@@ -447,6 +688,7 @@ export interface CallSettingsRequest {
|
|
|
447
688
|
recording?: RecordSettingsRequest;
|
|
448
689
|
ring?: RingSettingsRequest;
|
|
449
690
|
screensharing?: ScreensharingSettingsRequest;
|
|
691
|
+
session?: SessionSettingsRequest;
|
|
450
692
|
thumbnails?: ThumbnailsSettingsRequest;
|
|
451
693
|
transcription?: TranscriptionSettingsRequest;
|
|
452
694
|
video?: VideoSettingsRequest;
|
|
@@ -460,6 +702,7 @@ export interface CallSettingsResponse {
|
|
|
460
702
|
recording: RecordSettingsResponse;
|
|
461
703
|
ring: RingSettingsResponse;
|
|
462
704
|
screensharing: ScreensharingSettingsResponse;
|
|
705
|
+
session: SessionSettingsResponse;
|
|
463
706
|
thumbnails: ThumbnailsSettingsResponse;
|
|
464
707
|
transcription: TranscriptionSettingsResponse;
|
|
465
708
|
video: VideoSettingsResponse;
|
|
@@ -476,6 +719,7 @@ export interface CallStatsReportSummaryResponse {
|
|
|
476
719
|
call_status: string;
|
|
477
720
|
first_stats_time: Date;
|
|
478
721
|
created_at?: Date;
|
|
722
|
+
min_user_rating?: number;
|
|
479
723
|
quality_score?: number;
|
|
480
724
|
}
|
|
481
725
|
export interface CallTimeline {
|
|
@@ -487,6 +731,27 @@ export interface CallTranscription {
|
|
|
487
731
|
start_time: Date;
|
|
488
732
|
url: string;
|
|
489
733
|
}
|
|
734
|
+
export interface CallTranscriptionFailedEvent {
|
|
735
|
+
call_cid: string;
|
|
736
|
+
created_at: Date;
|
|
737
|
+
type: string;
|
|
738
|
+
}
|
|
739
|
+
export interface CallTranscriptionReadyEvent {
|
|
740
|
+
call_cid: string;
|
|
741
|
+
created_at: Date;
|
|
742
|
+
call_transcription: CallTranscription;
|
|
743
|
+
type: string;
|
|
744
|
+
}
|
|
745
|
+
export interface CallTranscriptionStartedEvent {
|
|
746
|
+
call_cid: string;
|
|
747
|
+
created_at: Date;
|
|
748
|
+
type: string;
|
|
749
|
+
}
|
|
750
|
+
export interface CallTranscriptionStoppedEvent {
|
|
751
|
+
call_cid: string;
|
|
752
|
+
created_at: Date;
|
|
753
|
+
type: string;
|
|
754
|
+
}
|
|
490
755
|
export interface CallType {
|
|
491
756
|
app_pk: number;
|
|
492
757
|
created_at: Date;
|
|
@@ -506,12 +771,39 @@ export interface CallTypeResponse {
|
|
|
506
771
|
settings: CallSettingsResponse;
|
|
507
772
|
external_storage?: string;
|
|
508
773
|
}
|
|
774
|
+
export interface CallUpdatedEvent {
|
|
775
|
+
call_cid: string;
|
|
776
|
+
created_at: Date;
|
|
777
|
+
call: CallResponse;
|
|
778
|
+
capabilities_by_role: Record<string, string[]>;
|
|
779
|
+
type: string;
|
|
780
|
+
}
|
|
781
|
+
export interface CallUserMutedEvent {
|
|
782
|
+
call_cid: string;
|
|
783
|
+
created_at: Date;
|
|
784
|
+
from_user_id: string;
|
|
785
|
+
muted_user_ids: string[];
|
|
786
|
+
type: string;
|
|
787
|
+
}
|
|
788
|
+
export interface CallsPerDayReport {
|
|
789
|
+
count: number;
|
|
790
|
+
}
|
|
791
|
+
export interface CallsPerDayReportResponse {
|
|
792
|
+
daily: DailyAggregateCallsPerDayReportResponse[];
|
|
793
|
+
}
|
|
509
794
|
export interface CampaignChannelTemplate {
|
|
510
795
|
type: string;
|
|
511
796
|
custom: Record<string, any>;
|
|
512
797
|
id?: string;
|
|
798
|
+
team?: string;
|
|
513
799
|
members?: string[];
|
|
514
800
|
}
|
|
801
|
+
export interface CampaignCompletedEvent {
|
|
802
|
+
created_at: Date;
|
|
803
|
+
type: string;
|
|
804
|
+
received_at?: Date;
|
|
805
|
+
campaign?: CampaignResponse;
|
|
806
|
+
}
|
|
515
807
|
export interface CampaignMessageTemplate {
|
|
516
808
|
poll_id: string;
|
|
517
809
|
text: string;
|
|
@@ -540,6 +832,12 @@ export interface CampaignResponse {
|
|
|
540
832
|
message_template?: CampaignMessageTemplate;
|
|
541
833
|
sender?: UserResponse;
|
|
542
834
|
}
|
|
835
|
+
export interface CampaignStartedEvent {
|
|
836
|
+
created_at: Date;
|
|
837
|
+
type: string;
|
|
838
|
+
received_at?: Date;
|
|
839
|
+
campaign?: CampaignResponse;
|
|
840
|
+
}
|
|
543
841
|
export interface CampaignStatsResponse {
|
|
544
842
|
progress: number;
|
|
545
843
|
stats_channels_created: number;
|
|
@@ -640,6 +938,20 @@ export interface ChannelConfigWithInfo {
|
|
|
640
938
|
automod_thresholds?: Thresholds;
|
|
641
939
|
grants?: Record<string, string[]>;
|
|
642
940
|
}
|
|
941
|
+
export interface ChannelCreatedEvent {
|
|
942
|
+
created_at: Date;
|
|
943
|
+
type: string;
|
|
944
|
+
}
|
|
945
|
+
export interface ChannelDeletedEvent {
|
|
946
|
+
channel_id: string;
|
|
947
|
+
channel_member_count: number;
|
|
948
|
+
channel_type: string;
|
|
949
|
+
cid: string;
|
|
950
|
+
created_at: Date;
|
|
951
|
+
type: string;
|
|
952
|
+
team?: string;
|
|
953
|
+
channel?: ChannelResponse;
|
|
954
|
+
}
|
|
643
955
|
export interface ChannelExport {
|
|
644
956
|
cid?: string;
|
|
645
957
|
id?: string;
|
|
@@ -647,6 +959,13 @@ export interface ChannelExport {
|
|
|
647
959
|
messages_until?: Date;
|
|
648
960
|
type?: string;
|
|
649
961
|
}
|
|
962
|
+
export interface ChannelFrozenEvent {
|
|
963
|
+
channel_id: string;
|
|
964
|
+
channel_type: string;
|
|
965
|
+
cid: string;
|
|
966
|
+
created_at: Date;
|
|
967
|
+
type: string;
|
|
968
|
+
}
|
|
650
969
|
export interface ChannelGetOrCreateRequest {
|
|
651
970
|
hide_for_creator?: boolean;
|
|
652
971
|
state?: boolean;
|
|
@@ -656,6 +975,17 @@ export interface ChannelGetOrCreateRequest {
|
|
|
656
975
|
messages?: MessagePaginationParams;
|
|
657
976
|
watchers?: PaginationParams;
|
|
658
977
|
}
|
|
978
|
+
export interface ChannelHiddenEvent {
|
|
979
|
+
channel_id: string;
|
|
980
|
+
channel_member_count: number;
|
|
981
|
+
channel_type: string;
|
|
982
|
+
cid: string;
|
|
983
|
+
clear_history: boolean;
|
|
984
|
+
created_at: Date;
|
|
985
|
+
type: string;
|
|
986
|
+
channel?: ChannelResponse;
|
|
987
|
+
user?: User;
|
|
988
|
+
}
|
|
659
989
|
export interface ChannelInput {
|
|
660
990
|
auto_translation_enabled?: boolean;
|
|
661
991
|
auto_translation_language?: string;
|
|
@@ -712,6 +1042,10 @@ export interface ChannelMemberResponse {
|
|
|
712
1042
|
user_id?: string;
|
|
713
1043
|
user?: UserResponse;
|
|
714
1044
|
}
|
|
1045
|
+
export interface ChannelMessages {
|
|
1046
|
+
messages: Message[];
|
|
1047
|
+
channel?: ChannelResponse;
|
|
1048
|
+
}
|
|
715
1049
|
export interface ChannelMute {
|
|
716
1050
|
created_at: Date;
|
|
717
1051
|
updated_at: Date;
|
|
@@ -719,18 +1053,20 @@ export interface ChannelMute {
|
|
|
719
1053
|
channel?: ChannelResponse;
|
|
720
1054
|
user?: UserResponse;
|
|
721
1055
|
}
|
|
1056
|
+
export interface ChannelMutedEvent {
|
|
1057
|
+
created_at: Date;
|
|
1058
|
+
type: string;
|
|
1059
|
+
}
|
|
722
1060
|
export declare const ChannelOwnCapability: {
|
|
723
1061
|
readonly BAN_CHANNEL_MEMBERS: "ban-channel-members";
|
|
724
1062
|
readonly CAST_POLL_VOTE: "cast-poll-vote";
|
|
725
1063
|
readonly CONNECT_EVENTS: "connect-events";
|
|
726
1064
|
readonly CREATE_ATTACHMENT: "create-attachment";
|
|
727
|
-
readonly CREATE_CALL: "create-call";
|
|
728
1065
|
readonly DELETE_ANY_MESSAGE: "delete-any-message";
|
|
729
1066
|
readonly DELETE_CHANNEL: "delete-channel";
|
|
730
1067
|
readonly DELETE_OWN_MESSAGE: "delete-own-message";
|
|
731
1068
|
readonly FLAG_MESSAGE: "flag-message";
|
|
732
1069
|
readonly FREEZE_CHANNEL: "freeze-channel";
|
|
733
|
-
readonly JOIN_CALL: "join-call";
|
|
734
1070
|
readonly JOIN_CHANNEL: "join-channel";
|
|
735
1071
|
readonly LEAVE_CHANNEL: "leave-channel";
|
|
736
1072
|
readonly MUTE_CHANNEL: "mute-channel";
|
|
@@ -815,6 +1151,15 @@ export interface ChannelStateResponseFields {
|
|
|
815
1151
|
channel?: ChannelResponse;
|
|
816
1152
|
membership?: ChannelMember;
|
|
817
1153
|
}
|
|
1154
|
+
export interface ChannelTruncatedEvent {
|
|
1155
|
+
channel_id: string;
|
|
1156
|
+
channel_member_count: number;
|
|
1157
|
+
channel_type: string;
|
|
1158
|
+
cid: string;
|
|
1159
|
+
created_at: Date;
|
|
1160
|
+
type: string;
|
|
1161
|
+
channel?: ChannelResponse;
|
|
1162
|
+
}
|
|
818
1163
|
export interface ChannelTypeConfig {
|
|
819
1164
|
automod: 'disabled' | 'simple' | 'AI';
|
|
820
1165
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -849,6 +1194,37 @@ export interface ChannelTypeConfig {
|
|
|
849
1194
|
blocklists?: BlockListOptions[];
|
|
850
1195
|
automod_thresholds?: Thresholds;
|
|
851
1196
|
}
|
|
1197
|
+
export interface ChannelUnFrozenEvent {
|
|
1198
|
+
channel_id: string;
|
|
1199
|
+
channel_type: string;
|
|
1200
|
+
cid: string;
|
|
1201
|
+
created_at: Date;
|
|
1202
|
+
type: string;
|
|
1203
|
+
}
|
|
1204
|
+
export interface ChannelUnmutedEvent {
|
|
1205
|
+
created_at: Date;
|
|
1206
|
+
type: string;
|
|
1207
|
+
}
|
|
1208
|
+
export interface ChannelUpdatedEvent {
|
|
1209
|
+
channel_id: string;
|
|
1210
|
+
channel_member_count: number;
|
|
1211
|
+
channel_type: string;
|
|
1212
|
+
cid: string;
|
|
1213
|
+
created_at: Date;
|
|
1214
|
+
type: string;
|
|
1215
|
+
team?: string;
|
|
1216
|
+
channel?: ChannelResponse;
|
|
1217
|
+
message?: Message;
|
|
1218
|
+
user?: User;
|
|
1219
|
+
}
|
|
1220
|
+
export interface ChannelVisibleEvent {
|
|
1221
|
+
channel_id: string;
|
|
1222
|
+
channel_type: string;
|
|
1223
|
+
cid: string;
|
|
1224
|
+
created_at: Date;
|
|
1225
|
+
type: string;
|
|
1226
|
+
user?: User;
|
|
1227
|
+
}
|
|
852
1228
|
export interface CheckExternalStorageResponse {
|
|
853
1229
|
duration: string;
|
|
854
1230
|
file_url: string;
|
|
@@ -913,6 +1289,12 @@ export interface CheckSQSResponse {
|
|
|
913
1289
|
error?: string;
|
|
914
1290
|
data?: Record<string, any>;
|
|
915
1291
|
}
|
|
1292
|
+
export interface ClosedCaptionEvent {
|
|
1293
|
+
call_cid: string;
|
|
1294
|
+
created_at: Date;
|
|
1295
|
+
closed_caption: CallClosedCaption;
|
|
1296
|
+
type: string;
|
|
1297
|
+
}
|
|
916
1298
|
export interface CollectUserFeedbackRequest {
|
|
917
1299
|
rating: number;
|
|
918
1300
|
sdk: string;
|
|
@@ -934,12 +1316,6 @@ export interface Command {
|
|
|
934
1316
|
}
|
|
935
1317
|
export interface CommitMessageRequest {
|
|
936
1318
|
}
|
|
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
1319
|
export interface ConfigOverrides {
|
|
944
1320
|
commands: string[];
|
|
945
1321
|
grants: Record<string, string[]>;
|
|
@@ -957,9 +1333,11 @@ export interface ConfigResponse {
|
|
|
957
1333
|
async: boolean;
|
|
958
1334
|
created_at: Date;
|
|
959
1335
|
key: string;
|
|
1336
|
+
team: string;
|
|
960
1337
|
updated_at: Date;
|
|
961
1338
|
ai_image_config?: AIImageConfig;
|
|
962
1339
|
ai_text_config?: AITextConfig;
|
|
1340
|
+
ai_video_config?: AIVideoConfig;
|
|
963
1341
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
964
1342
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
965
1343
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
@@ -1154,13 +1532,17 @@ export interface CustomActionRequest {
|
|
|
1154
1532
|
id?: string;
|
|
1155
1533
|
options?: Record<string, any>;
|
|
1156
1534
|
}
|
|
1535
|
+
export interface CustomCheckFlag {
|
|
1536
|
+
type: string;
|
|
1537
|
+
reason?: string;
|
|
1538
|
+
labels?: string[];
|
|
1539
|
+
custom?: Record<string, any>;
|
|
1540
|
+
}
|
|
1157
1541
|
export interface CustomCheckRequest {
|
|
1158
|
-
entity_creator_id: string;
|
|
1159
1542
|
entity_id: string;
|
|
1160
1543
|
entity_type: string;
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
recommended_action?: string;
|
|
1544
|
+
flags: CustomCheckFlag[];
|
|
1545
|
+
entity_creator_id?: string;
|
|
1164
1546
|
user_id?: string;
|
|
1165
1547
|
moderation_payload?: ModerationPayload;
|
|
1166
1548
|
user?: UserRequest;
|
|
@@ -1168,12 +1550,39 @@ export interface CustomCheckRequest {
|
|
|
1168
1550
|
export interface CustomCheckResponse {
|
|
1169
1551
|
duration: string;
|
|
1170
1552
|
id: string;
|
|
1171
|
-
recommended_action: string;
|
|
1172
|
-
scored_at: Date;
|
|
1173
1553
|
status: string;
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1554
|
+
item?: ReviewQueueItemResponse;
|
|
1555
|
+
}
|
|
1556
|
+
export interface CustomVideoEvent {
|
|
1557
|
+
call_cid: string;
|
|
1558
|
+
created_at: Date;
|
|
1559
|
+
custom: Record<string, any>;
|
|
1560
|
+
user: UserResponse;
|
|
1561
|
+
type: string;
|
|
1562
|
+
}
|
|
1563
|
+
export interface DailyAggregateCallDurationReportResponse {
|
|
1564
|
+
date: string;
|
|
1565
|
+
report: CallDurationReport;
|
|
1566
|
+
}
|
|
1567
|
+
export interface DailyAggregateCallParticipantCountReportResponse {
|
|
1568
|
+
date: string;
|
|
1569
|
+
report: CallParticipantCountReport;
|
|
1570
|
+
}
|
|
1571
|
+
export interface DailyAggregateCallsPerDayReportResponse {
|
|
1572
|
+
date: string;
|
|
1573
|
+
report: CallsPerDayReport;
|
|
1574
|
+
}
|
|
1575
|
+
export interface DailyAggregateQualityScoreReportResponse {
|
|
1576
|
+
date: string;
|
|
1577
|
+
report: QualityScoreReport;
|
|
1578
|
+
}
|
|
1579
|
+
export interface DailyAggregateSDKUsageReportResponse {
|
|
1580
|
+
date: string;
|
|
1581
|
+
report: SDKUsageReport;
|
|
1582
|
+
}
|
|
1583
|
+
export interface DailyAggregateUserFeedbackReportResponse {
|
|
1584
|
+
date: string;
|
|
1585
|
+
report: UserFeedbackReport;
|
|
1177
1586
|
}
|
|
1178
1587
|
export interface Data {
|
|
1179
1588
|
id: string;
|
|
@@ -1343,10 +1752,10 @@ export interface EnrichedActivity {
|
|
|
1343
1752
|
verb?: string;
|
|
1344
1753
|
to?: string[];
|
|
1345
1754
|
actor?: Data;
|
|
1346
|
-
latest_reactions?: Record<string,
|
|
1755
|
+
latest_reactions?: Record<string, EnrichedReaction[]>;
|
|
1347
1756
|
object?: Data;
|
|
1348
1757
|
origin?: Data;
|
|
1349
|
-
own_reactions?: Record<string,
|
|
1758
|
+
own_reactions?: Record<string, EnrichedReaction[]>;
|
|
1350
1759
|
reaction_counts?: Record<string, number>;
|
|
1351
1760
|
target?: Data;
|
|
1352
1761
|
}
|
|
@@ -1360,8 +1769,8 @@ export interface EnrichedReaction {
|
|
|
1360
1769
|
children_counts?: Record<string, number>;
|
|
1361
1770
|
created_at?: Time;
|
|
1362
1771
|
data?: Record<string, any>;
|
|
1363
|
-
latest_children?: Record<string,
|
|
1364
|
-
own_children?: Record<string,
|
|
1772
|
+
latest_children?: Record<string, EnrichedReaction[]>;
|
|
1773
|
+
own_children?: Record<string, EnrichedReaction[]>;
|
|
1365
1774
|
updated_at?: Time;
|
|
1366
1775
|
user?: Data;
|
|
1367
1776
|
}
|
|
@@ -1510,6 +1919,22 @@ export interface FirebaseConfigFields {
|
|
|
1510
1919
|
credentials_json?: string;
|
|
1511
1920
|
server_key?: string;
|
|
1512
1921
|
}
|
|
1922
|
+
export interface Flag {
|
|
1923
|
+
created_at: Date;
|
|
1924
|
+
created_by_automod: boolean;
|
|
1925
|
+
updated_at: Date;
|
|
1926
|
+
approved_at?: Date;
|
|
1927
|
+
reason?: string;
|
|
1928
|
+
rejected_at?: Date;
|
|
1929
|
+
reviewed_at?: Date;
|
|
1930
|
+
reviewed_by?: string;
|
|
1931
|
+
target_message_id?: string;
|
|
1932
|
+
custom?: Record<string, any>;
|
|
1933
|
+
details?: FlagDetails;
|
|
1934
|
+
target_message?: Message;
|
|
1935
|
+
target_user?: User;
|
|
1936
|
+
user?: User;
|
|
1937
|
+
}
|
|
1513
1938
|
export interface Flag2 {
|
|
1514
1939
|
created_at: Date;
|
|
1515
1940
|
entity_id: string;
|
|
@@ -1572,6 +1997,14 @@ export interface FlagResponse {
|
|
|
1572
1997
|
duration: string;
|
|
1573
1998
|
item_id: string;
|
|
1574
1999
|
}
|
|
2000
|
+
export interface FlagUpdatedEvent {
|
|
2001
|
+
created_at: Date;
|
|
2002
|
+
type: string;
|
|
2003
|
+
received_at?: Date;
|
|
2004
|
+
created_by?: UserResponse;
|
|
2005
|
+
message?: MessageResponse;
|
|
2006
|
+
user?: UserResponse;
|
|
2007
|
+
}
|
|
1575
2008
|
export interface FullUserResponse {
|
|
1576
2009
|
banned: boolean;
|
|
1577
2010
|
created_at: Date;
|
|
@@ -1659,6 +2092,7 @@ export interface GetCallStatsResponse {
|
|
|
1659
2092
|
sfu_count: number;
|
|
1660
2093
|
participant_report: UserStats[];
|
|
1661
2094
|
sfus: SFULocationResponse[];
|
|
2095
|
+
average_connection_time?: number;
|
|
1662
2096
|
aggregated?: AggregatedStats;
|
|
1663
2097
|
call_timeline?: CallTimeline;
|
|
1664
2098
|
jitter?: TimeStats;
|
|
@@ -1843,6 +2277,7 @@ export interface GetUserModerationReportResponse {
|
|
|
1843
2277
|
}
|
|
1844
2278
|
export interface GoLiveRequest {
|
|
1845
2279
|
recording_storage_name?: string;
|
|
2280
|
+
start_closed_caption?: boolean;
|
|
1846
2281
|
start_hls?: boolean;
|
|
1847
2282
|
start_recording?: boolean;
|
|
1848
2283
|
start_rtmp_broadcasts?: boolean;
|
|
@@ -2071,6 +2506,25 @@ export interface MediaPubSubHint {
|
|
|
2071
2506
|
video_published: boolean;
|
|
2072
2507
|
video_subscribed: boolean;
|
|
2073
2508
|
}
|
|
2509
|
+
export interface MemberAddedEvent {
|
|
2510
|
+
channel_id: string;
|
|
2511
|
+
channel_type: string;
|
|
2512
|
+
cid: string;
|
|
2513
|
+
created_at: Date;
|
|
2514
|
+
type: string;
|
|
2515
|
+
team?: string;
|
|
2516
|
+
member?: ChannelMember;
|
|
2517
|
+
user?: User;
|
|
2518
|
+
}
|
|
2519
|
+
export interface MemberRemovedEvent {
|
|
2520
|
+
channel_id: string;
|
|
2521
|
+
channel_type: string;
|
|
2522
|
+
cid: string;
|
|
2523
|
+
created_at: Date;
|
|
2524
|
+
type: string;
|
|
2525
|
+
member?: ChannelMember;
|
|
2526
|
+
user?: User;
|
|
2527
|
+
}
|
|
2074
2528
|
export interface MemberRequest {
|
|
2075
2529
|
user_id: string;
|
|
2076
2530
|
role?: string;
|
|
@@ -2085,6 +2539,16 @@ export interface MemberResponse {
|
|
|
2085
2539
|
deleted_at?: Date;
|
|
2086
2540
|
role?: string;
|
|
2087
2541
|
}
|
|
2542
|
+
export interface MemberUpdatedEvent {
|
|
2543
|
+
channel_id: string;
|
|
2544
|
+
channel_type: string;
|
|
2545
|
+
cid: string;
|
|
2546
|
+
created_at: Date;
|
|
2547
|
+
type: string;
|
|
2548
|
+
team?: string;
|
|
2549
|
+
member?: ChannelMember;
|
|
2550
|
+
user?: User;
|
|
2551
|
+
}
|
|
2088
2552
|
export interface MembersResponse {
|
|
2089
2553
|
duration: string;
|
|
2090
2554
|
members: ChannelMember[];
|
|
@@ -2146,6 +2610,18 @@ export interface MessageChangeSet {
|
|
|
2146
2610
|
silent: boolean;
|
|
2147
2611
|
text: boolean;
|
|
2148
2612
|
}
|
|
2613
|
+
export interface MessageDeletedEvent {
|
|
2614
|
+
channel_id: string;
|
|
2615
|
+
channel_type: string;
|
|
2616
|
+
cid: string;
|
|
2617
|
+
created_at: Date;
|
|
2618
|
+
hard_delete: boolean;
|
|
2619
|
+
type: string;
|
|
2620
|
+
team?: string;
|
|
2621
|
+
thread_participants?: User[];
|
|
2622
|
+
message?: Message;
|
|
2623
|
+
user?: User;
|
|
2624
|
+
}
|
|
2149
2625
|
export interface MessageFlagResponse {
|
|
2150
2626
|
created_at: Date;
|
|
2151
2627
|
created_by_automod: boolean;
|
|
@@ -2162,6 +2638,15 @@ export interface MessageFlagResponse {
|
|
|
2162
2638
|
reviewed_by?: UserResponse;
|
|
2163
2639
|
user?: UserResponse;
|
|
2164
2640
|
}
|
|
2641
|
+
export interface MessageFlaggedEvent {
|
|
2642
|
+
cid: string;
|
|
2643
|
+
created_at: Date;
|
|
2644
|
+
type: string;
|
|
2645
|
+
thread_participants?: User[];
|
|
2646
|
+
flag?: Flag;
|
|
2647
|
+
message?: Message;
|
|
2648
|
+
user?: User;
|
|
2649
|
+
}
|
|
2165
2650
|
export interface MessageHistoryEntryResponse {
|
|
2166
2651
|
is_deleted: boolean;
|
|
2167
2652
|
message_id: string;
|
|
@@ -2184,6 +2669,18 @@ export interface MessageModerationResult {
|
|
|
2184
2669
|
ai_moderation_response?: ModerationResponse;
|
|
2185
2670
|
moderation_thresholds?: Thresholds;
|
|
2186
2671
|
}
|
|
2672
|
+
export interface MessageNewEvent {
|
|
2673
|
+
channel_id: string;
|
|
2674
|
+
channel_type: string;
|
|
2675
|
+
cid: string;
|
|
2676
|
+
created_at: Date;
|
|
2677
|
+
watcher_count: number;
|
|
2678
|
+
type: string;
|
|
2679
|
+
team?: string;
|
|
2680
|
+
thread_participants?: User[];
|
|
2681
|
+
message?: Message;
|
|
2682
|
+
user?: User;
|
|
2683
|
+
}
|
|
2187
2684
|
export interface MessagePaginationParams {
|
|
2188
2685
|
}
|
|
2189
2686
|
export interface MessageReadEvent {
|
|
@@ -2257,10 +2754,40 @@ export interface MessageResponse {
|
|
|
2257
2754
|
quoted_message?: MessageResponse;
|
|
2258
2755
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
2259
2756
|
}
|
|
2757
|
+
export interface MessageUnblockedEvent {
|
|
2758
|
+
cid: string;
|
|
2759
|
+
created_at: Date;
|
|
2760
|
+
type: string;
|
|
2761
|
+
thread_participants?: User[];
|
|
2762
|
+
message?: Message;
|
|
2763
|
+
user?: User;
|
|
2764
|
+
}
|
|
2765
|
+
export interface MessageUndeletedEvent {
|
|
2766
|
+
channel_id: string;
|
|
2767
|
+
channel_type: string;
|
|
2768
|
+
cid: string;
|
|
2769
|
+
created_at: Date;
|
|
2770
|
+
type: string;
|
|
2771
|
+
team?: string;
|
|
2772
|
+
thread_participants?: User[];
|
|
2773
|
+
message?: Message;
|
|
2774
|
+
user?: User;
|
|
2775
|
+
}
|
|
2260
2776
|
export interface MessageUpdate {
|
|
2261
2777
|
old_text?: string;
|
|
2262
2778
|
change_set?: MessageChangeSet;
|
|
2263
2779
|
}
|
|
2780
|
+
export interface MessageUpdatedEvent {
|
|
2781
|
+
channel_id: string;
|
|
2782
|
+
channel_type: string;
|
|
2783
|
+
cid: string;
|
|
2784
|
+
created_at: Date;
|
|
2785
|
+
type: string;
|
|
2786
|
+
team?: string;
|
|
2787
|
+
thread_participants?: User[];
|
|
2788
|
+
message?: Message;
|
|
2789
|
+
user?: User;
|
|
2790
|
+
}
|
|
2264
2791
|
export interface MessageWithChannelResponse {
|
|
2265
2792
|
cid: string;
|
|
2266
2793
|
created_at: Date;
|
|
@@ -2310,6 +2837,35 @@ export interface ModerationActionConfig {
|
|
|
2310
2837
|
order: number;
|
|
2311
2838
|
custom: Record<string, any>;
|
|
2312
2839
|
}
|
|
2840
|
+
export interface ModerationCustomActionEvent {
|
|
2841
|
+
created_at: Date;
|
|
2842
|
+
type: string;
|
|
2843
|
+
item?: ReviewQueueItem;
|
|
2844
|
+
message?: Message;
|
|
2845
|
+
user?: User;
|
|
2846
|
+
}
|
|
2847
|
+
export interface ModerationEvent {
|
|
2848
|
+
created_at: Date;
|
|
2849
|
+
type: string;
|
|
2850
|
+
received_at?: Date;
|
|
2851
|
+
flags?: Flag2Response[];
|
|
2852
|
+
action?: ActionLogResponse;
|
|
2853
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
2854
|
+
}
|
|
2855
|
+
export interface ModerationFlaggedEvent {
|
|
2856
|
+
created_at: Date;
|
|
2857
|
+
type: string;
|
|
2858
|
+
item?: string;
|
|
2859
|
+
object_id?: string;
|
|
2860
|
+
user?: User;
|
|
2861
|
+
}
|
|
2862
|
+
export interface ModerationMarkReviewedEvent {
|
|
2863
|
+
created_at: Date;
|
|
2864
|
+
type: string;
|
|
2865
|
+
item?: ReviewQueueItem;
|
|
2866
|
+
message?: Message;
|
|
2867
|
+
user?: User;
|
|
2868
|
+
}
|
|
2313
2869
|
export interface ModerationPayload {
|
|
2314
2870
|
images?: string[];
|
|
2315
2871
|
texts?: string[];
|
|
@@ -2386,9 +2942,35 @@ export interface MuteUsersRequest {
|
|
|
2386
2942
|
export interface MuteUsersResponse {
|
|
2387
2943
|
duration: string;
|
|
2388
2944
|
}
|
|
2945
|
+
export interface NetworkMetricsReportResponse {
|
|
2946
|
+
average_connection_time?: number;
|
|
2947
|
+
average_jitter?: number;
|
|
2948
|
+
average_latency?: number;
|
|
2949
|
+
average_time_to_reconnect?: number;
|
|
2950
|
+
}
|
|
2389
2951
|
export interface NoiseCancellationSettings {
|
|
2390
2952
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
2391
2953
|
}
|
|
2954
|
+
export interface NotificationMarkUnreadEvent {
|
|
2955
|
+
channel_id: string;
|
|
2956
|
+
channel_member_count: number;
|
|
2957
|
+
channel_type: string;
|
|
2958
|
+
cid: string;
|
|
2959
|
+
created_at: Date;
|
|
2960
|
+
first_unread_message_id: string;
|
|
2961
|
+
last_read_at: Date;
|
|
2962
|
+
total_unread_count: number;
|
|
2963
|
+
unread_channels: number;
|
|
2964
|
+
unread_count: number;
|
|
2965
|
+
unread_messages: number;
|
|
2966
|
+
unread_threads: number;
|
|
2967
|
+
type: string;
|
|
2968
|
+
last_read_message_id?: string;
|
|
2969
|
+
team?: string;
|
|
2970
|
+
thread_id?: string;
|
|
2971
|
+
channel?: ChannelResponse;
|
|
2972
|
+
user?: User;
|
|
2973
|
+
}
|
|
2392
2974
|
export interface NotificationSettings {
|
|
2393
2975
|
enabled: boolean;
|
|
2394
2976
|
call_live_started: EventNotificationSettings;
|
|
@@ -2505,6 +3087,10 @@ export interface PendingMessageResponse {
|
|
|
2505
3087
|
metadata?: Record<string, string>;
|
|
2506
3088
|
user?: UserResponse;
|
|
2507
3089
|
}
|
|
3090
|
+
export interface PerSDKUsageReport {
|
|
3091
|
+
total: number;
|
|
3092
|
+
by_version: Record<string, number>;
|
|
3093
|
+
}
|
|
2508
3094
|
export interface Permission {
|
|
2509
3095
|
action: string;
|
|
2510
3096
|
custom: boolean;
|
|
@@ -2517,6 +3103,13 @@ export interface Permission {
|
|
|
2517
3103
|
tags: string[];
|
|
2518
3104
|
condition?: Record<string, any>;
|
|
2519
3105
|
}
|
|
3106
|
+
export interface PermissionRequestEvent {
|
|
3107
|
+
call_cid: string;
|
|
3108
|
+
created_at: Date;
|
|
3109
|
+
permissions: string[];
|
|
3110
|
+
user: UserResponse;
|
|
3111
|
+
type: string;
|
|
3112
|
+
}
|
|
2520
3113
|
export interface PinRequest {
|
|
2521
3114
|
session_id: string;
|
|
2522
3115
|
user_id: string;
|
|
@@ -2558,7 +3151,7 @@ export interface Poll {
|
|
|
2558
3151
|
options: PollOption[];
|
|
2559
3152
|
own_votes: PollVote[];
|
|
2560
3153
|
custom: Record<string, any>;
|
|
2561
|
-
latest_votes_by_option: Record<string,
|
|
3154
|
+
latest_votes_by_option: Record<string, PollVote[]>;
|
|
2562
3155
|
vote_counts_by_option: Record<string, number>;
|
|
2563
3156
|
is_closed?: boolean;
|
|
2564
3157
|
max_votes_allowed?: number;
|
|
@@ -2609,7 +3202,7 @@ export interface PollResponseData {
|
|
|
2609
3202
|
options: PollOptionResponseData[];
|
|
2610
3203
|
own_votes: PollVoteResponseData[];
|
|
2611
3204
|
custom: Record<string, any>;
|
|
2612
|
-
latest_votes_by_option: Record<string,
|
|
3205
|
+
latest_votes_by_option: Record<string, PollVoteResponseData[]>;
|
|
2613
3206
|
vote_counts_by_option: Record<string, number>;
|
|
2614
3207
|
is_closed?: boolean;
|
|
2615
3208
|
max_votes_allowed?: number;
|
|
@@ -2747,6 +3340,27 @@ export interface PushProviderResponse {
|
|
|
2747
3340
|
xiaomi_app_secret?: string;
|
|
2748
3341
|
xiaomi_package_name?: string;
|
|
2749
3342
|
}
|
|
3343
|
+
export interface QualityScoreReport {
|
|
3344
|
+
histogram: ReportByHistogramBucket[];
|
|
3345
|
+
}
|
|
3346
|
+
export interface QualityScoreReportResponse {
|
|
3347
|
+
daily: DailyAggregateQualityScoreReportResponse[];
|
|
3348
|
+
}
|
|
3349
|
+
export interface QueryAggregateCallStatsRequest {
|
|
3350
|
+
from?: string;
|
|
3351
|
+
to?: string;
|
|
3352
|
+
report_types?: string[];
|
|
3353
|
+
}
|
|
3354
|
+
export interface QueryAggregateCallStatsResponse {
|
|
3355
|
+
duration: string;
|
|
3356
|
+
call_duration_report?: CallDurationReportResponse;
|
|
3357
|
+
call_participant_count_report?: CallParticipantCountReportResponse;
|
|
3358
|
+
calls_per_day_report?: CallsPerDayReportResponse;
|
|
3359
|
+
network_metrics_report?: NetworkMetricsReportResponse;
|
|
3360
|
+
quality_score_report?: QualityScoreReportResponse;
|
|
3361
|
+
sdk_usage_report?: SDKUsageReportResponse;
|
|
3362
|
+
user_feedback_report?: UserFeedbackReportResponse;
|
|
3363
|
+
}
|
|
2750
3364
|
export interface QueryBannedUsersPayload {
|
|
2751
3365
|
filter_conditions: Record<string, any>;
|
|
2752
3366
|
exclude_expired_bans?: boolean;
|
|
@@ -2957,7 +3571,7 @@ export interface QueryReviewQueueRequest {
|
|
|
2957
3571
|
export interface QueryReviewQueueResponse {
|
|
2958
3572
|
duration: string;
|
|
2959
3573
|
items: ReviewQueueItemResponse[];
|
|
2960
|
-
action_config: Record<string,
|
|
3574
|
+
action_config: Record<string, ModerationActionConfig[]>;
|
|
2961
3575
|
stats: Record<string, number>;
|
|
2962
3576
|
next?: string;
|
|
2963
3577
|
prev?: string;
|
|
@@ -3079,12 +3693,36 @@ export interface Reaction {
|
|
|
3079
3693
|
user_id?: string;
|
|
3080
3694
|
user?: User;
|
|
3081
3695
|
}
|
|
3696
|
+
export interface ReactionDeletedEvent {
|
|
3697
|
+
channel_id: string;
|
|
3698
|
+
channel_type: string;
|
|
3699
|
+
cid: string;
|
|
3700
|
+
created_at: Date;
|
|
3701
|
+
type: string;
|
|
3702
|
+
team?: string;
|
|
3703
|
+
thread_participants?: User[];
|
|
3704
|
+
message?: Message;
|
|
3705
|
+
reaction?: Reaction;
|
|
3706
|
+
user?: User;
|
|
3707
|
+
}
|
|
3082
3708
|
export interface ReactionGroupResponse {
|
|
3083
3709
|
count: number;
|
|
3084
3710
|
first_reaction_at: Date;
|
|
3085
3711
|
last_reaction_at: Date;
|
|
3086
3712
|
sum_scores: number;
|
|
3087
3713
|
}
|
|
3714
|
+
export interface ReactionNewEvent {
|
|
3715
|
+
channel_id: string;
|
|
3716
|
+
channel_type: string;
|
|
3717
|
+
cid: string;
|
|
3718
|
+
created_at: Date;
|
|
3719
|
+
type: string;
|
|
3720
|
+
team?: string;
|
|
3721
|
+
thread_participants?: User[];
|
|
3722
|
+
message?: Message;
|
|
3723
|
+
reaction?: Reaction;
|
|
3724
|
+
user?: User;
|
|
3725
|
+
}
|
|
3088
3726
|
export interface ReactionRemovalResponse {
|
|
3089
3727
|
duration: string;
|
|
3090
3728
|
message?: Message;
|
|
@@ -3109,6 +3747,17 @@ export interface ReactionResponse {
|
|
|
3109
3747
|
custom: Record<string, any>;
|
|
3110
3748
|
user: UserResponse;
|
|
3111
3749
|
}
|
|
3750
|
+
export interface ReactionUpdatedEvent {
|
|
3751
|
+
channel_id: string;
|
|
3752
|
+
channel_type: string;
|
|
3753
|
+
cid: string;
|
|
3754
|
+
created_at: Date;
|
|
3755
|
+
message: Message;
|
|
3756
|
+
reaction: Reaction;
|
|
3757
|
+
type: string;
|
|
3758
|
+
team?: string;
|
|
3759
|
+
user?: User;
|
|
3760
|
+
}
|
|
3112
3761
|
export interface ReactivateUserRequest {
|
|
3113
3762
|
created_by_id?: string;
|
|
3114
3763
|
name?: string;
|
|
@@ -3158,6 +3807,14 @@ export interface RecordSettingsResponse {
|
|
|
3158
3807
|
quality: string;
|
|
3159
3808
|
layout: LayoutSettingsResponse;
|
|
3160
3809
|
}
|
|
3810
|
+
export interface ReportByHistogramBucket {
|
|
3811
|
+
category: string;
|
|
3812
|
+
count: number;
|
|
3813
|
+
mean: number;
|
|
3814
|
+
sum: number;
|
|
3815
|
+
lower_bound?: Bound;
|
|
3816
|
+
upper_bound?: Bound;
|
|
3817
|
+
}
|
|
3161
3818
|
export interface Response {
|
|
3162
3819
|
duration: string;
|
|
3163
3820
|
}
|
|
@@ -3167,6 +3824,7 @@ export interface RestoreUsersRequest {
|
|
|
3167
3824
|
user_ids: string[];
|
|
3168
3825
|
}
|
|
3169
3826
|
export interface ReviewQueueItem {
|
|
3827
|
+
bounce_count: number;
|
|
3170
3828
|
content_changed: boolean;
|
|
3171
3829
|
created_at: Date;
|
|
3172
3830
|
entity_id: string;
|
|
@@ -3246,6 +3904,12 @@ export interface S3Request {
|
|
|
3246
3904
|
s3_api_key?: string;
|
|
3247
3905
|
s3_secret?: string;
|
|
3248
3906
|
}
|
|
3907
|
+
export interface SDKUsageReport {
|
|
3908
|
+
per_sdk_usage: Record<string, PerSDKUsageReport>;
|
|
3909
|
+
}
|
|
3910
|
+
export interface SDKUsageReportResponse {
|
|
3911
|
+
daily: DailyAggregateSDKUsageReportResponse[];
|
|
3912
|
+
}
|
|
3249
3913
|
export interface SFULocationResponse {
|
|
3250
3914
|
datacenter: string;
|
|
3251
3915
|
id: string;
|
|
@@ -3404,6 +4068,15 @@ export interface SendReactionResponse {
|
|
|
3404
4068
|
export interface SendUserCustomEventRequest {
|
|
3405
4069
|
event: UserCustomEventRequest;
|
|
3406
4070
|
}
|
|
4071
|
+
export interface SessionSettings {
|
|
4072
|
+
inactivity_timeout_seconds: number;
|
|
4073
|
+
}
|
|
4074
|
+
export interface SessionSettingsRequest {
|
|
4075
|
+
inactivity_timeout_seconds: number;
|
|
4076
|
+
}
|
|
4077
|
+
export interface SessionSettingsResponse {
|
|
4078
|
+
inactivity_timeout_seconds: number;
|
|
4079
|
+
}
|
|
3407
4080
|
export interface ShowChannelRequest {
|
|
3408
4081
|
user_id?: string;
|
|
3409
4082
|
user?: UserRequest;
|
|
@@ -3424,6 +4097,9 @@ export interface StartCampaignResponse {
|
|
|
3424
4097
|
campaign?: CampaignResponse;
|
|
3425
4098
|
}
|
|
3426
4099
|
export interface StartClosedCaptionsRequest {
|
|
4100
|
+
enable_transcription?: boolean;
|
|
4101
|
+
external_storage?: string;
|
|
4102
|
+
language?: string;
|
|
3427
4103
|
}
|
|
3428
4104
|
export interface StartClosedCaptionsResponse {
|
|
3429
4105
|
duration: string;
|
|
@@ -3447,6 +4123,8 @@ export interface StartRecordingResponse {
|
|
|
3447
4123
|
duration: string;
|
|
3448
4124
|
}
|
|
3449
4125
|
export interface StartTranscriptionRequest {
|
|
4126
|
+
enable_closed_captions?: boolean;
|
|
4127
|
+
language?: string;
|
|
3450
4128
|
transcription_external_storage?: string;
|
|
3451
4129
|
}
|
|
3452
4130
|
export interface StartTranscriptionResponse {
|
|
@@ -3460,6 +4138,7 @@ export interface StopAllRTMPBroadcastsResponse {
|
|
|
3460
4138
|
export interface StopCampaignRequest {
|
|
3461
4139
|
}
|
|
3462
4140
|
export interface StopClosedCaptionsRequest {
|
|
4141
|
+
stop_transcription?: boolean;
|
|
3463
4142
|
}
|
|
3464
4143
|
export interface StopClosedCaptionsResponse {
|
|
3465
4144
|
duration: string;
|
|
@@ -3470,9 +4149,10 @@ export interface StopHLSBroadcastingResponse {
|
|
|
3470
4149
|
duration: string;
|
|
3471
4150
|
}
|
|
3472
4151
|
export interface StopLiveRequest {
|
|
4152
|
+
continue_closed_caption?: boolean;
|
|
3473
4153
|
continue_hls?: boolean;
|
|
3474
4154
|
continue_recording?: boolean;
|
|
3475
|
-
|
|
4155
|
+
continue_rtmp_broadcasts?: boolean;
|
|
3476
4156
|
continue_transcription?: boolean;
|
|
3477
4157
|
}
|
|
3478
4158
|
export interface StopLiveResponse {
|
|
@@ -3490,6 +4170,7 @@ export interface StopRecordingResponse {
|
|
|
3490
4170
|
duration: string;
|
|
3491
4171
|
}
|
|
3492
4172
|
export interface StopTranscriptionRequest {
|
|
4173
|
+
stop_closed_captions?: boolean;
|
|
3493
4174
|
}
|
|
3494
4175
|
export interface StopTranscriptionResponse {
|
|
3495
4176
|
duration: string;
|
|
@@ -3577,6 +4258,15 @@ export interface ThreadStateResponse {
|
|
|
3577
4258
|
created_by?: UserResponse;
|
|
3578
4259
|
parent_message?: MessageResponse;
|
|
3579
4260
|
}
|
|
4261
|
+
export interface ThreadUpdatedEvent {
|
|
4262
|
+
channel_id: string;
|
|
4263
|
+
channel_type: string;
|
|
4264
|
+
cid: string;
|
|
4265
|
+
created_at: Date;
|
|
4266
|
+
type: string;
|
|
4267
|
+
thread?: ThreadResponse;
|
|
4268
|
+
user?: User;
|
|
4269
|
+
}
|
|
3580
4270
|
export interface Thresholds {
|
|
3581
4271
|
explicit?: LabelThresholds;
|
|
3582
4272
|
spam?: LabelThresholds;
|
|
@@ -3602,18 +4292,18 @@ export interface TimeStats {
|
|
|
3602
4292
|
}
|
|
3603
4293
|
export interface TranscriptionSettings {
|
|
3604
4294
|
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
4295
|
+
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
4296
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3606
|
-
languages: string[];
|
|
3607
4297
|
}
|
|
3608
4298
|
export interface TranscriptionSettingsRequest {
|
|
3609
4299
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3610
4300
|
closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
|
|
3611
|
-
|
|
4301
|
+
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
4302
|
}
|
|
3613
4303
|
export interface TranscriptionSettingsResponse {
|
|
3614
4304
|
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
4305
|
+
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
4306
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3616
|
-
languages: string[];
|
|
3617
4307
|
}
|
|
3618
4308
|
export interface TranslateMessageRequest {
|
|
3619
4309
|
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 +4352,12 @@ export interface UnblockUsersRequest {
|
|
|
3662
4352
|
export interface UnblockUsersResponse {
|
|
3663
4353
|
duration: string;
|
|
3664
4354
|
}
|
|
4355
|
+
export interface UnblockedUserEvent {
|
|
4356
|
+
call_cid: string;
|
|
4357
|
+
created_at: Date;
|
|
4358
|
+
user: UserResponse;
|
|
4359
|
+
type: string;
|
|
4360
|
+
}
|
|
3665
4361
|
export interface UnmuteChannelRequest {
|
|
3666
4362
|
expiration?: number;
|
|
3667
4363
|
user_id?: string;
|
|
@@ -3741,21 +4437,18 @@ export interface UpdateAppRequest {
|
|
|
3741
4437
|
sqs_key?: string;
|
|
3742
4438
|
sqs_secret?: string;
|
|
3743
4439
|
sqs_url?: string;
|
|
3744
|
-
video_provider?: 'agora' | 'hms';
|
|
3745
4440
|
webhook_url?: string;
|
|
3746
4441
|
allowed_flag_reasons?: string[];
|
|
3747
4442
|
image_moderation_block_labels?: string[];
|
|
3748
4443
|
image_moderation_labels?: string[];
|
|
3749
4444
|
user_search_disallowed_roles?: string[];
|
|
3750
4445
|
webhook_events?: string[];
|
|
3751
|
-
agora_options?: Config;
|
|
3752
4446
|
apn_config?: APNConfig;
|
|
3753
4447
|
async_moderation_config?: AsyncModerationConfiguration;
|
|
3754
4448
|
datadog_info?: DataDogInfo;
|
|
3755
4449
|
file_upload_config?: FileUploadConfig;
|
|
3756
4450
|
firebase_config?: FirebaseConfig;
|
|
3757
4451
|
grants?: Record<string, string[]>;
|
|
3758
|
-
hms_options?: Config;
|
|
3759
4452
|
huawei_config?: HuaweiConfig;
|
|
3760
4453
|
image_upload_config?: FileUploadConfig;
|
|
3761
4454
|
push_config?: PushConfig;
|
|
@@ -4014,11 +4707,21 @@ export interface UpdateUsersResponse {
|
|
|
4014
4707
|
membership_deletion_task_id: string;
|
|
4015
4708
|
users: Record<string, FullUserResponse>;
|
|
4016
4709
|
}
|
|
4710
|
+
export interface UpdatedCallPermissionsEvent {
|
|
4711
|
+
call_cid: string;
|
|
4712
|
+
created_at: Date;
|
|
4713
|
+
own_capabilities: OwnCapability[];
|
|
4714
|
+
user: UserResponse;
|
|
4715
|
+
type: string;
|
|
4716
|
+
}
|
|
4017
4717
|
export interface UpsertConfigRequest {
|
|
4018
4718
|
key: string;
|
|
4019
4719
|
async?: boolean;
|
|
4720
|
+
team?: string;
|
|
4721
|
+
user_id?: string;
|
|
4020
4722
|
ai_image_config?: AIImageConfig;
|
|
4021
4723
|
ai_text_config?: AITextConfig;
|
|
4724
|
+
ai_video_config?: AIVideoConfig;
|
|
4022
4725
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
4023
4726
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
4024
4727
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
@@ -4026,6 +4729,7 @@ export interface UpsertConfigRequest {
|
|
|
4026
4729
|
block_list_config?: BlockListConfig;
|
|
4027
4730
|
bodyguard_config?: AITextConfig;
|
|
4028
4731
|
google_vision_config?: GoogleVisionConfig;
|
|
4732
|
+
user?: UserRequest;
|
|
4029
4733
|
velocity_filter_config?: VelocityFilterConfig;
|
|
4030
4734
|
}
|
|
4031
4735
|
export interface UpsertConfigResponse {
|
|
@@ -4070,6 +4774,19 @@ export interface User {
|
|
|
4070
4774
|
privacy_settings?: PrivacySettings;
|
|
4071
4775
|
push_notifications?: PushNotificationSettings;
|
|
4072
4776
|
}
|
|
4777
|
+
export interface UserBannedEvent {
|
|
4778
|
+
channel_id: string;
|
|
4779
|
+
channel_type: string;
|
|
4780
|
+
cid: string;
|
|
4781
|
+
created_at: Date;
|
|
4782
|
+
shadow: boolean;
|
|
4783
|
+
created_by: User;
|
|
4784
|
+
type: string;
|
|
4785
|
+
expiration?: Date;
|
|
4786
|
+
reason?: string;
|
|
4787
|
+
team?: string;
|
|
4788
|
+
user?: User;
|
|
4789
|
+
}
|
|
4073
4790
|
export interface UserBlock {
|
|
4074
4791
|
blocked_by_user_id: string;
|
|
4075
4792
|
blocked_user_id: string;
|
|
@@ -4079,6 +4796,54 @@ export interface UserCustomEventRequest {
|
|
|
4079
4796
|
type: string;
|
|
4080
4797
|
custom?: Record<string, any>;
|
|
4081
4798
|
}
|
|
4799
|
+
export interface UserDeactivatedEvent {
|
|
4800
|
+
created_at: Date;
|
|
4801
|
+
created_by: User;
|
|
4802
|
+
type: string;
|
|
4803
|
+
user?: User;
|
|
4804
|
+
}
|
|
4805
|
+
export interface UserDeletedEvent {
|
|
4806
|
+
created_at: Date;
|
|
4807
|
+
delete_conversation_channels: boolean;
|
|
4808
|
+
hard_delete: boolean;
|
|
4809
|
+
mark_messages_deleted: boolean;
|
|
4810
|
+
type: string;
|
|
4811
|
+
user?: User;
|
|
4812
|
+
}
|
|
4813
|
+
export interface UserEventPayload {
|
|
4814
|
+
banned: boolean;
|
|
4815
|
+
created_at: Date;
|
|
4816
|
+
id: string;
|
|
4817
|
+
language: string;
|
|
4818
|
+
online: boolean;
|
|
4819
|
+
role: string;
|
|
4820
|
+
updated_at: Date;
|
|
4821
|
+
blocked_user_ids: string[];
|
|
4822
|
+
teams: string[];
|
|
4823
|
+
custom: Record<string, any>;
|
|
4824
|
+
deactivated_at?: Date;
|
|
4825
|
+
deleted_at?: Date;
|
|
4826
|
+
image?: string;
|
|
4827
|
+
invisible?: boolean;
|
|
4828
|
+
last_active?: Date;
|
|
4829
|
+
name?: string;
|
|
4830
|
+
revoke_tokens_issued_before?: Date;
|
|
4831
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
4832
|
+
}
|
|
4833
|
+
export interface UserFeedbackReport {
|
|
4834
|
+
unreported_count: number;
|
|
4835
|
+
count_by_rating: Record<string, number>;
|
|
4836
|
+
}
|
|
4837
|
+
export interface UserFeedbackReportResponse {
|
|
4838
|
+
daily: DailyAggregateUserFeedbackReportResponse[];
|
|
4839
|
+
}
|
|
4840
|
+
export interface UserFlaggedEvent {
|
|
4841
|
+
created_at: Date;
|
|
4842
|
+
type: string;
|
|
4843
|
+
target_user?: string;
|
|
4844
|
+
target_users?: string[];
|
|
4845
|
+
user?: User;
|
|
4846
|
+
}
|
|
4082
4847
|
export interface UserInfoResponse {
|
|
4083
4848
|
id: string;
|
|
4084
4849
|
image: string;
|
|
@@ -4100,6 +4865,18 @@ export interface UserMuteResponse {
|
|
|
4100
4865
|
target?: UserResponse;
|
|
4101
4866
|
user?: UserResponse;
|
|
4102
4867
|
}
|
|
4868
|
+
export interface UserMutedEvent {
|
|
4869
|
+
created_at: Date;
|
|
4870
|
+
type: string;
|
|
4871
|
+
target_user?: string;
|
|
4872
|
+
target_users?: string[];
|
|
4873
|
+
user?: User;
|
|
4874
|
+
}
|
|
4875
|
+
export interface UserReactivatedEvent {
|
|
4876
|
+
created_at: Date;
|
|
4877
|
+
type: string;
|
|
4878
|
+
user?: User;
|
|
4879
|
+
}
|
|
4103
4880
|
export interface UserRequest {
|
|
4104
4881
|
id: string;
|
|
4105
4882
|
image?: string;
|
|
@@ -4150,6 +4927,7 @@ export interface UserSessionStats {
|
|
|
4150
4927
|
session_id: string;
|
|
4151
4928
|
total_pixels_in: number;
|
|
4152
4929
|
total_pixels_out: number;
|
|
4930
|
+
average_connection_time?: number;
|
|
4153
4931
|
browser?: string;
|
|
4154
4932
|
browser_version?: string;
|
|
4155
4933
|
current_ip?: string;
|
|
@@ -4195,6 +4973,35 @@ export interface UserStats {
|
|
|
4195
4973
|
info: UserInfoResponse;
|
|
4196
4974
|
rating?: number;
|
|
4197
4975
|
}
|
|
4976
|
+
export interface UserUnbannedEvent {
|
|
4977
|
+
channel_id: string;
|
|
4978
|
+
channel_type: string;
|
|
4979
|
+
cid: string;
|
|
4980
|
+
created_at: Date;
|
|
4981
|
+
shadow: boolean;
|
|
4982
|
+
type: string;
|
|
4983
|
+
team?: string;
|
|
4984
|
+
user?: User;
|
|
4985
|
+
}
|
|
4986
|
+
export interface UserUnmutedEvent {
|
|
4987
|
+
created_at: Date;
|
|
4988
|
+
type: string;
|
|
4989
|
+
target_user?: string;
|
|
4990
|
+
target_users?: string[];
|
|
4991
|
+
user?: User;
|
|
4992
|
+
}
|
|
4993
|
+
export interface UserUnreadReminderEvent {
|
|
4994
|
+
created_at: Date;
|
|
4995
|
+
channels: Record<string, ChannelMessages>;
|
|
4996
|
+
type: string;
|
|
4997
|
+
user?: User;
|
|
4998
|
+
}
|
|
4999
|
+
export interface UserUpdatedEvent {
|
|
5000
|
+
created_at: Date;
|
|
5001
|
+
user: UserEventPayload;
|
|
5002
|
+
type: string;
|
|
5003
|
+
received_at?: Date;
|
|
5004
|
+
}
|
|
4198
5005
|
export interface VelocityFilterConfig {
|
|
4199
5006
|
cascading_actions: boolean;
|
|
4200
5007
|
enabled: boolean;
|
|
@@ -4278,6 +5085,9 @@ export interface WSEvent {
|
|
|
4278
5085
|
thread?: ThreadResponse;
|
|
4279
5086
|
user?: UserResponse;
|
|
4280
5087
|
}
|
|
5088
|
+
export interface WebhookEvent {
|
|
5089
|
+
type: string;
|
|
5090
|
+
}
|
|
4281
5091
|
export interface WrappedUnreadCountsResponse {
|
|
4282
5092
|
duration: string;
|
|
4283
5093
|
total_unread_count: number;
|