@stream-io/node-sdk 0.4.4 → 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.
- package/dist/index.cjs.js +737 -357
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +737 -358
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +28 -2
- package/dist/src/gen/models/index.d.ts +1412 -223
- package/dist/src/gen/moderation/ModerationApi.d.ts +7 -1
- package/dist/src/gen/video/CallApi.d.ts +5 -3
- package/dist/src/gen/video/VideoApi.d.ts +12 -3
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +225 -2
- package/src/gen/common/CommonApi.ts +0 -3
- package/src/gen/model-decoders/index.ts +331 -139
- package/src/gen/models/index.ts +2578 -397
- package/src/gen/moderation/ModerationApi.ts +66 -10
- package/src/gen/video/CallApi.ts +38 -6
- package/src/gen/video/VideoApi.ts +101 -8
package/src/gen/models/index.ts
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
export interface AIImageConfig {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
|
|
4
|
+
rules: AWSRekognitionRule[];
|
|
5
|
+
|
|
6
|
+
async?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface AITextConfig {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
|
|
12
|
+
profile: string;
|
|
13
|
+
|
|
14
|
+
rules: BodyguardRule[];
|
|
15
|
+
|
|
16
|
+
severity_rules: BodyguardSeverityRule[];
|
|
17
|
+
|
|
18
|
+
async?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AIVideoConfig {
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
|
|
24
|
+
rules: AWSRekognitionRule[];
|
|
25
|
+
|
|
26
|
+
async?: boolean;
|
|
27
|
+
}
|
|
28
|
+
|
|
1
29
|
export interface APIError {
|
|
2
30
|
code: number;
|
|
3
31
|
|
|
@@ -66,16 +94,18 @@ export interface APNS {
|
|
|
66
94
|
title: string;
|
|
67
95
|
}
|
|
68
96
|
|
|
69
|
-
export interface AWSRekognitionConfig {
|
|
70
|
-
enabled?: boolean;
|
|
71
|
-
|
|
72
|
-
rules?: AWSRekognitionRule[];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
97
|
export interface AWSRekognitionRule {
|
|
76
|
-
action:
|
|
98
|
+
action:
|
|
99
|
+
| 'flag'
|
|
100
|
+
| 'shadow'
|
|
101
|
+
| 'remove'
|
|
102
|
+
| 'bounce'
|
|
103
|
+
| 'bounce_flag'
|
|
104
|
+
| 'bounce_remove';
|
|
77
105
|
|
|
78
106
|
label: string;
|
|
107
|
+
|
|
108
|
+
min_confidence: number;
|
|
79
109
|
}
|
|
80
110
|
|
|
81
111
|
export interface Action {
|
|
@@ -97,6 +127,8 @@ export interface ActionLog {
|
|
|
97
127
|
|
|
98
128
|
reason: string;
|
|
99
129
|
|
|
130
|
+
reporter_type: string;
|
|
131
|
+
|
|
100
132
|
review_queue_item_id: string;
|
|
101
133
|
|
|
102
134
|
target_user_id: string;
|
|
@@ -107,9 +139,9 @@ export interface ActionLog {
|
|
|
107
139
|
|
|
108
140
|
review_queue_item?: ReviewQueueItem;
|
|
109
141
|
|
|
110
|
-
target_user?:
|
|
142
|
+
target_user?: User;
|
|
111
143
|
|
|
112
|
-
user?:
|
|
144
|
+
user?: User;
|
|
113
145
|
}
|
|
114
146
|
|
|
115
147
|
export interface ActionLogResponse {
|
|
@@ -119,8 +151,12 @@ export interface ActionLogResponse {
|
|
|
119
151
|
|
|
120
152
|
reason: string;
|
|
121
153
|
|
|
154
|
+
target_user_id: string;
|
|
155
|
+
|
|
122
156
|
type: string;
|
|
123
157
|
|
|
158
|
+
user_id: string;
|
|
159
|
+
|
|
124
160
|
custom: Record<string, any>;
|
|
125
161
|
|
|
126
162
|
review_queue_item?: ReviewQueueItem;
|
|
@@ -138,6 +174,12 @@ export interface AggregatedStats {
|
|
|
138
174
|
turn?: TURNAggregatedStats;
|
|
139
175
|
}
|
|
140
176
|
|
|
177
|
+
export interface AnyEvent {
|
|
178
|
+
created_at: Date;
|
|
179
|
+
|
|
180
|
+
type: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
141
183
|
export interface AppResponseFields {
|
|
142
184
|
async_url_enrich_enabled: boolean;
|
|
143
185
|
|
|
@@ -187,8 +229,6 @@ export interface AppResponseFields {
|
|
|
187
229
|
|
|
188
230
|
suspended_explanation: string;
|
|
189
231
|
|
|
190
|
-
video_provider: string;
|
|
191
|
-
|
|
192
232
|
webhook_url: string;
|
|
193
233
|
|
|
194
234
|
user_search_disallowed_roles: string[];
|
|
@@ -219,11 +259,7 @@ export interface AppResponseFields {
|
|
|
219
259
|
|
|
220
260
|
image_moderation_labels?: string[];
|
|
221
261
|
|
|
222
|
-
agora_options?: Config;
|
|
223
|
-
|
|
224
262
|
datadog_info?: DataDogInfo;
|
|
225
|
-
|
|
226
|
-
hms_options?: Config;
|
|
227
263
|
}
|
|
228
264
|
|
|
229
265
|
export interface AsyncModerationCallbackConfig {
|
|
@@ -259,6 +295,10 @@ export interface Attachment {
|
|
|
259
295
|
|
|
260
296
|
image_url?: string;
|
|
261
297
|
|
|
298
|
+
latitude?: number;
|
|
299
|
+
|
|
300
|
+
longitude?: number;
|
|
301
|
+
|
|
262
302
|
og_scrape_url?: string;
|
|
263
303
|
|
|
264
304
|
original_height?: number;
|
|
@@ -267,6 +307,8 @@ export interface Attachment {
|
|
|
267
307
|
|
|
268
308
|
pretext?: string;
|
|
269
309
|
|
|
310
|
+
stopped_sharing?: boolean;
|
|
311
|
+
|
|
270
312
|
text?: string;
|
|
271
313
|
|
|
272
314
|
thumb_url?: string;
|
|
@@ -345,13 +387,21 @@ export interface AutomodDetails {
|
|
|
345
387
|
}
|
|
346
388
|
|
|
347
389
|
export interface AutomodPlatformCircumventionConfig {
|
|
348
|
-
enabled
|
|
390
|
+
enabled: boolean;
|
|
349
391
|
|
|
350
|
-
rules
|
|
392
|
+
rules: AutomodRule[];
|
|
393
|
+
|
|
394
|
+
async?: boolean;
|
|
351
395
|
}
|
|
352
396
|
|
|
353
397
|
export interface AutomodRule {
|
|
354
|
-
action:
|
|
398
|
+
action:
|
|
399
|
+
| 'flag'
|
|
400
|
+
| 'shadow'
|
|
401
|
+
| 'remove'
|
|
402
|
+
| 'bounce'
|
|
403
|
+
| 'bounce_flag'
|
|
404
|
+
| 'bounce_remove';
|
|
355
405
|
|
|
356
406
|
label: string;
|
|
357
407
|
|
|
@@ -359,9 +409,11 @@ export interface AutomodRule {
|
|
|
359
409
|
}
|
|
360
410
|
|
|
361
411
|
export interface AutomodSemanticFiltersConfig {
|
|
362
|
-
enabled
|
|
412
|
+
enabled: boolean;
|
|
413
|
+
|
|
414
|
+
rules: AutomodSemanticFiltersRule[];
|
|
363
415
|
|
|
364
|
-
|
|
416
|
+
async?: boolean;
|
|
365
417
|
}
|
|
366
418
|
|
|
367
419
|
export interface AutomodSemanticFiltersRule {
|
|
@@ -373,9 +425,11 @@ export interface AutomodSemanticFiltersRule {
|
|
|
373
425
|
}
|
|
374
426
|
|
|
375
427
|
export interface AutomodToxicityConfig {
|
|
376
|
-
enabled
|
|
428
|
+
enabled: boolean;
|
|
429
|
+
|
|
430
|
+
rules: AutomodRule[];
|
|
377
431
|
|
|
378
|
-
|
|
432
|
+
async?: boolean;
|
|
379
433
|
}
|
|
380
434
|
|
|
381
435
|
export interface AzureRequest {
|
|
@@ -417,14 +471,16 @@ export interface Ban {
|
|
|
417
471
|
|
|
418
472
|
channel?: Channel;
|
|
419
473
|
|
|
420
|
-
created_by?:
|
|
474
|
+
created_by?: User;
|
|
421
475
|
|
|
422
|
-
target?:
|
|
476
|
+
target?: User;
|
|
423
477
|
}
|
|
424
478
|
|
|
425
479
|
export interface BanActionRequest {
|
|
426
480
|
channel_ban_only?: boolean;
|
|
427
481
|
|
|
482
|
+
ip_ban?: boolean;
|
|
483
|
+
|
|
428
484
|
reason?: string;
|
|
429
485
|
|
|
430
486
|
shadow?: boolean;
|
|
@@ -467,9 +523,11 @@ export interface BanResponse {
|
|
|
467
523
|
}
|
|
468
524
|
|
|
469
525
|
export interface BlockListConfig {
|
|
470
|
-
enabled
|
|
526
|
+
enabled: boolean;
|
|
527
|
+
|
|
528
|
+
rules: BlockListRule[];
|
|
471
529
|
|
|
472
|
-
|
|
530
|
+
async?: boolean;
|
|
473
531
|
}
|
|
474
532
|
|
|
475
533
|
export interface BlockListOptions {
|
|
@@ -491,7 +549,13 @@ export interface BlockListResponse {
|
|
|
491
549
|
}
|
|
492
550
|
|
|
493
551
|
export interface BlockListRule {
|
|
494
|
-
action:
|
|
552
|
+
action:
|
|
553
|
+
| 'flag'
|
|
554
|
+
| 'shadow'
|
|
555
|
+
| 'remove'
|
|
556
|
+
| 'bounce'
|
|
557
|
+
| 'bounce_flag'
|
|
558
|
+
| 'bounce_remove';
|
|
495
559
|
|
|
496
560
|
name: string;
|
|
497
561
|
}
|
|
@@ -522,40 +586,62 @@ export interface BlockUsersResponse {
|
|
|
522
586
|
duration: string;
|
|
523
587
|
}
|
|
524
588
|
|
|
525
|
-
export interface
|
|
526
|
-
|
|
589
|
+
export interface BlockedUserEvent {
|
|
590
|
+
call_cid: string;
|
|
527
591
|
|
|
528
592
|
created_at: Date;
|
|
529
593
|
|
|
530
|
-
|
|
594
|
+
user: UserResponse;
|
|
531
595
|
|
|
532
|
-
|
|
596
|
+
type: string;
|
|
533
597
|
|
|
534
|
-
|
|
598
|
+
blocked_by_user?: UserResponse;
|
|
535
599
|
}
|
|
536
600
|
|
|
537
|
-
export interface
|
|
538
|
-
|
|
601
|
+
export interface BlockedUserResponse {
|
|
602
|
+
blocked_user_id: string;
|
|
603
|
+
|
|
604
|
+
created_at: Date;
|
|
539
605
|
|
|
540
|
-
|
|
606
|
+
user_id: string;
|
|
541
607
|
|
|
542
|
-
|
|
608
|
+
blocked_user: UserResponse;
|
|
543
609
|
|
|
544
|
-
|
|
610
|
+
user: UserResponse;
|
|
545
611
|
}
|
|
546
612
|
|
|
547
613
|
export interface BodyguardRule {
|
|
548
|
-
action:
|
|
614
|
+
action:
|
|
615
|
+
| 'flag'
|
|
616
|
+
| 'shadow'
|
|
617
|
+
| 'remove'
|
|
618
|
+
| 'bounce'
|
|
619
|
+
| 'bounce_flag'
|
|
620
|
+
| 'bounce_remove';
|
|
549
621
|
|
|
550
622
|
label: string;
|
|
623
|
+
|
|
624
|
+
severity_rules: BodyguardSeverityRule[];
|
|
551
625
|
}
|
|
552
626
|
|
|
553
627
|
export interface BodyguardSeverityRule {
|
|
554
|
-
action:
|
|
628
|
+
action:
|
|
629
|
+
| 'flag'
|
|
630
|
+
| 'shadow'
|
|
631
|
+
| 'remove'
|
|
632
|
+
| 'bounce'
|
|
633
|
+
| 'bounce_flag'
|
|
634
|
+
| 'bounce_remove';
|
|
555
635
|
|
|
556
636
|
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
557
637
|
}
|
|
558
638
|
|
|
639
|
+
export interface Bound {
|
|
640
|
+
inclusive: boolean;
|
|
641
|
+
|
|
642
|
+
value: number;
|
|
643
|
+
}
|
|
644
|
+
|
|
559
645
|
export interface BroadcastSettings {
|
|
560
646
|
enabled: boolean;
|
|
561
647
|
|
|
@@ -580,174 +666,556 @@ export interface BroadcastSettingsResponse {
|
|
|
580
666
|
rtmp: RTMPSettingsResponse;
|
|
581
667
|
}
|
|
582
668
|
|
|
583
|
-
export interface
|
|
584
|
-
|
|
669
|
+
export interface CallAcceptedEvent {
|
|
670
|
+
call_cid: string;
|
|
585
671
|
|
|
586
|
-
|
|
672
|
+
created_at: Date;
|
|
587
673
|
|
|
588
|
-
|
|
674
|
+
call: CallResponse;
|
|
589
675
|
|
|
590
|
-
|
|
676
|
+
user: UserResponse;
|
|
591
677
|
|
|
592
678
|
type: string;
|
|
593
|
-
|
|
594
|
-
component?: string;
|
|
595
|
-
|
|
596
|
-
additional?: Record<string, any>;
|
|
597
679
|
}
|
|
598
680
|
|
|
599
|
-
export interface
|
|
600
|
-
|
|
601
|
-
}
|
|
681
|
+
export interface CallClosedCaption {
|
|
682
|
+
end_time: Date;
|
|
602
683
|
|
|
603
|
-
|
|
604
|
-
joined_at: Date;
|
|
684
|
+
speaker_id: string;
|
|
605
685
|
|
|
606
|
-
|
|
686
|
+
start_time: Date;
|
|
607
687
|
|
|
608
|
-
|
|
688
|
+
text: string;
|
|
609
689
|
|
|
610
690
|
user: UserResponse;
|
|
611
691
|
}
|
|
612
692
|
|
|
613
|
-
export interface
|
|
614
|
-
|
|
693
|
+
export interface CallClosedCaptionsFailedEvent {
|
|
694
|
+
call_cid: string;
|
|
615
695
|
|
|
616
|
-
|
|
696
|
+
created_at: Date;
|
|
617
697
|
|
|
618
|
-
|
|
698
|
+
type: string;
|
|
699
|
+
}
|
|
619
700
|
|
|
620
|
-
|
|
701
|
+
export interface CallClosedCaptionsStartedEvent {
|
|
702
|
+
call_cid: string;
|
|
703
|
+
|
|
704
|
+
created_at: Date;
|
|
705
|
+
|
|
706
|
+
type: string;
|
|
621
707
|
}
|
|
622
708
|
|
|
623
|
-
export interface
|
|
624
|
-
|
|
709
|
+
export interface CallClosedCaptionsStoppedEvent {
|
|
710
|
+
call_cid: string;
|
|
625
711
|
|
|
626
|
-
|
|
712
|
+
created_at: Date;
|
|
627
713
|
|
|
628
|
-
|
|
714
|
+
type: string;
|
|
715
|
+
}
|
|
629
716
|
|
|
630
|
-
|
|
717
|
+
export interface CallCreatedEvent {
|
|
718
|
+
call_cid: string;
|
|
631
719
|
|
|
632
|
-
|
|
720
|
+
created_at: Date;
|
|
633
721
|
|
|
634
|
-
|
|
722
|
+
members: MemberResponse[];
|
|
635
723
|
|
|
636
|
-
|
|
724
|
+
call: CallResponse;
|
|
637
725
|
|
|
638
|
-
|
|
726
|
+
type: string;
|
|
639
727
|
}
|
|
640
728
|
|
|
641
|
-
export interface
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
cid: string;
|
|
729
|
+
export interface CallDeletedEvent {
|
|
730
|
+
call_cid: string;
|
|
645
731
|
|
|
646
732
|
created_at: Date;
|
|
647
733
|
|
|
648
|
-
|
|
734
|
+
call: CallResponse;
|
|
649
735
|
|
|
650
|
-
|
|
736
|
+
type: string;
|
|
737
|
+
}
|
|
651
738
|
|
|
652
|
-
|
|
739
|
+
export interface CallDurationReport {
|
|
740
|
+
histogram: ReportByHistogramBucket[];
|
|
741
|
+
}
|
|
653
742
|
|
|
654
|
-
|
|
743
|
+
export interface CallDurationReportResponse {
|
|
744
|
+
daily: DailyAggregateCallDurationReportResponse[];
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export interface CallEndedEvent {
|
|
748
|
+
call_cid: string;
|
|
749
|
+
|
|
750
|
+
created_at: Date;
|
|
751
|
+
|
|
752
|
+
call: CallResponse;
|
|
655
753
|
|
|
656
754
|
type: string;
|
|
657
755
|
|
|
658
|
-
|
|
756
|
+
user?: UserResponse;
|
|
757
|
+
}
|
|
659
758
|
|
|
660
|
-
|
|
759
|
+
export interface CallEvent {
|
|
760
|
+
description: string;
|
|
661
761
|
|
|
662
|
-
|
|
762
|
+
end_timestamp: number;
|
|
663
763
|
|
|
664
|
-
|
|
764
|
+
internal: boolean;
|
|
665
765
|
|
|
666
|
-
|
|
766
|
+
kind: string;
|
|
667
767
|
|
|
668
|
-
|
|
768
|
+
severity: number;
|
|
669
769
|
|
|
670
|
-
|
|
770
|
+
timestamp: number;
|
|
671
771
|
|
|
672
|
-
|
|
772
|
+
type: string;
|
|
673
773
|
|
|
674
|
-
|
|
774
|
+
category?: string;
|
|
675
775
|
|
|
676
|
-
|
|
776
|
+
component?: string;
|
|
677
777
|
|
|
678
|
-
|
|
778
|
+
issue_tags?: string[];
|
|
779
|
+
}
|
|
679
780
|
|
|
680
|
-
|
|
781
|
+
export interface CallHLSBroadcastingFailedEvent {
|
|
782
|
+
call_cid: string;
|
|
681
783
|
|
|
682
|
-
|
|
784
|
+
created_at: Date;
|
|
785
|
+
|
|
786
|
+
type: string;
|
|
683
787
|
}
|
|
684
788
|
|
|
685
|
-
export interface
|
|
686
|
-
|
|
789
|
+
export interface CallHLSBroadcastingStartedEvent {
|
|
790
|
+
call_cid: string;
|
|
687
791
|
|
|
688
|
-
|
|
792
|
+
created_at: Date;
|
|
689
793
|
|
|
690
|
-
|
|
794
|
+
hls_playlist_url: string;
|
|
691
795
|
|
|
692
|
-
|
|
796
|
+
type: string;
|
|
797
|
+
}
|
|
693
798
|
|
|
694
|
-
|
|
799
|
+
export interface CallHLSBroadcastingStoppedEvent {
|
|
800
|
+
call_cid: string;
|
|
695
801
|
|
|
696
|
-
|
|
802
|
+
created_at: Date;
|
|
697
803
|
|
|
698
|
-
|
|
804
|
+
type: string;
|
|
805
|
+
}
|
|
699
806
|
|
|
700
|
-
|
|
807
|
+
export interface CallIngressResponse {
|
|
808
|
+
rtmp: RTMPIngress;
|
|
809
|
+
}
|
|
701
810
|
|
|
702
|
-
|
|
811
|
+
export interface CallLiveStartedEvent {
|
|
812
|
+
call_cid: string;
|
|
703
813
|
|
|
704
|
-
|
|
814
|
+
created_at: Date;
|
|
705
815
|
|
|
706
|
-
|
|
816
|
+
call: CallResponse;
|
|
707
817
|
|
|
708
|
-
|
|
818
|
+
type: string;
|
|
709
819
|
}
|
|
710
820
|
|
|
711
|
-
export interface
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
backstage?: BackstageSettings;
|
|
821
|
+
export interface CallMemberAddedEvent {
|
|
822
|
+
call_cid: string;
|
|
715
823
|
|
|
716
|
-
|
|
824
|
+
created_at: Date;
|
|
717
825
|
|
|
718
|
-
|
|
826
|
+
members: MemberResponse[];
|
|
719
827
|
|
|
720
|
-
|
|
828
|
+
call: CallResponse;
|
|
721
829
|
|
|
722
|
-
|
|
830
|
+
type: string;
|
|
831
|
+
}
|
|
723
832
|
|
|
724
|
-
|
|
833
|
+
export interface CallMemberRemovedEvent {
|
|
834
|
+
call_cid: string;
|
|
725
835
|
|
|
726
|
-
|
|
836
|
+
created_at: Date;
|
|
727
837
|
|
|
728
|
-
|
|
838
|
+
members: string[];
|
|
729
839
|
|
|
730
|
-
|
|
840
|
+
call: CallResponse;
|
|
731
841
|
|
|
732
|
-
|
|
842
|
+
type: string;
|
|
733
843
|
}
|
|
734
844
|
|
|
735
|
-
export interface
|
|
736
|
-
|
|
845
|
+
export interface CallMemberUpdatedEvent {
|
|
846
|
+
call_cid: string;
|
|
737
847
|
|
|
738
|
-
|
|
848
|
+
created_at: Date;
|
|
739
849
|
|
|
740
|
-
|
|
850
|
+
members: MemberResponse[];
|
|
741
851
|
|
|
742
|
-
|
|
852
|
+
call: CallResponse;
|
|
743
853
|
|
|
744
|
-
|
|
854
|
+
type: string;
|
|
855
|
+
}
|
|
745
856
|
|
|
746
|
-
|
|
857
|
+
export interface CallMemberUpdatedPermissionEvent {
|
|
858
|
+
call_cid: string;
|
|
747
859
|
|
|
748
|
-
|
|
860
|
+
created_at: Date;
|
|
749
861
|
|
|
750
|
-
|
|
862
|
+
members: MemberResponse[];
|
|
863
|
+
|
|
864
|
+
call: CallResponse;
|
|
865
|
+
|
|
866
|
+
capabilities_by_role: Record<string, string[]>;
|
|
867
|
+
|
|
868
|
+
type: string;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export interface CallMissedEvent {
|
|
872
|
+
call_cid: string;
|
|
873
|
+
|
|
874
|
+
created_at: Date;
|
|
875
|
+
|
|
876
|
+
notify_user: boolean;
|
|
877
|
+
|
|
878
|
+
session_id: string;
|
|
879
|
+
|
|
880
|
+
members: MemberResponse[];
|
|
881
|
+
|
|
882
|
+
call: CallResponse;
|
|
883
|
+
|
|
884
|
+
user: UserResponse;
|
|
885
|
+
|
|
886
|
+
type: string;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export interface CallNotificationEvent {
|
|
890
|
+
call_cid: string;
|
|
891
|
+
|
|
892
|
+
created_at: Date;
|
|
893
|
+
|
|
894
|
+
session_id: string;
|
|
895
|
+
|
|
896
|
+
members: MemberResponse[];
|
|
897
|
+
|
|
898
|
+
call: CallResponse;
|
|
899
|
+
|
|
900
|
+
user: UserResponse;
|
|
901
|
+
|
|
902
|
+
type: string;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
export interface CallParticipantCountReport {
|
|
906
|
+
histogram: ReportByHistogramBucket[];
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
export interface CallParticipantCountReportResponse {
|
|
910
|
+
daily: DailyAggregateCallParticipantCountReportResponse[];
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
export interface CallParticipantResponse {
|
|
914
|
+
joined_at: Date;
|
|
915
|
+
|
|
916
|
+
role: string;
|
|
917
|
+
|
|
918
|
+
user_session_id: string;
|
|
919
|
+
|
|
920
|
+
user: UserResponse;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
export interface CallReactionEvent {
|
|
924
|
+
call_cid: string;
|
|
925
|
+
|
|
926
|
+
created_at: Date;
|
|
927
|
+
|
|
928
|
+
reaction: ReactionResponse;
|
|
929
|
+
|
|
930
|
+
type: string;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
export interface CallRecording {
|
|
934
|
+
end_time: Date;
|
|
935
|
+
|
|
936
|
+
filename: string;
|
|
937
|
+
|
|
938
|
+
start_time: Date;
|
|
939
|
+
|
|
940
|
+
url: string;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
export interface CallRecordingFailedEvent {
|
|
944
|
+
call_cid: string;
|
|
945
|
+
|
|
946
|
+
created_at: Date;
|
|
947
|
+
|
|
948
|
+
type: string;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
export interface CallRecordingReadyEvent {
|
|
952
|
+
call_cid: string;
|
|
953
|
+
|
|
954
|
+
created_at: Date;
|
|
955
|
+
|
|
956
|
+
call_recording: CallRecording;
|
|
957
|
+
|
|
958
|
+
type: string;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
export interface CallRecordingStartedEvent {
|
|
962
|
+
call_cid: string;
|
|
963
|
+
|
|
964
|
+
created_at: Date;
|
|
965
|
+
|
|
966
|
+
type: string;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
export interface CallRecordingStoppedEvent {
|
|
970
|
+
call_cid: string;
|
|
971
|
+
|
|
972
|
+
created_at: Date;
|
|
973
|
+
|
|
974
|
+
type: string;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export interface CallRejectedEvent {
|
|
978
|
+
call_cid: string;
|
|
979
|
+
|
|
980
|
+
created_at: Date;
|
|
981
|
+
|
|
982
|
+
call: CallResponse;
|
|
983
|
+
|
|
984
|
+
user: UserResponse;
|
|
985
|
+
|
|
986
|
+
type: string;
|
|
987
|
+
|
|
988
|
+
reason?: string;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export interface CallRequest {
|
|
992
|
+
created_by_id?: string;
|
|
993
|
+
|
|
994
|
+
starts_at?: Date;
|
|
995
|
+
|
|
996
|
+
team?: string;
|
|
997
|
+
|
|
998
|
+
video?: boolean;
|
|
999
|
+
|
|
1000
|
+
members?: MemberRequest[];
|
|
1001
|
+
|
|
1002
|
+
created_by?: UserRequest;
|
|
1003
|
+
|
|
1004
|
+
custom?: Record<string, any>;
|
|
1005
|
+
|
|
1006
|
+
settings_override?: CallSettingsRequest;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export interface CallResponse {
|
|
1010
|
+
backstage: boolean;
|
|
1011
|
+
|
|
1012
|
+
captioning: boolean;
|
|
1013
|
+
|
|
1014
|
+
cid: string;
|
|
1015
|
+
|
|
1016
|
+
created_at: Date;
|
|
1017
|
+
|
|
1018
|
+
current_session_id: string;
|
|
1019
|
+
|
|
1020
|
+
id: string;
|
|
1021
|
+
|
|
1022
|
+
recording: boolean;
|
|
1023
|
+
|
|
1024
|
+
transcribing: boolean;
|
|
1025
|
+
|
|
1026
|
+
type: string;
|
|
1027
|
+
|
|
1028
|
+
updated_at: Date;
|
|
1029
|
+
|
|
1030
|
+
blocked_user_ids: string[];
|
|
1031
|
+
|
|
1032
|
+
created_by: UserResponse;
|
|
1033
|
+
|
|
1034
|
+
custom: Record<string, any>;
|
|
1035
|
+
|
|
1036
|
+
egress: EgressResponse;
|
|
1037
|
+
|
|
1038
|
+
ingress: CallIngressResponse;
|
|
1039
|
+
|
|
1040
|
+
settings: CallSettingsResponse;
|
|
1041
|
+
|
|
1042
|
+
ended_at?: Date;
|
|
1043
|
+
|
|
1044
|
+
join_ahead_time_seconds?: number;
|
|
1045
|
+
|
|
1046
|
+
starts_at?: Date;
|
|
1047
|
+
|
|
1048
|
+
team?: string;
|
|
1049
|
+
|
|
1050
|
+
session?: CallSessionResponse;
|
|
1051
|
+
|
|
1052
|
+
thumbnails?: ThumbnailResponse;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
export interface CallRingEvent {
|
|
1056
|
+
call_cid: string;
|
|
1057
|
+
|
|
1058
|
+
created_at: Date;
|
|
1059
|
+
|
|
1060
|
+
session_id: string;
|
|
1061
|
+
|
|
1062
|
+
video: boolean;
|
|
1063
|
+
|
|
1064
|
+
members: MemberResponse[];
|
|
1065
|
+
|
|
1066
|
+
call: CallResponse;
|
|
1067
|
+
|
|
1068
|
+
user: UserResponse;
|
|
1069
|
+
|
|
1070
|
+
type: string;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export interface CallRtmpBroadcastFailedEvent {
|
|
1074
|
+
call_cid: string;
|
|
1075
|
+
|
|
1076
|
+
created_at: Date;
|
|
1077
|
+
|
|
1078
|
+
name: string;
|
|
1079
|
+
|
|
1080
|
+
type: string;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
export interface CallRtmpBroadcastStartedEvent {
|
|
1084
|
+
call_cid: string;
|
|
1085
|
+
|
|
1086
|
+
created_at: Date;
|
|
1087
|
+
|
|
1088
|
+
name: string;
|
|
1089
|
+
|
|
1090
|
+
type: string;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
export interface CallRtmpBroadcastStoppedEvent {
|
|
1094
|
+
call_cid: string;
|
|
1095
|
+
|
|
1096
|
+
created_at: Date;
|
|
1097
|
+
|
|
1098
|
+
name: string;
|
|
1099
|
+
|
|
1100
|
+
type: string;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
export interface CallSessionEndedEvent {
|
|
1104
|
+
call_cid: string;
|
|
1105
|
+
|
|
1106
|
+
created_at: Date;
|
|
1107
|
+
|
|
1108
|
+
session_id: string;
|
|
1109
|
+
|
|
1110
|
+
call: CallResponse;
|
|
1111
|
+
|
|
1112
|
+
type: string;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
export interface CallSessionParticipantJoinedEvent {
|
|
1116
|
+
call_cid: string;
|
|
1117
|
+
|
|
1118
|
+
created_at: Date;
|
|
1119
|
+
|
|
1120
|
+
session_id: string;
|
|
1121
|
+
|
|
1122
|
+
participant: CallParticipantResponse;
|
|
1123
|
+
|
|
1124
|
+
type: string;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
export interface CallSessionParticipantLeftEvent {
|
|
1128
|
+
call_cid: string;
|
|
1129
|
+
|
|
1130
|
+
created_at: Date;
|
|
1131
|
+
|
|
1132
|
+
duration_seconds: number;
|
|
1133
|
+
|
|
1134
|
+
session_id: string;
|
|
1135
|
+
|
|
1136
|
+
participant: CallParticipantResponse;
|
|
1137
|
+
|
|
1138
|
+
type: string;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
export interface CallSessionResponse {
|
|
1142
|
+
anonymous_participant_count: number;
|
|
1143
|
+
|
|
1144
|
+
id: string;
|
|
1145
|
+
|
|
1146
|
+
participants: CallParticipantResponse[];
|
|
1147
|
+
|
|
1148
|
+
accepted_by: Record<string, Date>;
|
|
1149
|
+
|
|
1150
|
+
missed_by: Record<string, Date>;
|
|
1151
|
+
|
|
1152
|
+
participants_count_by_role: Record<string, number>;
|
|
1153
|
+
|
|
1154
|
+
rejected_by: Record<string, Date>;
|
|
1155
|
+
|
|
1156
|
+
ended_at?: Date;
|
|
1157
|
+
|
|
1158
|
+
live_ended_at?: Date;
|
|
1159
|
+
|
|
1160
|
+
live_started_at?: Date;
|
|
1161
|
+
|
|
1162
|
+
started_at?: Date;
|
|
1163
|
+
|
|
1164
|
+
timer_ends_at?: Date;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
export interface CallSessionStartedEvent {
|
|
1168
|
+
call_cid: string;
|
|
1169
|
+
|
|
1170
|
+
created_at: Date;
|
|
1171
|
+
|
|
1172
|
+
session_id: string;
|
|
1173
|
+
|
|
1174
|
+
call: CallResponse;
|
|
1175
|
+
|
|
1176
|
+
type: string;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
export interface CallSettings {
|
|
1180
|
+
audio?: AudioSettings;
|
|
1181
|
+
|
|
1182
|
+
backstage?: BackstageSettings;
|
|
1183
|
+
|
|
1184
|
+
broadcasting?: BroadcastSettings;
|
|
1185
|
+
|
|
1186
|
+
geofencing?: GeofenceSettings;
|
|
1187
|
+
|
|
1188
|
+
limits?: LimitsSettings;
|
|
1189
|
+
|
|
1190
|
+
recording?: RecordSettings;
|
|
1191
|
+
|
|
1192
|
+
ring?: RingSettings;
|
|
1193
|
+
|
|
1194
|
+
screensharing?: ScreensharingSettings;
|
|
1195
|
+
|
|
1196
|
+
thumbnails?: ThumbnailsSettings;
|
|
1197
|
+
|
|
1198
|
+
transcription?: TranscriptionSettings;
|
|
1199
|
+
|
|
1200
|
+
video?: VideoSettings;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
export interface CallSettingsRequest {
|
|
1204
|
+
audio?: AudioSettingsRequest;
|
|
1205
|
+
|
|
1206
|
+
backstage?: BackstageSettingsRequest;
|
|
1207
|
+
|
|
1208
|
+
broadcasting?: BroadcastSettingsRequest;
|
|
1209
|
+
|
|
1210
|
+
geofencing?: GeofenceSettingsRequest;
|
|
1211
|
+
|
|
1212
|
+
limits?: LimitsSettingsRequest;
|
|
1213
|
+
|
|
1214
|
+
recording?: RecordSettingsRequest;
|
|
1215
|
+
|
|
1216
|
+
ring?: RingSettingsRequest;
|
|
1217
|
+
|
|
1218
|
+
screensharing?: ScreensharingSettingsRequest;
|
|
751
1219
|
|
|
752
1220
|
thumbnails?: ThumbnailsSettingsRequest;
|
|
753
1221
|
|
|
@@ -801,6 +1269,8 @@ export interface CallStatsReportSummaryResponse {
|
|
|
801
1269
|
|
|
802
1270
|
created_at?: Date;
|
|
803
1271
|
|
|
1272
|
+
min_user_rating?: number;
|
|
1273
|
+
|
|
804
1274
|
quality_score?: number;
|
|
805
1275
|
}
|
|
806
1276
|
|
|
@@ -808,48 +1278,210 @@ export interface CallTimeline {
|
|
|
808
1278
|
events: CallEvent[];
|
|
809
1279
|
}
|
|
810
1280
|
|
|
811
|
-
export interface CallTranscription {
|
|
812
|
-
end_time: Date;
|
|
1281
|
+
export interface CallTranscription {
|
|
1282
|
+
end_time: Date;
|
|
1283
|
+
|
|
1284
|
+
filename: string;
|
|
1285
|
+
|
|
1286
|
+
start_time: Date;
|
|
1287
|
+
|
|
1288
|
+
url: string;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
export interface CallTranscriptionFailedEvent {
|
|
1292
|
+
call_cid: string;
|
|
1293
|
+
|
|
1294
|
+
created_at: Date;
|
|
1295
|
+
|
|
1296
|
+
type: string;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
export interface CallTranscriptionReadyEvent {
|
|
1300
|
+
call_cid: string;
|
|
1301
|
+
|
|
1302
|
+
created_at: Date;
|
|
1303
|
+
|
|
1304
|
+
call_transcription: CallTranscription;
|
|
1305
|
+
|
|
1306
|
+
type: string;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
export interface CallTranscriptionStartedEvent {
|
|
1310
|
+
call_cid: string;
|
|
1311
|
+
|
|
1312
|
+
created_at: Date;
|
|
1313
|
+
|
|
1314
|
+
type: string;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
export interface CallTranscriptionStoppedEvent {
|
|
1318
|
+
call_cid: string;
|
|
1319
|
+
|
|
1320
|
+
created_at: Date;
|
|
1321
|
+
|
|
1322
|
+
type: string;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
export interface CallType {
|
|
1326
|
+
app_pk: number;
|
|
1327
|
+
|
|
1328
|
+
created_at: Date;
|
|
1329
|
+
|
|
1330
|
+
external_storage: string;
|
|
1331
|
+
|
|
1332
|
+
name: string;
|
|
1333
|
+
|
|
1334
|
+
pk: number;
|
|
1335
|
+
|
|
1336
|
+
updated_at: Date;
|
|
1337
|
+
|
|
1338
|
+
notification_settings?: NotificationSettings;
|
|
1339
|
+
|
|
1340
|
+
settings?: CallSettings;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
export interface CallTypeResponse {
|
|
1344
|
+
created_at: Date;
|
|
1345
|
+
|
|
1346
|
+
name: string;
|
|
1347
|
+
|
|
1348
|
+
updated_at: Date;
|
|
1349
|
+
|
|
1350
|
+
grants: Record<string, string[]>;
|
|
1351
|
+
|
|
1352
|
+
notification_settings: NotificationSettings;
|
|
1353
|
+
|
|
1354
|
+
settings: CallSettingsResponse;
|
|
1355
|
+
|
|
1356
|
+
external_storage?: string;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
export interface CallUpdatedEvent {
|
|
1360
|
+
call_cid: string;
|
|
1361
|
+
|
|
1362
|
+
created_at: Date;
|
|
1363
|
+
|
|
1364
|
+
call: CallResponse;
|
|
1365
|
+
|
|
1366
|
+
capabilities_by_role: Record<string, string[]>;
|
|
1367
|
+
|
|
1368
|
+
type: string;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
export interface CallUserMutedEvent {
|
|
1372
|
+
call_cid: string;
|
|
1373
|
+
|
|
1374
|
+
created_at: Date;
|
|
1375
|
+
|
|
1376
|
+
from_user_id: string;
|
|
1377
|
+
|
|
1378
|
+
muted_user_ids: string[];
|
|
1379
|
+
|
|
1380
|
+
type: string;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
export interface CallsPerDayReport {
|
|
1384
|
+
count: number;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
export interface CallsPerDayReportResponse {
|
|
1388
|
+
daily: DailyAggregateCallsPerDayReportResponse[];
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
export interface CampaignChannelTemplate {
|
|
1392
|
+
type: string;
|
|
1393
|
+
|
|
1394
|
+
custom: Record<string, any>;
|
|
1395
|
+
|
|
1396
|
+
id?: string;
|
|
1397
|
+
|
|
1398
|
+
team?: string;
|
|
1399
|
+
|
|
1400
|
+
members?: string[];
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
export interface CampaignCompletedEvent {
|
|
1404
|
+
created_at: Date;
|
|
1405
|
+
|
|
1406
|
+
type: string;
|
|
1407
|
+
|
|
1408
|
+
received_at?: Date;
|
|
1409
|
+
|
|
1410
|
+
campaign?: CampaignResponse;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
export interface CampaignMessageTemplate {
|
|
1414
|
+
poll_id: string;
|
|
1415
|
+
|
|
1416
|
+
text: string;
|
|
1417
|
+
|
|
1418
|
+
attachments: Attachment[];
|
|
1419
|
+
|
|
1420
|
+
custom: Record<string, any>;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
export interface CampaignResponse {
|
|
1424
|
+
create_channels: boolean;
|
|
1425
|
+
|
|
1426
|
+
created_at: Date;
|
|
1427
|
+
|
|
1428
|
+
description: string;
|
|
1429
|
+
|
|
1430
|
+
id: string;
|
|
1431
|
+
|
|
1432
|
+
name: string;
|
|
1433
|
+
|
|
1434
|
+
sender_id: string;
|
|
1435
|
+
|
|
1436
|
+
skip_push: boolean;
|
|
813
1437
|
|
|
814
|
-
|
|
1438
|
+
skip_webhook: boolean;
|
|
815
1439
|
|
|
816
|
-
|
|
1440
|
+
status: string;
|
|
817
1441
|
|
|
818
|
-
|
|
819
|
-
}
|
|
1442
|
+
updated_at: Date;
|
|
820
1443
|
|
|
821
|
-
|
|
822
|
-
app_pk: number;
|
|
1444
|
+
segment_ids: string[];
|
|
823
1445
|
|
|
824
|
-
|
|
1446
|
+
segments: Segment[];
|
|
825
1447
|
|
|
826
|
-
|
|
1448
|
+
user_ids: string[];
|
|
827
1449
|
|
|
828
|
-
|
|
1450
|
+
users: UserResponse[];
|
|
829
1451
|
|
|
830
|
-
|
|
1452
|
+
stats: CampaignStatsResponse;
|
|
831
1453
|
|
|
832
|
-
|
|
1454
|
+
scheduled_for?: Date;
|
|
833
1455
|
|
|
834
|
-
|
|
1456
|
+
stop_at?: Date;
|
|
835
1457
|
|
|
836
|
-
|
|
1458
|
+
channel_template?: CampaignChannelTemplate;
|
|
1459
|
+
|
|
1460
|
+
message_template?: CampaignMessageTemplate;
|
|
1461
|
+
|
|
1462
|
+
sender?: UserResponse;
|
|
837
1463
|
}
|
|
838
1464
|
|
|
839
|
-
export interface
|
|
1465
|
+
export interface CampaignStartedEvent {
|
|
840
1466
|
created_at: Date;
|
|
841
1467
|
|
|
842
|
-
|
|
1468
|
+
type: string;
|
|
843
1469
|
|
|
844
|
-
|
|
1470
|
+
received_at?: Date;
|
|
845
1471
|
|
|
846
|
-
|
|
1472
|
+
campaign?: CampaignResponse;
|
|
1473
|
+
}
|
|
847
1474
|
|
|
848
|
-
|
|
1475
|
+
export interface CampaignStatsResponse {
|
|
1476
|
+
progress: number;
|
|
849
1477
|
|
|
850
|
-
|
|
1478
|
+
stats_channels_created: number;
|
|
851
1479
|
|
|
852
|
-
|
|
1480
|
+
stats_completed_at: Date;
|
|
1481
|
+
|
|
1482
|
+
stats_messages_sent: number;
|
|
1483
|
+
|
|
1484
|
+
stats_started_at: Date;
|
|
853
1485
|
}
|
|
854
1486
|
|
|
855
1487
|
export interface CastPollVoteRequest {
|
|
@@ -897,11 +1529,11 @@ export interface Channel {
|
|
|
897
1529
|
|
|
898
1530
|
config?: ChannelConfig;
|
|
899
1531
|
|
|
900
|
-
config_overrides?:
|
|
1532
|
+
config_overrides?: ConfigOverrides;
|
|
901
1533
|
|
|
902
|
-
created_by?:
|
|
1534
|
+
created_by?: User;
|
|
903
1535
|
|
|
904
|
-
truncated_by?:
|
|
1536
|
+
truncated_by?: User;
|
|
905
1537
|
}
|
|
906
1538
|
|
|
907
1539
|
export interface ChannelConfig {
|
|
@@ -939,6 +1571,8 @@ export interface ChannelConfig {
|
|
|
939
1571
|
|
|
940
1572
|
search: boolean;
|
|
941
1573
|
|
|
1574
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
1575
|
+
|
|
942
1576
|
typing_events: boolean;
|
|
943
1577
|
|
|
944
1578
|
updated_at: Date;
|
|
@@ -953,6 +1587,10 @@ export interface ChannelConfig {
|
|
|
953
1587
|
|
|
954
1588
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
955
1589
|
|
|
1590
|
+
partition_size?: number;
|
|
1591
|
+
|
|
1592
|
+
partition_ttl?: string;
|
|
1593
|
+
|
|
956
1594
|
allowed_flag_reasons?: string[];
|
|
957
1595
|
|
|
958
1596
|
blocklists?: BlockListOptions[];
|
|
@@ -995,6 +1633,8 @@ export interface ChannelConfigWithInfo {
|
|
|
995
1633
|
|
|
996
1634
|
search: boolean;
|
|
997
1635
|
|
|
1636
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
1637
|
+
|
|
998
1638
|
typing_events: boolean;
|
|
999
1639
|
|
|
1000
1640
|
updated_at: Date;
|
|
@@ -1011,7 +1651,7 @@ export interface ChannelConfigWithInfo {
|
|
|
1011
1651
|
|
|
1012
1652
|
partition_size?: number;
|
|
1013
1653
|
|
|
1014
|
-
partition_ttl?:
|
|
1654
|
+
partition_ttl?: string;
|
|
1015
1655
|
|
|
1016
1656
|
allowed_flag_reasons?: string[];
|
|
1017
1657
|
|
|
@@ -1022,6 +1662,30 @@ export interface ChannelConfigWithInfo {
|
|
|
1022
1662
|
grants?: Record<string, string[]>;
|
|
1023
1663
|
}
|
|
1024
1664
|
|
|
1665
|
+
export interface ChannelCreatedEvent {
|
|
1666
|
+
created_at: Date;
|
|
1667
|
+
|
|
1668
|
+
type: string;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
export interface ChannelDeletedEvent {
|
|
1672
|
+
channel_id: string;
|
|
1673
|
+
|
|
1674
|
+
channel_member_count: number;
|
|
1675
|
+
|
|
1676
|
+
channel_type: string;
|
|
1677
|
+
|
|
1678
|
+
cid: string;
|
|
1679
|
+
|
|
1680
|
+
created_at: Date;
|
|
1681
|
+
|
|
1682
|
+
type: string;
|
|
1683
|
+
|
|
1684
|
+
team?: string;
|
|
1685
|
+
|
|
1686
|
+
channel?: ChannelResponse;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1025
1689
|
export interface ChannelExport {
|
|
1026
1690
|
cid?: string;
|
|
1027
1691
|
|
|
@@ -1034,6 +1698,18 @@ export interface ChannelExport {
|
|
|
1034
1698
|
type?: string;
|
|
1035
1699
|
}
|
|
1036
1700
|
|
|
1701
|
+
export interface ChannelFrozenEvent {
|
|
1702
|
+
channel_id: string;
|
|
1703
|
+
|
|
1704
|
+
channel_type: string;
|
|
1705
|
+
|
|
1706
|
+
cid: string;
|
|
1707
|
+
|
|
1708
|
+
created_at: Date;
|
|
1709
|
+
|
|
1710
|
+
type: string;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1037
1713
|
export interface ChannelGetOrCreateRequest {
|
|
1038
1714
|
hide_for_creator?: boolean;
|
|
1039
1715
|
|
|
@@ -1050,6 +1726,26 @@ export interface ChannelGetOrCreateRequest {
|
|
|
1050
1726
|
watchers?: PaginationParams;
|
|
1051
1727
|
}
|
|
1052
1728
|
|
|
1729
|
+
export interface ChannelHiddenEvent {
|
|
1730
|
+
channel_id: string;
|
|
1731
|
+
|
|
1732
|
+
channel_member_count: number;
|
|
1733
|
+
|
|
1734
|
+
channel_type: string;
|
|
1735
|
+
|
|
1736
|
+
cid: string;
|
|
1737
|
+
|
|
1738
|
+
clear_history: boolean;
|
|
1739
|
+
|
|
1740
|
+
created_at: Date;
|
|
1741
|
+
|
|
1742
|
+
type: string;
|
|
1743
|
+
|
|
1744
|
+
channel?: ChannelResponse;
|
|
1745
|
+
|
|
1746
|
+
user?: User;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1053
1749
|
export interface ChannelInput {
|
|
1054
1750
|
auto_translation_enabled?: boolean;
|
|
1055
1751
|
|
|
@@ -1091,6 +1787,8 @@ export interface ChannelMember {
|
|
|
1091
1787
|
|
|
1092
1788
|
custom: Record<string, any>;
|
|
1093
1789
|
|
|
1790
|
+
archived_at?: Date;
|
|
1791
|
+
|
|
1094
1792
|
ban_expires?: Date;
|
|
1095
1793
|
|
|
1096
1794
|
deleted_at?: Date;
|
|
@@ -1103,11 +1801,15 @@ export interface ChannelMember {
|
|
|
1103
1801
|
|
|
1104
1802
|
is_moderator?: boolean;
|
|
1105
1803
|
|
|
1804
|
+
pinned_at?: Date;
|
|
1805
|
+
|
|
1806
|
+
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
1807
|
+
|
|
1106
1808
|
status?: string;
|
|
1107
1809
|
|
|
1108
1810
|
user_id?: string;
|
|
1109
1811
|
|
|
1110
|
-
user?:
|
|
1812
|
+
user?: UserResponse;
|
|
1111
1813
|
}
|
|
1112
1814
|
|
|
1113
1815
|
export interface ChannelMemberResponse {
|
|
@@ -1125,6 +1827,8 @@ export interface ChannelMemberResponse {
|
|
|
1125
1827
|
|
|
1126
1828
|
custom: Record<string, any>;
|
|
1127
1829
|
|
|
1830
|
+
archived_at?: Date;
|
|
1831
|
+
|
|
1128
1832
|
ban_expires?: Date;
|
|
1129
1833
|
|
|
1130
1834
|
deleted_at?: Date;
|
|
@@ -1137,6 +1841,8 @@ export interface ChannelMemberResponse {
|
|
|
1137
1841
|
|
|
1138
1842
|
is_moderator?: boolean;
|
|
1139
1843
|
|
|
1844
|
+
pinned_at?: Date;
|
|
1845
|
+
|
|
1140
1846
|
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
1141
1847
|
|
|
1142
1848
|
status?: string;
|
|
@@ -1146,6 +1852,12 @@ export interface ChannelMemberResponse {
|
|
|
1146
1852
|
user?: UserResponse;
|
|
1147
1853
|
}
|
|
1148
1854
|
|
|
1855
|
+
export interface ChannelMessages {
|
|
1856
|
+
messages: Message[];
|
|
1857
|
+
|
|
1858
|
+
channel?: ChannelResponse;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1149
1861
|
export interface ChannelMute {
|
|
1150
1862
|
created_at: Date;
|
|
1151
1863
|
|
|
@@ -1155,9 +1867,56 @@ export interface ChannelMute {
|
|
|
1155
1867
|
|
|
1156
1868
|
channel?: ChannelResponse;
|
|
1157
1869
|
|
|
1158
|
-
user?:
|
|
1870
|
+
user?: UserResponse;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
export interface ChannelMutedEvent {
|
|
1874
|
+
created_at: Date;
|
|
1875
|
+
|
|
1876
|
+
type: string;
|
|
1159
1877
|
}
|
|
1160
1878
|
|
|
1879
|
+
export const ChannelOwnCapability = {
|
|
1880
|
+
BAN_CHANNEL_MEMBERS: 'ban-channel-members',
|
|
1881
|
+
CAST_POLL_VOTE: 'cast-poll-vote',
|
|
1882
|
+
CONNECT_EVENTS: 'connect-events',
|
|
1883
|
+
CREATE_ATTACHMENT: 'create-attachment',
|
|
1884
|
+
DELETE_ANY_MESSAGE: 'delete-any-message',
|
|
1885
|
+
DELETE_CHANNEL: 'delete-channel',
|
|
1886
|
+
DELETE_OWN_MESSAGE: 'delete-own-message',
|
|
1887
|
+
FLAG_MESSAGE: 'flag-message',
|
|
1888
|
+
FREEZE_CHANNEL: 'freeze-channel',
|
|
1889
|
+
JOIN_CHANNEL: 'join-channel',
|
|
1890
|
+
LEAVE_CHANNEL: 'leave-channel',
|
|
1891
|
+
MUTE_CHANNEL: 'mute-channel',
|
|
1892
|
+
PIN_MESSAGE: 'pin-message',
|
|
1893
|
+
QUERY_POLL_VOTES: 'query-poll-votes',
|
|
1894
|
+
QUOTE_MESSAGE: 'quote-message',
|
|
1895
|
+
READ_EVENTS: 'read-events',
|
|
1896
|
+
SEARCH_MESSAGES: 'search-messages',
|
|
1897
|
+
SEND_CUSTOM_EVENTS: 'send-custom-events',
|
|
1898
|
+
SEND_LINKS: 'send-links',
|
|
1899
|
+
SEND_MESSAGE: 'send-message',
|
|
1900
|
+
SEND_POLL: 'send-poll',
|
|
1901
|
+
SEND_REACTION: 'send-reaction',
|
|
1902
|
+
SEND_REPLY: 'send-reply',
|
|
1903
|
+
SEND_TYPING_EVENTS: 'send-typing-events',
|
|
1904
|
+
SET_CHANNEL_COOLDOWN: 'set-channel-cooldown',
|
|
1905
|
+
SKIP_SLOW_MODE: 'skip-slow-mode',
|
|
1906
|
+
SLOW_MODE: 'slow-mode',
|
|
1907
|
+
TYPING_EVENTS: 'typing-events',
|
|
1908
|
+
UPDATE_ANY_MESSAGE: 'update-any-message',
|
|
1909
|
+
UPDATE_CHANNEL: 'update-channel',
|
|
1910
|
+
UPDATE_CHANNEL_MEMBERS: 'update-channel-members',
|
|
1911
|
+
UPDATE_OWN_MESSAGE: 'update-own-message',
|
|
1912
|
+
UPDATE_THREAD: 'update-thread',
|
|
1913
|
+
UPLOAD_FILE: 'upload-file',
|
|
1914
|
+
} as const;
|
|
1915
|
+
|
|
1916
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
1917
|
+
export type ChannelOwnCapability =
|
|
1918
|
+
(typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
|
|
1919
|
+
|
|
1161
1920
|
export interface ChannelResponse {
|
|
1162
1921
|
cid: string;
|
|
1163
1922
|
|
|
@@ -1203,13 +1962,13 @@ export interface ChannelResponse {
|
|
|
1203
1962
|
|
|
1204
1963
|
members?: ChannelMember[];
|
|
1205
1964
|
|
|
1206
|
-
own_capabilities?:
|
|
1965
|
+
own_capabilities?: ChannelOwnCapability[];
|
|
1207
1966
|
|
|
1208
1967
|
config?: ChannelConfigWithInfo;
|
|
1209
1968
|
|
|
1210
|
-
created_by?:
|
|
1969
|
+
created_by?: UserResponse;
|
|
1211
1970
|
|
|
1212
|
-
truncated_by?:
|
|
1971
|
+
truncated_by?: UserResponse;
|
|
1213
1972
|
}
|
|
1214
1973
|
|
|
1215
1974
|
export interface ChannelStateResponse {
|
|
@@ -1221,7 +1980,7 @@ export interface ChannelStateResponse {
|
|
|
1221
1980
|
|
|
1222
1981
|
pinned_messages: MessageResponse[];
|
|
1223
1982
|
|
|
1224
|
-
threads:
|
|
1983
|
+
threads: ThreadStateResponse[];
|
|
1225
1984
|
|
|
1226
1985
|
hidden?: boolean;
|
|
1227
1986
|
|
|
@@ -1247,7 +2006,7 @@ export interface ChannelStateResponseFields {
|
|
|
1247
2006
|
|
|
1248
2007
|
pinned_messages: MessageResponse[];
|
|
1249
2008
|
|
|
1250
|
-
threads:
|
|
2009
|
+
threads: ThreadStateResponse[];
|
|
1251
2010
|
|
|
1252
2011
|
hidden?: boolean;
|
|
1253
2012
|
|
|
@@ -1266,6 +2025,22 @@ export interface ChannelStateResponseFields {
|
|
|
1266
2025
|
membership?: ChannelMember;
|
|
1267
2026
|
}
|
|
1268
2027
|
|
|
2028
|
+
export interface ChannelTruncatedEvent {
|
|
2029
|
+
channel_id: string;
|
|
2030
|
+
|
|
2031
|
+
channel_member_count: number;
|
|
2032
|
+
|
|
2033
|
+
channel_type: string;
|
|
2034
|
+
|
|
2035
|
+
cid: string;
|
|
2036
|
+
|
|
2037
|
+
created_at: Date;
|
|
2038
|
+
|
|
2039
|
+
type: string;
|
|
2040
|
+
|
|
2041
|
+
channel?: ChannelResponse;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
1269
2044
|
export interface ChannelTypeConfig {
|
|
1270
2045
|
automod: 'disabled' | 'simple' | 'AI';
|
|
1271
2046
|
|
|
@@ -1301,6 +2076,8 @@ export interface ChannelTypeConfig {
|
|
|
1301
2076
|
|
|
1302
2077
|
search: boolean;
|
|
1303
2078
|
|
|
2079
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
2080
|
+
|
|
1304
2081
|
typing_events: boolean;
|
|
1305
2082
|
|
|
1306
2083
|
updated_at: Date;
|
|
@@ -1321,7 +2098,7 @@ export interface ChannelTypeConfig {
|
|
|
1321
2098
|
|
|
1322
2099
|
partition_size?: number;
|
|
1323
2100
|
|
|
1324
|
-
partition_ttl?:
|
|
2101
|
+
partition_ttl?: string;
|
|
1325
2102
|
|
|
1326
2103
|
allowed_flag_reasons?: string[];
|
|
1327
2104
|
|
|
@@ -1330,6 +2107,60 @@ export interface ChannelTypeConfig {
|
|
|
1330
2107
|
automod_thresholds?: Thresholds;
|
|
1331
2108
|
}
|
|
1332
2109
|
|
|
2110
|
+
export interface ChannelUnFrozenEvent {
|
|
2111
|
+
channel_id: string;
|
|
2112
|
+
|
|
2113
|
+
channel_type: string;
|
|
2114
|
+
|
|
2115
|
+
cid: string;
|
|
2116
|
+
|
|
2117
|
+
created_at: Date;
|
|
2118
|
+
|
|
2119
|
+
type: string;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
export interface ChannelUnmutedEvent {
|
|
2123
|
+
created_at: Date;
|
|
2124
|
+
|
|
2125
|
+
type: string;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
export interface ChannelUpdatedEvent {
|
|
2129
|
+
channel_id: string;
|
|
2130
|
+
|
|
2131
|
+
channel_member_count: number;
|
|
2132
|
+
|
|
2133
|
+
channel_type: string;
|
|
2134
|
+
|
|
2135
|
+
cid: string;
|
|
2136
|
+
|
|
2137
|
+
created_at: Date;
|
|
2138
|
+
|
|
2139
|
+
type: string;
|
|
2140
|
+
|
|
2141
|
+
team?: string;
|
|
2142
|
+
|
|
2143
|
+
channel?: ChannelResponse;
|
|
2144
|
+
|
|
2145
|
+
message?: Message;
|
|
2146
|
+
|
|
2147
|
+
user?: User;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
export interface ChannelVisibleEvent {
|
|
2151
|
+
channel_id: string;
|
|
2152
|
+
|
|
2153
|
+
channel_type: string;
|
|
2154
|
+
|
|
2155
|
+
cid: string;
|
|
2156
|
+
|
|
2157
|
+
created_at: Date;
|
|
2158
|
+
|
|
2159
|
+
type: string;
|
|
2160
|
+
|
|
2161
|
+
user?: User;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
1333
2164
|
export interface CheckExternalStorageResponse {
|
|
1334
2165
|
duration: string;
|
|
1335
2166
|
|
|
@@ -1381,6 +2212,8 @@ export interface CheckRequest {
|
|
|
1381
2212
|
|
|
1382
2213
|
entity_type: string;
|
|
1383
2214
|
|
|
2215
|
+
test_mode?: boolean;
|
|
2216
|
+
|
|
1384
2217
|
user_id?: string;
|
|
1385
2218
|
|
|
1386
2219
|
moderation_payload?: ModerationPayload;
|
|
@@ -1438,6 +2271,16 @@ export interface CheckSQSResponse {
|
|
|
1438
2271
|
data?: Record<string, any>;
|
|
1439
2272
|
}
|
|
1440
2273
|
|
|
2274
|
+
export interface ClosedCaptionEvent {
|
|
2275
|
+
call_cid: string;
|
|
2276
|
+
|
|
2277
|
+
created_at: Date;
|
|
2278
|
+
|
|
2279
|
+
closed_caption: CallClosedCaption;
|
|
2280
|
+
|
|
2281
|
+
type: string;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
1441
2284
|
export interface CollectUserFeedbackRequest {
|
|
1442
2285
|
rating: number;
|
|
1443
2286
|
|
|
@@ -1472,14 +2315,28 @@ export interface Command {
|
|
|
1472
2315
|
|
|
1473
2316
|
export interface CommitMessageRequest {}
|
|
1474
2317
|
|
|
1475
|
-
export interface
|
|
1476
|
-
|
|
2318
|
+
export interface ConfigOverrides {
|
|
2319
|
+
commands: string[];
|
|
2320
|
+
|
|
2321
|
+
grants: Record<string, string[]>;
|
|
2322
|
+
|
|
2323
|
+
blocklist?: string;
|
|
2324
|
+
|
|
2325
|
+
blocklist_behavior?: 'flag' | 'block';
|
|
1477
2326
|
|
|
1478
|
-
|
|
2327
|
+
max_message_length?: number;
|
|
1479
2328
|
|
|
1480
|
-
|
|
2329
|
+
quotes?: boolean;
|
|
2330
|
+
|
|
2331
|
+
reactions?: boolean;
|
|
2332
|
+
|
|
2333
|
+
replies?: boolean;
|
|
2334
|
+
|
|
2335
|
+
typing_events?: boolean;
|
|
2336
|
+
|
|
2337
|
+
uploads?: boolean;
|
|
1481
2338
|
|
|
1482
|
-
|
|
2339
|
+
url_enrichment?: boolean;
|
|
1483
2340
|
}
|
|
1484
2341
|
|
|
1485
2342
|
export interface ConfigResponse {
|
|
@@ -1489,22 +2346,24 @@ export interface ConfigResponse {
|
|
|
1489
2346
|
|
|
1490
2347
|
key: string;
|
|
1491
2348
|
|
|
2349
|
+
team: string;
|
|
2350
|
+
|
|
1492
2351
|
updated_at: Date;
|
|
1493
2352
|
|
|
2353
|
+
ai_image_config?: AIImageConfig;
|
|
2354
|
+
|
|
2355
|
+
ai_text_config?: AITextConfig;
|
|
2356
|
+
|
|
2357
|
+
ai_video_config?: AIVideoConfig;
|
|
2358
|
+
|
|
1494
2359
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
1495
2360
|
|
|
1496
2361
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
1497
2362
|
|
|
1498
2363
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
1499
2364
|
|
|
1500
|
-
aws_rek_og_nition_config?: AWSRekognitionConfig;
|
|
1501
|
-
|
|
1502
2365
|
block_list_config?: BlockListConfig;
|
|
1503
2366
|
|
|
1504
|
-
bodyguard_config?: BodyguardConfig;
|
|
1505
|
-
|
|
1506
|
-
go_og_le_vision_config?: GoogleVisionConfig;
|
|
1507
|
-
|
|
1508
2367
|
velocity_filter_config?: VelocityFilterConfig;
|
|
1509
2368
|
}
|
|
1510
2369
|
|
|
@@ -1515,7 +2374,7 @@ export interface Coordinates {
|
|
|
1515
2374
|
}
|
|
1516
2375
|
|
|
1517
2376
|
export interface Count {
|
|
1518
|
-
|
|
2377
|
+
approximate: boolean;
|
|
1519
2378
|
|
|
1520
2379
|
value: number;
|
|
1521
2380
|
}
|
|
@@ -1589,7 +2448,7 @@ export interface CreateChannelTypeRequest {
|
|
|
1589
2448
|
|
|
1590
2449
|
mark_messages_pending?: boolean;
|
|
1591
2450
|
|
|
1592
|
-
message_retention?:
|
|
2451
|
+
message_retention?: 'infinite' | 'numeric';
|
|
1593
2452
|
|
|
1594
2453
|
mutes?: boolean;
|
|
1595
2454
|
|
|
@@ -1609,6 +2468,8 @@ export interface CreateChannelTypeRequest {
|
|
|
1609
2468
|
|
|
1610
2469
|
search?: boolean;
|
|
1611
2470
|
|
|
2471
|
+
skip_last_msg_update_for_system_msgs?: boolean;
|
|
2472
|
+
|
|
1612
2473
|
typing_events?: boolean;
|
|
1613
2474
|
|
|
1614
2475
|
uploads?: boolean;
|
|
@@ -1661,6 +2522,8 @@ export interface CreateChannelTypeResponse {
|
|
|
1661
2522
|
|
|
1662
2523
|
search: boolean;
|
|
1663
2524
|
|
|
2525
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
2526
|
+
|
|
1664
2527
|
typing_events: boolean;
|
|
1665
2528
|
|
|
1666
2529
|
updated_at: Date;
|
|
@@ -1681,7 +2544,7 @@ export interface CreateChannelTypeResponse {
|
|
|
1681
2544
|
|
|
1682
2545
|
partition_size?: number;
|
|
1683
2546
|
|
|
1684
|
-
partition_ttl?:
|
|
2547
|
+
partition_ttl?: string;
|
|
1685
2548
|
|
|
1686
2549
|
allowed_flag_reasons?: string[];
|
|
1687
2550
|
|
|
@@ -1832,18 +2695,24 @@ export interface CustomActionRequest {
|
|
|
1832
2695
|
options?: Record<string, any>;
|
|
1833
2696
|
}
|
|
1834
2697
|
|
|
1835
|
-
export interface
|
|
1836
|
-
|
|
2698
|
+
export interface CustomCheckFlag {
|
|
2699
|
+
type: string;
|
|
2700
|
+
|
|
2701
|
+
reason?: string;
|
|
2702
|
+
|
|
2703
|
+
labels?: string[];
|
|
2704
|
+
|
|
2705
|
+
custom?: Record<string, any>;
|
|
2706
|
+
}
|
|
1837
2707
|
|
|
2708
|
+
export interface CustomCheckRequest {
|
|
1838
2709
|
entity_id: string;
|
|
1839
2710
|
|
|
1840
2711
|
entity_type: string;
|
|
1841
2712
|
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
reason?: string;
|
|
2713
|
+
flags: CustomCheckFlag[];
|
|
1845
2714
|
|
|
1846
|
-
|
|
2715
|
+
entity_creator_id?: string;
|
|
1847
2716
|
|
|
1848
2717
|
user_id?: string;
|
|
1849
2718
|
|
|
@@ -1857,17 +2726,57 @@ export interface CustomCheckResponse {
|
|
|
1857
2726
|
|
|
1858
2727
|
id: string;
|
|
1859
2728
|
|
|
1860
|
-
|
|
2729
|
+
status: string;
|
|
1861
2730
|
|
|
1862
|
-
|
|
2731
|
+
item?: ReviewQueueItemResponse;
|
|
2732
|
+
}
|
|
1863
2733
|
|
|
1864
|
-
|
|
2734
|
+
export interface CustomVideoEvent {
|
|
2735
|
+
call_cid: string;
|
|
1865
2736
|
|
|
1866
|
-
|
|
2737
|
+
created_at: Date;
|
|
1867
2738
|
|
|
1868
|
-
|
|
2739
|
+
custom: Record<string, any>;
|
|
1869
2740
|
|
|
1870
|
-
|
|
2741
|
+
user: UserResponse;
|
|
2742
|
+
|
|
2743
|
+
type: string;
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
export interface DailyAggregateCallDurationReportResponse {
|
|
2747
|
+
date: string;
|
|
2748
|
+
|
|
2749
|
+
report: CallDurationReport;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
export interface DailyAggregateCallParticipantCountReportResponse {
|
|
2753
|
+
date: string;
|
|
2754
|
+
|
|
2755
|
+
report: CallParticipantCountReport;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
export interface DailyAggregateCallsPerDayReportResponse {
|
|
2759
|
+
date: string;
|
|
2760
|
+
|
|
2761
|
+
report: CallsPerDayReport;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
export interface DailyAggregateQualityScoreReportResponse {
|
|
2765
|
+
date: string;
|
|
2766
|
+
|
|
2767
|
+
report: QualityScoreReport;
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
export interface DailyAggregateSDKUsageReportResponse {
|
|
2771
|
+
date: string;
|
|
2772
|
+
|
|
2773
|
+
report: SDKUsageReport;
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
export interface DailyAggregateUserFeedbackReportResponse {
|
|
2777
|
+
date: string;
|
|
2778
|
+
|
|
2779
|
+
report: UserFeedbackReport;
|
|
1871
2780
|
}
|
|
1872
2781
|
|
|
1873
2782
|
export interface Data {
|
|
@@ -1972,6 +2881,10 @@ export interface DeleteMessageResponse {
|
|
|
1972
2881
|
message: MessageResponse;
|
|
1973
2882
|
}
|
|
1974
2883
|
|
|
2884
|
+
export interface DeleteModerationConfigResponse {
|
|
2885
|
+
duration: string;
|
|
2886
|
+
}
|
|
2887
|
+
|
|
1975
2888
|
export interface DeleteModerationTemplateResponse {
|
|
1976
2889
|
duration: string;
|
|
1977
2890
|
}
|
|
@@ -1984,6 +2897,10 @@ export interface DeleteRecordingResponse {
|
|
|
1984
2897
|
duration: string;
|
|
1985
2898
|
}
|
|
1986
2899
|
|
|
2900
|
+
export interface DeleteSegmentTargetsRequest {
|
|
2901
|
+
target_ids: string[];
|
|
2902
|
+
}
|
|
2903
|
+
|
|
1987
2904
|
export interface DeleteTranscriptionResponse {
|
|
1988
2905
|
duration: string;
|
|
1989
2906
|
}
|
|
@@ -1991,6 +2908,8 @@ export interface DeleteTranscriptionResponse {
|
|
|
1991
2908
|
export interface DeleteUserRequest {
|
|
1992
2909
|
delete_conversation_channels?: boolean;
|
|
1993
2910
|
|
|
2911
|
+
delete_feeds_content?: boolean;
|
|
2912
|
+
|
|
1994
2913
|
hard_delete?: boolean;
|
|
1995
2914
|
|
|
1996
2915
|
mark_messages_deleted?: boolean;
|
|
@@ -2023,7 +2942,7 @@ export interface Device {
|
|
|
2023
2942
|
|
|
2024
2943
|
id: string;
|
|
2025
2944
|
|
|
2026
|
-
push_provider:
|
|
2945
|
+
push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
|
|
2027
2946
|
|
|
2028
2947
|
user_id: string;
|
|
2029
2948
|
|
|
@@ -2044,6 +2963,24 @@ export interface DeviceErrorInfo {
|
|
|
2044
2963
|
provider_name: string;
|
|
2045
2964
|
}
|
|
2046
2965
|
|
|
2966
|
+
export interface DeviceResponse {
|
|
2967
|
+
created_at: Date;
|
|
2968
|
+
|
|
2969
|
+
id: string;
|
|
2970
|
+
|
|
2971
|
+
push_provider: string;
|
|
2972
|
+
|
|
2973
|
+
user_id: string;
|
|
2974
|
+
|
|
2975
|
+
disabled?: boolean;
|
|
2976
|
+
|
|
2977
|
+
disabled_reason?: string;
|
|
2978
|
+
|
|
2979
|
+
push_provider_name?: string;
|
|
2980
|
+
|
|
2981
|
+
voip?: boolean;
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2047
2984
|
export interface EdgeResponse {
|
|
2048
2985
|
continent_code: string;
|
|
2049
2986
|
|
|
@@ -2083,7 +3020,7 @@ export interface EgressRTMPResponse {
|
|
|
2083
3020
|
export interface EgressResponse {
|
|
2084
3021
|
broadcasting: boolean;
|
|
2085
3022
|
|
|
2086
|
-
|
|
3023
|
+
rtmps: EgressRTMPResponse[];
|
|
2087
3024
|
|
|
2088
3025
|
hls?: EgressHLSResponse;
|
|
2089
3026
|
}
|
|
@@ -2107,13 +3044,13 @@ export interface EnrichedActivity {
|
|
|
2107
3044
|
|
|
2108
3045
|
actor?: Data;
|
|
2109
3046
|
|
|
2110
|
-
latest_reactions?: Record<string,
|
|
3047
|
+
latest_reactions?: Record<string, EnrichedReaction[]>;
|
|
2111
3048
|
|
|
2112
3049
|
object?: Data;
|
|
2113
3050
|
|
|
2114
3051
|
origin?: Data;
|
|
2115
3052
|
|
|
2116
|
-
own_reactions?: Record<string,
|
|
3053
|
+
own_reactions?: Record<string, EnrichedReaction[]>;
|
|
2117
3054
|
|
|
2118
3055
|
reaction_counts?: Record<string, number>;
|
|
2119
3056
|
|
|
@@ -2139,15 +3076,107 @@ export interface EnrichedReaction {
|
|
|
2139
3076
|
|
|
2140
3077
|
data?: Record<string, any>;
|
|
2141
3078
|
|
|
2142
|
-
latest_children?: Record<string,
|
|
3079
|
+
latest_children?: Record<string, EnrichedReaction[]>;
|
|
2143
3080
|
|
|
2144
|
-
own_children?: Record<string,
|
|
3081
|
+
own_children?: Record<string, EnrichedReaction[]>;
|
|
2145
3082
|
|
|
2146
3083
|
updated_at?: Time;
|
|
2147
3084
|
|
|
2148
3085
|
user?: Data;
|
|
2149
3086
|
}
|
|
2150
3087
|
|
|
3088
|
+
export interface EntityCreator {
|
|
3089
|
+
ban_count: number;
|
|
3090
|
+
|
|
3091
|
+
banned: boolean;
|
|
3092
|
+
|
|
3093
|
+
deleted_content_count: number;
|
|
3094
|
+
|
|
3095
|
+
id: string;
|
|
3096
|
+
|
|
3097
|
+
online: boolean;
|
|
3098
|
+
|
|
3099
|
+
role: string;
|
|
3100
|
+
|
|
3101
|
+
custom: Record<string, any>;
|
|
3102
|
+
|
|
3103
|
+
ban_expires?: Date;
|
|
3104
|
+
|
|
3105
|
+
created_at?: Date;
|
|
3106
|
+
|
|
3107
|
+
deactivated_at?: Date;
|
|
3108
|
+
|
|
3109
|
+
deleted_at?: Date;
|
|
3110
|
+
|
|
3111
|
+
invisible?: boolean;
|
|
3112
|
+
|
|
3113
|
+
language?: string;
|
|
3114
|
+
|
|
3115
|
+
last_active?: Date;
|
|
3116
|
+
|
|
3117
|
+
last_engaged_at?: Date;
|
|
3118
|
+
|
|
3119
|
+
revoke_tokens_issued_before?: Date;
|
|
3120
|
+
|
|
3121
|
+
updated_at?: Date;
|
|
3122
|
+
|
|
3123
|
+
teams?: string[];
|
|
3124
|
+
|
|
3125
|
+
privacy_settings?: PrivacySettings;
|
|
3126
|
+
|
|
3127
|
+
push_notifications?: PushNotificationSettings;
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
export interface EntityCreatorResponse {
|
|
3131
|
+
ban_count: number;
|
|
3132
|
+
|
|
3133
|
+
banned: boolean;
|
|
3134
|
+
|
|
3135
|
+
created_at: Date;
|
|
3136
|
+
|
|
3137
|
+
deleted_content_count: number;
|
|
3138
|
+
|
|
3139
|
+
id: string;
|
|
3140
|
+
|
|
3141
|
+
invisible: boolean;
|
|
3142
|
+
|
|
3143
|
+
language: string;
|
|
3144
|
+
|
|
3145
|
+
online: boolean;
|
|
3146
|
+
|
|
3147
|
+
role: string;
|
|
3148
|
+
|
|
3149
|
+
shadow_banned: boolean;
|
|
3150
|
+
|
|
3151
|
+
updated_at: Date;
|
|
3152
|
+
|
|
3153
|
+
blocked_user_ids: string[];
|
|
3154
|
+
|
|
3155
|
+
devices: DeviceResponse[];
|
|
3156
|
+
|
|
3157
|
+
teams: string[];
|
|
3158
|
+
|
|
3159
|
+
custom: Record<string, any>;
|
|
3160
|
+
|
|
3161
|
+
ban_expires?: Date;
|
|
3162
|
+
|
|
3163
|
+
deactivated_at?: Date;
|
|
3164
|
+
|
|
3165
|
+
deleted_at?: Date;
|
|
3166
|
+
|
|
3167
|
+
image?: string;
|
|
3168
|
+
|
|
3169
|
+
last_active?: Date;
|
|
3170
|
+
|
|
3171
|
+
name?: string;
|
|
3172
|
+
|
|
3173
|
+
revoke_tokens_issued_before?: Date;
|
|
3174
|
+
|
|
3175
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
3176
|
+
|
|
3177
|
+
push_notifications?: PushNotificationSettingsResponse;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
2151
3180
|
export interface ErrorResult {
|
|
2152
3181
|
type: string;
|
|
2153
3182
|
|
|
@@ -2211,9 +3240,9 @@ export interface ExportChannelsResult {
|
|
|
2211
3240
|
export interface ExportUserResponse {
|
|
2212
3241
|
duration: string;
|
|
2213
3242
|
|
|
2214
|
-
messages?:
|
|
3243
|
+
messages?: MessageResponse[];
|
|
2215
3244
|
|
|
2216
|
-
reactions?:
|
|
3245
|
+
reactions?: ReactionResponse[];
|
|
2217
3246
|
|
|
2218
3247
|
user?: UserResponse;
|
|
2219
3248
|
}
|
|
@@ -2306,6 +3335,36 @@ export interface FirebaseConfigFields {
|
|
|
2306
3335
|
server_key?: string;
|
|
2307
3336
|
}
|
|
2308
3337
|
|
|
3338
|
+
export interface Flag {
|
|
3339
|
+
created_at: Date;
|
|
3340
|
+
|
|
3341
|
+
created_by_automod: boolean;
|
|
3342
|
+
|
|
3343
|
+
updated_at: Date;
|
|
3344
|
+
|
|
3345
|
+
approved_at?: Date;
|
|
3346
|
+
|
|
3347
|
+
reason?: string;
|
|
3348
|
+
|
|
3349
|
+
rejected_at?: Date;
|
|
3350
|
+
|
|
3351
|
+
reviewed_at?: Date;
|
|
3352
|
+
|
|
3353
|
+
reviewed_by?: string;
|
|
3354
|
+
|
|
3355
|
+
target_message_id?: string;
|
|
3356
|
+
|
|
3357
|
+
custom?: Record<string, any>;
|
|
3358
|
+
|
|
3359
|
+
details?: FlagDetails;
|
|
3360
|
+
|
|
3361
|
+
target_message?: Message;
|
|
3362
|
+
|
|
3363
|
+
target_user?: User;
|
|
3364
|
+
|
|
3365
|
+
user?: User;
|
|
3366
|
+
}
|
|
3367
|
+
|
|
2309
3368
|
export interface Flag2 {
|
|
2310
3369
|
created_at: Date;
|
|
2311
3370
|
|
|
@@ -2333,7 +3392,37 @@ export interface Flag2 {
|
|
|
2333
3392
|
|
|
2334
3393
|
moderation_payload?: ModerationPayload;
|
|
2335
3394
|
|
|
2336
|
-
user?:
|
|
3395
|
+
user?: User;
|
|
3396
|
+
}
|
|
3397
|
+
|
|
3398
|
+
export interface Flag2Response {
|
|
3399
|
+
created_at: Date;
|
|
3400
|
+
|
|
3401
|
+
entity_id: string;
|
|
3402
|
+
|
|
3403
|
+
entity_type: string;
|
|
3404
|
+
|
|
3405
|
+
updated_at: Date;
|
|
3406
|
+
|
|
3407
|
+
user_id: string;
|
|
3408
|
+
|
|
3409
|
+
result: Array<Record<string, any>>;
|
|
3410
|
+
|
|
3411
|
+
entity_creator_id?: string;
|
|
3412
|
+
|
|
3413
|
+
reason?: string;
|
|
3414
|
+
|
|
3415
|
+
review_queue_item_id?: string;
|
|
3416
|
+
|
|
3417
|
+
type?: string;
|
|
3418
|
+
|
|
3419
|
+
labels?: string[];
|
|
3420
|
+
|
|
3421
|
+
custom?: Record<string, any>;
|
|
3422
|
+
|
|
3423
|
+
moderation_payload?: ModerationPayload;
|
|
3424
|
+
|
|
3425
|
+
user?: UserResponse;
|
|
2337
3426
|
}
|
|
2338
3427
|
|
|
2339
3428
|
export interface FlagDetails {
|
|
@@ -2367,10 +3456,10 @@ export interface FlagRequest {
|
|
|
2367
3456
|
|
|
2368
3457
|
entity_type: string;
|
|
2369
3458
|
|
|
2370
|
-
reason: string;
|
|
2371
|
-
|
|
2372
3459
|
entity_creator_id?: string;
|
|
2373
3460
|
|
|
3461
|
+
reason?: string;
|
|
3462
|
+
|
|
2374
3463
|
user_id?: string;
|
|
2375
3464
|
|
|
2376
3465
|
custom?: Record<string, any>;
|
|
@@ -2386,6 +3475,20 @@ export interface FlagResponse {
|
|
|
2386
3475
|
item_id: string;
|
|
2387
3476
|
}
|
|
2388
3477
|
|
|
3478
|
+
export interface FlagUpdatedEvent {
|
|
3479
|
+
created_at: Date;
|
|
3480
|
+
|
|
3481
|
+
type: string;
|
|
3482
|
+
|
|
3483
|
+
received_at?: Date;
|
|
3484
|
+
|
|
3485
|
+
created_by?: UserResponse;
|
|
3486
|
+
|
|
3487
|
+
message?: MessageResponse;
|
|
3488
|
+
|
|
3489
|
+
user?: UserResponse;
|
|
3490
|
+
}
|
|
3491
|
+
|
|
2389
3492
|
export interface FullUserResponse {
|
|
2390
3493
|
banned: boolean;
|
|
2391
3494
|
|
|
@@ -2417,7 +3520,7 @@ export interface FullUserResponse {
|
|
|
2417
3520
|
|
|
2418
3521
|
channel_mutes: ChannelMute[];
|
|
2419
3522
|
|
|
2420
|
-
devices:
|
|
3523
|
+
devices: DeviceResponse[];
|
|
2421
3524
|
|
|
2422
3525
|
mutes: UserMuteResponse[];
|
|
2423
3526
|
|
|
@@ -2539,6 +3642,8 @@ export interface GetCallStatsResponse {
|
|
|
2539
3642
|
|
|
2540
3643
|
sfus: SFULocationResponse[];
|
|
2541
3644
|
|
|
3645
|
+
average_connection_time?: number;
|
|
3646
|
+
|
|
2542
3647
|
aggregated?: AggregatedStats;
|
|
2543
3648
|
|
|
2544
3649
|
call_timeline?: CallTimeline;
|
|
@@ -2566,6 +3671,12 @@ export interface GetCallTypeResponse {
|
|
|
2566
3671
|
external_storage?: string;
|
|
2567
3672
|
}
|
|
2568
3673
|
|
|
3674
|
+
export interface GetCampaignResponse {
|
|
3675
|
+
duration: string;
|
|
3676
|
+
|
|
3677
|
+
campaign?: CampaignResponse;
|
|
3678
|
+
}
|
|
3679
|
+
|
|
2569
3680
|
export interface GetChannelTypeResponse {
|
|
2570
3681
|
automod: 'disabled' | 'simple' | 'AI';
|
|
2571
3682
|
|
|
@@ -2603,6 +3714,8 @@ export interface GetChannelTypeResponse {
|
|
|
2603
3714
|
|
|
2604
3715
|
search: boolean;
|
|
2605
3716
|
|
|
3717
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
3718
|
+
|
|
2606
3719
|
typing_events: boolean;
|
|
2607
3720
|
|
|
2608
3721
|
updated_at: Date;
|
|
@@ -2623,7 +3736,7 @@ export interface GetChannelTypeResponse {
|
|
|
2623
3736
|
|
|
2624
3737
|
partition_size?: number;
|
|
2625
3738
|
|
|
2626
|
-
partition_ttl?:
|
|
3739
|
+
partition_ttl?: string;
|
|
2627
3740
|
|
|
2628
3741
|
allowed_flag_reasons?: string[];
|
|
2629
3742
|
|
|
@@ -2697,7 +3810,7 @@ export interface GetImportResponse {
|
|
|
2697
3810
|
export interface GetManyMessagesResponse {
|
|
2698
3811
|
duration: string;
|
|
2699
3812
|
|
|
2700
|
-
messages:
|
|
3813
|
+
messages: MessageResponse[];
|
|
2701
3814
|
}
|
|
2702
3815
|
|
|
2703
3816
|
export interface GetMessageResponse {
|
|
@@ -2731,6 +3844,10 @@ export interface GetOGResponse {
|
|
|
2731
3844
|
|
|
2732
3845
|
image_url?: string;
|
|
2733
3846
|
|
|
3847
|
+
latitude?: number;
|
|
3848
|
+
|
|
3849
|
+
longitude?: number;
|
|
3850
|
+
|
|
2734
3851
|
og_scrape_url?: string;
|
|
2735
3852
|
|
|
2736
3853
|
original_height?: number;
|
|
@@ -2739,6 +3856,8 @@ export interface GetOGResponse {
|
|
|
2739
3856
|
|
|
2740
3857
|
pretext?: string;
|
|
2741
3858
|
|
|
3859
|
+
stopped_sharing?: boolean;
|
|
3860
|
+
|
|
2742
3861
|
text?: string;
|
|
2743
3862
|
|
|
2744
3863
|
thumb_url?: string;
|
|
@@ -2807,9 +3926,15 @@ export interface GetRepliesResponse {
|
|
|
2807
3926
|
export interface GetReviewQueueItemResponse {
|
|
2808
3927
|
duration: string;
|
|
2809
3928
|
|
|
2810
|
-
history:
|
|
3929
|
+
history: ReviewQueueItemResponse[];
|
|
2811
3930
|
|
|
2812
|
-
item?:
|
|
3931
|
+
item?: ReviewQueueItemResponse;
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
export interface GetSegmentResponse {
|
|
3935
|
+
duration: string;
|
|
3936
|
+
|
|
3937
|
+
segment?: SegmentResponse;
|
|
2813
3938
|
}
|
|
2814
3939
|
|
|
2815
3940
|
export interface GetTaskResponse {
|
|
@@ -2847,6 +3972,8 @@ export interface GetUserModerationReportResponse {
|
|
|
2847
3972
|
export interface GoLiveRequest {
|
|
2848
3973
|
recording_storage_name?: string;
|
|
2849
3974
|
|
|
3975
|
+
start_closed_caption?: boolean;
|
|
3976
|
+
|
|
2850
3977
|
start_hls?: boolean;
|
|
2851
3978
|
|
|
2852
3979
|
start_recording?: boolean;
|
|
@@ -3029,12 +4156,16 @@ export interface LayoutSettings {
|
|
|
3029
4156
|
|
|
3030
4157
|
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
3031
4158
|
|
|
4159
|
+
detect_orientation?: boolean;
|
|
4160
|
+
|
|
3032
4161
|
options?: Record<string, any>;
|
|
3033
4162
|
}
|
|
3034
4163
|
|
|
3035
4164
|
export interface LayoutSettingsRequest {
|
|
3036
4165
|
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
3037
4166
|
|
|
4167
|
+
detect_orientation?: boolean;
|
|
4168
|
+
|
|
3038
4169
|
external_app_url?: string;
|
|
3039
4170
|
|
|
3040
4171
|
external_css_url?: string;
|
|
@@ -3049,6 +4180,8 @@ export interface LayoutSettingsResponse {
|
|
|
3049
4180
|
|
|
3050
4181
|
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
3051
4182
|
|
|
4183
|
+
detect_orientation?: boolean;
|
|
4184
|
+
|
|
3052
4185
|
options?: Record<string, any>;
|
|
3053
4186
|
}
|
|
3054
4187
|
|
|
@@ -3105,7 +4238,7 @@ export interface ListCommandsResponse {
|
|
|
3105
4238
|
export interface ListDevicesResponse {
|
|
3106
4239
|
duration: string;
|
|
3107
4240
|
|
|
3108
|
-
devices:
|
|
4241
|
+
devices: DeviceResponse[];
|
|
3109
4242
|
}
|
|
3110
4243
|
|
|
3111
4244
|
export interface ListExternalStorageResponse {
|
|
@@ -3158,16 +4291,6 @@ export interface Location {
|
|
|
3158
4291
|
subdivision_iso_code: string;
|
|
3159
4292
|
}
|
|
3160
4293
|
|
|
3161
|
-
export interface MOSStats {
|
|
3162
|
-
average_score: number;
|
|
3163
|
-
|
|
3164
|
-
max_score: number;
|
|
3165
|
-
|
|
3166
|
-
min_score: number;
|
|
3167
|
-
|
|
3168
|
-
hist_og_ram_duration_seconds: number[];
|
|
3169
|
-
}
|
|
3170
|
-
|
|
3171
4294
|
export interface MarkChannelsReadRequest {
|
|
3172
4295
|
user_id?: string;
|
|
3173
4296
|
|
|
@@ -3192,6 +4315,12 @@ export interface MarkReadResponse {
|
|
|
3192
4315
|
event?: MessageReadEvent;
|
|
3193
4316
|
}
|
|
3194
4317
|
|
|
4318
|
+
export interface MarkReviewedRequest {
|
|
4319
|
+
content_to_mark_as_reviewed_limit?: number;
|
|
4320
|
+
|
|
4321
|
+
disable_marking_content_as_reviewed?: boolean;
|
|
4322
|
+
}
|
|
4323
|
+
|
|
3195
4324
|
export interface MarkUnreadRequest {
|
|
3196
4325
|
message_id?: string;
|
|
3197
4326
|
|
|
@@ -3212,6 +4341,40 @@ export interface MediaPubSubHint {
|
|
|
3212
4341
|
video_subscribed: boolean;
|
|
3213
4342
|
}
|
|
3214
4343
|
|
|
4344
|
+
export interface MemberAddedEvent {
|
|
4345
|
+
channel_id: string;
|
|
4346
|
+
|
|
4347
|
+
channel_type: string;
|
|
4348
|
+
|
|
4349
|
+
cid: string;
|
|
4350
|
+
|
|
4351
|
+
created_at: Date;
|
|
4352
|
+
|
|
4353
|
+
type: string;
|
|
4354
|
+
|
|
4355
|
+
team?: string;
|
|
4356
|
+
|
|
4357
|
+
member?: ChannelMember;
|
|
4358
|
+
|
|
4359
|
+
user?: User;
|
|
4360
|
+
}
|
|
4361
|
+
|
|
4362
|
+
export interface MemberRemovedEvent {
|
|
4363
|
+
channel_id: string;
|
|
4364
|
+
|
|
4365
|
+
channel_type: string;
|
|
4366
|
+
|
|
4367
|
+
cid: string;
|
|
4368
|
+
|
|
4369
|
+
created_at: Date;
|
|
4370
|
+
|
|
4371
|
+
type: string;
|
|
4372
|
+
|
|
4373
|
+
member?: ChannelMember;
|
|
4374
|
+
|
|
4375
|
+
user?: User;
|
|
4376
|
+
}
|
|
4377
|
+
|
|
3215
4378
|
export interface MemberRequest {
|
|
3216
4379
|
user_id: string;
|
|
3217
4380
|
|
|
@@ -3231,9 +4394,27 @@ export interface MemberResponse {
|
|
|
3231
4394
|
|
|
3232
4395
|
user: UserResponse;
|
|
3233
4396
|
|
|
3234
|
-
deleted_at?: Date;
|
|
4397
|
+
deleted_at?: Date;
|
|
4398
|
+
|
|
4399
|
+
role?: string;
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
export interface MemberUpdatedEvent {
|
|
4403
|
+
channel_id: string;
|
|
4404
|
+
|
|
4405
|
+
channel_type: string;
|
|
4406
|
+
|
|
4407
|
+
cid: string;
|
|
4408
|
+
|
|
4409
|
+
created_at: Date;
|
|
4410
|
+
|
|
4411
|
+
type: string;
|
|
4412
|
+
|
|
4413
|
+
team?: string;
|
|
4414
|
+
|
|
4415
|
+
member?: ChannelMember;
|
|
3235
4416
|
|
|
3236
|
-
|
|
4417
|
+
user?: User;
|
|
3237
4418
|
}
|
|
3238
4419
|
|
|
3239
4420
|
export interface MembersResponse {
|
|
@@ -3263,7 +4444,7 @@ export interface Message {
|
|
|
3263
4444
|
|
|
3264
4445
|
text: string;
|
|
3265
4446
|
|
|
3266
|
-
type:
|
|
4447
|
+
type: string;
|
|
3267
4448
|
|
|
3268
4449
|
updated_at: Date;
|
|
3269
4450
|
|
|
@@ -3271,7 +4452,7 @@ export interface Message {
|
|
|
3271
4452
|
|
|
3272
4453
|
latest_reactions: Reaction[];
|
|
3273
4454
|
|
|
3274
|
-
mentioned_users:
|
|
4455
|
+
mentioned_users: User[];
|
|
3275
4456
|
|
|
3276
4457
|
own_reactions: Reaction[];
|
|
3277
4458
|
|
|
@@ -3305,19 +4486,21 @@ export interface Message {
|
|
|
3305
4486
|
|
|
3306
4487
|
show_in_channel?: boolean;
|
|
3307
4488
|
|
|
3308
|
-
thread_participants?:
|
|
4489
|
+
thread_participants?: User[];
|
|
3309
4490
|
|
|
3310
4491
|
i18n?: Record<string, string>;
|
|
3311
4492
|
|
|
3312
4493
|
image_labels?: Record<string, string[]>;
|
|
3313
4494
|
|
|
3314
|
-
|
|
4495
|
+
moderation?: ModerationV2Response;
|
|
4496
|
+
|
|
4497
|
+
pinned_by?: User;
|
|
3315
4498
|
|
|
3316
4499
|
poll?: Poll;
|
|
3317
4500
|
|
|
3318
4501
|
quoted_message?: Message;
|
|
3319
4502
|
|
|
3320
|
-
user?:
|
|
4503
|
+
user?: User;
|
|
3321
4504
|
}
|
|
3322
4505
|
|
|
3323
4506
|
export interface MessageActionRequest {
|
|
@@ -3348,6 +4531,28 @@ export interface MessageChangeSet {
|
|
|
3348
4531
|
text: boolean;
|
|
3349
4532
|
}
|
|
3350
4533
|
|
|
4534
|
+
export interface MessageDeletedEvent {
|
|
4535
|
+
channel_id: string;
|
|
4536
|
+
|
|
4537
|
+
channel_type: string;
|
|
4538
|
+
|
|
4539
|
+
cid: string;
|
|
4540
|
+
|
|
4541
|
+
created_at: Date;
|
|
4542
|
+
|
|
4543
|
+
hard_delete: boolean;
|
|
4544
|
+
|
|
4545
|
+
type: string;
|
|
4546
|
+
|
|
4547
|
+
team?: string;
|
|
4548
|
+
|
|
4549
|
+
thread_participants?: User[];
|
|
4550
|
+
|
|
4551
|
+
message?: Message;
|
|
4552
|
+
|
|
4553
|
+
user?: User;
|
|
4554
|
+
}
|
|
4555
|
+
|
|
3351
4556
|
export interface MessageFlagResponse {
|
|
3352
4557
|
created_at: Date;
|
|
3353
4558
|
|
|
@@ -3378,6 +4583,22 @@ export interface MessageFlagResponse {
|
|
|
3378
4583
|
user?: UserResponse;
|
|
3379
4584
|
}
|
|
3380
4585
|
|
|
4586
|
+
export interface MessageFlaggedEvent {
|
|
4587
|
+
cid: string;
|
|
4588
|
+
|
|
4589
|
+
created_at: Date;
|
|
4590
|
+
|
|
4591
|
+
type: string;
|
|
4592
|
+
|
|
4593
|
+
thread_participants?: User[];
|
|
4594
|
+
|
|
4595
|
+
flag?: Flag;
|
|
4596
|
+
|
|
4597
|
+
message?: Message;
|
|
4598
|
+
|
|
4599
|
+
user?: User;
|
|
4600
|
+
}
|
|
4601
|
+
|
|
3381
4602
|
export interface MessageHistoryEntryResponse {
|
|
3382
4603
|
is_deleted: boolean;
|
|
3383
4604
|
|
|
@@ -3418,6 +4639,28 @@ export interface MessageModerationResult {
|
|
|
3418
4639
|
moderation_thresholds?: Thresholds;
|
|
3419
4640
|
}
|
|
3420
4641
|
|
|
4642
|
+
export interface MessageNewEvent {
|
|
4643
|
+
channel_id: string;
|
|
4644
|
+
|
|
4645
|
+
channel_type: string;
|
|
4646
|
+
|
|
4647
|
+
cid: string;
|
|
4648
|
+
|
|
4649
|
+
created_at: Date;
|
|
4650
|
+
|
|
4651
|
+
watcher_count: number;
|
|
4652
|
+
|
|
4653
|
+
type: string;
|
|
4654
|
+
|
|
4655
|
+
team?: string;
|
|
4656
|
+
|
|
4657
|
+
thread_participants?: User[];
|
|
4658
|
+
|
|
4659
|
+
message?: Message;
|
|
4660
|
+
|
|
4661
|
+
user?: User;
|
|
4662
|
+
}
|
|
4663
|
+
|
|
3421
4664
|
export interface MessagePaginationParams {}
|
|
3422
4665
|
|
|
3423
4666
|
export interface MessageReadEvent {
|
|
@@ -3437,7 +4680,7 @@ export interface MessageReadEvent {
|
|
|
3437
4680
|
|
|
3438
4681
|
thread?: ThreadResponse;
|
|
3439
4682
|
|
|
3440
|
-
user?:
|
|
4683
|
+
user?: UserResponse;
|
|
3441
4684
|
}
|
|
3442
4685
|
|
|
3443
4686
|
export interface MessageRequest {
|
|
@@ -3499,7 +4742,7 @@ export interface MessageResponse {
|
|
|
3499
4742
|
|
|
3500
4743
|
text: string;
|
|
3501
4744
|
|
|
3502
|
-
type:
|
|
4745
|
+
type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
|
|
3503
4746
|
|
|
3504
4747
|
updated_at: Date;
|
|
3505
4748
|
|
|
@@ -3545,21 +4788,77 @@ export interface MessageResponse {
|
|
|
3545
4788
|
|
|
3546
4789
|
image_labels?: Record<string, string[]>;
|
|
3547
4790
|
|
|
4791
|
+
moderation?: ModerationV2Response;
|
|
4792
|
+
|
|
3548
4793
|
pinned_by?: UserResponse;
|
|
3549
4794
|
|
|
3550
|
-
poll?:
|
|
4795
|
+
poll?: PollResponseData;
|
|
3551
4796
|
|
|
3552
|
-
quoted_message?:
|
|
4797
|
+
quoted_message?: MessageResponse;
|
|
3553
4798
|
|
|
3554
4799
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
3555
4800
|
}
|
|
3556
4801
|
|
|
4802
|
+
export interface MessageUnblockedEvent {
|
|
4803
|
+
cid: string;
|
|
4804
|
+
|
|
4805
|
+
created_at: Date;
|
|
4806
|
+
|
|
4807
|
+
type: string;
|
|
4808
|
+
|
|
4809
|
+
thread_participants?: User[];
|
|
4810
|
+
|
|
4811
|
+
message?: Message;
|
|
4812
|
+
|
|
4813
|
+
user?: User;
|
|
4814
|
+
}
|
|
4815
|
+
|
|
4816
|
+
export interface MessageUndeletedEvent {
|
|
4817
|
+
channel_id: string;
|
|
4818
|
+
|
|
4819
|
+
channel_type: string;
|
|
4820
|
+
|
|
4821
|
+
cid: string;
|
|
4822
|
+
|
|
4823
|
+
created_at: Date;
|
|
4824
|
+
|
|
4825
|
+
type: string;
|
|
4826
|
+
|
|
4827
|
+
team?: string;
|
|
4828
|
+
|
|
4829
|
+
thread_participants?: User[];
|
|
4830
|
+
|
|
4831
|
+
message?: Message;
|
|
4832
|
+
|
|
4833
|
+
user?: User;
|
|
4834
|
+
}
|
|
4835
|
+
|
|
3557
4836
|
export interface MessageUpdate {
|
|
3558
4837
|
old_text?: string;
|
|
3559
4838
|
|
|
3560
4839
|
change_set?: MessageChangeSet;
|
|
3561
4840
|
}
|
|
3562
4841
|
|
|
4842
|
+
export interface MessageUpdatedEvent {
|
|
4843
|
+
channel_id: string;
|
|
4844
|
+
|
|
4845
|
+
channel_type: string;
|
|
4846
|
+
|
|
4847
|
+
cid: string;
|
|
4848
|
+
|
|
4849
|
+
created_at: Date;
|
|
4850
|
+
|
|
4851
|
+
type: string;
|
|
4852
|
+
|
|
4853
|
+
team?: string;
|
|
4854
|
+
|
|
4855
|
+
thread_participants?: User[];
|
|
4856
|
+
|
|
4857
|
+
message?: Message;
|
|
4858
|
+
|
|
4859
|
+
user?: User;
|
|
4860
|
+
}
|
|
4861
|
+
|
|
3563
4862
|
export interface MessageWithChannelResponse {
|
|
3564
4863
|
cid: string;
|
|
3565
4864
|
|
|
@@ -3581,7 +4880,7 @@ export interface MessageWithChannelResponse {
|
|
|
3581
4880
|
|
|
3582
4881
|
text: string;
|
|
3583
4882
|
|
|
3584
|
-
type:
|
|
4883
|
+
type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
|
|
3585
4884
|
|
|
3586
4885
|
updated_at: Date;
|
|
3587
4886
|
|
|
@@ -3629,11 +4928,13 @@ export interface MessageWithChannelResponse {
|
|
|
3629
4928
|
|
|
3630
4929
|
image_labels?: Record<string, string[]>;
|
|
3631
4930
|
|
|
4931
|
+
moderation?: ModerationV2Response;
|
|
4932
|
+
|
|
3632
4933
|
pinned_by?: UserResponse;
|
|
3633
4934
|
|
|
3634
|
-
poll?:
|
|
4935
|
+
poll?: PollResponseData;
|
|
3635
4936
|
|
|
3636
|
-
quoted_message?:
|
|
4937
|
+
quoted_message?: MessageResponse;
|
|
3637
4938
|
|
|
3638
4939
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
3639
4940
|
}
|
|
@@ -3652,6 +4953,56 @@ export interface ModerationActionConfig {
|
|
|
3652
4953
|
custom: Record<string, any>;
|
|
3653
4954
|
}
|
|
3654
4955
|
|
|
4956
|
+
export interface ModerationCustomActionEvent {
|
|
4957
|
+
created_at: Date;
|
|
4958
|
+
|
|
4959
|
+
type: string;
|
|
4960
|
+
|
|
4961
|
+
item?: ReviewQueueItem;
|
|
4962
|
+
|
|
4963
|
+
message?: Message;
|
|
4964
|
+
|
|
4965
|
+
user?: User;
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4968
|
+
export interface ModerationEvent {
|
|
4969
|
+
created_at: Date;
|
|
4970
|
+
|
|
4971
|
+
type: string;
|
|
4972
|
+
|
|
4973
|
+
received_at?: Date;
|
|
4974
|
+
|
|
4975
|
+
flags?: Flag2Response[];
|
|
4976
|
+
|
|
4977
|
+
action?: ActionLogResponse;
|
|
4978
|
+
|
|
4979
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4982
|
+
export interface ModerationFlaggedEvent {
|
|
4983
|
+
created_at: Date;
|
|
4984
|
+
|
|
4985
|
+
type: string;
|
|
4986
|
+
|
|
4987
|
+
item?: string;
|
|
4988
|
+
|
|
4989
|
+
object_id?: string;
|
|
4990
|
+
|
|
4991
|
+
user?: User;
|
|
4992
|
+
}
|
|
4993
|
+
|
|
4994
|
+
export interface ModerationMarkReviewedEvent {
|
|
4995
|
+
created_at: Date;
|
|
4996
|
+
|
|
4997
|
+
type: string;
|
|
4998
|
+
|
|
4999
|
+
item?: ReviewQueueItem;
|
|
5000
|
+
|
|
5001
|
+
message?: Message;
|
|
5002
|
+
|
|
5003
|
+
user?: User;
|
|
5004
|
+
}
|
|
5005
|
+
|
|
3655
5006
|
export interface ModerationPayload {
|
|
3656
5007
|
images?: string[];
|
|
3657
5008
|
|
|
@@ -3673,13 +5024,35 @@ export interface ModerationResponse {
|
|
|
3673
5024
|
}
|
|
3674
5025
|
|
|
3675
5026
|
export interface ModerationUsageStats {
|
|
3676
|
-
|
|
5027
|
+
app_pk: number;
|
|
5028
|
+
|
|
5029
|
+
id: number;
|
|
5030
|
+
|
|
5031
|
+
organization_id: number;
|
|
3677
5032
|
|
|
3678
|
-
|
|
5033
|
+
reference_date: Date;
|
|
3679
5034
|
|
|
3680
5035
|
updated_at: Date;
|
|
3681
5036
|
|
|
3682
|
-
|
|
5037
|
+
usage_amount: number;
|
|
5038
|
+
|
|
5039
|
+
usage_type: string;
|
|
5040
|
+
}
|
|
5041
|
+
|
|
5042
|
+
export interface ModerationV2Response {
|
|
5043
|
+
action: string;
|
|
5044
|
+
|
|
5045
|
+
original_text: string;
|
|
5046
|
+
|
|
5047
|
+
blocklist_matched?: string;
|
|
5048
|
+
|
|
5049
|
+
platform_circumvented?: boolean;
|
|
5050
|
+
|
|
5051
|
+
semantic_filter_matched?: string;
|
|
5052
|
+
|
|
5053
|
+
image_harms?: string[];
|
|
5054
|
+
|
|
5055
|
+
text_harms?: string[];
|
|
3683
5056
|
}
|
|
3684
5057
|
|
|
3685
5058
|
export interface ModeratorStats {
|
|
@@ -3758,10 +5131,58 @@ export interface MuteUsersResponse {
|
|
|
3758
5131
|
duration: string;
|
|
3759
5132
|
}
|
|
3760
5133
|
|
|
5134
|
+
export interface NetworkMetricsReportResponse {
|
|
5135
|
+
average_connection_time?: number;
|
|
5136
|
+
|
|
5137
|
+
average_jitter?: number;
|
|
5138
|
+
|
|
5139
|
+
average_latency?: number;
|
|
5140
|
+
|
|
5141
|
+
average_time_to_reconnect?: number;
|
|
5142
|
+
}
|
|
5143
|
+
|
|
3761
5144
|
export interface NoiseCancellationSettings {
|
|
3762
5145
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3763
5146
|
}
|
|
3764
5147
|
|
|
5148
|
+
export interface NotificationMarkUnreadEvent {
|
|
5149
|
+
channel_id: string;
|
|
5150
|
+
|
|
5151
|
+
channel_member_count: number;
|
|
5152
|
+
|
|
5153
|
+
channel_type: string;
|
|
5154
|
+
|
|
5155
|
+
cid: string;
|
|
5156
|
+
|
|
5157
|
+
created_at: Date;
|
|
5158
|
+
|
|
5159
|
+
first_unread_message_id: string;
|
|
5160
|
+
|
|
5161
|
+
last_read_at: Date;
|
|
5162
|
+
|
|
5163
|
+
total_unread_count: number;
|
|
5164
|
+
|
|
5165
|
+
unread_channels: number;
|
|
5166
|
+
|
|
5167
|
+
unread_count: number;
|
|
5168
|
+
|
|
5169
|
+
unread_messages: number;
|
|
5170
|
+
|
|
5171
|
+
unread_threads: number;
|
|
5172
|
+
|
|
5173
|
+
type: string;
|
|
5174
|
+
|
|
5175
|
+
last_read_message_id?: string;
|
|
5176
|
+
|
|
5177
|
+
team?: string;
|
|
5178
|
+
|
|
5179
|
+
thread_id?: string;
|
|
5180
|
+
|
|
5181
|
+
channel?: ChannelResponse;
|
|
5182
|
+
|
|
5183
|
+
user?: User;
|
|
5184
|
+
}
|
|
5185
|
+
|
|
3765
5186
|
export interface NotificationSettings {
|
|
3766
5187
|
enabled: boolean;
|
|
3767
5188
|
|
|
@@ -3810,9 +5231,11 @@ export const OwnCapability = {
|
|
|
3810
5231
|
SEND_AUDIO: 'send-audio',
|
|
3811
5232
|
SEND_VIDEO: 'send-video',
|
|
3812
5233
|
START_BROADCAST_CALL: 'start-broadcast-call',
|
|
5234
|
+
START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
|
|
3813
5235
|
START_RECORD_CALL: 'start-record-call',
|
|
3814
5236
|
START_TRANSCRIPTION_CALL: 'start-transcription-call',
|
|
3815
5237
|
STOP_BROADCAST_CALL: 'stop-broadcast-call',
|
|
5238
|
+
STOP_CLOSED_CAPTIONS_CALL: 'stop-closed-captions-call',
|
|
3816
5239
|
STOP_RECORD_CALL: 'stop-record-call',
|
|
3817
5240
|
STOP_TRANSCRIPTION_CALL: 'stop-transcription-call',
|
|
3818
5241
|
UPDATE_CALL: 'update-call',
|
|
@@ -3851,7 +5274,63 @@ export interface OwnUser {
|
|
|
3851
5274
|
|
|
3852
5275
|
devices: Device[];
|
|
3853
5276
|
|
|
3854
|
-
mutes: UserMute[];
|
|
5277
|
+
mutes: UserMute[];
|
|
5278
|
+
|
|
5279
|
+
custom: Record<string, any>;
|
|
5280
|
+
|
|
5281
|
+
deactivated_at?: Date;
|
|
5282
|
+
|
|
5283
|
+
deleted_at?: Date;
|
|
5284
|
+
|
|
5285
|
+
invisible?: boolean;
|
|
5286
|
+
|
|
5287
|
+
last_active?: Date;
|
|
5288
|
+
|
|
5289
|
+
last_engaged_at?: Date;
|
|
5290
|
+
|
|
5291
|
+
blocked_user_ids?: string[];
|
|
5292
|
+
|
|
5293
|
+
latest_hidden_channels?: string[];
|
|
5294
|
+
|
|
5295
|
+
teams?: string[];
|
|
5296
|
+
|
|
5297
|
+
privacy_settings?: PrivacySettings;
|
|
5298
|
+
|
|
5299
|
+
push_notifications?: PushNotificationSettings;
|
|
5300
|
+
}
|
|
5301
|
+
|
|
5302
|
+
export interface OwnUserResponse {
|
|
5303
|
+
banned: boolean;
|
|
5304
|
+
|
|
5305
|
+
created_at: Date;
|
|
5306
|
+
|
|
5307
|
+
id: string;
|
|
5308
|
+
|
|
5309
|
+
invisible: boolean;
|
|
5310
|
+
|
|
5311
|
+
language: string;
|
|
5312
|
+
|
|
5313
|
+
online: boolean;
|
|
5314
|
+
|
|
5315
|
+
role: string;
|
|
5316
|
+
|
|
5317
|
+
total_unread_count: number;
|
|
5318
|
+
|
|
5319
|
+
unread_channels: number;
|
|
5320
|
+
|
|
5321
|
+
unread_count: number;
|
|
5322
|
+
|
|
5323
|
+
unread_threads: number;
|
|
5324
|
+
|
|
5325
|
+
updated_at: Date;
|
|
5326
|
+
|
|
5327
|
+
channel_mutes: ChannelMute[];
|
|
5328
|
+
|
|
5329
|
+
devices: DeviceResponse[];
|
|
5330
|
+
|
|
5331
|
+
mutes: UserMuteResponse[];
|
|
5332
|
+
|
|
5333
|
+
teams: string[];
|
|
3855
5334
|
|
|
3856
5335
|
custom: Record<string, any>;
|
|
3857
5336
|
|
|
@@ -3859,19 +5338,21 @@ export interface OwnUser {
|
|
|
3859
5338
|
|
|
3860
5339
|
deleted_at?: Date;
|
|
3861
5340
|
|
|
3862
|
-
|
|
5341
|
+
image?: string;
|
|
3863
5342
|
|
|
3864
5343
|
last_active?: Date;
|
|
3865
5344
|
|
|
5345
|
+
name?: string;
|
|
5346
|
+
|
|
5347
|
+
revoke_tokens_issued_before?: Date;
|
|
5348
|
+
|
|
3866
5349
|
blocked_user_ids?: string[];
|
|
3867
5350
|
|
|
3868
5351
|
latest_hidden_channels?: string[];
|
|
3869
5352
|
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
privacy_settings?: PrivacySettings;
|
|
5353
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
3873
5354
|
|
|
3874
|
-
push_notifications?:
|
|
5355
|
+
push_notifications?: PushNotificationSettingsResponse;
|
|
3875
5356
|
}
|
|
3876
5357
|
|
|
3877
5358
|
export interface PaginationParams {
|
|
@@ -3890,6 +5371,12 @@ export interface PendingMessageResponse {
|
|
|
3890
5371
|
user?: UserResponse;
|
|
3891
5372
|
}
|
|
3892
5373
|
|
|
5374
|
+
export interface PerSDKUsageReport {
|
|
5375
|
+
total: number;
|
|
5376
|
+
|
|
5377
|
+
by_version: Record<string, number>;
|
|
5378
|
+
}
|
|
5379
|
+
|
|
3893
5380
|
export interface Permission {
|
|
3894
5381
|
action: string;
|
|
3895
5382
|
|
|
@@ -3912,6 +5399,18 @@ export interface Permission {
|
|
|
3912
5399
|
condition?: Record<string, any>;
|
|
3913
5400
|
}
|
|
3914
5401
|
|
|
5402
|
+
export interface PermissionRequestEvent {
|
|
5403
|
+
call_cid: string;
|
|
5404
|
+
|
|
5405
|
+
created_at: Date;
|
|
5406
|
+
|
|
5407
|
+
permissions: string[];
|
|
5408
|
+
|
|
5409
|
+
user: UserResponse;
|
|
5410
|
+
|
|
5411
|
+
type: string;
|
|
5412
|
+
}
|
|
5413
|
+
|
|
3915
5414
|
export interface PinRequest {
|
|
3916
5415
|
session_id: string;
|
|
3917
5416
|
|
|
@@ -3985,7 +5484,7 @@ export interface Poll {
|
|
|
3985
5484
|
|
|
3986
5485
|
custom: Record<string, any>;
|
|
3987
5486
|
|
|
3988
|
-
latest_votes_by_option: Record<string,
|
|
5487
|
+
latest_votes_by_option: Record<string, PollVote[]>;
|
|
3989
5488
|
|
|
3990
5489
|
vote_counts_by_option: Record<string, number>;
|
|
3991
5490
|
|
|
@@ -3995,7 +5494,7 @@ export interface Poll {
|
|
|
3995
5494
|
|
|
3996
5495
|
voting_visibility?: string;
|
|
3997
5496
|
|
|
3998
|
-
created_by?:
|
|
5497
|
+
created_by?: User;
|
|
3999
5498
|
}
|
|
4000
5499
|
|
|
4001
5500
|
export interface PollOption {
|
|
@@ -4065,13 +5564,15 @@ export interface PollResponseData {
|
|
|
4065
5564
|
|
|
4066
5565
|
voting_visibility: string;
|
|
4067
5566
|
|
|
5567
|
+
latest_answers: PollVoteResponseData[];
|
|
5568
|
+
|
|
4068
5569
|
options: PollOptionResponseData[];
|
|
4069
5570
|
|
|
4070
5571
|
own_votes: PollVoteResponseData[];
|
|
4071
5572
|
|
|
4072
5573
|
custom: Record<string, any>;
|
|
4073
5574
|
|
|
4074
|
-
latest_votes_by_option: Record<string,
|
|
5575
|
+
latest_votes_by_option: Record<string, PollVoteResponseData[]>;
|
|
4075
5576
|
|
|
4076
5577
|
vote_counts_by_option: Record<string, number>;
|
|
4077
5578
|
|
|
@@ -4099,7 +5600,7 @@ export interface PollVote {
|
|
|
4099
5600
|
|
|
4100
5601
|
user_id?: string;
|
|
4101
5602
|
|
|
4102
|
-
user?:
|
|
5603
|
+
user?: User;
|
|
4103
5604
|
}
|
|
4104
5605
|
|
|
4105
5606
|
export interface PollVoteResponse {
|
|
@@ -4316,6 +5817,40 @@ export interface PushProviderResponse {
|
|
|
4316
5817
|
xiaomi_package_name?: string;
|
|
4317
5818
|
}
|
|
4318
5819
|
|
|
5820
|
+
export interface QualityScoreReport {
|
|
5821
|
+
histogram: ReportByHistogramBucket[];
|
|
5822
|
+
}
|
|
5823
|
+
|
|
5824
|
+
export interface QualityScoreReportResponse {
|
|
5825
|
+
daily: DailyAggregateQualityScoreReportResponse[];
|
|
5826
|
+
}
|
|
5827
|
+
|
|
5828
|
+
export interface QueryAggregateCallStatsRequest {
|
|
5829
|
+
from?: string;
|
|
5830
|
+
|
|
5831
|
+
to?: string;
|
|
5832
|
+
|
|
5833
|
+
report_types?: string[];
|
|
5834
|
+
}
|
|
5835
|
+
|
|
5836
|
+
export interface QueryAggregateCallStatsResponse {
|
|
5837
|
+
duration: string;
|
|
5838
|
+
|
|
5839
|
+
call_duration_report?: CallDurationReportResponse;
|
|
5840
|
+
|
|
5841
|
+
call_participant_count_report?: CallParticipantCountReportResponse;
|
|
5842
|
+
|
|
5843
|
+
calls_per_day_report?: CallsPerDayReportResponse;
|
|
5844
|
+
|
|
5845
|
+
network_metrics_report?: NetworkMetricsReportResponse;
|
|
5846
|
+
|
|
5847
|
+
quality_score_report?: QualityScoreReportResponse;
|
|
5848
|
+
|
|
5849
|
+
sdk_usage_report?: SDKUsageReportResponse;
|
|
5850
|
+
|
|
5851
|
+
user_feedback_report?: UserFeedbackReportResponse;
|
|
5852
|
+
}
|
|
5853
|
+
|
|
4319
5854
|
export interface QueryBannedUsersPayload {
|
|
4320
5855
|
filter_conditions: Record<string, any>;
|
|
4321
5856
|
|
|
@@ -4408,6 +5943,28 @@ export interface QueryCallsResponse {
|
|
|
4408
5943
|
prev?: string;
|
|
4409
5944
|
}
|
|
4410
5945
|
|
|
5946
|
+
export interface QueryCampaignsRequest {
|
|
5947
|
+
limit?: number;
|
|
5948
|
+
|
|
5949
|
+
next?: string;
|
|
5950
|
+
|
|
5951
|
+
prev?: string;
|
|
5952
|
+
|
|
5953
|
+
sort?: SortParamRequest[];
|
|
5954
|
+
|
|
5955
|
+
filter?: Record<string, any>;
|
|
5956
|
+
}
|
|
5957
|
+
|
|
5958
|
+
export interface QueryCampaignsResponse {
|
|
5959
|
+
duration: string;
|
|
5960
|
+
|
|
5961
|
+
campaigns: CampaignResponse[];
|
|
5962
|
+
|
|
5963
|
+
next?: string;
|
|
5964
|
+
|
|
5965
|
+
prev?: string;
|
|
5966
|
+
}
|
|
5967
|
+
|
|
4411
5968
|
export interface QueryChannelsRequest {
|
|
4412
5969
|
limit?: number;
|
|
4413
5970
|
|
|
@@ -4479,7 +6036,7 @@ export interface QueryMessageFlagsPayload {
|
|
|
4479
6036
|
|
|
4480
6037
|
user_id?: string;
|
|
4481
6038
|
|
|
4482
|
-
sort?:
|
|
6039
|
+
sort?: SortParamRequest[];
|
|
4483
6040
|
|
|
4484
6041
|
filter_conditions?: Record<string, any>;
|
|
4485
6042
|
|
|
@@ -4514,6 +6071,32 @@ export interface QueryMessageHistoryResponse {
|
|
|
4514
6071
|
prev?: string;
|
|
4515
6072
|
}
|
|
4516
6073
|
|
|
6074
|
+
export interface QueryModerationConfigsRequest {
|
|
6075
|
+
limit?: number;
|
|
6076
|
+
|
|
6077
|
+
next?: string;
|
|
6078
|
+
|
|
6079
|
+
prev?: string;
|
|
6080
|
+
|
|
6081
|
+
user_id?: string;
|
|
6082
|
+
|
|
6083
|
+
sort?: SortParamRequest[];
|
|
6084
|
+
|
|
6085
|
+
filter?: Record<string, any>;
|
|
6086
|
+
|
|
6087
|
+
user?: UserRequest;
|
|
6088
|
+
}
|
|
6089
|
+
|
|
6090
|
+
export interface QueryModerationConfigsResponse {
|
|
6091
|
+
duration: string;
|
|
6092
|
+
|
|
6093
|
+
configs: ConfigResponse[];
|
|
6094
|
+
|
|
6095
|
+
next?: string;
|
|
6096
|
+
|
|
6097
|
+
prev?: string;
|
|
6098
|
+
}
|
|
6099
|
+
|
|
4517
6100
|
export interface QueryModerationLogsRequest {
|
|
4518
6101
|
limit?: number;
|
|
4519
6102
|
|
|
@@ -4533,7 +6116,7 @@ export interface QueryModerationLogsRequest {
|
|
|
4533
6116
|
export interface QueryModerationLogsResponse {
|
|
4534
6117
|
duration: string;
|
|
4535
6118
|
|
|
4536
|
-
|
|
6119
|
+
logs: ActionLogResponse[];
|
|
4537
6120
|
|
|
4538
6121
|
next?: string;
|
|
4539
6122
|
|
|
@@ -4603,9 +6186,11 @@ export interface QueryReactionsResponse {
|
|
|
4603
6186
|
export interface QueryReviewQueueRequest {
|
|
4604
6187
|
limit?: number;
|
|
4605
6188
|
|
|
4606
|
-
|
|
6189
|
+
lock_count?: number;
|
|
6190
|
+
|
|
6191
|
+
lock_duration?: number;
|
|
4607
6192
|
|
|
4608
|
-
|
|
6193
|
+
lock_items?: boolean;
|
|
4609
6194
|
|
|
4610
6195
|
next?: string;
|
|
4611
6196
|
|
|
@@ -4625,9 +6210,9 @@ export interface QueryReviewQueueRequest {
|
|
|
4625
6210
|
export interface QueryReviewQueueResponse {
|
|
4626
6211
|
duration: string;
|
|
4627
6212
|
|
|
4628
|
-
items:
|
|
6213
|
+
items: ReviewQueueItemResponse[];
|
|
4629
6214
|
|
|
4630
|
-
action_config: Record<string,
|
|
6215
|
+
action_config: Record<string, ModerationActionConfig[]>;
|
|
4631
6216
|
|
|
4632
6217
|
stats: Record<string, number>;
|
|
4633
6218
|
|
|
@@ -4636,6 +6221,50 @@ export interface QueryReviewQueueResponse {
|
|
|
4636
6221
|
prev?: string;
|
|
4637
6222
|
}
|
|
4638
6223
|
|
|
6224
|
+
export interface QuerySegmentTargetsRequest {
|
|
6225
|
+
limit?: number;
|
|
6226
|
+
|
|
6227
|
+
next?: string;
|
|
6228
|
+
|
|
6229
|
+
prev?: string;
|
|
6230
|
+
|
|
6231
|
+
sort?: SortParamRequest[];
|
|
6232
|
+
|
|
6233
|
+
filter?: Record<string, any>;
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
export interface QuerySegmentTargetsResponse {
|
|
6237
|
+
duration: string;
|
|
6238
|
+
|
|
6239
|
+
targets: SegmentTargetResponse[];
|
|
6240
|
+
|
|
6241
|
+
next?: string;
|
|
6242
|
+
|
|
6243
|
+
prev?: string;
|
|
6244
|
+
}
|
|
6245
|
+
|
|
6246
|
+
export interface QuerySegmentsRequest {
|
|
6247
|
+
filter: Record<string, any>;
|
|
6248
|
+
|
|
6249
|
+
limit?: number;
|
|
6250
|
+
|
|
6251
|
+
next?: string;
|
|
6252
|
+
|
|
6253
|
+
prev?: string;
|
|
6254
|
+
|
|
6255
|
+
sort?: SortParamRequest[];
|
|
6256
|
+
}
|
|
6257
|
+
|
|
6258
|
+
export interface QuerySegmentsResponse {
|
|
6259
|
+
duration: string;
|
|
6260
|
+
|
|
6261
|
+
segments: SegmentResponse[];
|
|
6262
|
+
|
|
6263
|
+
next?: string;
|
|
6264
|
+
|
|
6265
|
+
prev?: string;
|
|
6266
|
+
}
|
|
6267
|
+
|
|
4639
6268
|
export interface QueryThreadsRequest {
|
|
4640
6269
|
limit?: number;
|
|
4641
6270
|
|
|
@@ -4807,7 +6436,29 @@ export interface Reaction {
|
|
|
4807
6436
|
|
|
4808
6437
|
user_id?: string;
|
|
4809
6438
|
|
|
4810
|
-
user?:
|
|
6439
|
+
user?: User;
|
|
6440
|
+
}
|
|
6441
|
+
|
|
6442
|
+
export interface ReactionDeletedEvent {
|
|
6443
|
+
channel_id: string;
|
|
6444
|
+
|
|
6445
|
+
channel_type: string;
|
|
6446
|
+
|
|
6447
|
+
cid: string;
|
|
6448
|
+
|
|
6449
|
+
created_at: Date;
|
|
6450
|
+
|
|
6451
|
+
type: string;
|
|
6452
|
+
|
|
6453
|
+
team?: string;
|
|
6454
|
+
|
|
6455
|
+
thread_participants?: User[];
|
|
6456
|
+
|
|
6457
|
+
message?: Message;
|
|
6458
|
+
|
|
6459
|
+
reaction?: Reaction;
|
|
6460
|
+
|
|
6461
|
+
user?: User;
|
|
4811
6462
|
}
|
|
4812
6463
|
|
|
4813
6464
|
export interface ReactionGroupResponse {
|
|
@@ -4820,6 +6471,28 @@ export interface ReactionGroupResponse {
|
|
|
4820
6471
|
sum_scores: number;
|
|
4821
6472
|
}
|
|
4822
6473
|
|
|
6474
|
+
export interface ReactionNewEvent {
|
|
6475
|
+
channel_id: string;
|
|
6476
|
+
|
|
6477
|
+
channel_type: string;
|
|
6478
|
+
|
|
6479
|
+
cid: string;
|
|
6480
|
+
|
|
6481
|
+
created_at: Date;
|
|
6482
|
+
|
|
6483
|
+
type: string;
|
|
6484
|
+
|
|
6485
|
+
team?: string;
|
|
6486
|
+
|
|
6487
|
+
thread_participants?: User[];
|
|
6488
|
+
|
|
6489
|
+
message?: Message;
|
|
6490
|
+
|
|
6491
|
+
reaction?: Reaction;
|
|
6492
|
+
|
|
6493
|
+
user?: User;
|
|
6494
|
+
}
|
|
6495
|
+
|
|
4823
6496
|
export interface ReactionRemovalResponse {
|
|
4824
6497
|
duration: string;
|
|
4825
6498
|
|
|
@@ -4862,6 +6535,26 @@ export interface ReactionResponse {
|
|
|
4862
6535
|
user: UserResponse;
|
|
4863
6536
|
}
|
|
4864
6537
|
|
|
6538
|
+
export interface ReactionUpdatedEvent {
|
|
6539
|
+
channel_id: string;
|
|
6540
|
+
|
|
6541
|
+
channel_type: string;
|
|
6542
|
+
|
|
6543
|
+
cid: string;
|
|
6544
|
+
|
|
6545
|
+
created_at: Date;
|
|
6546
|
+
|
|
6547
|
+
message: Message;
|
|
6548
|
+
|
|
6549
|
+
reaction: Reaction;
|
|
6550
|
+
|
|
6551
|
+
type: string;
|
|
6552
|
+
|
|
6553
|
+
team?: string;
|
|
6554
|
+
|
|
6555
|
+
user?: User;
|
|
6556
|
+
}
|
|
6557
|
+
|
|
4865
6558
|
export interface ReactivateUserRequest {
|
|
4866
6559
|
created_by_id?: string;
|
|
4867
6560
|
|
|
@@ -4892,22 +6585,12 @@ export interface ReactivateUsersResponse {
|
|
|
4892
6585
|
task_id: string;
|
|
4893
6586
|
}
|
|
4894
6587
|
|
|
4895
|
-
export interface Read {
|
|
4896
|
-
last_read: Date;
|
|
4897
|
-
|
|
4898
|
-
unread_messages: number;
|
|
4899
|
-
|
|
4900
|
-
last_read_message_id?: string;
|
|
4901
|
-
|
|
4902
|
-
user?: UserObject;
|
|
4903
|
-
}
|
|
4904
|
-
|
|
4905
6588
|
export interface ReadReceipts {
|
|
4906
|
-
enabled
|
|
6589
|
+
enabled: boolean;
|
|
4907
6590
|
}
|
|
4908
6591
|
|
|
4909
6592
|
export interface ReadReceiptsResponse {
|
|
4910
|
-
enabled
|
|
6593
|
+
enabled?: boolean;
|
|
4911
6594
|
}
|
|
4912
6595
|
|
|
4913
6596
|
export interface ReadStateResponse {
|
|
@@ -4921,11 +6604,11 @@ export interface ReadStateResponse {
|
|
|
4921
6604
|
}
|
|
4922
6605
|
|
|
4923
6606
|
export interface RecordSettings {
|
|
4924
|
-
audio_only: boolean;
|
|
4925
|
-
|
|
4926
6607
|
mode: string;
|
|
4927
6608
|
|
|
4928
|
-
|
|
6609
|
+
audio_only?: boolean;
|
|
6610
|
+
|
|
6611
|
+
quality?: string;
|
|
4929
6612
|
|
|
4930
6613
|
layout?: LayoutSettings;
|
|
4931
6614
|
}
|
|
@@ -4960,6 +6643,20 @@ export interface RecordSettingsResponse {
|
|
|
4960
6643
|
layout: LayoutSettingsResponse;
|
|
4961
6644
|
}
|
|
4962
6645
|
|
|
6646
|
+
export interface ReportByHistogramBucket {
|
|
6647
|
+
category: string;
|
|
6648
|
+
|
|
6649
|
+
count: number;
|
|
6650
|
+
|
|
6651
|
+
mean: number;
|
|
6652
|
+
|
|
6653
|
+
sum: number;
|
|
6654
|
+
|
|
6655
|
+
lower_bound?: Bound;
|
|
6656
|
+
|
|
6657
|
+
upper_bound?: Bound;
|
|
6658
|
+
}
|
|
6659
|
+
|
|
4963
6660
|
export interface Response {
|
|
4964
6661
|
duration: string;
|
|
4965
6662
|
}
|
|
@@ -4971,6 +6668,8 @@ export interface RestoreUsersRequest {
|
|
|
4971
6668
|
}
|
|
4972
6669
|
|
|
4973
6670
|
export interface ReviewQueueItem {
|
|
6671
|
+
bounce_count: number;
|
|
6672
|
+
|
|
4974
6673
|
content_changed: boolean;
|
|
4975
6674
|
|
|
4976
6675
|
created_at: Date;
|
|
@@ -5007,13 +6706,15 @@ export interface ReviewQueueItem {
|
|
|
5007
6706
|
|
|
5008
6707
|
languages: string[];
|
|
5009
6708
|
|
|
6709
|
+
teams: string[];
|
|
6710
|
+
|
|
5010
6711
|
completed_at: NullTime;
|
|
5011
6712
|
|
|
5012
6713
|
reviewed_at: NullTime;
|
|
5013
6714
|
|
|
5014
|
-
assigned_to?:
|
|
6715
|
+
assigned_to?: User;
|
|
5015
6716
|
|
|
5016
|
-
entity_creator?:
|
|
6717
|
+
entity_creator?: EntityCreator;
|
|
5017
6718
|
|
|
5018
6719
|
feeds_v2_activity?: EnrichedActivity;
|
|
5019
6720
|
|
|
@@ -5024,6 +6725,52 @@ export interface ReviewQueueItem {
|
|
|
5024
6725
|
moderation_payload?: ModerationPayload;
|
|
5025
6726
|
}
|
|
5026
6727
|
|
|
6728
|
+
export interface ReviewQueueItemResponse {
|
|
6729
|
+
created_at: Date;
|
|
6730
|
+
|
|
6731
|
+
entity_id: string;
|
|
6732
|
+
|
|
6733
|
+
entity_type: string;
|
|
6734
|
+
|
|
6735
|
+
id: string;
|
|
6736
|
+
|
|
6737
|
+
recommended_action: string;
|
|
6738
|
+
|
|
6739
|
+
reviewed_by: string;
|
|
6740
|
+
|
|
6741
|
+
severity: number;
|
|
6742
|
+
|
|
6743
|
+
status: string;
|
|
6744
|
+
|
|
6745
|
+
updated_at: Date;
|
|
6746
|
+
|
|
6747
|
+
actions: ActionLogResponse[];
|
|
6748
|
+
|
|
6749
|
+
bans: Ban[];
|
|
6750
|
+
|
|
6751
|
+
flags: Flag2Response[];
|
|
6752
|
+
|
|
6753
|
+
languages: string[];
|
|
6754
|
+
|
|
6755
|
+
completed_at?: Date;
|
|
6756
|
+
|
|
6757
|
+
entity_creator_id?: string;
|
|
6758
|
+
|
|
6759
|
+
reviewed_at?: Date;
|
|
6760
|
+
|
|
6761
|
+
assigned_to?: UserResponse;
|
|
6762
|
+
|
|
6763
|
+
entity_creator?: EntityCreatorResponse;
|
|
6764
|
+
|
|
6765
|
+
feeds_v2_activity?: EnrichedActivity;
|
|
6766
|
+
|
|
6767
|
+
feeds_v2_reaction?: Reaction;
|
|
6768
|
+
|
|
6769
|
+
message?: MessageResponse;
|
|
6770
|
+
|
|
6771
|
+
moderation_payload?: ModerationPayload;
|
|
6772
|
+
}
|
|
6773
|
+
|
|
5027
6774
|
export interface RingSettings {
|
|
5028
6775
|
auto_cancel_timeout_ms: number;
|
|
5029
6776
|
|
|
@@ -5068,6 +6815,14 @@ export interface S3Request {
|
|
|
5068
6815
|
s3_secret?: string;
|
|
5069
6816
|
}
|
|
5070
6817
|
|
|
6818
|
+
export interface SDKUsageReport {
|
|
6819
|
+
per_sdk_usage: Record<string, PerSDKUsageReport>;
|
|
6820
|
+
}
|
|
6821
|
+
|
|
6822
|
+
export interface SDKUsageReportResponse {
|
|
6823
|
+
daily: DailyAggregateSDKUsageReportResponse[];
|
|
6824
|
+
}
|
|
6825
|
+
|
|
5071
6826
|
export interface SFULocationResponse {
|
|
5072
6827
|
datacenter: string;
|
|
5073
6828
|
|
|
@@ -5161,21 +6916,19 @@ export interface SearchResultMessage {
|
|
|
5161
6916
|
|
|
5162
6917
|
attachments: Attachment[];
|
|
5163
6918
|
|
|
5164
|
-
latest_reactions:
|
|
6919
|
+
latest_reactions: ReactionResponse[];
|
|
5165
6920
|
|
|
5166
|
-
mentioned_users:
|
|
6921
|
+
mentioned_users: UserResponse[];
|
|
5167
6922
|
|
|
5168
|
-
own_reactions:
|
|
6923
|
+
own_reactions: ReactionResponse[];
|
|
5169
6924
|
|
|
5170
6925
|
custom: Record<string, any>;
|
|
5171
6926
|
|
|
5172
6927
|
reaction_counts: Record<string, number>;
|
|
5173
6928
|
|
|
5174
|
-
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
5175
|
-
|
|
5176
6929
|
reaction_scores: Record<string, number>;
|
|
5177
6930
|
|
|
5178
|
-
|
|
6931
|
+
user: UserResponse;
|
|
5179
6932
|
|
|
5180
6933
|
command?: string;
|
|
5181
6934
|
|
|
@@ -5197,7 +6950,7 @@ export interface SearchResultMessage {
|
|
|
5197
6950
|
|
|
5198
6951
|
show_in_channel?: boolean;
|
|
5199
6952
|
|
|
5200
|
-
thread_participants?:
|
|
6953
|
+
thread_participants?: UserResponse[];
|
|
5201
6954
|
|
|
5202
6955
|
channel?: ChannelResponse;
|
|
5203
6956
|
|
|
@@ -5205,13 +6958,15 @@ export interface SearchResultMessage {
|
|
|
5205
6958
|
|
|
5206
6959
|
image_labels?: Record<string, string[]>;
|
|
5207
6960
|
|
|
5208
|
-
|
|
6961
|
+
moderation?: ModerationV2Response;
|
|
5209
6962
|
|
|
5210
|
-
|
|
6963
|
+
pinned_by?: UserResponse;
|
|
5211
6964
|
|
|
5212
|
-
|
|
6965
|
+
poll?: PollResponseData;
|
|
5213
6966
|
|
|
5214
|
-
|
|
6967
|
+
quoted_message?: MessageResponse;
|
|
6968
|
+
|
|
6969
|
+
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
5215
6970
|
}
|
|
5216
6971
|
|
|
5217
6972
|
export interface SearchWarning {
|
|
@@ -5224,6 +6979,66 @@ export interface SearchWarning {
|
|
|
5224
6979
|
channel_search_cids?: string[];
|
|
5225
6980
|
}
|
|
5226
6981
|
|
|
6982
|
+
export interface Segment {
|
|
6983
|
+
all_sender_channels: boolean;
|
|
6984
|
+
|
|
6985
|
+
all_users: boolean;
|
|
6986
|
+
|
|
6987
|
+
created_at: Date;
|
|
6988
|
+
|
|
6989
|
+
id: string;
|
|
6990
|
+
|
|
6991
|
+
name: string;
|
|
6992
|
+
|
|
6993
|
+
size: number;
|
|
6994
|
+
|
|
6995
|
+
type: string;
|
|
6996
|
+
|
|
6997
|
+
updated_at: Date;
|
|
6998
|
+
|
|
6999
|
+
deleted_at?: Date;
|
|
7000
|
+
|
|
7001
|
+
description?: string;
|
|
7002
|
+
|
|
7003
|
+
task_id?: string;
|
|
7004
|
+
|
|
7005
|
+
filter?: Record<string, any>;
|
|
7006
|
+
}
|
|
7007
|
+
|
|
7008
|
+
export interface SegmentResponse {
|
|
7009
|
+
all_sender_channels: boolean;
|
|
7010
|
+
|
|
7011
|
+
all_users: boolean;
|
|
7012
|
+
|
|
7013
|
+
created_at: Date;
|
|
7014
|
+
|
|
7015
|
+
deleted_at: Date;
|
|
7016
|
+
|
|
7017
|
+
description: string;
|
|
7018
|
+
|
|
7019
|
+
id: string;
|
|
7020
|
+
|
|
7021
|
+
name: string;
|
|
7022
|
+
|
|
7023
|
+
size: number;
|
|
7024
|
+
|
|
7025
|
+
type: string;
|
|
7026
|
+
|
|
7027
|
+
updated_at: Date;
|
|
7028
|
+
|
|
7029
|
+
filter: Record<string, any>;
|
|
7030
|
+
}
|
|
7031
|
+
|
|
7032
|
+
export interface SegmentTargetResponse {
|
|
7033
|
+
app_pk: number;
|
|
7034
|
+
|
|
7035
|
+
created_at: Date;
|
|
7036
|
+
|
|
7037
|
+
segment_id: string;
|
|
7038
|
+
|
|
7039
|
+
target_id: string;
|
|
7040
|
+
}
|
|
7041
|
+
|
|
5227
7042
|
export interface SendCallEventRequest {
|
|
5228
7043
|
user_id?: string;
|
|
5229
7044
|
|
|
@@ -5294,16 +7109,34 @@ export interface ShowChannelResponse {
|
|
|
5294
7109
|
duration: string;
|
|
5295
7110
|
}
|
|
5296
7111
|
|
|
5297
|
-
export interface
|
|
7112
|
+
export interface SortParamRequest {
|
|
5298
7113
|
direction?: number;
|
|
5299
7114
|
|
|
5300
7115
|
field?: string;
|
|
5301
7116
|
}
|
|
5302
7117
|
|
|
5303
|
-
export interface
|
|
5304
|
-
|
|
7118
|
+
export interface StartCampaignRequest {
|
|
7119
|
+
scheduled_for?: Date;
|
|
5305
7120
|
|
|
5306
|
-
|
|
7121
|
+
stop_at?: Date;
|
|
7122
|
+
}
|
|
7123
|
+
|
|
7124
|
+
export interface StartCampaignResponse {
|
|
7125
|
+
duration: string;
|
|
7126
|
+
|
|
7127
|
+
campaign?: CampaignResponse;
|
|
7128
|
+
}
|
|
7129
|
+
|
|
7130
|
+
export interface StartClosedCaptionsRequest {
|
|
7131
|
+
enable_transcription?: boolean;
|
|
7132
|
+
|
|
7133
|
+
external_storage?: string;
|
|
7134
|
+
|
|
7135
|
+
language?: string;
|
|
7136
|
+
}
|
|
7137
|
+
|
|
7138
|
+
export interface StartClosedCaptionsResponse {
|
|
7139
|
+
duration: string;
|
|
5307
7140
|
}
|
|
5308
7141
|
|
|
5309
7142
|
export interface StartHLSBroadcastingRequest {}
|
|
@@ -5331,6 +7164,10 @@ export interface StartRecordingResponse {
|
|
|
5331
7164
|
}
|
|
5332
7165
|
|
|
5333
7166
|
export interface StartTranscriptionRequest {
|
|
7167
|
+
enable_closed_captions?: boolean;
|
|
7168
|
+
|
|
7169
|
+
language?: string;
|
|
7170
|
+
|
|
5334
7171
|
transcription_external_storage?: string;
|
|
5335
7172
|
}
|
|
5336
7173
|
|
|
@@ -5344,13 +7181,33 @@ export interface StopAllRTMPBroadcastsResponse {
|
|
|
5344
7181
|
duration: string;
|
|
5345
7182
|
}
|
|
5346
7183
|
|
|
7184
|
+
export interface StopCampaignRequest {}
|
|
7185
|
+
|
|
7186
|
+
export interface StopClosedCaptionsRequest {
|
|
7187
|
+
stop_transcription?: boolean;
|
|
7188
|
+
}
|
|
7189
|
+
|
|
7190
|
+
export interface StopClosedCaptionsResponse {
|
|
7191
|
+
duration: string;
|
|
7192
|
+
}
|
|
7193
|
+
|
|
5347
7194
|
export interface StopHLSBroadcastingRequest {}
|
|
5348
7195
|
|
|
5349
7196
|
export interface StopHLSBroadcastingResponse {
|
|
5350
7197
|
duration: string;
|
|
5351
7198
|
}
|
|
5352
7199
|
|
|
5353
|
-
export interface StopLiveRequest {
|
|
7200
|
+
export interface StopLiveRequest {
|
|
7201
|
+
continue_closed_caption?: boolean;
|
|
7202
|
+
|
|
7203
|
+
continue_hls?: boolean;
|
|
7204
|
+
|
|
7205
|
+
continue_recording?: boolean;
|
|
7206
|
+
|
|
7207
|
+
continue_rtmp_broadcasts?: boolean;
|
|
7208
|
+
|
|
7209
|
+
continue_transcription?: boolean;
|
|
7210
|
+
}
|
|
5354
7211
|
|
|
5355
7212
|
export interface StopLiveResponse {
|
|
5356
7213
|
duration: string;
|
|
@@ -5370,7 +7227,9 @@ export interface StopRecordingResponse {
|
|
|
5370
7227
|
duration: string;
|
|
5371
7228
|
}
|
|
5372
7229
|
|
|
5373
|
-
export interface StopTranscriptionRequest {
|
|
7230
|
+
export interface StopTranscriptionRequest {
|
|
7231
|
+
stop_closed_captions?: boolean;
|
|
7232
|
+
}
|
|
5374
7233
|
|
|
5375
7234
|
export interface StopTranscriptionResponse {
|
|
5376
7235
|
duration: string;
|
|
@@ -5405,6 +7264,8 @@ export interface SubmitActionRequest {
|
|
|
5405
7264
|
|
|
5406
7265
|
delete_user?: DeleteUserRequest;
|
|
5407
7266
|
|
|
7267
|
+
mark_reviewed?: MarkReviewedRequest;
|
|
7268
|
+
|
|
5408
7269
|
unban?: UnbanActionRequest;
|
|
5409
7270
|
|
|
5410
7271
|
user?: UserRequest;
|
|
@@ -5459,7 +7320,7 @@ export interface ThreadParticipant {
|
|
|
5459
7320
|
|
|
5460
7321
|
user_id?: string;
|
|
5461
7322
|
|
|
5462
|
-
user?:
|
|
7323
|
+
user?: UserResponse;
|
|
5463
7324
|
}
|
|
5464
7325
|
|
|
5465
7326
|
export interface ThreadResponse {
|
|
@@ -5491,23 +7352,25 @@ export interface ThreadResponse {
|
|
|
5491
7352
|
|
|
5492
7353
|
channel?: ChannelResponse;
|
|
5493
7354
|
|
|
5494
|
-
created_by?:
|
|
7355
|
+
created_by?: UserResponse;
|
|
5495
7356
|
|
|
5496
|
-
parent_message?:
|
|
7357
|
+
parent_message?: MessageResponse;
|
|
5497
7358
|
}
|
|
5498
7359
|
|
|
5499
|
-
export interface
|
|
7360
|
+
export interface ThreadStateResponse {
|
|
5500
7361
|
channel_cid: string;
|
|
5501
7362
|
|
|
5502
7363
|
created_at: Date;
|
|
5503
7364
|
|
|
7365
|
+
created_by_user_id: string;
|
|
7366
|
+
|
|
5504
7367
|
parent_message_id: string;
|
|
5505
7368
|
|
|
5506
7369
|
title: string;
|
|
5507
7370
|
|
|
5508
7371
|
updated_at: Date;
|
|
5509
7372
|
|
|
5510
|
-
latest_replies:
|
|
7373
|
+
latest_replies: MessageResponse[];
|
|
5511
7374
|
|
|
5512
7375
|
custom: Record<string, any>;
|
|
5513
7376
|
|
|
@@ -5521,53 +7384,31 @@ export interface ThreadState {
|
|
|
5521
7384
|
|
|
5522
7385
|
reply_count?: number;
|
|
5523
7386
|
|
|
5524
|
-
read?:
|
|
7387
|
+
read?: ReadStateResponse[];
|
|
5525
7388
|
|
|
5526
7389
|
thread_participants?: ThreadParticipant[];
|
|
5527
7390
|
|
|
5528
|
-
channel?:
|
|
7391
|
+
channel?: ChannelResponse;
|
|
5529
7392
|
|
|
5530
|
-
created_by?:
|
|
7393
|
+
created_by?: UserResponse;
|
|
5531
7394
|
|
|
5532
|
-
parent_message?:
|
|
7395
|
+
parent_message?: MessageResponse;
|
|
5533
7396
|
}
|
|
5534
7397
|
|
|
5535
|
-
export interface
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
created_at: Date;
|
|
5539
|
-
|
|
5540
|
-
created_by_user_id: string;
|
|
5541
|
-
|
|
5542
|
-
parent_message_id: string;
|
|
5543
|
-
|
|
5544
|
-
title: string;
|
|
5545
|
-
|
|
5546
|
-
updated_at: Date;
|
|
5547
|
-
|
|
5548
|
-
latest_replies: MessageResponse[];
|
|
5549
|
-
|
|
5550
|
-
custom: Record<string, any>;
|
|
5551
|
-
|
|
5552
|
-
active_participant_count?: number;
|
|
5553
|
-
|
|
5554
|
-
deleted_at?: Date;
|
|
5555
|
-
|
|
5556
|
-
last_message_at?: Date;
|
|
5557
|
-
|
|
5558
|
-
participant_count?: number;
|
|
7398
|
+
export interface ThreadUpdatedEvent {
|
|
7399
|
+
channel_id: string;
|
|
5559
7400
|
|
|
5560
|
-
|
|
7401
|
+
channel_type: string;
|
|
5561
7402
|
|
|
5562
|
-
|
|
7403
|
+
cid: string;
|
|
5563
7404
|
|
|
5564
|
-
|
|
7405
|
+
created_at: Date;
|
|
5565
7406
|
|
|
5566
|
-
|
|
7407
|
+
type: string;
|
|
5567
7408
|
|
|
5568
|
-
|
|
7409
|
+
thread?: ThreadResponse;
|
|
5569
7410
|
|
|
5570
|
-
|
|
7411
|
+
user?: User;
|
|
5571
7412
|
}
|
|
5572
7413
|
|
|
5573
7414
|
export interface Thresholds {
|
|
@@ -5603,27 +7444,126 @@ export interface TimeStats {
|
|
|
5603
7444
|
}
|
|
5604
7445
|
|
|
5605
7446
|
export interface TranscriptionSettings {
|
|
5606
|
-
closed_caption_mode:
|
|
7447
|
+
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
5607
7448
|
|
|
5608
|
-
|
|
7449
|
+
language:
|
|
7450
|
+
| 'auto'
|
|
7451
|
+
| 'en'
|
|
7452
|
+
| 'fr'
|
|
7453
|
+
| 'es'
|
|
7454
|
+
| 'de'
|
|
7455
|
+
| 'it'
|
|
7456
|
+
| 'nl'
|
|
7457
|
+
| 'pt'
|
|
7458
|
+
| 'pl'
|
|
7459
|
+
| 'ca'
|
|
7460
|
+
| 'cs'
|
|
7461
|
+
| 'da'
|
|
7462
|
+
| 'el'
|
|
7463
|
+
| 'fi'
|
|
7464
|
+
| 'id'
|
|
7465
|
+
| 'ja'
|
|
7466
|
+
| 'ru'
|
|
7467
|
+
| 'sv'
|
|
7468
|
+
| 'ta'
|
|
7469
|
+
| 'th'
|
|
7470
|
+
| 'tr'
|
|
7471
|
+
| 'hu'
|
|
7472
|
+
| 'ro'
|
|
7473
|
+
| 'zh'
|
|
7474
|
+
| 'ar'
|
|
7475
|
+
| 'tl'
|
|
7476
|
+
| 'he'
|
|
7477
|
+
| 'hi'
|
|
7478
|
+
| 'hr'
|
|
7479
|
+
| 'ko'
|
|
7480
|
+
| 'ms'
|
|
7481
|
+
| 'no'
|
|
7482
|
+
| 'uk';
|
|
5609
7483
|
|
|
5610
|
-
|
|
7484
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
5611
7485
|
}
|
|
5612
7486
|
|
|
5613
7487
|
export interface TranscriptionSettingsRequest {
|
|
5614
7488
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
5615
7489
|
|
|
5616
|
-
closed_caption_mode?:
|
|
7490
|
+
closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
|
|
5617
7491
|
|
|
5618
|
-
|
|
7492
|
+
language?:
|
|
7493
|
+
| 'auto'
|
|
7494
|
+
| 'en'
|
|
7495
|
+
| 'fr'
|
|
7496
|
+
| 'es'
|
|
7497
|
+
| 'de'
|
|
7498
|
+
| 'it'
|
|
7499
|
+
| 'nl'
|
|
7500
|
+
| 'pt'
|
|
7501
|
+
| 'pl'
|
|
7502
|
+
| 'ca'
|
|
7503
|
+
| 'cs'
|
|
7504
|
+
| 'da'
|
|
7505
|
+
| 'el'
|
|
7506
|
+
| 'fi'
|
|
7507
|
+
| 'id'
|
|
7508
|
+
| 'ja'
|
|
7509
|
+
| 'ru'
|
|
7510
|
+
| 'sv'
|
|
7511
|
+
| 'ta'
|
|
7512
|
+
| 'th'
|
|
7513
|
+
| 'tr'
|
|
7514
|
+
| 'hu'
|
|
7515
|
+
| 'ro'
|
|
7516
|
+
| 'zh'
|
|
7517
|
+
| 'ar'
|
|
7518
|
+
| 'tl'
|
|
7519
|
+
| 'he'
|
|
7520
|
+
| 'hi'
|
|
7521
|
+
| 'hr'
|
|
7522
|
+
| 'ko'
|
|
7523
|
+
| 'ms'
|
|
7524
|
+
| 'no'
|
|
7525
|
+
| 'uk';
|
|
5619
7526
|
}
|
|
5620
7527
|
|
|
5621
7528
|
export interface TranscriptionSettingsResponse {
|
|
5622
|
-
closed_caption_mode:
|
|
7529
|
+
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
5623
7530
|
|
|
5624
|
-
|
|
7531
|
+
language:
|
|
7532
|
+
| 'auto'
|
|
7533
|
+
| 'en'
|
|
7534
|
+
| 'fr'
|
|
7535
|
+
| 'es'
|
|
7536
|
+
| 'de'
|
|
7537
|
+
| 'it'
|
|
7538
|
+
| 'nl'
|
|
7539
|
+
| 'pt'
|
|
7540
|
+
| 'pl'
|
|
7541
|
+
| 'ca'
|
|
7542
|
+
| 'cs'
|
|
7543
|
+
| 'da'
|
|
7544
|
+
| 'el'
|
|
7545
|
+
| 'fi'
|
|
7546
|
+
| 'id'
|
|
7547
|
+
| 'ja'
|
|
7548
|
+
| 'ru'
|
|
7549
|
+
| 'sv'
|
|
7550
|
+
| 'ta'
|
|
7551
|
+
| 'th'
|
|
7552
|
+
| 'tr'
|
|
7553
|
+
| 'hu'
|
|
7554
|
+
| 'ro'
|
|
7555
|
+
| 'zh'
|
|
7556
|
+
| 'ar'
|
|
7557
|
+
| 'tl'
|
|
7558
|
+
| 'he'
|
|
7559
|
+
| 'hi'
|
|
7560
|
+
| 'hr'
|
|
7561
|
+
| 'ko'
|
|
7562
|
+
| 'ms'
|
|
7563
|
+
| 'no'
|
|
7564
|
+
| 'uk';
|
|
5625
7565
|
|
|
5626
|
-
|
|
7566
|
+
mode: 'available' | 'disabled' | 'auto-on';
|
|
5627
7567
|
}
|
|
5628
7568
|
|
|
5629
7569
|
export interface TranslateMessageRequest {
|
|
@@ -5682,7 +7622,8 @@ export interface TranslateMessageRequest {
|
|
|
5682
7622
|
| 'tr'
|
|
5683
7623
|
| 'uk'
|
|
5684
7624
|
| 'ur'
|
|
5685
|
-
| 'vi'
|
|
7625
|
+
| 'vi'
|
|
7626
|
+
| 'lt';
|
|
5686
7627
|
}
|
|
5687
7628
|
|
|
5688
7629
|
export interface TruncateChannelRequest {
|
|
@@ -5708,11 +7649,11 @@ export interface TruncateChannelResponse {
|
|
|
5708
7649
|
}
|
|
5709
7650
|
|
|
5710
7651
|
export interface TypingIndicators {
|
|
5711
|
-
enabled
|
|
7652
|
+
enabled: boolean;
|
|
5712
7653
|
}
|
|
5713
7654
|
|
|
5714
7655
|
export interface TypingIndicatorsResponse {
|
|
5715
|
-
enabled
|
|
7656
|
+
enabled?: boolean;
|
|
5716
7657
|
}
|
|
5717
7658
|
|
|
5718
7659
|
export interface UnbanActionRequest {}
|
|
@@ -5749,6 +7690,16 @@ export interface UnblockUsersResponse {
|
|
|
5749
7690
|
duration: string;
|
|
5750
7691
|
}
|
|
5751
7692
|
|
|
7693
|
+
export interface UnblockedUserEvent {
|
|
7694
|
+
call_cid: string;
|
|
7695
|
+
|
|
7696
|
+
created_at: Date;
|
|
7697
|
+
|
|
7698
|
+
user: UserResponse;
|
|
7699
|
+
|
|
7700
|
+
type: string;
|
|
7701
|
+
}
|
|
7702
|
+
|
|
5752
7703
|
export interface UnmuteChannelRequest {
|
|
5753
7704
|
expiration?: number;
|
|
5754
7705
|
|
|
@@ -5884,8 +7835,6 @@ export interface UpdateAppRequest {
|
|
|
5884
7835
|
|
|
5885
7836
|
sqs_url?: string;
|
|
5886
7837
|
|
|
5887
|
-
video_provider?: 'agora' | 'hms';
|
|
5888
|
-
|
|
5889
7838
|
webhook_url?: string;
|
|
5890
7839
|
|
|
5891
7840
|
allowed_flag_reasons?: string[];
|
|
@@ -5898,8 +7847,6 @@ export interface UpdateAppRequest {
|
|
|
5898
7847
|
|
|
5899
7848
|
webhook_events?: string[];
|
|
5900
7849
|
|
|
5901
|
-
agora_options?: Config;
|
|
5902
|
-
|
|
5903
7850
|
apn_config?: APNConfig;
|
|
5904
7851
|
|
|
5905
7852
|
async_moderation_config?: AsyncModerationConfiguration;
|
|
@@ -5912,8 +7859,6 @@ export interface UpdateAppRequest {
|
|
|
5912
7859
|
|
|
5913
7860
|
grants?: Record<string, string[]>;
|
|
5914
7861
|
|
|
5915
|
-
hms_options?: Config;
|
|
5916
|
-
|
|
5917
7862
|
huawei_config?: HuaweiConfig;
|
|
5918
7863
|
|
|
5919
7864
|
image_upload_config?: FileUploadConfig;
|
|
@@ -6042,7 +7987,7 @@ export interface UpdateChannelResponse {
|
|
|
6042
7987
|
|
|
6043
7988
|
channel?: ChannelResponse;
|
|
6044
7989
|
|
|
6045
|
-
message?:
|
|
7990
|
+
message?: MessageResponse;
|
|
6046
7991
|
}
|
|
6047
7992
|
|
|
6048
7993
|
export interface UpdateChannelTypeRequest {
|
|
@@ -6084,6 +8029,8 @@ export interface UpdateChannelTypeRequest {
|
|
|
6084
8029
|
|
|
6085
8030
|
search?: boolean;
|
|
6086
8031
|
|
|
8032
|
+
skip_last_msg_update_for_system_msgs?: boolean;
|
|
8033
|
+
|
|
6087
8034
|
typing_events?: boolean;
|
|
6088
8035
|
|
|
6089
8036
|
uploads?: boolean;
|
|
@@ -6140,6 +8087,8 @@ export interface UpdateChannelTypeResponse {
|
|
|
6140
8087
|
|
|
6141
8088
|
search: boolean;
|
|
6142
8089
|
|
|
8090
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
8091
|
+
|
|
6143
8092
|
typing_events: boolean;
|
|
6144
8093
|
|
|
6145
8094
|
updated_at: Date;
|
|
@@ -6160,7 +8109,7 @@ export interface UpdateChannelTypeResponse {
|
|
|
6160
8109
|
|
|
6161
8110
|
partition_size?: number;
|
|
6162
8111
|
|
|
6163
|
-
partition_ttl?:
|
|
8112
|
+
partition_ttl?: string;
|
|
6164
8113
|
|
|
6165
8114
|
allowed_flag_reasons?: string[];
|
|
6166
8115
|
|
|
@@ -6236,7 +8185,7 @@ export interface UpdateMessagePartialRequest {
|
|
|
6236
8185
|
export interface UpdateMessagePartialResponse {
|
|
6237
8186
|
duration: string;
|
|
6238
8187
|
|
|
6239
|
-
message?:
|
|
8188
|
+
message?: MessageResponse;
|
|
6240
8189
|
|
|
6241
8190
|
pending_message_metadata?: Record<string, string>;
|
|
6242
8191
|
}
|
|
@@ -6250,7 +8199,7 @@ export interface UpdateMessageRequest {
|
|
|
6250
8199
|
export interface UpdateMessageResponse {
|
|
6251
8200
|
duration: string;
|
|
6252
8201
|
|
|
6253
|
-
message:
|
|
8202
|
+
message: MessageResponse;
|
|
6254
8203
|
|
|
6255
8204
|
pending_message_metadata?: Record<string, string>;
|
|
6256
8205
|
}
|
|
@@ -6357,24 +8306,48 @@ export interface UpdateUsersResponse {
|
|
|
6357
8306
|
users: Record<string, FullUserResponse>;
|
|
6358
8307
|
}
|
|
6359
8308
|
|
|
8309
|
+
export interface UpdatedCallPermissionsEvent {
|
|
8310
|
+
call_cid: string;
|
|
8311
|
+
|
|
8312
|
+
created_at: Date;
|
|
8313
|
+
|
|
8314
|
+
own_capabilities: OwnCapability[];
|
|
8315
|
+
|
|
8316
|
+
user: UserResponse;
|
|
8317
|
+
|
|
8318
|
+
type: string;
|
|
8319
|
+
}
|
|
8320
|
+
|
|
6360
8321
|
export interface UpsertConfigRequest {
|
|
6361
8322
|
key: string;
|
|
6362
8323
|
|
|
6363
8324
|
async?: boolean;
|
|
6364
8325
|
|
|
8326
|
+
team?: string;
|
|
8327
|
+
|
|
8328
|
+
user_id?: string;
|
|
8329
|
+
|
|
8330
|
+
ai_image_config?: AIImageConfig;
|
|
8331
|
+
|
|
8332
|
+
ai_text_config?: AITextConfig;
|
|
8333
|
+
|
|
8334
|
+
ai_video_config?: AIVideoConfig;
|
|
8335
|
+
|
|
6365
8336
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
6366
8337
|
|
|
6367
8338
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
6368
8339
|
|
|
6369
8340
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
6370
8341
|
|
|
6371
|
-
|
|
8342
|
+
aws_rekognition_config?: AIImageConfig;
|
|
6372
8343
|
|
|
6373
8344
|
block_list_config?: BlockListConfig;
|
|
6374
8345
|
|
|
6375
|
-
bodyguard_config?:
|
|
8346
|
+
bodyguard_config?: AITextConfig;
|
|
6376
8347
|
|
|
6377
|
-
|
|
8348
|
+
google_vision_config?: GoogleVisionConfig;
|
|
8349
|
+
|
|
8350
|
+
user?: UserRequest;
|
|
6378
8351
|
|
|
6379
8352
|
velocity_filter_config?: VelocityFilterConfig;
|
|
6380
8353
|
}
|
|
@@ -6413,6 +8386,68 @@ export interface UpsertPushProviderResponse {
|
|
|
6413
8386
|
push_provider: PushProviderResponse;
|
|
6414
8387
|
}
|
|
6415
8388
|
|
|
8389
|
+
export interface User {
|
|
8390
|
+
banned: boolean;
|
|
8391
|
+
|
|
8392
|
+
id: string;
|
|
8393
|
+
|
|
8394
|
+
online: boolean;
|
|
8395
|
+
|
|
8396
|
+
role: string;
|
|
8397
|
+
|
|
8398
|
+
custom: Record<string, any>;
|
|
8399
|
+
|
|
8400
|
+
ban_expires?: Date;
|
|
8401
|
+
|
|
8402
|
+
created_at?: Date;
|
|
8403
|
+
|
|
8404
|
+
deactivated_at?: Date;
|
|
8405
|
+
|
|
8406
|
+
deleted_at?: Date;
|
|
8407
|
+
|
|
8408
|
+
invisible?: boolean;
|
|
8409
|
+
|
|
8410
|
+
language?: string;
|
|
8411
|
+
|
|
8412
|
+
last_active?: Date;
|
|
8413
|
+
|
|
8414
|
+
last_engaged_at?: Date;
|
|
8415
|
+
|
|
8416
|
+
revoke_tokens_issued_before?: Date;
|
|
8417
|
+
|
|
8418
|
+
updated_at?: Date;
|
|
8419
|
+
|
|
8420
|
+
teams?: string[];
|
|
8421
|
+
|
|
8422
|
+
privacy_settings?: PrivacySettings;
|
|
8423
|
+
|
|
8424
|
+
push_notifications?: PushNotificationSettings;
|
|
8425
|
+
}
|
|
8426
|
+
|
|
8427
|
+
export interface UserBannedEvent {
|
|
8428
|
+
channel_id: string;
|
|
8429
|
+
|
|
8430
|
+
channel_type: string;
|
|
8431
|
+
|
|
8432
|
+
cid: string;
|
|
8433
|
+
|
|
8434
|
+
created_at: Date;
|
|
8435
|
+
|
|
8436
|
+
shadow: boolean;
|
|
8437
|
+
|
|
8438
|
+
created_by: User;
|
|
8439
|
+
|
|
8440
|
+
type: string;
|
|
8441
|
+
|
|
8442
|
+
expiration?: Date;
|
|
8443
|
+
|
|
8444
|
+
reason?: string;
|
|
8445
|
+
|
|
8446
|
+
team?: string;
|
|
8447
|
+
|
|
8448
|
+
user?: User;
|
|
8449
|
+
}
|
|
8450
|
+
|
|
6416
8451
|
export interface UserBlock {
|
|
6417
8452
|
blocked_by_user_id: string;
|
|
6418
8453
|
|
|
@@ -6427,7 +8462,93 @@ export interface UserCustomEventRequest {
|
|
|
6427
8462
|
custom?: Record<string, any>;
|
|
6428
8463
|
}
|
|
6429
8464
|
|
|
8465
|
+
export interface UserDeactivatedEvent {
|
|
8466
|
+
created_at: Date;
|
|
8467
|
+
|
|
8468
|
+
created_by: User;
|
|
8469
|
+
|
|
8470
|
+
type: string;
|
|
8471
|
+
|
|
8472
|
+
user?: User;
|
|
8473
|
+
}
|
|
8474
|
+
|
|
8475
|
+
export interface UserDeletedEvent {
|
|
8476
|
+
created_at: Date;
|
|
8477
|
+
|
|
8478
|
+
delete_conversation_channels: boolean;
|
|
8479
|
+
|
|
8480
|
+
hard_delete: boolean;
|
|
8481
|
+
|
|
8482
|
+
mark_messages_deleted: boolean;
|
|
8483
|
+
|
|
8484
|
+
type: string;
|
|
8485
|
+
|
|
8486
|
+
user?: User;
|
|
8487
|
+
}
|
|
8488
|
+
|
|
8489
|
+
export interface UserEventPayload {
|
|
8490
|
+
banned: boolean;
|
|
8491
|
+
|
|
8492
|
+
created_at: Date;
|
|
8493
|
+
|
|
8494
|
+
id: string;
|
|
8495
|
+
|
|
8496
|
+
language: string;
|
|
8497
|
+
|
|
8498
|
+
online: boolean;
|
|
8499
|
+
|
|
8500
|
+
role: string;
|
|
8501
|
+
|
|
8502
|
+
updated_at: Date;
|
|
8503
|
+
|
|
8504
|
+
blocked_user_ids: string[];
|
|
8505
|
+
|
|
8506
|
+
teams: string[];
|
|
8507
|
+
|
|
8508
|
+
custom: Record<string, any>;
|
|
8509
|
+
|
|
8510
|
+
deactivated_at?: Date;
|
|
8511
|
+
|
|
8512
|
+
deleted_at?: Date;
|
|
8513
|
+
|
|
8514
|
+
image?: string;
|
|
8515
|
+
|
|
8516
|
+
invisible?: boolean;
|
|
8517
|
+
|
|
8518
|
+
last_active?: Date;
|
|
8519
|
+
|
|
8520
|
+
name?: string;
|
|
8521
|
+
|
|
8522
|
+
revoke_tokens_issued_before?: Date;
|
|
8523
|
+
|
|
8524
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
8525
|
+
}
|
|
8526
|
+
|
|
8527
|
+
export interface UserFeedbackReport {
|
|
8528
|
+
unreported_count: number;
|
|
8529
|
+
|
|
8530
|
+
count_by_rating: Record<string, number>;
|
|
8531
|
+
}
|
|
8532
|
+
|
|
8533
|
+
export interface UserFeedbackReportResponse {
|
|
8534
|
+
daily: DailyAggregateUserFeedbackReportResponse[];
|
|
8535
|
+
}
|
|
8536
|
+
|
|
8537
|
+
export interface UserFlaggedEvent {
|
|
8538
|
+
created_at: Date;
|
|
8539
|
+
|
|
8540
|
+
type: string;
|
|
8541
|
+
|
|
8542
|
+
target_user?: string;
|
|
8543
|
+
|
|
8544
|
+
target_users?: string[];
|
|
8545
|
+
|
|
8546
|
+
user?: User;
|
|
8547
|
+
}
|
|
8548
|
+
|
|
6430
8549
|
export interface UserInfoResponse {
|
|
8550
|
+
id: string;
|
|
8551
|
+
|
|
6431
8552
|
image: string;
|
|
6432
8553
|
|
|
6433
8554
|
name: string;
|
|
@@ -6444,9 +8565,9 @@ export interface UserMute {
|
|
|
6444
8565
|
|
|
6445
8566
|
expires?: Date;
|
|
6446
8567
|
|
|
6447
|
-
target?:
|
|
8568
|
+
target?: User;
|
|
6448
8569
|
|
|
6449
|
-
user?:
|
|
8570
|
+
user?: User;
|
|
6450
8571
|
}
|
|
6451
8572
|
|
|
6452
8573
|
export interface UserMuteResponse {
|
|
@@ -6461,40 +8582,24 @@ export interface UserMuteResponse {
|
|
|
6461
8582
|
user?: UserResponse;
|
|
6462
8583
|
}
|
|
6463
8584
|
|
|
6464
|
-
export interface
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
id: string;
|
|
6468
|
-
|
|
6469
|
-
online: boolean;
|
|
6470
|
-
|
|
6471
|
-
role: string;
|
|
6472
|
-
|
|
6473
|
-
custom: Record<string, any>;
|
|
6474
|
-
|
|
6475
|
-
ban_expires?: Date;
|
|
6476
|
-
|
|
6477
|
-
created_at?: Date;
|
|
6478
|
-
|
|
6479
|
-
deactivated_at?: Date;
|
|
6480
|
-
|
|
6481
|
-
deleted_at?: Date;
|
|
6482
|
-
|
|
6483
|
-
invisible?: boolean;
|
|
8585
|
+
export interface UserMutedEvent {
|
|
8586
|
+
created_at: Date;
|
|
6484
8587
|
|
|
6485
|
-
|
|
8588
|
+
type: string;
|
|
6486
8589
|
|
|
6487
|
-
|
|
8590
|
+
target_user?: string;
|
|
6488
8591
|
|
|
6489
|
-
|
|
8592
|
+
target_users?: string[];
|
|
6490
8593
|
|
|
6491
|
-
|
|
8594
|
+
user?: User;
|
|
8595
|
+
}
|
|
6492
8596
|
|
|
6493
|
-
|
|
8597
|
+
export interface UserReactivatedEvent {
|
|
8598
|
+
created_at: Date;
|
|
6494
8599
|
|
|
6495
|
-
|
|
8600
|
+
type: string;
|
|
6496
8601
|
|
|
6497
|
-
|
|
8602
|
+
user?: User;
|
|
6498
8603
|
}
|
|
6499
8604
|
|
|
6500
8605
|
export interface UserRequest {
|
|
@@ -6514,7 +8619,7 @@ export interface UserRequest {
|
|
|
6514
8619
|
|
|
6515
8620
|
custom?: Record<string, any>;
|
|
6516
8621
|
|
|
6517
|
-
privacy_settings?:
|
|
8622
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
6518
8623
|
|
|
6519
8624
|
push_notifications?: PushNotificationSettingsInput;
|
|
6520
8625
|
}
|
|
@@ -6540,7 +8645,7 @@ export interface UserResponse {
|
|
|
6540
8645
|
|
|
6541
8646
|
blocked_user_ids: string[];
|
|
6542
8647
|
|
|
6543
|
-
devices:
|
|
8648
|
+
devices: DeviceResponse[];
|
|
6544
8649
|
|
|
6545
8650
|
teams: string[];
|
|
6546
8651
|
|
|
@@ -6568,6 +8673,8 @@ export interface UserResponse {
|
|
|
6568
8673
|
export interface UserSessionStats {
|
|
6569
8674
|
freeze_duration_seconds: number;
|
|
6570
8675
|
|
|
8676
|
+
group: string;
|
|
8677
|
+
|
|
6571
8678
|
max_freeze_fraction: number;
|
|
6572
8679
|
|
|
6573
8680
|
max_freezes_duration_seconds: number;
|
|
@@ -6590,7 +8697,9 @@ export interface UserSessionStats {
|
|
|
6590
8697
|
|
|
6591
8698
|
total_pixels_out: number;
|
|
6592
8699
|
|
|
6593
|
-
|
|
8700
|
+
average_connection_time?: number;
|
|
8701
|
+
|
|
8702
|
+
browser?: string;
|
|
6594
8703
|
|
|
6595
8704
|
browser_version?: string;
|
|
6596
8705
|
|
|
@@ -6654,16 +8763,12 @@ export interface UserSessionStats {
|
|
|
6654
8763
|
|
|
6655
8764
|
pub_sub_hints?: MediaPubSubHint;
|
|
6656
8765
|
|
|
6657
|
-
publisher_audio_mos?: MOSStats;
|
|
6658
|
-
|
|
6659
8766
|
publisher_jitter?: TimeStats;
|
|
6660
8767
|
|
|
6661
8768
|
publisher_latency?: TimeStats;
|
|
6662
8769
|
|
|
6663
8770
|
publisher_video_quality_limitation_duration_seconds?: Record<string, number>;
|
|
6664
8771
|
|
|
6665
|
-
subscriber_audio_mos?: MOSStats;
|
|
6666
|
-
|
|
6667
8772
|
subscriber_jitter?: TimeStats;
|
|
6668
8773
|
|
|
6669
8774
|
subscriber_latency?: TimeStats;
|
|
@@ -6681,34 +8786,106 @@ export interface UserStats {
|
|
|
6681
8786
|
rating?: number;
|
|
6682
8787
|
}
|
|
6683
8788
|
|
|
8789
|
+
export interface UserUnbannedEvent {
|
|
8790
|
+
channel_id: string;
|
|
8791
|
+
|
|
8792
|
+
channel_type: string;
|
|
8793
|
+
|
|
8794
|
+
cid: string;
|
|
8795
|
+
|
|
8796
|
+
created_at: Date;
|
|
8797
|
+
|
|
8798
|
+
shadow: boolean;
|
|
8799
|
+
|
|
8800
|
+
type: string;
|
|
8801
|
+
|
|
8802
|
+
team?: string;
|
|
8803
|
+
|
|
8804
|
+
user?: User;
|
|
8805
|
+
}
|
|
8806
|
+
|
|
8807
|
+
export interface UserUnmutedEvent {
|
|
8808
|
+
created_at: Date;
|
|
8809
|
+
|
|
8810
|
+
type: string;
|
|
8811
|
+
|
|
8812
|
+
target_user?: string;
|
|
8813
|
+
|
|
8814
|
+
target_users?: string[];
|
|
8815
|
+
|
|
8816
|
+
user?: User;
|
|
8817
|
+
}
|
|
8818
|
+
|
|
8819
|
+
export interface UserUnreadReminderEvent {
|
|
8820
|
+
created_at: Date;
|
|
8821
|
+
|
|
8822
|
+
channels: Record<string, ChannelMessages>;
|
|
8823
|
+
|
|
8824
|
+
type: string;
|
|
8825
|
+
|
|
8826
|
+
user?: User;
|
|
8827
|
+
}
|
|
8828
|
+
|
|
8829
|
+
export interface UserUpdatedEvent {
|
|
8830
|
+
created_at: Date;
|
|
8831
|
+
|
|
8832
|
+
user: UserEventPayload;
|
|
8833
|
+
|
|
8834
|
+
type: string;
|
|
8835
|
+
|
|
8836
|
+
received_at?: Date;
|
|
8837
|
+
}
|
|
8838
|
+
|
|
6684
8839
|
export interface VelocityFilterConfig {
|
|
6685
|
-
|
|
8840
|
+
cascading_actions: boolean;
|
|
8841
|
+
|
|
8842
|
+
enabled: boolean;
|
|
8843
|
+
|
|
8844
|
+
first_message_only: boolean;
|
|
6686
8845
|
|
|
6687
|
-
|
|
8846
|
+
rules: VelocityFilterConfigRule[];
|
|
8847
|
+
|
|
8848
|
+
async?: boolean;
|
|
6688
8849
|
}
|
|
6689
8850
|
|
|
6690
8851
|
export interface VelocityFilterConfigRule {
|
|
6691
8852
|
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
6692
8853
|
|
|
6693
|
-
|
|
8854
|
+
ban_duration: number;
|
|
6694
8855
|
|
|
6695
|
-
|
|
8856
|
+
cascading_action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
6696
8857
|
|
|
6697
|
-
|
|
6698
|
-
}
|
|
8858
|
+
cascading_threshold: number;
|
|
6699
8859
|
|
|
6700
|
-
|
|
6701
|
-
|
|
8860
|
+
check_message_context: boolean;
|
|
8861
|
+
|
|
8862
|
+
fast_spam_threshold: number;
|
|
8863
|
+
|
|
8864
|
+
fast_spam_ttl: number;
|
|
8865
|
+
|
|
8866
|
+
ip_ban: boolean;
|
|
8867
|
+
|
|
8868
|
+
shadow_ban: boolean;
|
|
6702
8869
|
|
|
6703
|
-
|
|
8870
|
+
slow_spam_threshold: number;
|
|
8871
|
+
|
|
8872
|
+
slow_spam_ttl: number;
|
|
8873
|
+
|
|
8874
|
+
slow_spam_ban_duration?: number;
|
|
6704
8875
|
}
|
|
6705
8876
|
|
|
6706
|
-
export interface
|
|
8877
|
+
export interface VideoDimension {
|
|
6707
8878
|
height: number;
|
|
6708
8879
|
|
|
6709
8880
|
width: number;
|
|
6710
8881
|
}
|
|
6711
8882
|
|
|
8883
|
+
export interface VideoQuality {
|
|
8884
|
+
usage_type?: string;
|
|
8885
|
+
|
|
8886
|
+
resolution?: VideoDimension;
|
|
8887
|
+
}
|
|
8888
|
+
|
|
6712
8889
|
export interface VideoSettings {
|
|
6713
8890
|
access_request_enabled: boolean;
|
|
6714
8891
|
|
|
@@ -6750,7 +8927,7 @@ export interface VoteData {
|
|
|
6750
8927
|
|
|
6751
8928
|
option_id?: string;
|
|
6752
8929
|
|
|
6753
|
-
option?:
|
|
8930
|
+
option?: PollOptionResponseData;
|
|
6754
8931
|
}
|
|
6755
8932
|
|
|
6756
8933
|
export interface WSEvent {
|
|
@@ -6786,25 +8963,29 @@ export interface WSEvent {
|
|
|
6786
8963
|
|
|
6787
8964
|
channel?: ChannelResponse;
|
|
6788
8965
|
|
|
6789
|
-
created_by?:
|
|
8966
|
+
created_by?: UserResponse;
|
|
6790
8967
|
|
|
6791
|
-
me?:
|
|
8968
|
+
me?: OwnUserResponse;
|
|
6792
8969
|
|
|
6793
8970
|
member?: ChannelMember;
|
|
6794
8971
|
|
|
6795
|
-
message?:
|
|
8972
|
+
message?: MessageResponse;
|
|
6796
8973
|
|
|
6797
8974
|
message_update?: MessageUpdate;
|
|
6798
8975
|
|
|
6799
|
-
poll?:
|
|
8976
|
+
poll?: PollResponseData;
|
|
6800
8977
|
|
|
6801
|
-
poll_vote?:
|
|
8978
|
+
poll_vote?: PollVoteResponseData;
|
|
6802
8979
|
|
|
6803
|
-
reaction?:
|
|
8980
|
+
reaction?: ReactionResponse;
|
|
6804
8981
|
|
|
6805
8982
|
thread?: ThreadResponse;
|
|
6806
8983
|
|
|
6807
|
-
user?:
|
|
8984
|
+
user?: UserResponse;
|
|
8985
|
+
}
|
|
8986
|
+
|
|
8987
|
+
export interface WebhookEvent {
|
|
8988
|
+
type: string;
|
|
6808
8989
|
}
|
|
6809
8990
|
|
|
6810
8991
|
export interface WrappedUnreadCountsResponse {
|