@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
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
export interface AIImageConfig {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
rules: AWSRekognitionRule[];
|
|
4
|
+
async?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface AITextConfig {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
profile: string;
|
|
9
|
+
rules: BodyguardRule[];
|
|
10
|
+
severity_rules: BodyguardSeverityRule[];
|
|
11
|
+
async?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface AIVideoConfig {
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
rules: AWSRekognitionRule[];
|
|
16
|
+
async?: boolean;
|
|
17
|
+
}
|
|
1
18
|
export interface APIError {
|
|
2
19
|
code: number;
|
|
3
20
|
duration: string;
|
|
@@ -36,13 +53,10 @@ export interface APNS {
|
|
|
36
53
|
body: string;
|
|
37
54
|
title: string;
|
|
38
55
|
}
|
|
39
|
-
export interface AWSRekognitionConfig {
|
|
40
|
-
enabled?: boolean;
|
|
41
|
-
rules?: AWSRekognitionRule[];
|
|
42
|
-
}
|
|
43
56
|
export interface AWSRekognitionRule {
|
|
44
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
57
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
45
58
|
label: string;
|
|
59
|
+
min_confidence: number;
|
|
46
60
|
}
|
|
47
61
|
export interface Action {
|
|
48
62
|
name: string;
|
|
@@ -55,19 +69,22 @@ export interface ActionLog {
|
|
|
55
69
|
created_at: Date;
|
|
56
70
|
id: string;
|
|
57
71
|
reason: string;
|
|
72
|
+
reporter_type: string;
|
|
58
73
|
review_queue_item_id: string;
|
|
59
74
|
target_user_id: string;
|
|
60
75
|
type: string;
|
|
61
76
|
custom: Record<string, any>;
|
|
62
77
|
review_queue_item?: ReviewQueueItem;
|
|
63
|
-
target_user?:
|
|
64
|
-
user?:
|
|
78
|
+
target_user?: User;
|
|
79
|
+
user?: User;
|
|
65
80
|
}
|
|
66
81
|
export interface ActionLogResponse {
|
|
67
82
|
created_at: Date;
|
|
68
83
|
id: string;
|
|
69
84
|
reason: string;
|
|
85
|
+
target_user_id: string;
|
|
70
86
|
type: string;
|
|
87
|
+
user_id: string;
|
|
71
88
|
custom: Record<string, any>;
|
|
72
89
|
review_queue_item?: ReviewQueueItem;
|
|
73
90
|
target_user?: UserResponse;
|
|
@@ -78,6 +95,10 @@ export interface AggregatedStats {
|
|
|
78
95
|
publisher_aggregate_stats?: PublisherAggregateStats;
|
|
79
96
|
turn?: TURNAggregatedStats;
|
|
80
97
|
}
|
|
98
|
+
export interface AnyEvent {
|
|
99
|
+
created_at: Date;
|
|
100
|
+
type: string;
|
|
101
|
+
}
|
|
81
102
|
export interface AppResponseFields {
|
|
82
103
|
async_url_enrich_enabled: boolean;
|
|
83
104
|
auto_translation_enabled: boolean;
|
|
@@ -103,7 +124,6 @@ export interface AppResponseFields {
|
|
|
103
124
|
sqs_url: string;
|
|
104
125
|
suspended: boolean;
|
|
105
126
|
suspended_explanation: string;
|
|
106
|
-
video_provider: string;
|
|
107
127
|
webhook_url: string;
|
|
108
128
|
user_search_disallowed_roles: string[];
|
|
109
129
|
webhook_events: string[];
|
|
@@ -119,9 +139,7 @@ export interface AppResponseFields {
|
|
|
119
139
|
allowed_flag_reasons?: string[];
|
|
120
140
|
geofences?: GeofenceResponse[];
|
|
121
141
|
image_moderation_labels?: string[];
|
|
122
|
-
agora_options?: Config;
|
|
123
142
|
datadog_info?: DataDogInfo;
|
|
124
|
-
hms_options?: Config;
|
|
125
143
|
}
|
|
126
144
|
export interface AsyncModerationCallbackConfig {
|
|
127
145
|
mode?: 'CALLBACK_MODE_NONE' | 'CALLBACK_MODE_REST' | 'CALLBACK_MODE_TWIRP';
|
|
@@ -142,10 +160,13 @@ export interface Attachment {
|
|
|
142
160
|
footer?: string;
|
|
143
161
|
footer_icon?: string;
|
|
144
162
|
image_url?: string;
|
|
163
|
+
latitude?: number;
|
|
164
|
+
longitude?: number;
|
|
145
165
|
og_scrape_url?: string;
|
|
146
166
|
original_height?: number;
|
|
147
167
|
original_width?: number;
|
|
148
168
|
pretext?: string;
|
|
169
|
+
stopped_sharing?: boolean;
|
|
149
170
|
text?: string;
|
|
150
171
|
thumb_url?: string;
|
|
151
172
|
title?: string;
|
|
@@ -190,17 +211,19 @@ export interface AutomodDetails {
|
|
|
190
211
|
result?: MessageModerationResult;
|
|
191
212
|
}
|
|
192
213
|
export interface AutomodPlatformCircumventionConfig {
|
|
193
|
-
enabled
|
|
194
|
-
rules
|
|
214
|
+
enabled: boolean;
|
|
215
|
+
rules: AutomodRule[];
|
|
216
|
+
async?: boolean;
|
|
195
217
|
}
|
|
196
218
|
export interface AutomodRule {
|
|
197
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
219
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
198
220
|
label: string;
|
|
199
221
|
threshold: number;
|
|
200
222
|
}
|
|
201
223
|
export interface AutomodSemanticFiltersConfig {
|
|
202
|
-
enabled
|
|
203
|
-
rules
|
|
224
|
+
enabled: boolean;
|
|
225
|
+
rules: AutomodSemanticFiltersRule[];
|
|
226
|
+
async?: boolean;
|
|
204
227
|
}
|
|
205
228
|
export interface AutomodSemanticFiltersRule {
|
|
206
229
|
action: 'flag' | 'shadow' | 'remove';
|
|
@@ -208,8 +231,9 @@ export interface AutomodSemanticFiltersRule {
|
|
|
208
231
|
threshold: number;
|
|
209
232
|
}
|
|
210
233
|
export interface AutomodToxicityConfig {
|
|
211
|
-
enabled
|
|
212
|
-
rules
|
|
234
|
+
enabled: boolean;
|
|
235
|
+
rules: AutomodRule[];
|
|
236
|
+
async?: boolean;
|
|
213
237
|
}
|
|
214
238
|
export interface AzureRequest {
|
|
215
239
|
abs_account_name: string;
|
|
@@ -235,11 +259,12 @@ export interface Ban {
|
|
|
235
259
|
expires?: Date;
|
|
236
260
|
reason?: string;
|
|
237
261
|
channel?: Channel;
|
|
238
|
-
created_by?:
|
|
239
|
-
target?:
|
|
262
|
+
created_by?: User;
|
|
263
|
+
target?: User;
|
|
240
264
|
}
|
|
241
265
|
export interface BanActionRequest {
|
|
242
266
|
channel_ban_only?: boolean;
|
|
267
|
+
ip_ban?: boolean;
|
|
243
268
|
reason?: string;
|
|
244
269
|
shadow?: boolean;
|
|
245
270
|
timeout?: number;
|
|
@@ -264,8 +289,9 @@ export interface BanResponse {
|
|
|
264
289
|
user?: UserResponse;
|
|
265
290
|
}
|
|
266
291
|
export interface BlockListConfig {
|
|
267
|
-
enabled
|
|
268
|
-
rules
|
|
292
|
+
enabled: boolean;
|
|
293
|
+
rules: BlockListRule[];
|
|
294
|
+
async?: boolean;
|
|
269
295
|
}
|
|
270
296
|
export interface BlockListOptions {
|
|
271
297
|
behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -279,7 +305,7 @@ export interface BlockListResponse {
|
|
|
279
305
|
updated_at?: Date;
|
|
280
306
|
}
|
|
281
307
|
export interface BlockListRule {
|
|
282
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
308
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
283
309
|
name: string;
|
|
284
310
|
}
|
|
285
311
|
export interface BlockUserRequest {
|
|
@@ -299,6 +325,13 @@ export interface BlockUsersResponse {
|
|
|
299
325
|
created_at: Date;
|
|
300
326
|
duration: string;
|
|
301
327
|
}
|
|
328
|
+
export interface BlockedUserEvent {
|
|
329
|
+
call_cid: string;
|
|
330
|
+
created_at: Date;
|
|
331
|
+
user: UserResponse;
|
|
332
|
+
type: string;
|
|
333
|
+
blocked_by_user?: UserResponse;
|
|
334
|
+
}
|
|
302
335
|
export interface BlockedUserResponse {
|
|
303
336
|
blocked_user_id: string;
|
|
304
337
|
created_at: Date;
|
|
@@ -306,20 +339,19 @@ export interface BlockedUserResponse {
|
|
|
306
339
|
blocked_user: UserResponse;
|
|
307
340
|
user: UserResponse;
|
|
308
341
|
}
|
|
309
|
-
export interface BodyguardConfig {
|
|
310
|
-
enabled?: boolean;
|
|
311
|
-
profile?: string;
|
|
312
|
-
rules?: BodyguardRule[];
|
|
313
|
-
severity_rules?: BodyguardSeverityRule[];
|
|
314
|
-
}
|
|
315
342
|
export interface BodyguardRule {
|
|
316
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
343
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
317
344
|
label: string;
|
|
345
|
+
severity_rules: BodyguardSeverityRule[];
|
|
318
346
|
}
|
|
319
347
|
export interface BodyguardSeverityRule {
|
|
320
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
348
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
321
349
|
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
322
350
|
}
|
|
351
|
+
export interface Bound {
|
|
352
|
+
inclusive: boolean;
|
|
353
|
+
value: number;
|
|
354
|
+
}
|
|
323
355
|
export interface BroadcastSettings {
|
|
324
356
|
enabled: boolean;
|
|
325
357
|
hls?: HLSSettings;
|
|
@@ -335,30 +367,199 @@ export interface BroadcastSettingsResponse {
|
|
|
335
367
|
hls: HLSSettingsResponse;
|
|
336
368
|
rtmp: RTMPSettingsResponse;
|
|
337
369
|
}
|
|
370
|
+
export interface CallAcceptedEvent {
|
|
371
|
+
call_cid: string;
|
|
372
|
+
created_at: Date;
|
|
373
|
+
call: CallResponse;
|
|
374
|
+
user: UserResponse;
|
|
375
|
+
type: string;
|
|
376
|
+
}
|
|
377
|
+
export interface CallClosedCaption {
|
|
378
|
+
end_time: Date;
|
|
379
|
+
speaker_id: string;
|
|
380
|
+
start_time: Date;
|
|
381
|
+
text: string;
|
|
382
|
+
user: UserResponse;
|
|
383
|
+
}
|
|
384
|
+
export interface CallClosedCaptionsFailedEvent {
|
|
385
|
+
call_cid: string;
|
|
386
|
+
created_at: Date;
|
|
387
|
+
type: string;
|
|
388
|
+
}
|
|
389
|
+
export interface CallClosedCaptionsStartedEvent {
|
|
390
|
+
call_cid: string;
|
|
391
|
+
created_at: Date;
|
|
392
|
+
type: string;
|
|
393
|
+
}
|
|
394
|
+
export interface CallClosedCaptionsStoppedEvent {
|
|
395
|
+
call_cid: string;
|
|
396
|
+
created_at: Date;
|
|
397
|
+
type: string;
|
|
398
|
+
}
|
|
399
|
+
export interface CallCreatedEvent {
|
|
400
|
+
call_cid: string;
|
|
401
|
+
created_at: Date;
|
|
402
|
+
members: MemberResponse[];
|
|
403
|
+
call: CallResponse;
|
|
404
|
+
type: string;
|
|
405
|
+
}
|
|
406
|
+
export interface CallDeletedEvent {
|
|
407
|
+
call_cid: string;
|
|
408
|
+
created_at: Date;
|
|
409
|
+
call: CallResponse;
|
|
410
|
+
type: string;
|
|
411
|
+
}
|
|
412
|
+
export interface CallDurationReport {
|
|
413
|
+
histogram: ReportByHistogramBucket[];
|
|
414
|
+
}
|
|
415
|
+
export interface CallDurationReportResponse {
|
|
416
|
+
daily: DailyAggregateCallDurationReportResponse[];
|
|
417
|
+
}
|
|
418
|
+
export interface CallEndedEvent {
|
|
419
|
+
call_cid: string;
|
|
420
|
+
created_at: Date;
|
|
421
|
+
call: CallResponse;
|
|
422
|
+
type: string;
|
|
423
|
+
user?: UserResponse;
|
|
424
|
+
}
|
|
338
425
|
export interface CallEvent {
|
|
339
426
|
description: string;
|
|
340
427
|
end_timestamp: number;
|
|
428
|
+
internal: boolean;
|
|
429
|
+
kind: string;
|
|
341
430
|
severity: number;
|
|
342
431
|
timestamp: number;
|
|
343
432
|
type: string;
|
|
433
|
+
category?: string;
|
|
344
434
|
component?: string;
|
|
345
|
-
|
|
435
|
+
issue_tags?: string[];
|
|
436
|
+
}
|
|
437
|
+
export interface CallHLSBroadcastingFailedEvent {
|
|
438
|
+
call_cid: string;
|
|
439
|
+
created_at: Date;
|
|
440
|
+
type: string;
|
|
441
|
+
}
|
|
442
|
+
export interface CallHLSBroadcastingStartedEvent {
|
|
443
|
+
call_cid: string;
|
|
444
|
+
created_at: Date;
|
|
445
|
+
hls_playlist_url: string;
|
|
446
|
+
type: string;
|
|
447
|
+
}
|
|
448
|
+
export interface CallHLSBroadcastingStoppedEvent {
|
|
449
|
+
call_cid: string;
|
|
450
|
+
created_at: Date;
|
|
451
|
+
type: string;
|
|
346
452
|
}
|
|
347
453
|
export interface CallIngressResponse {
|
|
348
454
|
rtmp: RTMPIngress;
|
|
349
455
|
}
|
|
456
|
+
export interface CallLiveStartedEvent {
|
|
457
|
+
call_cid: string;
|
|
458
|
+
created_at: Date;
|
|
459
|
+
call: CallResponse;
|
|
460
|
+
type: string;
|
|
461
|
+
}
|
|
462
|
+
export interface CallMemberAddedEvent {
|
|
463
|
+
call_cid: string;
|
|
464
|
+
created_at: Date;
|
|
465
|
+
members: MemberResponse[];
|
|
466
|
+
call: CallResponse;
|
|
467
|
+
type: string;
|
|
468
|
+
}
|
|
469
|
+
export interface CallMemberRemovedEvent {
|
|
470
|
+
call_cid: string;
|
|
471
|
+
created_at: Date;
|
|
472
|
+
members: string[];
|
|
473
|
+
call: CallResponse;
|
|
474
|
+
type: string;
|
|
475
|
+
}
|
|
476
|
+
export interface CallMemberUpdatedEvent {
|
|
477
|
+
call_cid: string;
|
|
478
|
+
created_at: Date;
|
|
479
|
+
members: MemberResponse[];
|
|
480
|
+
call: CallResponse;
|
|
481
|
+
type: string;
|
|
482
|
+
}
|
|
483
|
+
export interface CallMemberUpdatedPermissionEvent {
|
|
484
|
+
call_cid: string;
|
|
485
|
+
created_at: Date;
|
|
486
|
+
members: MemberResponse[];
|
|
487
|
+
call: CallResponse;
|
|
488
|
+
capabilities_by_role: Record<string, string[]>;
|
|
489
|
+
type: string;
|
|
490
|
+
}
|
|
491
|
+
export interface CallMissedEvent {
|
|
492
|
+
call_cid: string;
|
|
493
|
+
created_at: Date;
|
|
494
|
+
notify_user: boolean;
|
|
495
|
+
session_id: string;
|
|
496
|
+
members: MemberResponse[];
|
|
497
|
+
call: CallResponse;
|
|
498
|
+
user: UserResponse;
|
|
499
|
+
type: string;
|
|
500
|
+
}
|
|
501
|
+
export interface CallNotificationEvent {
|
|
502
|
+
call_cid: string;
|
|
503
|
+
created_at: Date;
|
|
504
|
+
session_id: string;
|
|
505
|
+
members: MemberResponse[];
|
|
506
|
+
call: CallResponse;
|
|
507
|
+
user: UserResponse;
|
|
508
|
+
type: string;
|
|
509
|
+
}
|
|
510
|
+
export interface CallParticipantCountReport {
|
|
511
|
+
histogram: ReportByHistogramBucket[];
|
|
512
|
+
}
|
|
513
|
+
export interface CallParticipantCountReportResponse {
|
|
514
|
+
daily: DailyAggregateCallParticipantCountReportResponse[];
|
|
515
|
+
}
|
|
350
516
|
export interface CallParticipantResponse {
|
|
351
517
|
joined_at: Date;
|
|
352
518
|
role: string;
|
|
353
519
|
user_session_id: string;
|
|
354
520
|
user: UserResponse;
|
|
355
521
|
}
|
|
522
|
+
export interface CallReactionEvent {
|
|
523
|
+
call_cid: string;
|
|
524
|
+
created_at: Date;
|
|
525
|
+
reaction: ReactionResponse;
|
|
526
|
+
type: string;
|
|
527
|
+
}
|
|
356
528
|
export interface CallRecording {
|
|
357
529
|
end_time: Date;
|
|
358
530
|
filename: string;
|
|
359
531
|
start_time: Date;
|
|
360
532
|
url: string;
|
|
361
533
|
}
|
|
534
|
+
export interface CallRecordingFailedEvent {
|
|
535
|
+
call_cid: string;
|
|
536
|
+
created_at: Date;
|
|
537
|
+
type: string;
|
|
538
|
+
}
|
|
539
|
+
export interface CallRecordingReadyEvent {
|
|
540
|
+
call_cid: string;
|
|
541
|
+
created_at: Date;
|
|
542
|
+
call_recording: CallRecording;
|
|
543
|
+
type: string;
|
|
544
|
+
}
|
|
545
|
+
export interface CallRecordingStartedEvent {
|
|
546
|
+
call_cid: string;
|
|
547
|
+
created_at: Date;
|
|
548
|
+
type: string;
|
|
549
|
+
}
|
|
550
|
+
export interface CallRecordingStoppedEvent {
|
|
551
|
+
call_cid: string;
|
|
552
|
+
created_at: Date;
|
|
553
|
+
type: string;
|
|
554
|
+
}
|
|
555
|
+
export interface CallRejectedEvent {
|
|
556
|
+
call_cid: string;
|
|
557
|
+
created_at: Date;
|
|
558
|
+
call: CallResponse;
|
|
559
|
+
user: UserResponse;
|
|
560
|
+
type: string;
|
|
561
|
+
reason?: string;
|
|
562
|
+
}
|
|
362
563
|
export interface CallRequest {
|
|
363
564
|
created_by_id?: string;
|
|
364
565
|
starts_at?: Date;
|
|
@@ -371,6 +572,7 @@ export interface CallRequest {
|
|
|
371
572
|
}
|
|
372
573
|
export interface CallResponse {
|
|
373
574
|
backstage: boolean;
|
|
575
|
+
captioning: boolean;
|
|
374
576
|
cid: string;
|
|
375
577
|
created_at: Date;
|
|
376
578
|
current_session_id: string;
|
|
@@ -392,6 +594,56 @@ export interface CallResponse {
|
|
|
392
594
|
session?: CallSessionResponse;
|
|
393
595
|
thumbnails?: ThumbnailResponse;
|
|
394
596
|
}
|
|
597
|
+
export interface CallRingEvent {
|
|
598
|
+
call_cid: string;
|
|
599
|
+
created_at: Date;
|
|
600
|
+
session_id: string;
|
|
601
|
+
video: boolean;
|
|
602
|
+
members: MemberResponse[];
|
|
603
|
+
call: CallResponse;
|
|
604
|
+
user: UserResponse;
|
|
605
|
+
type: string;
|
|
606
|
+
}
|
|
607
|
+
export interface CallRtmpBroadcastFailedEvent {
|
|
608
|
+
call_cid: string;
|
|
609
|
+
created_at: Date;
|
|
610
|
+
name: string;
|
|
611
|
+
type: string;
|
|
612
|
+
}
|
|
613
|
+
export interface CallRtmpBroadcastStartedEvent {
|
|
614
|
+
call_cid: string;
|
|
615
|
+
created_at: Date;
|
|
616
|
+
name: string;
|
|
617
|
+
type: string;
|
|
618
|
+
}
|
|
619
|
+
export interface CallRtmpBroadcastStoppedEvent {
|
|
620
|
+
call_cid: string;
|
|
621
|
+
created_at: Date;
|
|
622
|
+
name: string;
|
|
623
|
+
type: string;
|
|
624
|
+
}
|
|
625
|
+
export interface CallSessionEndedEvent {
|
|
626
|
+
call_cid: string;
|
|
627
|
+
created_at: Date;
|
|
628
|
+
session_id: string;
|
|
629
|
+
call: CallResponse;
|
|
630
|
+
type: string;
|
|
631
|
+
}
|
|
632
|
+
export interface CallSessionParticipantJoinedEvent {
|
|
633
|
+
call_cid: string;
|
|
634
|
+
created_at: Date;
|
|
635
|
+
session_id: string;
|
|
636
|
+
participant: CallParticipantResponse;
|
|
637
|
+
type: string;
|
|
638
|
+
}
|
|
639
|
+
export interface CallSessionParticipantLeftEvent {
|
|
640
|
+
call_cid: string;
|
|
641
|
+
created_at: Date;
|
|
642
|
+
duration_seconds: number;
|
|
643
|
+
session_id: string;
|
|
644
|
+
participant: CallParticipantResponse;
|
|
645
|
+
type: string;
|
|
646
|
+
}
|
|
395
647
|
export interface CallSessionResponse {
|
|
396
648
|
anonymous_participant_count: number;
|
|
397
649
|
id: string;
|
|
@@ -406,6 +658,13 @@ export interface CallSessionResponse {
|
|
|
406
658
|
started_at?: Date;
|
|
407
659
|
timer_ends_at?: Date;
|
|
408
660
|
}
|
|
661
|
+
export interface CallSessionStartedEvent {
|
|
662
|
+
call_cid: string;
|
|
663
|
+
created_at: Date;
|
|
664
|
+
session_id: string;
|
|
665
|
+
call: CallResponse;
|
|
666
|
+
type: string;
|
|
667
|
+
}
|
|
409
668
|
export interface CallSettings {
|
|
410
669
|
audio?: AudioSettings;
|
|
411
670
|
backstage?: BackstageSettings;
|
|
@@ -457,6 +716,7 @@ export interface CallStatsReportSummaryResponse {
|
|
|
457
716
|
call_status: string;
|
|
458
717
|
first_stats_time: Date;
|
|
459
718
|
created_at?: Date;
|
|
719
|
+
min_user_rating?: number;
|
|
460
720
|
quality_score?: number;
|
|
461
721
|
}
|
|
462
722
|
export interface CallTimeline {
|
|
@@ -468,6 +728,27 @@ export interface CallTranscription {
|
|
|
468
728
|
start_time: Date;
|
|
469
729
|
url: string;
|
|
470
730
|
}
|
|
731
|
+
export interface CallTranscriptionFailedEvent {
|
|
732
|
+
call_cid: string;
|
|
733
|
+
created_at: Date;
|
|
734
|
+
type: string;
|
|
735
|
+
}
|
|
736
|
+
export interface CallTranscriptionReadyEvent {
|
|
737
|
+
call_cid: string;
|
|
738
|
+
created_at: Date;
|
|
739
|
+
call_transcription: CallTranscription;
|
|
740
|
+
type: string;
|
|
741
|
+
}
|
|
742
|
+
export interface CallTranscriptionStartedEvent {
|
|
743
|
+
call_cid: string;
|
|
744
|
+
created_at: Date;
|
|
745
|
+
type: string;
|
|
746
|
+
}
|
|
747
|
+
export interface CallTranscriptionStoppedEvent {
|
|
748
|
+
call_cid: string;
|
|
749
|
+
created_at: Date;
|
|
750
|
+
type: string;
|
|
751
|
+
}
|
|
471
752
|
export interface CallType {
|
|
472
753
|
app_pk: number;
|
|
473
754
|
created_at: Date;
|
|
@@ -487,6 +768,80 @@ export interface CallTypeResponse {
|
|
|
487
768
|
settings: CallSettingsResponse;
|
|
488
769
|
external_storage?: string;
|
|
489
770
|
}
|
|
771
|
+
export interface CallUpdatedEvent {
|
|
772
|
+
call_cid: string;
|
|
773
|
+
created_at: Date;
|
|
774
|
+
call: CallResponse;
|
|
775
|
+
capabilities_by_role: Record<string, string[]>;
|
|
776
|
+
type: string;
|
|
777
|
+
}
|
|
778
|
+
export interface CallUserMutedEvent {
|
|
779
|
+
call_cid: string;
|
|
780
|
+
created_at: Date;
|
|
781
|
+
from_user_id: string;
|
|
782
|
+
muted_user_ids: string[];
|
|
783
|
+
type: string;
|
|
784
|
+
}
|
|
785
|
+
export interface CallsPerDayReport {
|
|
786
|
+
count: number;
|
|
787
|
+
}
|
|
788
|
+
export interface CallsPerDayReportResponse {
|
|
789
|
+
daily: DailyAggregateCallsPerDayReportResponse[];
|
|
790
|
+
}
|
|
791
|
+
export interface CampaignChannelTemplate {
|
|
792
|
+
type: string;
|
|
793
|
+
custom: Record<string, any>;
|
|
794
|
+
id?: string;
|
|
795
|
+
team?: string;
|
|
796
|
+
members?: string[];
|
|
797
|
+
}
|
|
798
|
+
export interface CampaignCompletedEvent {
|
|
799
|
+
created_at: Date;
|
|
800
|
+
type: string;
|
|
801
|
+
received_at?: Date;
|
|
802
|
+
campaign?: CampaignResponse;
|
|
803
|
+
}
|
|
804
|
+
export interface CampaignMessageTemplate {
|
|
805
|
+
poll_id: string;
|
|
806
|
+
text: string;
|
|
807
|
+
attachments: Attachment[];
|
|
808
|
+
custom: Record<string, any>;
|
|
809
|
+
}
|
|
810
|
+
export interface CampaignResponse {
|
|
811
|
+
create_channels: boolean;
|
|
812
|
+
created_at: Date;
|
|
813
|
+
description: string;
|
|
814
|
+
id: string;
|
|
815
|
+
name: string;
|
|
816
|
+
sender_id: string;
|
|
817
|
+
skip_push: boolean;
|
|
818
|
+
skip_webhook: boolean;
|
|
819
|
+
status: string;
|
|
820
|
+
updated_at: Date;
|
|
821
|
+
segment_ids: string[];
|
|
822
|
+
segments: Segment[];
|
|
823
|
+
user_ids: string[];
|
|
824
|
+
users: UserResponse[];
|
|
825
|
+
stats: CampaignStatsResponse;
|
|
826
|
+
scheduled_for?: Date;
|
|
827
|
+
stop_at?: Date;
|
|
828
|
+
channel_template?: CampaignChannelTemplate;
|
|
829
|
+
message_template?: CampaignMessageTemplate;
|
|
830
|
+
sender?: UserResponse;
|
|
831
|
+
}
|
|
832
|
+
export interface CampaignStartedEvent {
|
|
833
|
+
created_at: Date;
|
|
834
|
+
type: string;
|
|
835
|
+
received_at?: Date;
|
|
836
|
+
campaign?: CampaignResponse;
|
|
837
|
+
}
|
|
838
|
+
export interface CampaignStatsResponse {
|
|
839
|
+
progress: number;
|
|
840
|
+
stats_channels_created: number;
|
|
841
|
+
stats_completed_at: Date;
|
|
842
|
+
stats_messages_sent: number;
|
|
843
|
+
stats_started_at: Date;
|
|
844
|
+
}
|
|
490
845
|
export interface CastPollVoteRequest {
|
|
491
846
|
user_id?: string;
|
|
492
847
|
user?: UserRequest;
|
|
@@ -511,9 +866,9 @@ export interface Channel {
|
|
|
511
866
|
invites?: ChannelMember[];
|
|
512
867
|
members?: ChannelMember[];
|
|
513
868
|
config?: ChannelConfig;
|
|
514
|
-
config_overrides?:
|
|
515
|
-
created_by?:
|
|
516
|
-
truncated_by?:
|
|
869
|
+
config_overrides?: ConfigOverrides;
|
|
870
|
+
created_by?: User;
|
|
871
|
+
truncated_by?: User;
|
|
517
872
|
}
|
|
518
873
|
export interface ChannelConfig {
|
|
519
874
|
automod: 'disabled' | 'simple' | 'AI';
|
|
@@ -533,6 +888,7 @@ export interface ChannelConfig {
|
|
|
533
888
|
reminders: boolean;
|
|
534
889
|
replies: boolean;
|
|
535
890
|
search: boolean;
|
|
891
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
536
892
|
typing_events: boolean;
|
|
537
893
|
updated_at: Date;
|
|
538
894
|
uploads: boolean;
|
|
@@ -540,6 +896,8 @@ export interface ChannelConfig {
|
|
|
540
896
|
commands: string[];
|
|
541
897
|
blocklist?: string;
|
|
542
898
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
899
|
+
partition_size?: number;
|
|
900
|
+
partition_ttl?: string;
|
|
543
901
|
allowed_flag_reasons?: string[];
|
|
544
902
|
blocklists?: BlockListOptions[];
|
|
545
903
|
automod_thresholds?: Thresholds;
|
|
@@ -562,6 +920,7 @@ export interface ChannelConfigWithInfo {
|
|
|
562
920
|
reminders: boolean;
|
|
563
921
|
replies: boolean;
|
|
564
922
|
search: boolean;
|
|
923
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
565
924
|
typing_events: boolean;
|
|
566
925
|
updated_at: Date;
|
|
567
926
|
uploads: boolean;
|
|
@@ -570,12 +929,26 @@ export interface ChannelConfigWithInfo {
|
|
|
570
929
|
blocklist?: string;
|
|
571
930
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
572
931
|
partition_size?: number;
|
|
573
|
-
partition_ttl?:
|
|
932
|
+
partition_ttl?: string;
|
|
574
933
|
allowed_flag_reasons?: string[];
|
|
575
934
|
blocklists?: BlockListOptions[];
|
|
576
935
|
automod_thresholds?: Thresholds;
|
|
577
936
|
grants?: Record<string, string[]>;
|
|
578
937
|
}
|
|
938
|
+
export interface ChannelCreatedEvent {
|
|
939
|
+
created_at: Date;
|
|
940
|
+
type: string;
|
|
941
|
+
}
|
|
942
|
+
export interface ChannelDeletedEvent {
|
|
943
|
+
channel_id: string;
|
|
944
|
+
channel_member_count: number;
|
|
945
|
+
channel_type: string;
|
|
946
|
+
cid: string;
|
|
947
|
+
created_at: Date;
|
|
948
|
+
type: string;
|
|
949
|
+
team?: string;
|
|
950
|
+
channel?: ChannelResponse;
|
|
951
|
+
}
|
|
579
952
|
export interface ChannelExport {
|
|
580
953
|
cid?: string;
|
|
581
954
|
id?: string;
|
|
@@ -583,6 +956,13 @@ export interface ChannelExport {
|
|
|
583
956
|
messages_until?: Date;
|
|
584
957
|
type?: string;
|
|
585
958
|
}
|
|
959
|
+
export interface ChannelFrozenEvent {
|
|
960
|
+
channel_id: string;
|
|
961
|
+
channel_type: string;
|
|
962
|
+
cid: string;
|
|
963
|
+
created_at: Date;
|
|
964
|
+
type: string;
|
|
965
|
+
}
|
|
586
966
|
export interface ChannelGetOrCreateRequest {
|
|
587
967
|
hide_for_creator?: boolean;
|
|
588
968
|
state?: boolean;
|
|
@@ -592,6 +972,17 @@ export interface ChannelGetOrCreateRequest {
|
|
|
592
972
|
messages?: MessagePaginationParams;
|
|
593
973
|
watchers?: PaginationParams;
|
|
594
974
|
}
|
|
975
|
+
export interface ChannelHiddenEvent {
|
|
976
|
+
channel_id: string;
|
|
977
|
+
channel_member_count: number;
|
|
978
|
+
channel_type: string;
|
|
979
|
+
cid: string;
|
|
980
|
+
clear_history: boolean;
|
|
981
|
+
created_at: Date;
|
|
982
|
+
type: string;
|
|
983
|
+
channel?: ChannelResponse;
|
|
984
|
+
user?: User;
|
|
985
|
+
}
|
|
595
986
|
export interface ChannelInput {
|
|
596
987
|
auto_translation_enabled?: boolean;
|
|
597
988
|
auto_translation_language?: string;
|
|
@@ -614,15 +1005,18 @@ export interface ChannelMember {
|
|
|
614
1005
|
shadow_banned: boolean;
|
|
615
1006
|
updated_at: Date;
|
|
616
1007
|
custom: Record<string, any>;
|
|
1008
|
+
archived_at?: Date;
|
|
617
1009
|
ban_expires?: Date;
|
|
618
1010
|
deleted_at?: Date;
|
|
619
1011
|
invite_accepted_at?: Date;
|
|
620
1012
|
invite_rejected_at?: Date;
|
|
621
1013
|
invited?: boolean;
|
|
622
1014
|
is_moderator?: boolean;
|
|
1015
|
+
pinned_at?: Date;
|
|
1016
|
+
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
623
1017
|
status?: string;
|
|
624
1018
|
user_id?: string;
|
|
625
|
-
user?:
|
|
1019
|
+
user?: UserResponse;
|
|
626
1020
|
}
|
|
627
1021
|
export interface ChannelMemberResponse {
|
|
628
1022
|
banned: boolean;
|
|
@@ -632,24 +1026,71 @@ export interface ChannelMemberResponse {
|
|
|
632
1026
|
shadow_banned: boolean;
|
|
633
1027
|
updated_at: Date;
|
|
634
1028
|
custom: Record<string, any>;
|
|
1029
|
+
archived_at?: Date;
|
|
635
1030
|
ban_expires?: Date;
|
|
636
1031
|
deleted_at?: Date;
|
|
637
1032
|
invite_accepted_at?: Date;
|
|
638
1033
|
invite_rejected_at?: Date;
|
|
639
1034
|
invited?: boolean;
|
|
640
1035
|
is_moderator?: boolean;
|
|
1036
|
+
pinned_at?: Date;
|
|
641
1037
|
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
642
1038
|
status?: string;
|
|
643
1039
|
user_id?: string;
|
|
644
1040
|
user?: UserResponse;
|
|
645
1041
|
}
|
|
1042
|
+
export interface ChannelMessages {
|
|
1043
|
+
messages: Message[];
|
|
1044
|
+
channel?: ChannelResponse;
|
|
1045
|
+
}
|
|
646
1046
|
export interface ChannelMute {
|
|
647
1047
|
created_at: Date;
|
|
648
1048
|
updated_at: Date;
|
|
649
1049
|
expires?: Date;
|
|
650
1050
|
channel?: ChannelResponse;
|
|
651
|
-
user?:
|
|
1051
|
+
user?: UserResponse;
|
|
652
1052
|
}
|
|
1053
|
+
export interface ChannelMutedEvent {
|
|
1054
|
+
created_at: Date;
|
|
1055
|
+
type: string;
|
|
1056
|
+
}
|
|
1057
|
+
export declare const ChannelOwnCapability: {
|
|
1058
|
+
readonly BAN_CHANNEL_MEMBERS: "ban-channel-members";
|
|
1059
|
+
readonly CAST_POLL_VOTE: "cast-poll-vote";
|
|
1060
|
+
readonly CONNECT_EVENTS: "connect-events";
|
|
1061
|
+
readonly CREATE_ATTACHMENT: "create-attachment";
|
|
1062
|
+
readonly DELETE_ANY_MESSAGE: "delete-any-message";
|
|
1063
|
+
readonly DELETE_CHANNEL: "delete-channel";
|
|
1064
|
+
readonly DELETE_OWN_MESSAGE: "delete-own-message";
|
|
1065
|
+
readonly FLAG_MESSAGE: "flag-message";
|
|
1066
|
+
readonly FREEZE_CHANNEL: "freeze-channel";
|
|
1067
|
+
readonly JOIN_CHANNEL: "join-channel";
|
|
1068
|
+
readonly LEAVE_CHANNEL: "leave-channel";
|
|
1069
|
+
readonly MUTE_CHANNEL: "mute-channel";
|
|
1070
|
+
readonly PIN_MESSAGE: "pin-message";
|
|
1071
|
+
readonly QUERY_POLL_VOTES: "query-poll-votes";
|
|
1072
|
+
readonly QUOTE_MESSAGE: "quote-message";
|
|
1073
|
+
readonly READ_EVENTS: "read-events";
|
|
1074
|
+
readonly SEARCH_MESSAGES: "search-messages";
|
|
1075
|
+
readonly SEND_CUSTOM_EVENTS: "send-custom-events";
|
|
1076
|
+
readonly SEND_LINKS: "send-links";
|
|
1077
|
+
readonly SEND_MESSAGE: "send-message";
|
|
1078
|
+
readonly SEND_POLL: "send-poll";
|
|
1079
|
+
readonly SEND_REACTION: "send-reaction";
|
|
1080
|
+
readonly SEND_REPLY: "send-reply";
|
|
1081
|
+
readonly SEND_TYPING_EVENTS: "send-typing-events";
|
|
1082
|
+
readonly SET_CHANNEL_COOLDOWN: "set-channel-cooldown";
|
|
1083
|
+
readonly SKIP_SLOW_MODE: "skip-slow-mode";
|
|
1084
|
+
readonly SLOW_MODE: "slow-mode";
|
|
1085
|
+
readonly TYPING_EVENTS: "typing-events";
|
|
1086
|
+
readonly UPDATE_ANY_MESSAGE: "update-any-message";
|
|
1087
|
+
readonly UPDATE_CHANNEL: "update-channel";
|
|
1088
|
+
readonly UPDATE_CHANNEL_MEMBERS: "update-channel-members";
|
|
1089
|
+
readonly UPDATE_OWN_MESSAGE: "update-own-message";
|
|
1090
|
+
readonly UPDATE_THREAD: "update-thread";
|
|
1091
|
+
readonly UPLOAD_FILE: "upload-file";
|
|
1092
|
+
};
|
|
1093
|
+
export type ChannelOwnCapability = (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
|
|
653
1094
|
export interface ChannelResponse {
|
|
654
1095
|
cid: string;
|
|
655
1096
|
created_at: Date;
|
|
@@ -673,17 +1114,17 @@ export interface ChannelResponse {
|
|
|
673
1114
|
team?: string;
|
|
674
1115
|
truncated_at?: Date;
|
|
675
1116
|
members?: ChannelMember[];
|
|
676
|
-
own_capabilities?:
|
|
1117
|
+
own_capabilities?: ChannelOwnCapability[];
|
|
677
1118
|
config?: ChannelConfigWithInfo;
|
|
678
|
-
created_by?:
|
|
679
|
-
truncated_by?:
|
|
1119
|
+
created_by?: UserResponse;
|
|
1120
|
+
truncated_by?: UserResponse;
|
|
680
1121
|
}
|
|
681
1122
|
export interface ChannelStateResponse {
|
|
682
1123
|
duration: string;
|
|
683
1124
|
members: ChannelMember[];
|
|
684
1125
|
messages: MessageResponse[];
|
|
685
1126
|
pinned_messages: MessageResponse[];
|
|
686
|
-
threads:
|
|
1127
|
+
threads: ThreadStateResponse[];
|
|
687
1128
|
hidden?: boolean;
|
|
688
1129
|
hide_messages_before?: Date;
|
|
689
1130
|
watcher_count?: number;
|
|
@@ -697,7 +1138,7 @@ export interface ChannelStateResponseFields {
|
|
|
697
1138
|
members: ChannelMember[];
|
|
698
1139
|
messages: MessageResponse[];
|
|
699
1140
|
pinned_messages: MessageResponse[];
|
|
700
|
-
threads:
|
|
1141
|
+
threads: ThreadStateResponse[];
|
|
701
1142
|
hidden?: boolean;
|
|
702
1143
|
hide_messages_before?: Date;
|
|
703
1144
|
watcher_count?: number;
|
|
@@ -707,6 +1148,15 @@ export interface ChannelStateResponseFields {
|
|
|
707
1148
|
channel?: ChannelResponse;
|
|
708
1149
|
membership?: ChannelMember;
|
|
709
1150
|
}
|
|
1151
|
+
export interface ChannelTruncatedEvent {
|
|
1152
|
+
channel_id: string;
|
|
1153
|
+
channel_member_count: number;
|
|
1154
|
+
channel_type: string;
|
|
1155
|
+
cid: string;
|
|
1156
|
+
created_at: Date;
|
|
1157
|
+
type: string;
|
|
1158
|
+
channel?: ChannelResponse;
|
|
1159
|
+
}
|
|
710
1160
|
export interface ChannelTypeConfig {
|
|
711
1161
|
automod: 'disabled' | 'simple' | 'AI';
|
|
712
1162
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -725,6 +1175,7 @@ export interface ChannelTypeConfig {
|
|
|
725
1175
|
reminders: boolean;
|
|
726
1176
|
replies: boolean;
|
|
727
1177
|
search: boolean;
|
|
1178
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
728
1179
|
typing_events: boolean;
|
|
729
1180
|
updated_at: Date;
|
|
730
1181
|
uploads: boolean;
|
|
@@ -735,11 +1186,42 @@ export interface ChannelTypeConfig {
|
|
|
735
1186
|
blocklist?: string;
|
|
736
1187
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
737
1188
|
partition_size?: number;
|
|
738
|
-
partition_ttl?:
|
|
1189
|
+
partition_ttl?: string;
|
|
739
1190
|
allowed_flag_reasons?: string[];
|
|
740
1191
|
blocklists?: BlockListOptions[];
|
|
741
1192
|
automod_thresholds?: Thresholds;
|
|
742
1193
|
}
|
|
1194
|
+
export interface ChannelUnFrozenEvent {
|
|
1195
|
+
channel_id: string;
|
|
1196
|
+
channel_type: string;
|
|
1197
|
+
cid: string;
|
|
1198
|
+
created_at: Date;
|
|
1199
|
+
type: string;
|
|
1200
|
+
}
|
|
1201
|
+
export interface ChannelUnmutedEvent {
|
|
1202
|
+
created_at: Date;
|
|
1203
|
+
type: string;
|
|
1204
|
+
}
|
|
1205
|
+
export interface ChannelUpdatedEvent {
|
|
1206
|
+
channel_id: string;
|
|
1207
|
+
channel_member_count: number;
|
|
1208
|
+
channel_type: string;
|
|
1209
|
+
cid: string;
|
|
1210
|
+
created_at: Date;
|
|
1211
|
+
type: string;
|
|
1212
|
+
team?: string;
|
|
1213
|
+
channel?: ChannelResponse;
|
|
1214
|
+
message?: Message;
|
|
1215
|
+
user?: User;
|
|
1216
|
+
}
|
|
1217
|
+
export interface ChannelVisibleEvent {
|
|
1218
|
+
channel_id: string;
|
|
1219
|
+
channel_type: string;
|
|
1220
|
+
cid: string;
|
|
1221
|
+
created_at: Date;
|
|
1222
|
+
type: string;
|
|
1223
|
+
user?: User;
|
|
1224
|
+
}
|
|
743
1225
|
export interface CheckExternalStorageResponse {
|
|
744
1226
|
duration: string;
|
|
745
1227
|
file_url: string;
|
|
@@ -769,6 +1251,7 @@ export interface CheckRequest {
|
|
|
769
1251
|
entity_creator_id: string;
|
|
770
1252
|
entity_id: string;
|
|
771
1253
|
entity_type: string;
|
|
1254
|
+
test_mode?: boolean;
|
|
772
1255
|
user_id?: string;
|
|
773
1256
|
moderation_payload?: ModerationPayload;
|
|
774
1257
|
options?: Record<string, any>;
|
|
@@ -803,6 +1286,12 @@ export interface CheckSQSResponse {
|
|
|
803
1286
|
error?: string;
|
|
804
1287
|
data?: Record<string, any>;
|
|
805
1288
|
}
|
|
1289
|
+
export interface ClosedCaptionEvent {
|
|
1290
|
+
call_cid: string;
|
|
1291
|
+
created_at: Date;
|
|
1292
|
+
closed_caption: CallClosedCaption;
|
|
1293
|
+
type: string;
|
|
1294
|
+
}
|
|
806
1295
|
export interface CollectUserFeedbackRequest {
|
|
807
1296
|
rating: number;
|
|
808
1297
|
sdk: string;
|
|
@@ -824,24 +1313,32 @@ export interface Command {
|
|
|
824
1313
|
}
|
|
825
1314
|
export interface CommitMessageRequest {
|
|
826
1315
|
}
|
|
827
|
-
export interface
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
1316
|
+
export interface ConfigOverrides {
|
|
1317
|
+
commands: string[];
|
|
1318
|
+
grants: Record<string, string[]>;
|
|
1319
|
+
blocklist?: string;
|
|
1320
|
+
blocklist_behavior?: 'flag' | 'block';
|
|
1321
|
+
max_message_length?: number;
|
|
1322
|
+
quotes?: boolean;
|
|
1323
|
+
reactions?: boolean;
|
|
1324
|
+
replies?: boolean;
|
|
1325
|
+
typing_events?: boolean;
|
|
1326
|
+
uploads?: boolean;
|
|
1327
|
+
url_enrichment?: boolean;
|
|
832
1328
|
}
|
|
833
1329
|
export interface ConfigResponse {
|
|
834
1330
|
async: boolean;
|
|
835
1331
|
created_at: Date;
|
|
836
1332
|
key: string;
|
|
1333
|
+
team: string;
|
|
837
1334
|
updated_at: Date;
|
|
1335
|
+
ai_image_config?: AIImageConfig;
|
|
1336
|
+
ai_text_config?: AITextConfig;
|
|
1337
|
+
ai_video_config?: AIVideoConfig;
|
|
838
1338
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
839
1339
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
840
1340
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
841
|
-
aws_rek_og_nition_config?: AWSRekognitionConfig;
|
|
842
1341
|
block_list_config?: BlockListConfig;
|
|
843
|
-
bodyguard_config?: BodyguardConfig;
|
|
844
|
-
go_og_le_vision_config?: GoogleVisionConfig;
|
|
845
1342
|
velocity_filter_config?: VelocityFilterConfig;
|
|
846
1343
|
}
|
|
847
1344
|
export interface Coordinates {
|
|
@@ -849,7 +1346,7 @@ export interface Coordinates {
|
|
|
849
1346
|
longitude: number;
|
|
850
1347
|
}
|
|
851
1348
|
export interface Count {
|
|
852
|
-
|
|
1349
|
+
approximate: boolean;
|
|
853
1350
|
value: number;
|
|
854
1351
|
}
|
|
855
1352
|
export interface CountrywiseAggregateStats {
|
|
@@ -891,7 +1388,7 @@ export interface CreateChannelTypeRequest {
|
|
|
891
1388
|
connect_events?: boolean;
|
|
892
1389
|
custom_events?: boolean;
|
|
893
1390
|
mark_messages_pending?: boolean;
|
|
894
|
-
message_retention?:
|
|
1391
|
+
message_retention?: 'infinite' | 'numeric';
|
|
895
1392
|
mutes?: boolean;
|
|
896
1393
|
partition_size?: number;
|
|
897
1394
|
partition_ttl?: string;
|
|
@@ -901,6 +1398,7 @@ export interface CreateChannelTypeRequest {
|
|
|
901
1398
|
read_events?: boolean;
|
|
902
1399
|
replies?: boolean;
|
|
903
1400
|
search?: boolean;
|
|
1401
|
+
skip_last_msg_update_for_system_msgs?: boolean;
|
|
904
1402
|
typing_events?: boolean;
|
|
905
1403
|
uploads?: boolean;
|
|
906
1404
|
url_enrichment?: boolean;
|
|
@@ -928,6 +1426,7 @@ export interface CreateChannelTypeResponse {
|
|
|
928
1426
|
reminders: boolean;
|
|
929
1427
|
replies: boolean;
|
|
930
1428
|
search: boolean;
|
|
1429
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
931
1430
|
typing_events: boolean;
|
|
932
1431
|
updated_at: Date;
|
|
933
1432
|
uploads: boolean;
|
|
@@ -938,7 +1437,7 @@ export interface CreateChannelTypeResponse {
|
|
|
938
1437
|
blocklist?: string;
|
|
939
1438
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
940
1439
|
partition_size?: number;
|
|
941
|
-
partition_ttl?:
|
|
1440
|
+
partition_ttl?: string;
|
|
942
1441
|
allowed_flag_reasons?: string[];
|
|
943
1442
|
blocklists?: BlockListOptions[];
|
|
944
1443
|
automod_thresholds?: Thresholds;
|
|
@@ -1030,13 +1529,17 @@ export interface CustomActionRequest {
|
|
|
1030
1529
|
id?: string;
|
|
1031
1530
|
options?: Record<string, any>;
|
|
1032
1531
|
}
|
|
1532
|
+
export interface CustomCheckFlag {
|
|
1533
|
+
type: string;
|
|
1534
|
+
reason?: string;
|
|
1535
|
+
labels?: string[];
|
|
1536
|
+
custom?: Record<string, any>;
|
|
1537
|
+
}
|
|
1033
1538
|
export interface CustomCheckRequest {
|
|
1034
|
-
entity_creator_id: string;
|
|
1035
1539
|
entity_id: string;
|
|
1036
1540
|
entity_type: string;
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
recommended_action?: string;
|
|
1541
|
+
flags: CustomCheckFlag[];
|
|
1542
|
+
entity_creator_id?: string;
|
|
1040
1543
|
user_id?: string;
|
|
1041
1544
|
moderation_payload?: ModerationPayload;
|
|
1042
1545
|
user?: UserRequest;
|
|
@@ -1044,12 +1547,39 @@ export interface CustomCheckRequest {
|
|
|
1044
1547
|
export interface CustomCheckResponse {
|
|
1045
1548
|
duration: string;
|
|
1046
1549
|
id: string;
|
|
1047
|
-
recommended_action: string;
|
|
1048
|
-
scored_at: Date;
|
|
1049
1550
|
status: string;
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1551
|
+
item?: ReviewQueueItemResponse;
|
|
1552
|
+
}
|
|
1553
|
+
export interface CustomVideoEvent {
|
|
1554
|
+
call_cid: string;
|
|
1555
|
+
created_at: Date;
|
|
1556
|
+
custom: Record<string, any>;
|
|
1557
|
+
user: UserResponse;
|
|
1558
|
+
type: string;
|
|
1559
|
+
}
|
|
1560
|
+
export interface DailyAggregateCallDurationReportResponse {
|
|
1561
|
+
date: string;
|
|
1562
|
+
report: CallDurationReport;
|
|
1563
|
+
}
|
|
1564
|
+
export interface DailyAggregateCallParticipantCountReportResponse {
|
|
1565
|
+
date: string;
|
|
1566
|
+
report: CallParticipantCountReport;
|
|
1567
|
+
}
|
|
1568
|
+
export interface DailyAggregateCallsPerDayReportResponse {
|
|
1569
|
+
date: string;
|
|
1570
|
+
report: CallsPerDayReport;
|
|
1571
|
+
}
|
|
1572
|
+
export interface DailyAggregateQualityScoreReportResponse {
|
|
1573
|
+
date: string;
|
|
1574
|
+
report: QualityScoreReport;
|
|
1575
|
+
}
|
|
1576
|
+
export interface DailyAggregateSDKUsageReportResponse {
|
|
1577
|
+
date: string;
|
|
1578
|
+
report: SDKUsageReport;
|
|
1579
|
+
}
|
|
1580
|
+
export interface DailyAggregateUserFeedbackReportResponse {
|
|
1581
|
+
date: string;
|
|
1582
|
+
report: UserFeedbackReport;
|
|
1053
1583
|
}
|
|
1054
1584
|
export interface Data {
|
|
1055
1585
|
id: string;
|
|
@@ -1119,6 +1649,9 @@ export interface DeleteMessageResponse {
|
|
|
1119
1649
|
duration: string;
|
|
1120
1650
|
message: MessageResponse;
|
|
1121
1651
|
}
|
|
1652
|
+
export interface DeleteModerationConfigResponse {
|
|
1653
|
+
duration: string;
|
|
1654
|
+
}
|
|
1122
1655
|
export interface DeleteModerationTemplateResponse {
|
|
1123
1656
|
duration: string;
|
|
1124
1657
|
}
|
|
@@ -1128,11 +1661,15 @@ export interface DeleteReactionRequest {
|
|
|
1128
1661
|
export interface DeleteRecordingResponse {
|
|
1129
1662
|
duration: string;
|
|
1130
1663
|
}
|
|
1664
|
+
export interface DeleteSegmentTargetsRequest {
|
|
1665
|
+
target_ids: string[];
|
|
1666
|
+
}
|
|
1131
1667
|
export interface DeleteTranscriptionResponse {
|
|
1132
1668
|
duration: string;
|
|
1133
1669
|
}
|
|
1134
1670
|
export interface DeleteUserRequest {
|
|
1135
1671
|
delete_conversation_channels?: boolean;
|
|
1672
|
+
delete_feeds_content?: boolean;
|
|
1136
1673
|
hard_delete?: boolean;
|
|
1137
1674
|
mark_messages_deleted?: boolean;
|
|
1138
1675
|
}
|
|
@@ -1152,7 +1689,7 @@ export interface DeleteUsersResponse {
|
|
|
1152
1689
|
export interface Device {
|
|
1153
1690
|
created_at: Date;
|
|
1154
1691
|
id: string;
|
|
1155
|
-
push_provider:
|
|
1692
|
+
push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
|
|
1156
1693
|
user_id: string;
|
|
1157
1694
|
disabled?: boolean;
|
|
1158
1695
|
disabled_reason?: string;
|
|
@@ -1164,6 +1701,16 @@ export interface DeviceErrorInfo {
|
|
|
1164
1701
|
provider: string;
|
|
1165
1702
|
provider_name: string;
|
|
1166
1703
|
}
|
|
1704
|
+
export interface DeviceResponse {
|
|
1705
|
+
created_at: Date;
|
|
1706
|
+
id: string;
|
|
1707
|
+
push_provider: string;
|
|
1708
|
+
user_id: string;
|
|
1709
|
+
disabled?: boolean;
|
|
1710
|
+
disabled_reason?: string;
|
|
1711
|
+
push_provider_name?: string;
|
|
1712
|
+
voip?: boolean;
|
|
1713
|
+
}
|
|
1167
1714
|
export interface EdgeResponse {
|
|
1168
1715
|
continent_code: string;
|
|
1169
1716
|
country_iso_code: string;
|
|
@@ -1187,7 +1734,7 @@ export interface EgressRTMPResponse {
|
|
|
1187
1734
|
}
|
|
1188
1735
|
export interface EgressResponse {
|
|
1189
1736
|
broadcasting: boolean;
|
|
1190
|
-
|
|
1737
|
+
rtmps: EgressRTMPResponse[];
|
|
1191
1738
|
hls?: EgressHLSResponse;
|
|
1192
1739
|
}
|
|
1193
1740
|
export interface EndCallRequest {
|
|
@@ -1202,10 +1749,10 @@ export interface EnrichedActivity {
|
|
|
1202
1749
|
verb?: string;
|
|
1203
1750
|
to?: string[];
|
|
1204
1751
|
actor?: Data;
|
|
1205
|
-
latest_reactions?: Record<string,
|
|
1752
|
+
latest_reactions?: Record<string, EnrichedReaction[]>;
|
|
1206
1753
|
object?: Data;
|
|
1207
1754
|
origin?: Data;
|
|
1208
|
-
own_reactions?: Record<string,
|
|
1755
|
+
own_reactions?: Record<string, EnrichedReaction[]>;
|
|
1209
1756
|
reaction_counts?: Record<string, number>;
|
|
1210
1757
|
target?: Data;
|
|
1211
1758
|
}
|
|
@@ -1219,11 +1766,59 @@ export interface EnrichedReaction {
|
|
|
1219
1766
|
children_counts?: Record<string, number>;
|
|
1220
1767
|
created_at?: Time;
|
|
1221
1768
|
data?: Record<string, any>;
|
|
1222
|
-
latest_children?: Record<string,
|
|
1223
|
-
own_children?: Record<string,
|
|
1769
|
+
latest_children?: Record<string, EnrichedReaction[]>;
|
|
1770
|
+
own_children?: Record<string, EnrichedReaction[]>;
|
|
1224
1771
|
updated_at?: Time;
|
|
1225
1772
|
user?: Data;
|
|
1226
1773
|
}
|
|
1774
|
+
export interface EntityCreator {
|
|
1775
|
+
ban_count: number;
|
|
1776
|
+
banned: boolean;
|
|
1777
|
+
deleted_content_count: number;
|
|
1778
|
+
id: string;
|
|
1779
|
+
online: boolean;
|
|
1780
|
+
role: string;
|
|
1781
|
+
custom: Record<string, any>;
|
|
1782
|
+
ban_expires?: Date;
|
|
1783
|
+
created_at?: Date;
|
|
1784
|
+
deactivated_at?: Date;
|
|
1785
|
+
deleted_at?: Date;
|
|
1786
|
+
invisible?: boolean;
|
|
1787
|
+
language?: string;
|
|
1788
|
+
last_active?: Date;
|
|
1789
|
+
last_engaged_at?: Date;
|
|
1790
|
+
revoke_tokens_issued_before?: Date;
|
|
1791
|
+
updated_at?: Date;
|
|
1792
|
+
teams?: string[];
|
|
1793
|
+
privacy_settings?: PrivacySettings;
|
|
1794
|
+
push_notifications?: PushNotificationSettings;
|
|
1795
|
+
}
|
|
1796
|
+
export interface EntityCreatorResponse {
|
|
1797
|
+
ban_count: number;
|
|
1798
|
+
banned: boolean;
|
|
1799
|
+
created_at: Date;
|
|
1800
|
+
deleted_content_count: number;
|
|
1801
|
+
id: string;
|
|
1802
|
+
invisible: boolean;
|
|
1803
|
+
language: string;
|
|
1804
|
+
online: boolean;
|
|
1805
|
+
role: string;
|
|
1806
|
+
shadow_banned: boolean;
|
|
1807
|
+
updated_at: Date;
|
|
1808
|
+
blocked_user_ids: string[];
|
|
1809
|
+
devices: DeviceResponse[];
|
|
1810
|
+
teams: string[];
|
|
1811
|
+
custom: Record<string, any>;
|
|
1812
|
+
ban_expires?: Date;
|
|
1813
|
+
deactivated_at?: Date;
|
|
1814
|
+
deleted_at?: Date;
|
|
1815
|
+
image?: string;
|
|
1816
|
+
last_active?: Date;
|
|
1817
|
+
name?: string;
|
|
1818
|
+
revoke_tokens_issued_before?: Date;
|
|
1819
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
1820
|
+
push_notifications?: PushNotificationSettingsResponse;
|
|
1821
|
+
}
|
|
1227
1822
|
export interface ErrorResult {
|
|
1228
1823
|
type: string;
|
|
1229
1824
|
stacktrace?: string;
|
|
@@ -1263,8 +1858,8 @@ export interface ExportChannelsResult {
|
|
|
1263
1858
|
}
|
|
1264
1859
|
export interface ExportUserResponse {
|
|
1265
1860
|
duration: string;
|
|
1266
|
-
messages?:
|
|
1267
|
-
reactions?:
|
|
1861
|
+
messages?: MessageResponse[];
|
|
1862
|
+
reactions?: ReactionResponse[];
|
|
1268
1863
|
user?: UserResponse;
|
|
1269
1864
|
}
|
|
1270
1865
|
export interface ExportUsersRequest {
|
|
@@ -1321,6 +1916,22 @@ export interface FirebaseConfigFields {
|
|
|
1321
1916
|
credentials_json?: string;
|
|
1322
1917
|
server_key?: string;
|
|
1323
1918
|
}
|
|
1919
|
+
export interface Flag {
|
|
1920
|
+
created_at: Date;
|
|
1921
|
+
created_by_automod: boolean;
|
|
1922
|
+
updated_at: Date;
|
|
1923
|
+
approved_at?: Date;
|
|
1924
|
+
reason?: string;
|
|
1925
|
+
rejected_at?: Date;
|
|
1926
|
+
reviewed_at?: Date;
|
|
1927
|
+
reviewed_by?: string;
|
|
1928
|
+
target_message_id?: string;
|
|
1929
|
+
custom?: Record<string, any>;
|
|
1930
|
+
details?: FlagDetails;
|
|
1931
|
+
target_message?: Message;
|
|
1932
|
+
target_user?: User;
|
|
1933
|
+
user?: User;
|
|
1934
|
+
}
|
|
1324
1935
|
export interface Flag2 {
|
|
1325
1936
|
created_at: Date;
|
|
1326
1937
|
entity_id: string;
|
|
@@ -1335,7 +1946,23 @@ export interface Flag2 {
|
|
|
1335
1946
|
labels?: string[];
|
|
1336
1947
|
custom?: Record<string, any>;
|
|
1337
1948
|
moderation_payload?: ModerationPayload;
|
|
1338
|
-
user?:
|
|
1949
|
+
user?: User;
|
|
1950
|
+
}
|
|
1951
|
+
export interface Flag2Response {
|
|
1952
|
+
created_at: Date;
|
|
1953
|
+
entity_id: string;
|
|
1954
|
+
entity_type: string;
|
|
1955
|
+
updated_at: Date;
|
|
1956
|
+
user_id: string;
|
|
1957
|
+
result: Array<Record<string, any>>;
|
|
1958
|
+
entity_creator_id?: string;
|
|
1959
|
+
reason?: string;
|
|
1960
|
+
review_queue_item_id?: string;
|
|
1961
|
+
type?: string;
|
|
1962
|
+
labels?: string[];
|
|
1963
|
+
custom?: Record<string, any>;
|
|
1964
|
+
moderation_payload?: ModerationPayload;
|
|
1965
|
+
user?: UserResponse;
|
|
1339
1966
|
}
|
|
1340
1967
|
export interface FlagDetails {
|
|
1341
1968
|
original_text: string;
|
|
@@ -1356,8 +1983,8 @@ export interface FlagMessageDetails {
|
|
|
1356
1983
|
export interface FlagRequest {
|
|
1357
1984
|
entity_id: string;
|
|
1358
1985
|
entity_type: string;
|
|
1359
|
-
reason: string;
|
|
1360
1986
|
entity_creator_id?: string;
|
|
1987
|
+
reason?: string;
|
|
1361
1988
|
user_id?: string;
|
|
1362
1989
|
custom?: Record<string, any>;
|
|
1363
1990
|
moderation_payload?: ModerationPayload;
|
|
@@ -1367,6 +1994,14 @@ export interface FlagResponse {
|
|
|
1367
1994
|
duration: string;
|
|
1368
1995
|
item_id: string;
|
|
1369
1996
|
}
|
|
1997
|
+
export interface FlagUpdatedEvent {
|
|
1998
|
+
created_at: Date;
|
|
1999
|
+
type: string;
|
|
2000
|
+
received_at?: Date;
|
|
2001
|
+
created_by?: UserResponse;
|
|
2002
|
+
message?: MessageResponse;
|
|
2003
|
+
user?: UserResponse;
|
|
2004
|
+
}
|
|
1370
2005
|
export interface FullUserResponse {
|
|
1371
2006
|
banned: boolean;
|
|
1372
2007
|
created_at: Date;
|
|
@@ -1383,7 +2018,7 @@ export interface FullUserResponse {
|
|
|
1383
2018
|
updated_at: Date;
|
|
1384
2019
|
blocked_user_ids: string[];
|
|
1385
2020
|
channel_mutes: ChannelMute[];
|
|
1386
|
-
devices:
|
|
2021
|
+
devices: DeviceResponse[];
|
|
1387
2022
|
mutes: UserMuteResponse[];
|
|
1388
2023
|
teams: string[];
|
|
1389
2024
|
custom: Record<string, any>;
|
|
@@ -1454,6 +2089,7 @@ export interface GetCallStatsResponse {
|
|
|
1454
2089
|
sfu_count: number;
|
|
1455
2090
|
participant_report: UserStats[];
|
|
1456
2091
|
sfus: SFULocationResponse[];
|
|
2092
|
+
average_connection_time?: number;
|
|
1457
2093
|
aggregated?: AggregatedStats;
|
|
1458
2094
|
call_timeline?: CallTimeline;
|
|
1459
2095
|
jitter?: TimeStats;
|
|
@@ -1469,6 +2105,10 @@ export interface GetCallTypeResponse {
|
|
|
1469
2105
|
settings: CallSettingsResponse;
|
|
1470
2106
|
external_storage?: string;
|
|
1471
2107
|
}
|
|
2108
|
+
export interface GetCampaignResponse {
|
|
2109
|
+
duration: string;
|
|
2110
|
+
campaign?: CampaignResponse;
|
|
2111
|
+
}
|
|
1472
2112
|
export interface GetChannelTypeResponse {
|
|
1473
2113
|
automod: 'disabled' | 'simple' | 'AI';
|
|
1474
2114
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -1488,6 +2128,7 @@ export interface GetChannelTypeResponse {
|
|
|
1488
2128
|
reminders: boolean;
|
|
1489
2129
|
replies: boolean;
|
|
1490
2130
|
search: boolean;
|
|
2131
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
1491
2132
|
typing_events: boolean;
|
|
1492
2133
|
updated_at: Date;
|
|
1493
2134
|
uploads: boolean;
|
|
@@ -1498,7 +2139,7 @@ export interface GetChannelTypeResponse {
|
|
|
1498
2139
|
blocklist?: string;
|
|
1499
2140
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
1500
2141
|
partition_size?: number;
|
|
1501
|
-
partition_ttl?:
|
|
2142
|
+
partition_ttl?: string;
|
|
1502
2143
|
allowed_flag_reasons?: string[];
|
|
1503
2144
|
blocklists?: BlockListOptions[];
|
|
1504
2145
|
automod_thresholds?: Thresholds;
|
|
@@ -1539,7 +2180,7 @@ export interface GetImportResponse {
|
|
|
1539
2180
|
}
|
|
1540
2181
|
export interface GetManyMessagesResponse {
|
|
1541
2182
|
duration: string;
|
|
1542
|
-
messages:
|
|
2183
|
+
messages: MessageResponse[];
|
|
1543
2184
|
}
|
|
1544
2185
|
export interface GetMessageResponse {
|
|
1545
2186
|
duration: string;
|
|
@@ -1558,10 +2199,13 @@ export interface GetOGResponse {
|
|
|
1558
2199
|
footer?: string;
|
|
1559
2200
|
footer_icon?: string;
|
|
1560
2201
|
image_url?: string;
|
|
2202
|
+
latitude?: number;
|
|
2203
|
+
longitude?: number;
|
|
1561
2204
|
og_scrape_url?: string;
|
|
1562
2205
|
original_height?: number;
|
|
1563
2206
|
original_width?: number;
|
|
1564
2207
|
pretext?: string;
|
|
2208
|
+
stopped_sharing?: boolean;
|
|
1565
2209
|
text?: string;
|
|
1566
2210
|
thumb_url?: string;
|
|
1567
2211
|
title?: string;
|
|
@@ -1602,8 +2246,12 @@ export interface GetRepliesResponse {
|
|
|
1602
2246
|
}
|
|
1603
2247
|
export interface GetReviewQueueItemResponse {
|
|
1604
2248
|
duration: string;
|
|
1605
|
-
history:
|
|
1606
|
-
item?:
|
|
2249
|
+
history: ReviewQueueItemResponse[];
|
|
2250
|
+
item?: ReviewQueueItemResponse;
|
|
2251
|
+
}
|
|
2252
|
+
export interface GetSegmentResponse {
|
|
2253
|
+
duration: string;
|
|
2254
|
+
segment?: SegmentResponse;
|
|
1607
2255
|
}
|
|
1608
2256
|
export interface GetTaskResponse {
|
|
1609
2257
|
created_at: Date;
|
|
@@ -1626,6 +2274,7 @@ export interface GetUserModerationReportResponse {
|
|
|
1626
2274
|
}
|
|
1627
2275
|
export interface GoLiveRequest {
|
|
1628
2276
|
recording_storage_name?: string;
|
|
2277
|
+
start_closed_caption?: boolean;
|
|
1629
2278
|
start_hls?: boolean;
|
|
1630
2279
|
start_recording?: boolean;
|
|
1631
2280
|
start_rtmp_broadcasts?: boolean;
|
|
@@ -1736,10 +2385,12 @@ export interface LayoutSettings {
|
|
|
1736
2385
|
external_app_url: string;
|
|
1737
2386
|
external_css_url: string;
|
|
1738
2387
|
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
2388
|
+
detect_orientation?: boolean;
|
|
1739
2389
|
options?: Record<string, any>;
|
|
1740
2390
|
}
|
|
1741
2391
|
export interface LayoutSettingsRequest {
|
|
1742
2392
|
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
2393
|
+
detect_orientation?: boolean;
|
|
1743
2394
|
external_app_url?: string;
|
|
1744
2395
|
external_css_url?: string;
|
|
1745
2396
|
options?: Record<string, any>;
|
|
@@ -1748,6 +2399,7 @@ export interface LayoutSettingsResponse {
|
|
|
1748
2399
|
external_app_url: string;
|
|
1749
2400
|
external_css_url: string;
|
|
1750
2401
|
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
2402
|
+
detect_orientation?: boolean;
|
|
1751
2403
|
options?: Record<string, any>;
|
|
1752
2404
|
}
|
|
1753
2405
|
export interface LimitInfo {
|
|
@@ -1785,7 +2437,7 @@ export interface ListCommandsResponse {
|
|
|
1785
2437
|
}
|
|
1786
2438
|
export interface ListDevicesResponse {
|
|
1787
2439
|
duration: string;
|
|
1788
|
-
devices:
|
|
2440
|
+
devices: DeviceResponse[];
|
|
1789
2441
|
}
|
|
1790
2442
|
export interface ListExternalStorageResponse {
|
|
1791
2443
|
duration: string;
|
|
@@ -1820,12 +2472,6 @@ export interface Location {
|
|
|
1820
2472
|
country_iso_code: string;
|
|
1821
2473
|
subdivision_iso_code: string;
|
|
1822
2474
|
}
|
|
1823
|
-
export interface MOSStats {
|
|
1824
|
-
average_score: number;
|
|
1825
|
-
max_score: number;
|
|
1826
|
-
min_score: number;
|
|
1827
|
-
hist_og_ram_duration_seconds: number[];
|
|
1828
|
-
}
|
|
1829
2475
|
export interface MarkChannelsReadRequest {
|
|
1830
2476
|
user_id?: string;
|
|
1831
2477
|
read_by_channel?: Record<string, string>;
|
|
@@ -1841,6 +2487,10 @@ export interface MarkReadResponse {
|
|
|
1841
2487
|
duration: string;
|
|
1842
2488
|
event?: MessageReadEvent;
|
|
1843
2489
|
}
|
|
2490
|
+
export interface MarkReviewedRequest {
|
|
2491
|
+
content_to_mark_as_reviewed_limit?: number;
|
|
2492
|
+
disable_marking_content_as_reviewed?: boolean;
|
|
2493
|
+
}
|
|
1844
2494
|
export interface MarkUnreadRequest {
|
|
1845
2495
|
message_id?: string;
|
|
1846
2496
|
thread_id?: string;
|
|
@@ -1853,6 +2503,25 @@ export interface MediaPubSubHint {
|
|
|
1853
2503
|
video_published: boolean;
|
|
1854
2504
|
video_subscribed: boolean;
|
|
1855
2505
|
}
|
|
2506
|
+
export interface MemberAddedEvent {
|
|
2507
|
+
channel_id: string;
|
|
2508
|
+
channel_type: string;
|
|
2509
|
+
cid: string;
|
|
2510
|
+
created_at: Date;
|
|
2511
|
+
type: string;
|
|
2512
|
+
team?: string;
|
|
2513
|
+
member?: ChannelMember;
|
|
2514
|
+
user?: User;
|
|
2515
|
+
}
|
|
2516
|
+
export interface MemberRemovedEvent {
|
|
2517
|
+
channel_id: string;
|
|
2518
|
+
channel_type: string;
|
|
2519
|
+
cid: string;
|
|
2520
|
+
created_at: Date;
|
|
2521
|
+
type: string;
|
|
2522
|
+
member?: ChannelMember;
|
|
2523
|
+
user?: User;
|
|
2524
|
+
}
|
|
1856
2525
|
export interface MemberRequest {
|
|
1857
2526
|
user_id: string;
|
|
1858
2527
|
role?: string;
|
|
@@ -1867,6 +2536,16 @@ export interface MemberResponse {
|
|
|
1867
2536
|
deleted_at?: Date;
|
|
1868
2537
|
role?: string;
|
|
1869
2538
|
}
|
|
2539
|
+
export interface MemberUpdatedEvent {
|
|
2540
|
+
channel_id: string;
|
|
2541
|
+
channel_type: string;
|
|
2542
|
+
cid: string;
|
|
2543
|
+
created_at: Date;
|
|
2544
|
+
type: string;
|
|
2545
|
+
team?: string;
|
|
2546
|
+
member?: ChannelMember;
|
|
2547
|
+
user?: User;
|
|
2548
|
+
}
|
|
1870
2549
|
export interface MembersResponse {
|
|
1871
2550
|
duration: string;
|
|
1872
2551
|
members: ChannelMember[];
|
|
@@ -1882,11 +2561,11 @@ export interface Message {
|
|
|
1882
2561
|
shadowed: boolean;
|
|
1883
2562
|
silent: boolean;
|
|
1884
2563
|
text: string;
|
|
1885
|
-
type:
|
|
2564
|
+
type: string;
|
|
1886
2565
|
updated_at: Date;
|
|
1887
2566
|
attachments: Attachment[];
|
|
1888
2567
|
latest_reactions: Reaction[];
|
|
1889
|
-
mentioned_users:
|
|
2568
|
+
mentioned_users: User[];
|
|
1890
2569
|
own_reactions: Reaction[];
|
|
1891
2570
|
custom: Record<string, any>;
|
|
1892
2571
|
reaction_counts: Record<string, number>;
|
|
@@ -1903,13 +2582,14 @@ export interface Message {
|
|
|
1903
2582
|
poll_id?: string;
|
|
1904
2583
|
quoted_message_id?: string;
|
|
1905
2584
|
show_in_channel?: boolean;
|
|
1906
|
-
thread_participants?:
|
|
2585
|
+
thread_participants?: User[];
|
|
1907
2586
|
i18n?: Record<string, string>;
|
|
1908
2587
|
image_labels?: Record<string, string[]>;
|
|
1909
|
-
|
|
2588
|
+
moderation?: ModerationV2Response;
|
|
2589
|
+
pinned_by?: User;
|
|
1910
2590
|
poll?: Poll;
|
|
1911
2591
|
quoted_message?: Message;
|
|
1912
|
-
user?:
|
|
2592
|
+
user?: User;
|
|
1913
2593
|
}
|
|
1914
2594
|
export interface MessageActionRequest {
|
|
1915
2595
|
form_data: Record<string, string>;
|
|
@@ -1927,6 +2607,18 @@ export interface MessageChangeSet {
|
|
|
1927
2607
|
silent: boolean;
|
|
1928
2608
|
text: boolean;
|
|
1929
2609
|
}
|
|
2610
|
+
export interface MessageDeletedEvent {
|
|
2611
|
+
channel_id: string;
|
|
2612
|
+
channel_type: string;
|
|
2613
|
+
cid: string;
|
|
2614
|
+
created_at: Date;
|
|
2615
|
+
hard_delete: boolean;
|
|
2616
|
+
type: string;
|
|
2617
|
+
team?: string;
|
|
2618
|
+
thread_participants?: User[];
|
|
2619
|
+
message?: Message;
|
|
2620
|
+
user?: User;
|
|
2621
|
+
}
|
|
1930
2622
|
export interface MessageFlagResponse {
|
|
1931
2623
|
created_at: Date;
|
|
1932
2624
|
created_by_automod: boolean;
|
|
@@ -1943,6 +2635,15 @@ export interface MessageFlagResponse {
|
|
|
1943
2635
|
reviewed_by?: UserResponse;
|
|
1944
2636
|
user?: UserResponse;
|
|
1945
2637
|
}
|
|
2638
|
+
export interface MessageFlaggedEvent {
|
|
2639
|
+
cid: string;
|
|
2640
|
+
created_at: Date;
|
|
2641
|
+
type: string;
|
|
2642
|
+
thread_participants?: User[];
|
|
2643
|
+
flag?: Flag;
|
|
2644
|
+
message?: Message;
|
|
2645
|
+
user?: User;
|
|
2646
|
+
}
|
|
1946
2647
|
export interface MessageHistoryEntryResponse {
|
|
1947
2648
|
is_deleted: boolean;
|
|
1948
2649
|
message_id: string;
|
|
@@ -1965,6 +2666,18 @@ export interface MessageModerationResult {
|
|
|
1965
2666
|
ai_moderation_response?: ModerationResponse;
|
|
1966
2667
|
moderation_thresholds?: Thresholds;
|
|
1967
2668
|
}
|
|
2669
|
+
export interface MessageNewEvent {
|
|
2670
|
+
channel_id: string;
|
|
2671
|
+
channel_type: string;
|
|
2672
|
+
cid: string;
|
|
2673
|
+
created_at: Date;
|
|
2674
|
+
watcher_count: number;
|
|
2675
|
+
type: string;
|
|
2676
|
+
team?: string;
|
|
2677
|
+
thread_participants?: User[];
|
|
2678
|
+
message?: Message;
|
|
2679
|
+
user?: User;
|
|
2680
|
+
}
|
|
1968
2681
|
export interface MessagePaginationParams {
|
|
1969
2682
|
}
|
|
1970
2683
|
export interface MessageReadEvent {
|
|
@@ -1976,7 +2689,7 @@ export interface MessageReadEvent {
|
|
|
1976
2689
|
last_read_message_id?: string;
|
|
1977
2690
|
team?: string;
|
|
1978
2691
|
thread?: ThreadResponse;
|
|
1979
|
-
user?:
|
|
2692
|
+
user?: UserResponse;
|
|
1980
2693
|
}
|
|
1981
2694
|
export interface MessageRequest {
|
|
1982
2695
|
html?: string;
|
|
@@ -2009,7 +2722,7 @@ export interface MessageResponse {
|
|
|
2009
2722
|
shadowed: boolean;
|
|
2010
2723
|
silent: boolean;
|
|
2011
2724
|
text: string;
|
|
2012
|
-
type:
|
|
2725
|
+
type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
|
|
2013
2726
|
updated_at: Date;
|
|
2014
2727
|
attachments: Attachment[];
|
|
2015
2728
|
latest_reactions: ReactionResponse[];
|
|
@@ -2032,15 +2745,46 @@ export interface MessageResponse {
|
|
|
2032
2745
|
thread_participants?: UserResponse[];
|
|
2033
2746
|
i18n?: Record<string, string>;
|
|
2034
2747
|
image_labels?: Record<string, string[]>;
|
|
2748
|
+
moderation?: ModerationV2Response;
|
|
2035
2749
|
pinned_by?: UserResponse;
|
|
2036
|
-
poll?:
|
|
2037
|
-
quoted_message?:
|
|
2750
|
+
poll?: PollResponseData;
|
|
2751
|
+
quoted_message?: MessageResponse;
|
|
2038
2752
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
2039
2753
|
}
|
|
2754
|
+
export interface MessageUnblockedEvent {
|
|
2755
|
+
cid: string;
|
|
2756
|
+
created_at: Date;
|
|
2757
|
+
type: string;
|
|
2758
|
+
thread_participants?: User[];
|
|
2759
|
+
message?: Message;
|
|
2760
|
+
user?: User;
|
|
2761
|
+
}
|
|
2762
|
+
export interface MessageUndeletedEvent {
|
|
2763
|
+
channel_id: string;
|
|
2764
|
+
channel_type: string;
|
|
2765
|
+
cid: string;
|
|
2766
|
+
created_at: Date;
|
|
2767
|
+
type: string;
|
|
2768
|
+
team?: string;
|
|
2769
|
+
thread_participants?: User[];
|
|
2770
|
+
message?: Message;
|
|
2771
|
+
user?: User;
|
|
2772
|
+
}
|
|
2040
2773
|
export interface MessageUpdate {
|
|
2041
2774
|
old_text?: string;
|
|
2042
2775
|
change_set?: MessageChangeSet;
|
|
2043
2776
|
}
|
|
2777
|
+
export interface MessageUpdatedEvent {
|
|
2778
|
+
channel_id: string;
|
|
2779
|
+
channel_type: string;
|
|
2780
|
+
cid: string;
|
|
2781
|
+
created_at: Date;
|
|
2782
|
+
type: string;
|
|
2783
|
+
team?: string;
|
|
2784
|
+
thread_participants?: User[];
|
|
2785
|
+
message?: Message;
|
|
2786
|
+
user?: User;
|
|
2787
|
+
}
|
|
2044
2788
|
export interface MessageWithChannelResponse {
|
|
2045
2789
|
cid: string;
|
|
2046
2790
|
created_at: Date;
|
|
@@ -2052,7 +2796,7 @@ export interface MessageWithChannelResponse {
|
|
|
2052
2796
|
shadowed: boolean;
|
|
2053
2797
|
silent: boolean;
|
|
2054
2798
|
text: string;
|
|
2055
|
-
type:
|
|
2799
|
+
type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
|
|
2056
2800
|
updated_at: Date;
|
|
2057
2801
|
attachments: Attachment[];
|
|
2058
2802
|
latest_reactions: ReactionResponse[];
|
|
@@ -2076,9 +2820,10 @@ export interface MessageWithChannelResponse {
|
|
|
2076
2820
|
thread_participants?: UserResponse[];
|
|
2077
2821
|
i18n?: Record<string, string>;
|
|
2078
2822
|
image_labels?: Record<string, string[]>;
|
|
2823
|
+
moderation?: ModerationV2Response;
|
|
2079
2824
|
pinned_by?: UserResponse;
|
|
2080
|
-
poll?:
|
|
2081
|
-
quoted_message?:
|
|
2825
|
+
poll?: PollResponseData;
|
|
2826
|
+
quoted_message?: MessageResponse;
|
|
2082
2827
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
2083
2828
|
}
|
|
2084
2829
|
export interface ModerationActionConfig {
|
|
@@ -2089,6 +2834,35 @@ export interface ModerationActionConfig {
|
|
|
2089
2834
|
order: number;
|
|
2090
2835
|
custom: Record<string, any>;
|
|
2091
2836
|
}
|
|
2837
|
+
export interface ModerationCustomActionEvent {
|
|
2838
|
+
created_at: Date;
|
|
2839
|
+
type: string;
|
|
2840
|
+
item?: ReviewQueueItem;
|
|
2841
|
+
message?: Message;
|
|
2842
|
+
user?: User;
|
|
2843
|
+
}
|
|
2844
|
+
export interface ModerationEvent {
|
|
2845
|
+
created_at: Date;
|
|
2846
|
+
type: string;
|
|
2847
|
+
received_at?: Date;
|
|
2848
|
+
flags?: Flag2Response[];
|
|
2849
|
+
action?: ActionLogResponse;
|
|
2850
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
2851
|
+
}
|
|
2852
|
+
export interface ModerationFlaggedEvent {
|
|
2853
|
+
created_at: Date;
|
|
2854
|
+
type: string;
|
|
2855
|
+
item?: string;
|
|
2856
|
+
object_id?: string;
|
|
2857
|
+
user?: User;
|
|
2858
|
+
}
|
|
2859
|
+
export interface ModerationMarkReviewedEvent {
|
|
2860
|
+
created_at: Date;
|
|
2861
|
+
type: string;
|
|
2862
|
+
item?: ReviewQueueItem;
|
|
2863
|
+
message?: Message;
|
|
2864
|
+
user?: User;
|
|
2865
|
+
}
|
|
2092
2866
|
export interface ModerationPayload {
|
|
2093
2867
|
images?: string[];
|
|
2094
2868
|
texts?: string[];
|
|
@@ -2102,10 +2876,22 @@ export interface ModerationResponse {
|
|
|
2102
2876
|
toxic: number;
|
|
2103
2877
|
}
|
|
2104
2878
|
export interface ModerationUsageStats {
|
|
2105
|
-
|
|
2106
|
-
|
|
2879
|
+
app_pk: number;
|
|
2880
|
+
id: number;
|
|
2881
|
+
organization_id: number;
|
|
2882
|
+
reference_date: Date;
|
|
2107
2883
|
updated_at: Date;
|
|
2108
|
-
|
|
2884
|
+
usage_amount: number;
|
|
2885
|
+
usage_type: string;
|
|
2886
|
+
}
|
|
2887
|
+
export interface ModerationV2Response {
|
|
2888
|
+
action: string;
|
|
2889
|
+
original_text: string;
|
|
2890
|
+
blocklist_matched?: string;
|
|
2891
|
+
platform_circumvented?: boolean;
|
|
2892
|
+
semantic_filter_matched?: string;
|
|
2893
|
+
image_harms?: string[];
|
|
2894
|
+
text_harms?: string[];
|
|
2109
2895
|
}
|
|
2110
2896
|
export interface ModeratorStats {
|
|
2111
2897
|
id: string;
|
|
@@ -2153,9 +2939,35 @@ export interface MuteUsersRequest {
|
|
|
2153
2939
|
export interface MuteUsersResponse {
|
|
2154
2940
|
duration: string;
|
|
2155
2941
|
}
|
|
2942
|
+
export interface NetworkMetricsReportResponse {
|
|
2943
|
+
average_connection_time?: number;
|
|
2944
|
+
average_jitter?: number;
|
|
2945
|
+
average_latency?: number;
|
|
2946
|
+
average_time_to_reconnect?: number;
|
|
2947
|
+
}
|
|
2156
2948
|
export interface NoiseCancellationSettings {
|
|
2157
2949
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
2158
2950
|
}
|
|
2951
|
+
export interface NotificationMarkUnreadEvent {
|
|
2952
|
+
channel_id: string;
|
|
2953
|
+
channel_member_count: number;
|
|
2954
|
+
channel_type: string;
|
|
2955
|
+
cid: string;
|
|
2956
|
+
created_at: Date;
|
|
2957
|
+
first_unread_message_id: string;
|
|
2958
|
+
last_read_at: Date;
|
|
2959
|
+
total_unread_count: number;
|
|
2960
|
+
unread_channels: number;
|
|
2961
|
+
unread_count: number;
|
|
2962
|
+
unread_messages: number;
|
|
2963
|
+
unread_threads: number;
|
|
2964
|
+
type: string;
|
|
2965
|
+
last_read_message_id?: string;
|
|
2966
|
+
team?: string;
|
|
2967
|
+
thread_id?: string;
|
|
2968
|
+
channel?: ChannelResponse;
|
|
2969
|
+
user?: User;
|
|
2970
|
+
}
|
|
2159
2971
|
export interface NotificationSettings {
|
|
2160
2972
|
enabled: boolean;
|
|
2161
2973
|
call_live_started: EventNotificationSettings;
|
|
@@ -2193,9 +3005,11 @@ export declare const OwnCapability: {
|
|
|
2193
3005
|
readonly SEND_AUDIO: "send-audio";
|
|
2194
3006
|
readonly SEND_VIDEO: "send-video";
|
|
2195
3007
|
readonly START_BROADCAST_CALL: "start-broadcast-call";
|
|
3008
|
+
readonly START_CLOSED_CAPTIONS_CALL: "start-closed-captions-call";
|
|
2196
3009
|
readonly START_RECORD_CALL: "start-record-call";
|
|
2197
3010
|
readonly START_TRANSCRIPTION_CALL: "start-transcription-call";
|
|
2198
3011
|
readonly STOP_BROADCAST_CALL: "stop-broadcast-call";
|
|
3012
|
+
readonly STOP_CLOSED_CAPTIONS_CALL: "stop-closed-captions-call";
|
|
2199
3013
|
readonly STOP_RECORD_CALL: "stop-record-call";
|
|
2200
3014
|
readonly STOP_TRANSCRIPTION_CALL: "stop-transcription-call";
|
|
2201
3015
|
readonly UPDATE_CALL: "update-call";
|
|
@@ -2224,12 +3038,42 @@ export interface OwnUser {
|
|
|
2224
3038
|
deleted_at?: Date;
|
|
2225
3039
|
invisible?: boolean;
|
|
2226
3040
|
last_active?: Date;
|
|
3041
|
+
last_engaged_at?: Date;
|
|
2227
3042
|
blocked_user_ids?: string[];
|
|
2228
3043
|
latest_hidden_channels?: string[];
|
|
2229
3044
|
teams?: string[];
|
|
2230
3045
|
privacy_settings?: PrivacySettings;
|
|
2231
3046
|
push_notifications?: PushNotificationSettings;
|
|
2232
3047
|
}
|
|
3048
|
+
export interface OwnUserResponse {
|
|
3049
|
+
banned: boolean;
|
|
3050
|
+
created_at: Date;
|
|
3051
|
+
id: string;
|
|
3052
|
+
invisible: boolean;
|
|
3053
|
+
language: string;
|
|
3054
|
+
online: boolean;
|
|
3055
|
+
role: string;
|
|
3056
|
+
total_unread_count: number;
|
|
3057
|
+
unread_channels: number;
|
|
3058
|
+
unread_count: number;
|
|
3059
|
+
unread_threads: number;
|
|
3060
|
+
updated_at: Date;
|
|
3061
|
+
channel_mutes: ChannelMute[];
|
|
3062
|
+
devices: DeviceResponse[];
|
|
3063
|
+
mutes: UserMuteResponse[];
|
|
3064
|
+
teams: string[];
|
|
3065
|
+
custom: Record<string, any>;
|
|
3066
|
+
deactivated_at?: Date;
|
|
3067
|
+
deleted_at?: Date;
|
|
3068
|
+
image?: string;
|
|
3069
|
+
last_active?: Date;
|
|
3070
|
+
name?: string;
|
|
3071
|
+
revoke_tokens_issued_before?: Date;
|
|
3072
|
+
blocked_user_ids?: string[];
|
|
3073
|
+
latest_hidden_channels?: string[];
|
|
3074
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
3075
|
+
push_notifications?: PushNotificationSettingsResponse;
|
|
3076
|
+
}
|
|
2233
3077
|
export interface PaginationParams {
|
|
2234
3078
|
limit?: number;
|
|
2235
3079
|
offset?: number;
|
|
@@ -2240,6 +3084,10 @@ export interface PendingMessageResponse {
|
|
|
2240
3084
|
metadata?: Record<string, string>;
|
|
2241
3085
|
user?: UserResponse;
|
|
2242
3086
|
}
|
|
3087
|
+
export interface PerSDKUsageReport {
|
|
3088
|
+
total: number;
|
|
3089
|
+
by_version: Record<string, number>;
|
|
3090
|
+
}
|
|
2243
3091
|
export interface Permission {
|
|
2244
3092
|
action: string;
|
|
2245
3093
|
custom: boolean;
|
|
@@ -2252,6 +3100,13 @@ export interface Permission {
|
|
|
2252
3100
|
tags: string[];
|
|
2253
3101
|
condition?: Record<string, any>;
|
|
2254
3102
|
}
|
|
3103
|
+
export interface PermissionRequestEvent {
|
|
3104
|
+
call_cid: string;
|
|
3105
|
+
created_at: Date;
|
|
3106
|
+
permissions: string[];
|
|
3107
|
+
user: UserResponse;
|
|
3108
|
+
type: string;
|
|
3109
|
+
}
|
|
2255
3110
|
export interface PinRequest {
|
|
2256
3111
|
session_id: string;
|
|
2257
3112
|
user_id: string;
|
|
@@ -2293,12 +3148,12 @@ export interface Poll {
|
|
|
2293
3148
|
options: PollOption[];
|
|
2294
3149
|
own_votes: PollVote[];
|
|
2295
3150
|
custom: Record<string, any>;
|
|
2296
|
-
latest_votes_by_option: Record<string,
|
|
3151
|
+
latest_votes_by_option: Record<string, PollVote[]>;
|
|
2297
3152
|
vote_counts_by_option: Record<string, number>;
|
|
2298
3153
|
is_closed?: boolean;
|
|
2299
3154
|
max_votes_allowed?: number;
|
|
2300
3155
|
voting_visibility?: string;
|
|
2301
|
-
created_by?:
|
|
3156
|
+
created_by?: User;
|
|
2302
3157
|
}
|
|
2303
3158
|
export interface PollOption {
|
|
2304
3159
|
id: string;
|
|
@@ -2340,10 +3195,11 @@ export interface PollResponseData {
|
|
|
2340
3195
|
updated_at: Date;
|
|
2341
3196
|
vote_count: number;
|
|
2342
3197
|
voting_visibility: string;
|
|
3198
|
+
latest_answers: PollVoteResponseData[];
|
|
2343
3199
|
options: PollOptionResponseData[];
|
|
2344
3200
|
own_votes: PollVoteResponseData[];
|
|
2345
3201
|
custom: Record<string, any>;
|
|
2346
|
-
latest_votes_by_option: Record<string,
|
|
3202
|
+
latest_votes_by_option: Record<string, PollVoteResponseData[]>;
|
|
2347
3203
|
vote_counts_by_option: Record<string, number>;
|
|
2348
3204
|
is_closed?: boolean;
|
|
2349
3205
|
max_votes_allowed?: number;
|
|
@@ -2358,7 +3214,7 @@ export interface PollVote {
|
|
|
2358
3214
|
answer_text?: string;
|
|
2359
3215
|
is_answer?: boolean;
|
|
2360
3216
|
user_id?: string;
|
|
2361
|
-
user?:
|
|
3217
|
+
user?: User;
|
|
2362
3218
|
}
|
|
2363
3219
|
export interface PollVoteResponse {
|
|
2364
3220
|
duration: string;
|
|
@@ -2481,6 +3337,27 @@ export interface PushProviderResponse {
|
|
|
2481
3337
|
xiaomi_app_secret?: string;
|
|
2482
3338
|
xiaomi_package_name?: string;
|
|
2483
3339
|
}
|
|
3340
|
+
export interface QualityScoreReport {
|
|
3341
|
+
histogram: ReportByHistogramBucket[];
|
|
3342
|
+
}
|
|
3343
|
+
export interface QualityScoreReportResponse {
|
|
3344
|
+
daily: DailyAggregateQualityScoreReportResponse[];
|
|
3345
|
+
}
|
|
3346
|
+
export interface QueryAggregateCallStatsRequest {
|
|
3347
|
+
from?: string;
|
|
3348
|
+
to?: string;
|
|
3349
|
+
report_types?: string[];
|
|
3350
|
+
}
|
|
3351
|
+
export interface QueryAggregateCallStatsResponse {
|
|
3352
|
+
duration: string;
|
|
3353
|
+
call_duration_report?: CallDurationReportResponse;
|
|
3354
|
+
call_participant_count_report?: CallParticipantCountReportResponse;
|
|
3355
|
+
calls_per_day_report?: CallsPerDayReportResponse;
|
|
3356
|
+
network_metrics_report?: NetworkMetricsReportResponse;
|
|
3357
|
+
quality_score_report?: QualityScoreReportResponse;
|
|
3358
|
+
sdk_usage_report?: SDKUsageReportResponse;
|
|
3359
|
+
user_feedback_report?: UserFeedbackReportResponse;
|
|
3360
|
+
}
|
|
2484
3361
|
export interface QueryBannedUsersPayload {
|
|
2485
3362
|
filter_conditions: Record<string, any>;
|
|
2486
3363
|
exclude_expired_bans?: boolean;
|
|
@@ -2535,6 +3412,19 @@ export interface QueryCallsResponse {
|
|
|
2535
3412
|
next?: string;
|
|
2536
3413
|
prev?: string;
|
|
2537
3414
|
}
|
|
3415
|
+
export interface QueryCampaignsRequest {
|
|
3416
|
+
limit?: number;
|
|
3417
|
+
next?: string;
|
|
3418
|
+
prev?: string;
|
|
3419
|
+
sort?: SortParamRequest[];
|
|
3420
|
+
filter?: Record<string, any>;
|
|
3421
|
+
}
|
|
3422
|
+
export interface QueryCampaignsResponse {
|
|
3423
|
+
duration: string;
|
|
3424
|
+
campaigns: CampaignResponse[];
|
|
3425
|
+
next?: string;
|
|
3426
|
+
prev?: string;
|
|
3427
|
+
}
|
|
2538
3428
|
export interface QueryChannelsRequest {
|
|
2539
3429
|
limit?: number;
|
|
2540
3430
|
member_limit?: number;
|
|
@@ -2576,7 +3466,7 @@ export interface QueryMessageFlagsPayload {
|
|
|
2576
3466
|
offset?: number;
|
|
2577
3467
|
show_deleted_messages?: boolean;
|
|
2578
3468
|
user_id?: string;
|
|
2579
|
-
sort?:
|
|
3469
|
+
sort?: SortParamRequest[];
|
|
2580
3470
|
filter_conditions?: Record<string, any>;
|
|
2581
3471
|
user?: UserRequest;
|
|
2582
3472
|
}
|
|
@@ -2597,6 +3487,21 @@ export interface QueryMessageHistoryResponse {
|
|
|
2597
3487
|
next?: string;
|
|
2598
3488
|
prev?: string;
|
|
2599
3489
|
}
|
|
3490
|
+
export interface QueryModerationConfigsRequest {
|
|
3491
|
+
limit?: number;
|
|
3492
|
+
next?: string;
|
|
3493
|
+
prev?: string;
|
|
3494
|
+
user_id?: string;
|
|
3495
|
+
sort?: SortParamRequest[];
|
|
3496
|
+
filter?: Record<string, any>;
|
|
3497
|
+
user?: UserRequest;
|
|
3498
|
+
}
|
|
3499
|
+
export interface QueryModerationConfigsResponse {
|
|
3500
|
+
duration: string;
|
|
3501
|
+
configs: ConfigResponse[];
|
|
3502
|
+
next?: string;
|
|
3503
|
+
prev?: string;
|
|
3504
|
+
}
|
|
2600
3505
|
export interface QueryModerationLogsRequest {
|
|
2601
3506
|
limit?: number;
|
|
2602
3507
|
next?: string;
|
|
@@ -2608,7 +3513,7 @@ export interface QueryModerationLogsRequest {
|
|
|
2608
3513
|
}
|
|
2609
3514
|
export interface QueryModerationLogsResponse {
|
|
2610
3515
|
duration: string;
|
|
2611
|
-
|
|
3516
|
+
logs: ActionLogResponse[];
|
|
2612
3517
|
next?: string;
|
|
2613
3518
|
prev?: string;
|
|
2614
3519
|
}
|
|
@@ -2649,8 +3554,9 @@ export interface QueryReactionsResponse {
|
|
|
2649
3554
|
}
|
|
2650
3555
|
export interface QueryReviewQueueRequest {
|
|
2651
3556
|
limit?: number;
|
|
2652
|
-
|
|
2653
|
-
|
|
3557
|
+
lock_count?: number;
|
|
3558
|
+
lock_duration?: number;
|
|
3559
|
+
lock_items?: boolean;
|
|
2654
3560
|
next?: string;
|
|
2655
3561
|
prev?: string;
|
|
2656
3562
|
stats_only?: boolean;
|
|
@@ -2661,12 +3567,38 @@ export interface QueryReviewQueueRequest {
|
|
|
2661
3567
|
}
|
|
2662
3568
|
export interface QueryReviewQueueResponse {
|
|
2663
3569
|
duration: string;
|
|
2664
|
-
items:
|
|
2665
|
-
action_config: Record<string,
|
|
3570
|
+
items: ReviewQueueItemResponse[];
|
|
3571
|
+
action_config: Record<string, ModerationActionConfig[]>;
|
|
2666
3572
|
stats: Record<string, number>;
|
|
2667
3573
|
next?: string;
|
|
2668
3574
|
prev?: string;
|
|
2669
3575
|
}
|
|
3576
|
+
export interface QuerySegmentTargetsRequest {
|
|
3577
|
+
limit?: number;
|
|
3578
|
+
next?: string;
|
|
3579
|
+
prev?: string;
|
|
3580
|
+
sort?: SortParamRequest[];
|
|
3581
|
+
filter?: Record<string, any>;
|
|
3582
|
+
}
|
|
3583
|
+
export interface QuerySegmentTargetsResponse {
|
|
3584
|
+
duration: string;
|
|
3585
|
+
targets: SegmentTargetResponse[];
|
|
3586
|
+
next?: string;
|
|
3587
|
+
prev?: string;
|
|
3588
|
+
}
|
|
3589
|
+
export interface QuerySegmentsRequest {
|
|
3590
|
+
filter: Record<string, any>;
|
|
3591
|
+
limit?: number;
|
|
3592
|
+
next?: string;
|
|
3593
|
+
prev?: string;
|
|
3594
|
+
sort?: SortParamRequest[];
|
|
3595
|
+
}
|
|
3596
|
+
export interface QuerySegmentsResponse {
|
|
3597
|
+
duration: string;
|
|
3598
|
+
segments: SegmentResponse[];
|
|
3599
|
+
next?: string;
|
|
3600
|
+
prev?: string;
|
|
3601
|
+
}
|
|
2670
3602
|
export interface QueryThreadsRequest {
|
|
2671
3603
|
limit?: number;
|
|
2672
3604
|
member_limit?: number;
|
|
@@ -2756,7 +3688,19 @@ export interface Reaction {
|
|
|
2756
3688
|
updated_at: Date;
|
|
2757
3689
|
custom: Record<string, any>;
|
|
2758
3690
|
user_id?: string;
|
|
2759
|
-
user?:
|
|
3691
|
+
user?: User;
|
|
3692
|
+
}
|
|
3693
|
+
export interface ReactionDeletedEvent {
|
|
3694
|
+
channel_id: string;
|
|
3695
|
+
channel_type: string;
|
|
3696
|
+
cid: string;
|
|
3697
|
+
created_at: Date;
|
|
3698
|
+
type: string;
|
|
3699
|
+
team?: string;
|
|
3700
|
+
thread_participants?: User[];
|
|
3701
|
+
message?: Message;
|
|
3702
|
+
reaction?: Reaction;
|
|
3703
|
+
user?: User;
|
|
2760
3704
|
}
|
|
2761
3705
|
export interface ReactionGroupResponse {
|
|
2762
3706
|
count: number;
|
|
@@ -2764,6 +3708,18 @@ export interface ReactionGroupResponse {
|
|
|
2764
3708
|
last_reaction_at: Date;
|
|
2765
3709
|
sum_scores: number;
|
|
2766
3710
|
}
|
|
3711
|
+
export interface ReactionNewEvent {
|
|
3712
|
+
channel_id: string;
|
|
3713
|
+
channel_type: string;
|
|
3714
|
+
cid: string;
|
|
3715
|
+
created_at: Date;
|
|
3716
|
+
type: string;
|
|
3717
|
+
team?: string;
|
|
3718
|
+
thread_participants?: User[];
|
|
3719
|
+
message?: Message;
|
|
3720
|
+
reaction?: Reaction;
|
|
3721
|
+
user?: User;
|
|
3722
|
+
}
|
|
2767
3723
|
export interface ReactionRemovalResponse {
|
|
2768
3724
|
duration: string;
|
|
2769
3725
|
message?: Message;
|
|
@@ -2788,6 +3744,17 @@ export interface ReactionResponse {
|
|
|
2788
3744
|
custom: Record<string, any>;
|
|
2789
3745
|
user: UserResponse;
|
|
2790
3746
|
}
|
|
3747
|
+
export interface ReactionUpdatedEvent {
|
|
3748
|
+
channel_id: string;
|
|
3749
|
+
channel_type: string;
|
|
3750
|
+
cid: string;
|
|
3751
|
+
created_at: Date;
|
|
3752
|
+
message: Message;
|
|
3753
|
+
reaction: Reaction;
|
|
3754
|
+
type: string;
|
|
3755
|
+
team?: string;
|
|
3756
|
+
user?: User;
|
|
3757
|
+
}
|
|
2791
3758
|
export interface ReactivateUserRequest {
|
|
2792
3759
|
created_by_id?: string;
|
|
2793
3760
|
name?: string;
|
|
@@ -2807,17 +3774,11 @@ export interface ReactivateUsersResponse {
|
|
|
2807
3774
|
duration: string;
|
|
2808
3775
|
task_id: string;
|
|
2809
3776
|
}
|
|
2810
|
-
export interface Read {
|
|
2811
|
-
last_read: Date;
|
|
2812
|
-
unread_messages: number;
|
|
2813
|
-
last_read_message_id?: string;
|
|
2814
|
-
user?: UserObject;
|
|
2815
|
-
}
|
|
2816
3777
|
export interface ReadReceipts {
|
|
2817
|
-
enabled
|
|
3778
|
+
enabled: boolean;
|
|
2818
3779
|
}
|
|
2819
3780
|
export interface ReadReceiptsResponse {
|
|
2820
|
-
enabled
|
|
3781
|
+
enabled?: boolean;
|
|
2821
3782
|
}
|
|
2822
3783
|
export interface ReadStateResponse {
|
|
2823
3784
|
last_read: Date;
|
|
@@ -2826,9 +3787,9 @@ export interface ReadStateResponse {
|
|
|
2826
3787
|
last_read_message_id?: string;
|
|
2827
3788
|
}
|
|
2828
3789
|
export interface RecordSettings {
|
|
2829
|
-
audio_only: boolean;
|
|
2830
3790
|
mode: string;
|
|
2831
|
-
|
|
3791
|
+
audio_only?: boolean;
|
|
3792
|
+
quality?: string;
|
|
2832
3793
|
layout?: LayoutSettings;
|
|
2833
3794
|
}
|
|
2834
3795
|
export interface RecordSettingsRequest {
|
|
@@ -2843,6 +3804,14 @@ export interface RecordSettingsResponse {
|
|
|
2843
3804
|
quality: string;
|
|
2844
3805
|
layout: LayoutSettingsResponse;
|
|
2845
3806
|
}
|
|
3807
|
+
export interface ReportByHistogramBucket {
|
|
3808
|
+
category: string;
|
|
3809
|
+
count: number;
|
|
3810
|
+
mean: number;
|
|
3811
|
+
sum: number;
|
|
3812
|
+
lower_bound?: Bound;
|
|
3813
|
+
upper_bound?: Bound;
|
|
3814
|
+
}
|
|
2846
3815
|
export interface Response {
|
|
2847
3816
|
duration: string;
|
|
2848
3817
|
}
|
|
@@ -2852,6 +3821,7 @@ export interface RestoreUsersRequest {
|
|
|
2852
3821
|
user_ids: string[];
|
|
2853
3822
|
}
|
|
2854
3823
|
export interface ReviewQueueItem {
|
|
3824
|
+
bounce_count: number;
|
|
2855
3825
|
content_changed: boolean;
|
|
2856
3826
|
created_at: Date;
|
|
2857
3827
|
entity_id: string;
|
|
@@ -2870,15 +3840,40 @@ export interface ReviewQueueItem {
|
|
|
2870
3840
|
bans: Ban[];
|
|
2871
3841
|
flags: Flag2[];
|
|
2872
3842
|
languages: string[];
|
|
3843
|
+
teams: string[];
|
|
2873
3844
|
completed_at: NullTime;
|
|
2874
3845
|
reviewed_at: NullTime;
|
|
2875
|
-
assigned_to?:
|
|
2876
|
-
entity_creator?:
|
|
3846
|
+
assigned_to?: User;
|
|
3847
|
+
entity_creator?: EntityCreator;
|
|
2877
3848
|
feeds_v2_activity?: EnrichedActivity;
|
|
2878
3849
|
feeds_v2_reaction?: Reaction;
|
|
2879
3850
|
message?: Message;
|
|
2880
3851
|
moderation_payload?: ModerationPayload;
|
|
2881
3852
|
}
|
|
3853
|
+
export interface ReviewQueueItemResponse {
|
|
3854
|
+
created_at: Date;
|
|
3855
|
+
entity_id: string;
|
|
3856
|
+
entity_type: string;
|
|
3857
|
+
id: string;
|
|
3858
|
+
recommended_action: string;
|
|
3859
|
+
reviewed_by: string;
|
|
3860
|
+
severity: number;
|
|
3861
|
+
status: string;
|
|
3862
|
+
updated_at: Date;
|
|
3863
|
+
actions: ActionLogResponse[];
|
|
3864
|
+
bans: Ban[];
|
|
3865
|
+
flags: Flag2Response[];
|
|
3866
|
+
languages: string[];
|
|
3867
|
+
completed_at?: Date;
|
|
3868
|
+
entity_creator_id?: string;
|
|
3869
|
+
reviewed_at?: Date;
|
|
3870
|
+
assigned_to?: UserResponse;
|
|
3871
|
+
entity_creator?: EntityCreatorResponse;
|
|
3872
|
+
feeds_v2_activity?: EnrichedActivity;
|
|
3873
|
+
feeds_v2_reaction?: Reaction;
|
|
3874
|
+
message?: MessageResponse;
|
|
3875
|
+
moderation_payload?: ModerationPayload;
|
|
3876
|
+
}
|
|
2882
3877
|
export interface RingSettings {
|
|
2883
3878
|
auto_cancel_timeout_ms: number;
|
|
2884
3879
|
incoming_call_timeout_ms: number;
|
|
@@ -2906,6 +3901,12 @@ export interface S3Request {
|
|
|
2906
3901
|
s3_api_key?: string;
|
|
2907
3902
|
s3_secret?: string;
|
|
2908
3903
|
}
|
|
3904
|
+
export interface SDKUsageReport {
|
|
3905
|
+
per_sdk_usage: Record<string, PerSDKUsageReport>;
|
|
3906
|
+
}
|
|
3907
|
+
export interface SDKUsageReportResponse {
|
|
3908
|
+
daily: DailyAggregateSDKUsageReportResponse[];
|
|
3909
|
+
}
|
|
2909
3910
|
export interface SFULocationResponse {
|
|
2910
3911
|
datacenter: string;
|
|
2911
3912
|
id: string;
|
|
@@ -2960,14 +3961,13 @@ export interface SearchResultMessage {
|
|
|
2960
3961
|
type: string;
|
|
2961
3962
|
updated_at: Date;
|
|
2962
3963
|
attachments: Attachment[];
|
|
2963
|
-
latest_reactions:
|
|
2964
|
-
mentioned_users:
|
|
2965
|
-
own_reactions:
|
|
3964
|
+
latest_reactions: ReactionResponse[];
|
|
3965
|
+
mentioned_users: UserResponse[];
|
|
3966
|
+
own_reactions: ReactionResponse[];
|
|
2966
3967
|
custom: Record<string, any>;
|
|
2967
3968
|
reaction_counts: Record<string, number>;
|
|
2968
|
-
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
2969
3969
|
reaction_scores: Record<string, number>;
|
|
2970
|
-
|
|
3970
|
+
user: UserResponse;
|
|
2971
3971
|
command?: string;
|
|
2972
3972
|
deleted_at?: Date;
|
|
2973
3973
|
message_text_updated_at?: Date;
|
|
@@ -2978,14 +3978,15 @@ export interface SearchResultMessage {
|
|
|
2978
3978
|
poll_id?: string;
|
|
2979
3979
|
quoted_message_id?: string;
|
|
2980
3980
|
show_in_channel?: boolean;
|
|
2981
|
-
thread_participants?:
|
|
3981
|
+
thread_participants?: UserResponse[];
|
|
2982
3982
|
channel?: ChannelResponse;
|
|
2983
3983
|
i18n?: Record<string, string>;
|
|
2984
3984
|
image_labels?: Record<string, string[]>;
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
3985
|
+
moderation?: ModerationV2Response;
|
|
3986
|
+
pinned_by?: UserResponse;
|
|
3987
|
+
poll?: PollResponseData;
|
|
3988
|
+
quoted_message?: MessageResponse;
|
|
3989
|
+
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
2989
3990
|
}
|
|
2990
3991
|
export interface SearchWarning {
|
|
2991
3992
|
warning_code: number;
|
|
@@ -2993,6 +3994,39 @@ export interface SearchWarning {
|
|
|
2993
3994
|
channel_search_count?: number;
|
|
2994
3995
|
channel_search_cids?: string[];
|
|
2995
3996
|
}
|
|
3997
|
+
export interface Segment {
|
|
3998
|
+
all_sender_channels: boolean;
|
|
3999
|
+
all_users: boolean;
|
|
4000
|
+
created_at: Date;
|
|
4001
|
+
id: string;
|
|
4002
|
+
name: string;
|
|
4003
|
+
size: number;
|
|
4004
|
+
type: string;
|
|
4005
|
+
updated_at: Date;
|
|
4006
|
+
deleted_at?: Date;
|
|
4007
|
+
description?: string;
|
|
4008
|
+
task_id?: string;
|
|
4009
|
+
filter?: Record<string, any>;
|
|
4010
|
+
}
|
|
4011
|
+
export interface SegmentResponse {
|
|
4012
|
+
all_sender_channels: boolean;
|
|
4013
|
+
all_users: boolean;
|
|
4014
|
+
created_at: Date;
|
|
4015
|
+
deleted_at: Date;
|
|
4016
|
+
description: string;
|
|
4017
|
+
id: string;
|
|
4018
|
+
name: string;
|
|
4019
|
+
size: number;
|
|
4020
|
+
type: string;
|
|
4021
|
+
updated_at: Date;
|
|
4022
|
+
filter: Record<string, any>;
|
|
4023
|
+
}
|
|
4024
|
+
export interface SegmentTargetResponse {
|
|
4025
|
+
app_pk: number;
|
|
4026
|
+
created_at: Date;
|
|
4027
|
+
segment_id: string;
|
|
4028
|
+
target_id: string;
|
|
4029
|
+
}
|
|
2996
4030
|
export interface SendCallEventRequest {
|
|
2997
4031
|
user_id?: string;
|
|
2998
4032
|
custom?: Record<string, any>;
|
|
@@ -3038,14 +4072,26 @@ export interface ShowChannelRequest {
|
|
|
3038
4072
|
export interface ShowChannelResponse {
|
|
3039
4073
|
duration: string;
|
|
3040
4074
|
}
|
|
3041
|
-
export interface SortParam {
|
|
3042
|
-
direction?: number;
|
|
3043
|
-
field?: string;
|
|
3044
|
-
}
|
|
3045
4075
|
export interface SortParamRequest {
|
|
3046
4076
|
direction?: number;
|
|
3047
4077
|
field?: string;
|
|
3048
4078
|
}
|
|
4079
|
+
export interface StartCampaignRequest {
|
|
4080
|
+
scheduled_for?: Date;
|
|
4081
|
+
stop_at?: Date;
|
|
4082
|
+
}
|
|
4083
|
+
export interface StartCampaignResponse {
|
|
4084
|
+
duration: string;
|
|
4085
|
+
campaign?: CampaignResponse;
|
|
4086
|
+
}
|
|
4087
|
+
export interface StartClosedCaptionsRequest {
|
|
4088
|
+
enable_transcription?: boolean;
|
|
4089
|
+
external_storage?: string;
|
|
4090
|
+
language?: string;
|
|
4091
|
+
}
|
|
4092
|
+
export interface StartClosedCaptionsResponse {
|
|
4093
|
+
duration: string;
|
|
4094
|
+
}
|
|
3049
4095
|
export interface StartHLSBroadcastingRequest {
|
|
3050
4096
|
}
|
|
3051
4097
|
export interface StartHLSBroadcastingResponse {
|
|
@@ -3065,6 +4111,8 @@ export interface StartRecordingResponse {
|
|
|
3065
4111
|
duration: string;
|
|
3066
4112
|
}
|
|
3067
4113
|
export interface StartTranscriptionRequest {
|
|
4114
|
+
enable_closed_captions?: boolean;
|
|
4115
|
+
language?: string;
|
|
3068
4116
|
transcription_external_storage?: string;
|
|
3069
4117
|
}
|
|
3070
4118
|
export interface StartTranscriptionResponse {
|
|
@@ -3075,12 +4123,25 @@ export interface StopAllRTMPBroadcastsRequest {
|
|
|
3075
4123
|
export interface StopAllRTMPBroadcastsResponse {
|
|
3076
4124
|
duration: string;
|
|
3077
4125
|
}
|
|
4126
|
+
export interface StopCampaignRequest {
|
|
4127
|
+
}
|
|
4128
|
+
export interface StopClosedCaptionsRequest {
|
|
4129
|
+
stop_transcription?: boolean;
|
|
4130
|
+
}
|
|
4131
|
+
export interface StopClosedCaptionsResponse {
|
|
4132
|
+
duration: string;
|
|
4133
|
+
}
|
|
3078
4134
|
export interface StopHLSBroadcastingRequest {
|
|
3079
4135
|
}
|
|
3080
4136
|
export interface StopHLSBroadcastingResponse {
|
|
3081
4137
|
duration: string;
|
|
3082
4138
|
}
|
|
3083
4139
|
export interface StopLiveRequest {
|
|
4140
|
+
continue_closed_caption?: boolean;
|
|
4141
|
+
continue_hls?: boolean;
|
|
4142
|
+
continue_recording?: boolean;
|
|
4143
|
+
continue_rtmp_broadcasts?: boolean;
|
|
4144
|
+
continue_transcription?: boolean;
|
|
3084
4145
|
}
|
|
3085
4146
|
export interface StopLiveResponse {
|
|
3086
4147
|
duration: string;
|
|
@@ -3097,6 +4158,7 @@ export interface StopRecordingResponse {
|
|
|
3097
4158
|
duration: string;
|
|
3098
4159
|
}
|
|
3099
4160
|
export interface StopTranscriptionRequest {
|
|
4161
|
+
stop_closed_captions?: boolean;
|
|
3100
4162
|
}
|
|
3101
4163
|
export interface StopTranscriptionResponse {
|
|
3102
4164
|
duration: string;
|
|
@@ -3111,6 +4173,7 @@ export interface SubmitActionRequest {
|
|
|
3111
4173
|
delete_message?: DeleteMessageRequest;
|
|
3112
4174
|
delete_reaction?: DeleteReactionRequest;
|
|
3113
4175
|
delete_user?: DeleteUserRequest;
|
|
4176
|
+
mark_reviewed?: MarkReviewedRequest;
|
|
3114
4177
|
unban?: UnbanActionRequest;
|
|
3115
4178
|
user?: UserRequest;
|
|
3116
4179
|
}
|
|
@@ -3143,7 +4206,7 @@ export interface ThreadParticipant {
|
|
|
3143
4206
|
left_thread_at?: Date;
|
|
3144
4207
|
thread_id?: string;
|
|
3145
4208
|
user_id?: string;
|
|
3146
|
-
user?:
|
|
4209
|
+
user?: UserResponse;
|
|
3147
4210
|
}
|
|
3148
4211
|
export interface ThreadResponse {
|
|
3149
4212
|
channel_cid: string;
|
|
@@ -3160,27 +4223,8 @@ export interface ThreadResponse {
|
|
|
3160
4223
|
reply_count?: number;
|
|
3161
4224
|
thread_participants?: ThreadParticipant[];
|
|
3162
4225
|
channel?: ChannelResponse;
|
|
3163
|
-
created_by?:
|
|
3164
|
-
parent_message?:
|
|
3165
|
-
}
|
|
3166
|
-
export interface ThreadState {
|
|
3167
|
-
channel_cid: string;
|
|
3168
|
-
created_at: Date;
|
|
3169
|
-
parent_message_id: string;
|
|
3170
|
-
title: string;
|
|
3171
|
-
updated_at: Date;
|
|
3172
|
-
latest_replies: Message[];
|
|
3173
|
-
custom: Record<string, any>;
|
|
3174
|
-
active_participant_count?: number;
|
|
3175
|
-
deleted_at?: Date;
|
|
3176
|
-
last_message_at?: Date;
|
|
3177
|
-
participant_count?: number;
|
|
3178
|
-
reply_count?: number;
|
|
3179
|
-
read?: Read[];
|
|
3180
|
-
thread_participants?: ThreadParticipant[];
|
|
3181
|
-
channel?: Channel;
|
|
3182
|
-
created_by?: UserObject;
|
|
3183
|
-
parent_message?: Message;
|
|
4226
|
+
created_by?: UserResponse;
|
|
4227
|
+
parent_message?: MessageResponse;
|
|
3184
4228
|
}
|
|
3185
4229
|
export interface ThreadStateResponse {
|
|
3186
4230
|
channel_cid: string;
|
|
@@ -3196,11 +4240,20 @@ export interface ThreadStateResponse {
|
|
|
3196
4240
|
last_message_at?: Date;
|
|
3197
4241
|
participant_count?: number;
|
|
3198
4242
|
reply_count?: number;
|
|
3199
|
-
read?:
|
|
4243
|
+
read?: ReadStateResponse[];
|
|
3200
4244
|
thread_participants?: ThreadParticipant[];
|
|
3201
4245
|
channel?: ChannelResponse;
|
|
3202
4246
|
created_by?: UserResponse;
|
|
3203
|
-
parent_message?:
|
|
4247
|
+
parent_message?: MessageResponse;
|
|
4248
|
+
}
|
|
4249
|
+
export interface ThreadUpdatedEvent {
|
|
4250
|
+
channel_id: string;
|
|
4251
|
+
channel_type: string;
|
|
4252
|
+
cid: string;
|
|
4253
|
+
created_at: Date;
|
|
4254
|
+
type: string;
|
|
4255
|
+
thread?: ThreadResponse;
|
|
4256
|
+
user?: User;
|
|
3204
4257
|
}
|
|
3205
4258
|
export interface Thresholds {
|
|
3206
4259
|
explicit?: LabelThresholds;
|
|
@@ -3226,22 +4279,22 @@ export interface TimeStats {
|
|
|
3226
4279
|
max_seconds: number;
|
|
3227
4280
|
}
|
|
3228
4281
|
export interface TranscriptionSettings {
|
|
3229
|
-
closed_caption_mode:
|
|
4282
|
+
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
4283
|
+
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk';
|
|
3230
4284
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3231
|
-
languages: string[];
|
|
3232
4285
|
}
|
|
3233
4286
|
export interface TranscriptionSettingsRequest {
|
|
3234
4287
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3235
|
-
closed_caption_mode?:
|
|
3236
|
-
|
|
4288
|
+
closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
|
|
4289
|
+
language?: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk';
|
|
3237
4290
|
}
|
|
3238
4291
|
export interface TranscriptionSettingsResponse {
|
|
3239
|
-
closed_caption_mode:
|
|
4292
|
+
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
4293
|
+
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk';
|
|
3240
4294
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3241
|
-
languages: string[];
|
|
3242
4295
|
}
|
|
3243
4296
|
export interface TranslateMessageRequest {
|
|
3244
|
-
language: 'af' | 'sq' | 'am' | 'ar' | 'az' | 'bn' | 'bs' | 'bg' | 'zh' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'fa-AF' | 'nl' | 'en' | 'et' | 'fi' | 'fr' | 'fr-CA' | 'ka' | 'de' | 'el' | 'ha' | 'he' | 'hi' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lv' | 'ms' | 'no' | 'fa' | 'ps' | 'pl' | 'pt' | 'ro' | 'ru' | 'sr' | 'sk' | 'sl' | 'so' | 'es' | 'es-MX' | 'sw' | 'sv' | 'tl' | 'ta' | 'th' | 'tr' | 'uk' | 'ur' | 'vi';
|
|
4297
|
+
language: 'af' | 'sq' | 'am' | 'ar' | 'az' | 'bn' | 'bs' | 'bg' | 'zh' | 'zh-TW' | 'hr' | 'cs' | 'da' | 'fa-AF' | 'nl' | 'en' | 'et' | 'fi' | 'fr' | 'fr-CA' | 'ka' | 'de' | 'el' | 'ha' | 'he' | 'hi' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lv' | 'ms' | 'no' | 'fa' | 'ps' | 'pl' | 'pt' | 'ro' | 'ru' | 'sr' | 'sk' | 'sl' | 'so' | 'es' | 'es-MX' | 'sw' | 'sv' | 'tl' | 'ta' | 'th' | 'tr' | 'uk' | 'ur' | 'vi' | 'lt';
|
|
3245
4298
|
}
|
|
3246
4299
|
export interface TruncateChannelRequest {
|
|
3247
4300
|
hard_delete?: boolean;
|
|
@@ -3257,10 +4310,10 @@ export interface TruncateChannelResponse {
|
|
|
3257
4310
|
message?: MessageResponse;
|
|
3258
4311
|
}
|
|
3259
4312
|
export interface TypingIndicators {
|
|
3260
|
-
enabled
|
|
4313
|
+
enabled: boolean;
|
|
3261
4314
|
}
|
|
3262
4315
|
export interface TypingIndicatorsResponse {
|
|
3263
|
-
enabled
|
|
4316
|
+
enabled?: boolean;
|
|
3264
4317
|
}
|
|
3265
4318
|
export interface UnbanActionRequest {
|
|
3266
4319
|
}
|
|
@@ -3287,6 +4340,12 @@ export interface UnblockUsersRequest {
|
|
|
3287
4340
|
export interface UnblockUsersResponse {
|
|
3288
4341
|
duration: string;
|
|
3289
4342
|
}
|
|
4343
|
+
export interface UnblockedUserEvent {
|
|
4344
|
+
call_cid: string;
|
|
4345
|
+
created_at: Date;
|
|
4346
|
+
user: UserResponse;
|
|
4347
|
+
type: string;
|
|
4348
|
+
}
|
|
3290
4349
|
export interface UnmuteChannelRequest {
|
|
3291
4350
|
expiration?: number;
|
|
3292
4351
|
user_id?: string;
|
|
@@ -3366,21 +4425,18 @@ export interface UpdateAppRequest {
|
|
|
3366
4425
|
sqs_key?: string;
|
|
3367
4426
|
sqs_secret?: string;
|
|
3368
4427
|
sqs_url?: string;
|
|
3369
|
-
video_provider?: 'agora' | 'hms';
|
|
3370
4428
|
webhook_url?: string;
|
|
3371
4429
|
allowed_flag_reasons?: string[];
|
|
3372
4430
|
image_moderation_block_labels?: string[];
|
|
3373
4431
|
image_moderation_labels?: string[];
|
|
3374
4432
|
user_search_disallowed_roles?: string[];
|
|
3375
4433
|
webhook_events?: string[];
|
|
3376
|
-
agora_options?: Config;
|
|
3377
4434
|
apn_config?: APNConfig;
|
|
3378
4435
|
async_moderation_config?: AsyncModerationConfiguration;
|
|
3379
4436
|
datadog_info?: DataDogInfo;
|
|
3380
4437
|
file_upload_config?: FileUploadConfig;
|
|
3381
4438
|
firebase_config?: FirebaseConfig;
|
|
3382
4439
|
grants?: Record<string, string[]>;
|
|
3383
|
-
hms_options?: Config;
|
|
3384
4440
|
huawei_config?: HuaweiConfig;
|
|
3385
4441
|
image_upload_config?: FileUploadConfig;
|
|
3386
4442
|
push_config?: PushConfig;
|
|
@@ -3456,7 +4512,7 @@ export interface UpdateChannelResponse {
|
|
|
3456
4512
|
duration: string;
|
|
3457
4513
|
members: ChannelMember[];
|
|
3458
4514
|
channel?: ChannelResponse;
|
|
3459
|
-
message?:
|
|
4515
|
+
message?: MessageResponse;
|
|
3460
4516
|
}
|
|
3461
4517
|
export interface UpdateChannelTypeRequest {
|
|
3462
4518
|
automod: 'disabled' | 'simple' | 'AI';
|
|
@@ -3478,6 +4534,7 @@ export interface UpdateChannelTypeRequest {
|
|
|
3478
4534
|
reminders?: boolean;
|
|
3479
4535
|
replies?: boolean;
|
|
3480
4536
|
search?: boolean;
|
|
4537
|
+
skip_last_msg_update_for_system_msgs?: boolean;
|
|
3481
4538
|
typing_events?: boolean;
|
|
3482
4539
|
uploads?: boolean;
|
|
3483
4540
|
url_enrichment?: boolean;
|
|
@@ -3507,6 +4564,7 @@ export interface UpdateChannelTypeResponse {
|
|
|
3507
4564
|
reminders: boolean;
|
|
3508
4565
|
replies: boolean;
|
|
3509
4566
|
search: boolean;
|
|
4567
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
3510
4568
|
typing_events: boolean;
|
|
3511
4569
|
updated_at: Date;
|
|
3512
4570
|
uploads: boolean;
|
|
@@ -3517,7 +4575,7 @@ export interface UpdateChannelTypeResponse {
|
|
|
3517
4575
|
blocklist?: string;
|
|
3518
4576
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
3519
4577
|
partition_size?: number;
|
|
3520
|
-
partition_ttl?:
|
|
4578
|
+
partition_ttl?: string;
|
|
3521
4579
|
allowed_flag_reasons?: string[];
|
|
3522
4580
|
blocklists?: BlockListOptions[];
|
|
3523
4581
|
automod_thresholds?: Thresholds;
|
|
@@ -3563,7 +4621,7 @@ export interface UpdateMessagePartialRequest {
|
|
|
3563
4621
|
}
|
|
3564
4622
|
export interface UpdateMessagePartialResponse {
|
|
3565
4623
|
duration: string;
|
|
3566
|
-
message?:
|
|
4624
|
+
message?: MessageResponse;
|
|
3567
4625
|
pending_message_metadata?: Record<string, string>;
|
|
3568
4626
|
}
|
|
3569
4627
|
export interface UpdateMessageRequest {
|
|
@@ -3572,7 +4630,7 @@ export interface UpdateMessageRequest {
|
|
|
3572
4630
|
}
|
|
3573
4631
|
export interface UpdateMessageResponse {
|
|
3574
4632
|
duration: string;
|
|
3575
|
-
message:
|
|
4633
|
+
message: MessageResponse;
|
|
3576
4634
|
pending_message_metadata?: Record<string, string>;
|
|
3577
4635
|
}
|
|
3578
4636
|
export interface UpdatePollOptionRequest {
|
|
@@ -3637,16 +4695,29 @@ export interface UpdateUsersResponse {
|
|
|
3637
4695
|
membership_deletion_task_id: string;
|
|
3638
4696
|
users: Record<string, FullUserResponse>;
|
|
3639
4697
|
}
|
|
4698
|
+
export interface UpdatedCallPermissionsEvent {
|
|
4699
|
+
call_cid: string;
|
|
4700
|
+
created_at: Date;
|
|
4701
|
+
own_capabilities: OwnCapability[];
|
|
4702
|
+
user: UserResponse;
|
|
4703
|
+
type: string;
|
|
4704
|
+
}
|
|
3640
4705
|
export interface UpsertConfigRequest {
|
|
3641
4706
|
key: string;
|
|
3642
4707
|
async?: boolean;
|
|
4708
|
+
team?: string;
|
|
4709
|
+
user_id?: string;
|
|
4710
|
+
ai_image_config?: AIImageConfig;
|
|
4711
|
+
ai_text_config?: AITextConfig;
|
|
4712
|
+
ai_video_config?: AIVideoConfig;
|
|
3643
4713
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
3644
4714
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
3645
4715
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
3646
|
-
|
|
4716
|
+
aws_rekognition_config?: AIImageConfig;
|
|
3647
4717
|
block_list_config?: BlockListConfig;
|
|
3648
|
-
bodyguard_config?:
|
|
3649
|
-
|
|
4718
|
+
bodyguard_config?: AITextConfig;
|
|
4719
|
+
google_vision_config?: GoogleVisionConfig;
|
|
4720
|
+
user?: UserRequest;
|
|
3650
4721
|
velocity_filter_config?: VelocityFilterConfig;
|
|
3651
4722
|
}
|
|
3652
4723
|
export interface UpsertConfigResponse {
|
|
@@ -3671,6 +4742,39 @@ export interface UpsertPushProviderResponse {
|
|
|
3671
4742
|
duration: string;
|
|
3672
4743
|
push_provider: PushProviderResponse;
|
|
3673
4744
|
}
|
|
4745
|
+
export interface User {
|
|
4746
|
+
banned: boolean;
|
|
4747
|
+
id: string;
|
|
4748
|
+
online: boolean;
|
|
4749
|
+
role: string;
|
|
4750
|
+
custom: Record<string, any>;
|
|
4751
|
+
ban_expires?: Date;
|
|
4752
|
+
created_at?: Date;
|
|
4753
|
+
deactivated_at?: Date;
|
|
4754
|
+
deleted_at?: Date;
|
|
4755
|
+
invisible?: boolean;
|
|
4756
|
+
language?: string;
|
|
4757
|
+
last_active?: Date;
|
|
4758
|
+
last_engaged_at?: Date;
|
|
4759
|
+
revoke_tokens_issued_before?: Date;
|
|
4760
|
+
updated_at?: Date;
|
|
4761
|
+
teams?: string[];
|
|
4762
|
+
privacy_settings?: PrivacySettings;
|
|
4763
|
+
push_notifications?: PushNotificationSettings;
|
|
4764
|
+
}
|
|
4765
|
+
export interface UserBannedEvent {
|
|
4766
|
+
channel_id: string;
|
|
4767
|
+
channel_type: string;
|
|
4768
|
+
cid: string;
|
|
4769
|
+
created_at: Date;
|
|
4770
|
+
shadow: boolean;
|
|
4771
|
+
created_by: User;
|
|
4772
|
+
type: string;
|
|
4773
|
+
expiration?: Date;
|
|
4774
|
+
reason?: string;
|
|
4775
|
+
team?: string;
|
|
4776
|
+
user?: User;
|
|
4777
|
+
}
|
|
3674
4778
|
export interface UserBlock {
|
|
3675
4779
|
blocked_by_user_id: string;
|
|
3676
4780
|
blocked_user_id: string;
|
|
@@ -3680,7 +4784,56 @@ export interface UserCustomEventRequest {
|
|
|
3680
4784
|
type: string;
|
|
3681
4785
|
custom?: Record<string, any>;
|
|
3682
4786
|
}
|
|
4787
|
+
export interface UserDeactivatedEvent {
|
|
4788
|
+
created_at: Date;
|
|
4789
|
+
created_by: User;
|
|
4790
|
+
type: string;
|
|
4791
|
+
user?: User;
|
|
4792
|
+
}
|
|
4793
|
+
export interface UserDeletedEvent {
|
|
4794
|
+
created_at: Date;
|
|
4795
|
+
delete_conversation_channels: boolean;
|
|
4796
|
+
hard_delete: boolean;
|
|
4797
|
+
mark_messages_deleted: boolean;
|
|
4798
|
+
type: string;
|
|
4799
|
+
user?: User;
|
|
4800
|
+
}
|
|
4801
|
+
export interface UserEventPayload {
|
|
4802
|
+
banned: boolean;
|
|
4803
|
+
created_at: Date;
|
|
4804
|
+
id: string;
|
|
4805
|
+
language: string;
|
|
4806
|
+
online: boolean;
|
|
4807
|
+
role: string;
|
|
4808
|
+
updated_at: Date;
|
|
4809
|
+
blocked_user_ids: string[];
|
|
4810
|
+
teams: string[];
|
|
4811
|
+
custom: Record<string, any>;
|
|
4812
|
+
deactivated_at?: Date;
|
|
4813
|
+
deleted_at?: Date;
|
|
4814
|
+
image?: string;
|
|
4815
|
+
invisible?: boolean;
|
|
4816
|
+
last_active?: Date;
|
|
4817
|
+
name?: string;
|
|
4818
|
+
revoke_tokens_issued_before?: Date;
|
|
4819
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
4820
|
+
}
|
|
4821
|
+
export interface UserFeedbackReport {
|
|
4822
|
+
unreported_count: number;
|
|
4823
|
+
count_by_rating: Record<string, number>;
|
|
4824
|
+
}
|
|
4825
|
+
export interface UserFeedbackReportResponse {
|
|
4826
|
+
daily: DailyAggregateUserFeedbackReportResponse[];
|
|
4827
|
+
}
|
|
4828
|
+
export interface UserFlaggedEvent {
|
|
4829
|
+
created_at: Date;
|
|
4830
|
+
type: string;
|
|
4831
|
+
target_user?: string;
|
|
4832
|
+
target_users?: string[];
|
|
4833
|
+
user?: User;
|
|
4834
|
+
}
|
|
3683
4835
|
export interface UserInfoResponse {
|
|
4836
|
+
id: string;
|
|
3684
4837
|
image: string;
|
|
3685
4838
|
name: string;
|
|
3686
4839
|
roles: string[];
|
|
@@ -3690,8 +4843,8 @@ export interface UserMute {
|
|
|
3690
4843
|
created_at: Date;
|
|
3691
4844
|
updated_at: Date;
|
|
3692
4845
|
expires?: Date;
|
|
3693
|
-
target?:
|
|
3694
|
-
user?:
|
|
4846
|
+
target?: User;
|
|
4847
|
+
user?: User;
|
|
3695
4848
|
}
|
|
3696
4849
|
export interface UserMuteResponse {
|
|
3697
4850
|
created_at: Date;
|
|
@@ -3700,24 +4853,17 @@ export interface UserMuteResponse {
|
|
|
3700
4853
|
target?: UserResponse;
|
|
3701
4854
|
user?: UserResponse;
|
|
3702
4855
|
}
|
|
3703
|
-
export interface
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
language?: string;
|
|
3715
|
-
last_active?: Date;
|
|
3716
|
-
revoke_tokens_issued_before?: Date;
|
|
3717
|
-
updated_at?: Date;
|
|
3718
|
-
teams?: string[];
|
|
3719
|
-
privacy_settings?: PrivacySettings;
|
|
3720
|
-
push_notifications?: PushNotificationSettings;
|
|
4856
|
+
export interface UserMutedEvent {
|
|
4857
|
+
created_at: Date;
|
|
4858
|
+
type: string;
|
|
4859
|
+
target_user?: string;
|
|
4860
|
+
target_users?: string[];
|
|
4861
|
+
user?: User;
|
|
4862
|
+
}
|
|
4863
|
+
export interface UserReactivatedEvent {
|
|
4864
|
+
created_at: Date;
|
|
4865
|
+
type: string;
|
|
4866
|
+
user?: User;
|
|
3721
4867
|
}
|
|
3722
4868
|
export interface UserRequest {
|
|
3723
4869
|
id: string;
|
|
@@ -3728,7 +4874,7 @@ export interface UserRequest {
|
|
|
3728
4874
|
role?: string;
|
|
3729
4875
|
teams?: string[];
|
|
3730
4876
|
custom?: Record<string, any>;
|
|
3731
|
-
privacy_settings?:
|
|
4877
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
3732
4878
|
push_notifications?: PushNotificationSettingsInput;
|
|
3733
4879
|
}
|
|
3734
4880
|
export interface UserResponse {
|
|
@@ -3742,7 +4888,7 @@ export interface UserResponse {
|
|
|
3742
4888
|
shadow_banned: boolean;
|
|
3743
4889
|
updated_at: Date;
|
|
3744
4890
|
blocked_user_ids: string[];
|
|
3745
|
-
devices:
|
|
4891
|
+
devices: DeviceResponse[];
|
|
3746
4892
|
teams: string[];
|
|
3747
4893
|
custom: Record<string, any>;
|
|
3748
4894
|
ban_expires?: Date;
|
|
@@ -3757,6 +4903,7 @@ export interface UserResponse {
|
|
|
3757
4903
|
}
|
|
3758
4904
|
export interface UserSessionStats {
|
|
3759
4905
|
freeze_duration_seconds: number;
|
|
4906
|
+
group: string;
|
|
3760
4907
|
max_freeze_fraction: number;
|
|
3761
4908
|
max_freezes_duration_seconds: number;
|
|
3762
4909
|
min_event_ts: number;
|
|
@@ -3768,7 +4915,8 @@ export interface UserSessionStats {
|
|
|
3768
4915
|
session_id: string;
|
|
3769
4916
|
total_pixels_in: number;
|
|
3770
4917
|
total_pixels_out: number;
|
|
3771
|
-
|
|
4918
|
+
average_connection_time?: number;
|
|
4919
|
+
browser?: string;
|
|
3772
4920
|
browser_version?: string;
|
|
3773
4921
|
current_ip?: string;
|
|
3774
4922
|
current_sfu?: string;
|
|
@@ -3800,11 +4948,9 @@ export interface UserSessionStats {
|
|
|
3800
4948
|
max_publishing_video_quality?: VideoQuality;
|
|
3801
4949
|
max_receiving_video_quality?: VideoQuality;
|
|
3802
4950
|
pub_sub_hints?: MediaPubSubHint;
|
|
3803
|
-
publisher_audio_mos?: MOSStats;
|
|
3804
4951
|
publisher_jitter?: TimeStats;
|
|
3805
4952
|
publisher_latency?: TimeStats;
|
|
3806
4953
|
publisher_video_quality_limitation_duration_seconds?: Record<string, number>;
|
|
3807
|
-
subscriber_audio_mos?: MOSStats;
|
|
3808
4954
|
subscriber_jitter?: TimeStats;
|
|
3809
4955
|
subscriber_latency?: TimeStats;
|
|
3810
4956
|
timeline?: CallTimeline;
|
|
@@ -3815,23 +4961,63 @@ export interface UserStats {
|
|
|
3815
4961
|
info: UserInfoResponse;
|
|
3816
4962
|
rating?: number;
|
|
3817
4963
|
}
|
|
4964
|
+
export interface UserUnbannedEvent {
|
|
4965
|
+
channel_id: string;
|
|
4966
|
+
channel_type: string;
|
|
4967
|
+
cid: string;
|
|
4968
|
+
created_at: Date;
|
|
4969
|
+
shadow: boolean;
|
|
4970
|
+
type: string;
|
|
4971
|
+
team?: string;
|
|
4972
|
+
user?: User;
|
|
4973
|
+
}
|
|
4974
|
+
export interface UserUnmutedEvent {
|
|
4975
|
+
created_at: Date;
|
|
4976
|
+
type: string;
|
|
4977
|
+
target_user?: string;
|
|
4978
|
+
target_users?: string[];
|
|
4979
|
+
user?: User;
|
|
4980
|
+
}
|
|
4981
|
+
export interface UserUnreadReminderEvent {
|
|
4982
|
+
created_at: Date;
|
|
4983
|
+
channels: Record<string, ChannelMessages>;
|
|
4984
|
+
type: string;
|
|
4985
|
+
user?: User;
|
|
4986
|
+
}
|
|
4987
|
+
export interface UserUpdatedEvent {
|
|
4988
|
+
created_at: Date;
|
|
4989
|
+
user: UserEventPayload;
|
|
4990
|
+
type: string;
|
|
4991
|
+
received_at?: Date;
|
|
4992
|
+
}
|
|
3818
4993
|
export interface VelocityFilterConfig {
|
|
3819
|
-
|
|
3820
|
-
|
|
4994
|
+
cascading_actions: boolean;
|
|
4995
|
+
enabled: boolean;
|
|
4996
|
+
first_message_only: boolean;
|
|
4997
|
+
rules: VelocityFilterConfigRule[];
|
|
4998
|
+
async?: boolean;
|
|
3821
4999
|
}
|
|
3822
5000
|
export interface VelocityFilterConfigRule {
|
|
3823
5001
|
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
5002
|
+
ban_duration: number;
|
|
5003
|
+
cascading_action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
5004
|
+
cascading_threshold: number;
|
|
5005
|
+
check_message_context: boolean;
|
|
5006
|
+
fast_spam_threshold: number;
|
|
5007
|
+
fast_spam_ttl: number;
|
|
5008
|
+
ip_ban: boolean;
|
|
5009
|
+
shadow_ban: boolean;
|
|
5010
|
+
slow_spam_threshold: number;
|
|
5011
|
+
slow_spam_ttl: number;
|
|
5012
|
+
slow_spam_ban_duration?: number;
|
|
5013
|
+
}
|
|
5014
|
+
export interface VideoDimension {
|
|
5015
|
+
height: number;
|
|
5016
|
+
width: number;
|
|
3827
5017
|
}
|
|
3828
5018
|
export interface VideoQuality {
|
|
3829
5019
|
usage_type?: string;
|
|
3830
|
-
resolution?:
|
|
3831
|
-
}
|
|
3832
|
-
export interface VideoResolution {
|
|
3833
|
-
height: number;
|
|
3834
|
-
width: number;
|
|
5020
|
+
resolution?: VideoDimension;
|
|
3835
5021
|
}
|
|
3836
5022
|
export interface VideoSettings {
|
|
3837
5023
|
access_request_enabled: boolean;
|
|
@@ -3857,7 +5043,7 @@ export interface VideoSettingsResponse {
|
|
|
3857
5043
|
export interface VoteData {
|
|
3858
5044
|
answer_text?: string;
|
|
3859
5045
|
option_id?: string;
|
|
3860
|
-
option?:
|
|
5046
|
+
option?: PollOptionResponseData;
|
|
3861
5047
|
}
|
|
3862
5048
|
export interface WSEvent {
|
|
3863
5049
|
created_at: Date;
|
|
@@ -3876,16 +5062,19 @@ export interface WSEvent {
|
|
|
3876
5062
|
watcher_count?: number;
|
|
3877
5063
|
automoderation_scores?: ModerationResponse;
|
|
3878
5064
|
channel?: ChannelResponse;
|
|
3879
|
-
created_by?:
|
|
3880
|
-
me?:
|
|
5065
|
+
created_by?: UserResponse;
|
|
5066
|
+
me?: OwnUserResponse;
|
|
3881
5067
|
member?: ChannelMember;
|
|
3882
|
-
message?:
|
|
5068
|
+
message?: MessageResponse;
|
|
3883
5069
|
message_update?: MessageUpdate;
|
|
3884
|
-
poll?:
|
|
3885
|
-
poll_vote?:
|
|
3886
|
-
reaction?:
|
|
5070
|
+
poll?: PollResponseData;
|
|
5071
|
+
poll_vote?: PollVoteResponseData;
|
|
5072
|
+
reaction?: ReactionResponse;
|
|
3887
5073
|
thread?: ThreadResponse;
|
|
3888
|
-
user?:
|
|
5074
|
+
user?: UserResponse;
|
|
5075
|
+
}
|
|
5076
|
+
export interface WebhookEvent {
|
|
5077
|
+
type: string;
|
|
3889
5078
|
}
|
|
3890
5079
|
export interface WrappedUnreadCountsResponse {
|
|
3891
5080
|
duration: string;
|