@stream-io/node-sdk 0.4.3 → 0.4.5
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 +692 -340
- package/dist/index.cjs.js.map +1 -1
- package/dist/{index.es.js → index.es.mjs} +693 -342
- package/dist/index.es.mjs.map +1 -0
- package/dist/src/gen/chat/ChatApi.d.ts +28 -2
- package/dist/src/gen/models/index.d.ts +585 -194
- package/dist/src/gen/moderation/ModerationApi.d.ts +5 -1
- package/dist/src/gen/video/CallApi.d.ts +4 -2
- package/dist/src/gen/video/VideoApi.d.ts +10 -2
- package/package.json +3 -3
- package/src/gen/chat/ChatApi.ts +225 -2
- package/src/gen/model-decoders/index.ts +330 -136
- package/src/gen/models/index.ts +1007 -293
- package/src/gen/moderation/ModerationApi.ts +51 -5
- package/src/gen/video/CallApi.ts +19 -2
- package/src/gen/video/VideoApi.ts +57 -2
- package/dist/index.es.js.map +0 -1
|
@@ -1,3 +1,15 @@
|
|
|
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
|
+
}
|
|
1
13
|
export interface APIError {
|
|
2
14
|
code: number;
|
|
3
15
|
duration: string;
|
|
@@ -36,13 +48,10 @@ export interface APNS {
|
|
|
36
48
|
body: string;
|
|
37
49
|
title: string;
|
|
38
50
|
}
|
|
39
|
-
export interface AWSRekognitionConfig {
|
|
40
|
-
enabled?: boolean;
|
|
41
|
-
rules?: AWSRekognitionRule[];
|
|
42
|
-
}
|
|
43
51
|
export interface AWSRekognitionRule {
|
|
44
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
52
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
45
53
|
label: string;
|
|
54
|
+
min_confidence: number;
|
|
46
55
|
}
|
|
47
56
|
export interface Action {
|
|
48
57
|
name: string;
|
|
@@ -55,19 +64,22 @@ export interface ActionLog {
|
|
|
55
64
|
created_at: Date;
|
|
56
65
|
id: string;
|
|
57
66
|
reason: string;
|
|
67
|
+
reporter_type: string;
|
|
58
68
|
review_queue_item_id: string;
|
|
59
69
|
target_user_id: string;
|
|
60
70
|
type: string;
|
|
61
71
|
custom: Record<string, any>;
|
|
62
72
|
review_queue_item?: ReviewQueueItem;
|
|
63
|
-
target_user?:
|
|
64
|
-
user?:
|
|
73
|
+
target_user?: User;
|
|
74
|
+
user?: User;
|
|
65
75
|
}
|
|
66
76
|
export interface ActionLogResponse {
|
|
67
77
|
created_at: Date;
|
|
68
78
|
id: string;
|
|
69
79
|
reason: string;
|
|
80
|
+
target_user_id: string;
|
|
70
81
|
type: string;
|
|
82
|
+
user_id: string;
|
|
71
83
|
custom: Record<string, any>;
|
|
72
84
|
review_queue_item?: ReviewQueueItem;
|
|
73
85
|
target_user?: UserResponse;
|
|
@@ -142,10 +154,13 @@ export interface Attachment {
|
|
|
142
154
|
footer?: string;
|
|
143
155
|
footer_icon?: string;
|
|
144
156
|
image_url?: string;
|
|
157
|
+
latitude?: number;
|
|
158
|
+
longitude?: number;
|
|
145
159
|
og_scrape_url?: string;
|
|
146
160
|
original_height?: number;
|
|
147
161
|
original_width?: number;
|
|
148
162
|
pretext?: string;
|
|
163
|
+
stopped_sharing?: boolean;
|
|
149
164
|
text?: string;
|
|
150
165
|
thumb_url?: string;
|
|
151
166
|
title?: string;
|
|
@@ -190,17 +205,19 @@ export interface AutomodDetails {
|
|
|
190
205
|
result?: MessageModerationResult;
|
|
191
206
|
}
|
|
192
207
|
export interface AutomodPlatformCircumventionConfig {
|
|
193
|
-
enabled
|
|
194
|
-
rules
|
|
208
|
+
enabled: boolean;
|
|
209
|
+
rules: AutomodRule[];
|
|
210
|
+
async?: boolean;
|
|
195
211
|
}
|
|
196
212
|
export interface AutomodRule {
|
|
197
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
213
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
198
214
|
label: string;
|
|
199
215
|
threshold: number;
|
|
200
216
|
}
|
|
201
217
|
export interface AutomodSemanticFiltersConfig {
|
|
202
|
-
enabled
|
|
203
|
-
rules
|
|
218
|
+
enabled: boolean;
|
|
219
|
+
rules: AutomodSemanticFiltersRule[];
|
|
220
|
+
async?: boolean;
|
|
204
221
|
}
|
|
205
222
|
export interface AutomodSemanticFiltersRule {
|
|
206
223
|
action: 'flag' | 'shadow' | 'remove';
|
|
@@ -208,8 +225,9 @@ export interface AutomodSemanticFiltersRule {
|
|
|
208
225
|
threshold: number;
|
|
209
226
|
}
|
|
210
227
|
export interface AutomodToxicityConfig {
|
|
211
|
-
enabled
|
|
212
|
-
rules
|
|
228
|
+
enabled: boolean;
|
|
229
|
+
rules: AutomodRule[];
|
|
230
|
+
async?: boolean;
|
|
213
231
|
}
|
|
214
232
|
export interface AzureRequest {
|
|
215
233
|
abs_account_name: string;
|
|
@@ -235,11 +253,12 @@ export interface Ban {
|
|
|
235
253
|
expires?: Date;
|
|
236
254
|
reason?: string;
|
|
237
255
|
channel?: Channel;
|
|
238
|
-
created_by?:
|
|
239
|
-
target?:
|
|
256
|
+
created_by?: User;
|
|
257
|
+
target?: User;
|
|
240
258
|
}
|
|
241
259
|
export interface BanActionRequest {
|
|
242
260
|
channel_ban_only?: boolean;
|
|
261
|
+
ip_ban?: boolean;
|
|
243
262
|
reason?: string;
|
|
244
263
|
shadow?: boolean;
|
|
245
264
|
timeout?: number;
|
|
@@ -264,8 +283,9 @@ export interface BanResponse {
|
|
|
264
283
|
user?: UserResponse;
|
|
265
284
|
}
|
|
266
285
|
export interface BlockListConfig {
|
|
267
|
-
enabled
|
|
268
|
-
rules
|
|
286
|
+
enabled: boolean;
|
|
287
|
+
rules: BlockListRule[];
|
|
288
|
+
async?: boolean;
|
|
269
289
|
}
|
|
270
290
|
export interface BlockListOptions {
|
|
271
291
|
behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -279,7 +299,7 @@ export interface BlockListResponse {
|
|
|
279
299
|
updated_at?: Date;
|
|
280
300
|
}
|
|
281
301
|
export interface BlockListRule {
|
|
282
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
302
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
283
303
|
name: string;
|
|
284
304
|
}
|
|
285
305
|
export interface BlockUserRequest {
|
|
@@ -306,18 +326,13 @@ export interface BlockedUserResponse {
|
|
|
306
326
|
blocked_user: UserResponse;
|
|
307
327
|
user: UserResponse;
|
|
308
328
|
}
|
|
309
|
-
export interface BodyguardConfig {
|
|
310
|
-
enabled?: boolean;
|
|
311
|
-
profile?: string;
|
|
312
|
-
rules?: BodyguardRule[];
|
|
313
|
-
severity_rules?: BodyguardSeverityRule[];
|
|
314
|
-
}
|
|
315
329
|
export interface BodyguardRule {
|
|
316
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
330
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
317
331
|
label: string;
|
|
332
|
+
severity_rules: BodyguardSeverityRule[];
|
|
318
333
|
}
|
|
319
334
|
export interface BodyguardSeverityRule {
|
|
320
|
-
action: 'flag' | 'shadow' | 'remove';
|
|
335
|
+
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
321
336
|
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
322
337
|
}
|
|
323
338
|
export interface BroadcastSettings {
|
|
@@ -338,11 +353,14 @@ export interface BroadcastSettingsResponse {
|
|
|
338
353
|
export interface CallEvent {
|
|
339
354
|
description: string;
|
|
340
355
|
end_timestamp: number;
|
|
356
|
+
internal: boolean;
|
|
357
|
+
kind: string;
|
|
341
358
|
severity: number;
|
|
342
359
|
timestamp: number;
|
|
343
360
|
type: string;
|
|
361
|
+
category?: string;
|
|
344
362
|
component?: string;
|
|
345
|
-
|
|
363
|
+
issue_tags?: string[];
|
|
346
364
|
}
|
|
347
365
|
export interface CallIngressResponse {
|
|
348
366
|
rtmp: RTMPIngress;
|
|
@@ -371,6 +389,7 @@ export interface CallRequest {
|
|
|
371
389
|
}
|
|
372
390
|
export interface CallResponse {
|
|
373
391
|
backstage: boolean;
|
|
392
|
+
captioning: boolean;
|
|
374
393
|
cid: string;
|
|
375
394
|
created_at: Date;
|
|
376
395
|
current_session_id: string;
|
|
@@ -487,6 +506,47 @@ export interface CallTypeResponse {
|
|
|
487
506
|
settings: CallSettingsResponse;
|
|
488
507
|
external_storage?: string;
|
|
489
508
|
}
|
|
509
|
+
export interface CampaignChannelTemplate {
|
|
510
|
+
type: string;
|
|
511
|
+
custom: Record<string, any>;
|
|
512
|
+
id?: string;
|
|
513
|
+
members?: string[];
|
|
514
|
+
}
|
|
515
|
+
export interface CampaignMessageTemplate {
|
|
516
|
+
poll_id: string;
|
|
517
|
+
text: string;
|
|
518
|
+
attachments: Attachment[];
|
|
519
|
+
custom: Record<string, any>;
|
|
520
|
+
}
|
|
521
|
+
export interface CampaignResponse {
|
|
522
|
+
create_channels: boolean;
|
|
523
|
+
created_at: Date;
|
|
524
|
+
description: string;
|
|
525
|
+
id: string;
|
|
526
|
+
name: string;
|
|
527
|
+
sender_id: string;
|
|
528
|
+
skip_push: boolean;
|
|
529
|
+
skip_webhook: boolean;
|
|
530
|
+
status: string;
|
|
531
|
+
updated_at: Date;
|
|
532
|
+
segment_ids: string[];
|
|
533
|
+
segments: Segment[];
|
|
534
|
+
user_ids: string[];
|
|
535
|
+
users: UserResponse[];
|
|
536
|
+
stats: CampaignStatsResponse;
|
|
537
|
+
scheduled_for?: Date;
|
|
538
|
+
stop_at?: Date;
|
|
539
|
+
channel_template?: CampaignChannelTemplate;
|
|
540
|
+
message_template?: CampaignMessageTemplate;
|
|
541
|
+
sender?: UserResponse;
|
|
542
|
+
}
|
|
543
|
+
export interface CampaignStatsResponse {
|
|
544
|
+
progress: number;
|
|
545
|
+
stats_channels_created: number;
|
|
546
|
+
stats_completed_at: Date;
|
|
547
|
+
stats_messages_sent: number;
|
|
548
|
+
stats_started_at: Date;
|
|
549
|
+
}
|
|
490
550
|
export interface CastPollVoteRequest {
|
|
491
551
|
user_id?: string;
|
|
492
552
|
user?: UserRequest;
|
|
@@ -511,9 +571,9 @@ export interface Channel {
|
|
|
511
571
|
invites?: ChannelMember[];
|
|
512
572
|
members?: ChannelMember[];
|
|
513
573
|
config?: ChannelConfig;
|
|
514
|
-
config_overrides?:
|
|
515
|
-
created_by?:
|
|
516
|
-
truncated_by?:
|
|
574
|
+
config_overrides?: ConfigOverrides;
|
|
575
|
+
created_by?: User;
|
|
576
|
+
truncated_by?: User;
|
|
517
577
|
}
|
|
518
578
|
export interface ChannelConfig {
|
|
519
579
|
automod: 'disabled' | 'simple' | 'AI';
|
|
@@ -533,6 +593,7 @@ export interface ChannelConfig {
|
|
|
533
593
|
reminders: boolean;
|
|
534
594
|
replies: boolean;
|
|
535
595
|
search: boolean;
|
|
596
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
536
597
|
typing_events: boolean;
|
|
537
598
|
updated_at: Date;
|
|
538
599
|
uploads: boolean;
|
|
@@ -540,6 +601,8 @@ export interface ChannelConfig {
|
|
|
540
601
|
commands: string[];
|
|
541
602
|
blocklist?: string;
|
|
542
603
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
604
|
+
partition_size?: number;
|
|
605
|
+
partition_ttl?: string;
|
|
543
606
|
allowed_flag_reasons?: string[];
|
|
544
607
|
blocklists?: BlockListOptions[];
|
|
545
608
|
automod_thresholds?: Thresholds;
|
|
@@ -562,6 +625,7 @@ export interface ChannelConfigWithInfo {
|
|
|
562
625
|
reminders: boolean;
|
|
563
626
|
replies: boolean;
|
|
564
627
|
search: boolean;
|
|
628
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
565
629
|
typing_events: boolean;
|
|
566
630
|
updated_at: Date;
|
|
567
631
|
uploads: boolean;
|
|
@@ -570,7 +634,7 @@ export interface ChannelConfigWithInfo {
|
|
|
570
634
|
blocklist?: string;
|
|
571
635
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
572
636
|
partition_size?: number;
|
|
573
|
-
partition_ttl?:
|
|
637
|
+
partition_ttl?: string;
|
|
574
638
|
allowed_flag_reasons?: string[];
|
|
575
639
|
blocklists?: BlockListOptions[];
|
|
576
640
|
automod_thresholds?: Thresholds;
|
|
@@ -614,15 +678,18 @@ export interface ChannelMember {
|
|
|
614
678
|
shadow_banned: boolean;
|
|
615
679
|
updated_at: Date;
|
|
616
680
|
custom: Record<string, any>;
|
|
681
|
+
archived_at?: Date;
|
|
617
682
|
ban_expires?: Date;
|
|
618
683
|
deleted_at?: Date;
|
|
619
684
|
invite_accepted_at?: Date;
|
|
620
685
|
invite_rejected_at?: Date;
|
|
621
686
|
invited?: boolean;
|
|
622
687
|
is_moderator?: boolean;
|
|
688
|
+
pinned_at?: Date;
|
|
689
|
+
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
623
690
|
status?: string;
|
|
624
691
|
user_id?: string;
|
|
625
|
-
user?:
|
|
692
|
+
user?: UserResponse;
|
|
626
693
|
}
|
|
627
694
|
export interface ChannelMemberResponse {
|
|
628
695
|
banned: boolean;
|
|
@@ -632,12 +699,14 @@ export interface ChannelMemberResponse {
|
|
|
632
699
|
shadow_banned: boolean;
|
|
633
700
|
updated_at: Date;
|
|
634
701
|
custom: Record<string, any>;
|
|
702
|
+
archived_at?: Date;
|
|
635
703
|
ban_expires?: Date;
|
|
636
704
|
deleted_at?: Date;
|
|
637
705
|
invite_accepted_at?: Date;
|
|
638
706
|
invite_rejected_at?: Date;
|
|
639
707
|
invited?: boolean;
|
|
640
708
|
is_moderator?: boolean;
|
|
709
|
+
pinned_at?: Date;
|
|
641
710
|
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
642
711
|
status?: string;
|
|
643
712
|
user_id?: string;
|
|
@@ -648,8 +717,47 @@ export interface ChannelMute {
|
|
|
648
717
|
updated_at: Date;
|
|
649
718
|
expires?: Date;
|
|
650
719
|
channel?: ChannelResponse;
|
|
651
|
-
user?:
|
|
720
|
+
user?: UserResponse;
|
|
652
721
|
}
|
|
722
|
+
export declare const ChannelOwnCapability: {
|
|
723
|
+
readonly BAN_CHANNEL_MEMBERS: "ban-channel-members";
|
|
724
|
+
readonly CAST_POLL_VOTE: "cast-poll-vote";
|
|
725
|
+
readonly CONNECT_EVENTS: "connect-events";
|
|
726
|
+
readonly CREATE_ATTACHMENT: "create-attachment";
|
|
727
|
+
readonly CREATE_CALL: "create-call";
|
|
728
|
+
readonly DELETE_ANY_MESSAGE: "delete-any-message";
|
|
729
|
+
readonly DELETE_CHANNEL: "delete-channel";
|
|
730
|
+
readonly DELETE_OWN_MESSAGE: "delete-own-message";
|
|
731
|
+
readonly FLAG_MESSAGE: "flag-message";
|
|
732
|
+
readonly FREEZE_CHANNEL: "freeze-channel";
|
|
733
|
+
readonly JOIN_CALL: "join-call";
|
|
734
|
+
readonly JOIN_CHANNEL: "join-channel";
|
|
735
|
+
readonly LEAVE_CHANNEL: "leave-channel";
|
|
736
|
+
readonly MUTE_CHANNEL: "mute-channel";
|
|
737
|
+
readonly PIN_MESSAGE: "pin-message";
|
|
738
|
+
readonly QUERY_POLL_VOTES: "query-poll-votes";
|
|
739
|
+
readonly QUOTE_MESSAGE: "quote-message";
|
|
740
|
+
readonly READ_EVENTS: "read-events";
|
|
741
|
+
readonly SEARCH_MESSAGES: "search-messages";
|
|
742
|
+
readonly SEND_CUSTOM_EVENTS: "send-custom-events";
|
|
743
|
+
readonly SEND_LINKS: "send-links";
|
|
744
|
+
readonly SEND_MESSAGE: "send-message";
|
|
745
|
+
readonly SEND_POLL: "send-poll";
|
|
746
|
+
readonly SEND_REACTION: "send-reaction";
|
|
747
|
+
readonly SEND_REPLY: "send-reply";
|
|
748
|
+
readonly SEND_TYPING_EVENTS: "send-typing-events";
|
|
749
|
+
readonly SET_CHANNEL_COOLDOWN: "set-channel-cooldown";
|
|
750
|
+
readonly SKIP_SLOW_MODE: "skip-slow-mode";
|
|
751
|
+
readonly SLOW_MODE: "slow-mode";
|
|
752
|
+
readonly TYPING_EVENTS: "typing-events";
|
|
753
|
+
readonly UPDATE_ANY_MESSAGE: "update-any-message";
|
|
754
|
+
readonly UPDATE_CHANNEL: "update-channel";
|
|
755
|
+
readonly UPDATE_CHANNEL_MEMBERS: "update-channel-members";
|
|
756
|
+
readonly UPDATE_OWN_MESSAGE: "update-own-message";
|
|
757
|
+
readonly UPDATE_THREAD: "update-thread";
|
|
758
|
+
readonly UPLOAD_FILE: "upload-file";
|
|
759
|
+
};
|
|
760
|
+
export type ChannelOwnCapability = (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
|
|
653
761
|
export interface ChannelResponse {
|
|
654
762
|
cid: string;
|
|
655
763
|
created_at: Date;
|
|
@@ -673,17 +781,17 @@ export interface ChannelResponse {
|
|
|
673
781
|
team?: string;
|
|
674
782
|
truncated_at?: Date;
|
|
675
783
|
members?: ChannelMember[];
|
|
676
|
-
own_capabilities?:
|
|
784
|
+
own_capabilities?: ChannelOwnCapability[];
|
|
677
785
|
config?: ChannelConfigWithInfo;
|
|
678
|
-
created_by?:
|
|
679
|
-
truncated_by?:
|
|
786
|
+
created_by?: UserResponse;
|
|
787
|
+
truncated_by?: UserResponse;
|
|
680
788
|
}
|
|
681
789
|
export interface ChannelStateResponse {
|
|
682
790
|
duration: string;
|
|
683
791
|
members: ChannelMember[];
|
|
684
792
|
messages: MessageResponse[];
|
|
685
793
|
pinned_messages: MessageResponse[];
|
|
686
|
-
threads:
|
|
794
|
+
threads: ThreadStateResponse[];
|
|
687
795
|
hidden?: boolean;
|
|
688
796
|
hide_messages_before?: Date;
|
|
689
797
|
watcher_count?: number;
|
|
@@ -697,7 +805,7 @@ export interface ChannelStateResponseFields {
|
|
|
697
805
|
members: ChannelMember[];
|
|
698
806
|
messages: MessageResponse[];
|
|
699
807
|
pinned_messages: MessageResponse[];
|
|
700
|
-
threads:
|
|
808
|
+
threads: ThreadStateResponse[];
|
|
701
809
|
hidden?: boolean;
|
|
702
810
|
hide_messages_before?: Date;
|
|
703
811
|
watcher_count?: number;
|
|
@@ -725,6 +833,7 @@ export interface ChannelTypeConfig {
|
|
|
725
833
|
reminders: boolean;
|
|
726
834
|
replies: boolean;
|
|
727
835
|
search: boolean;
|
|
836
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
728
837
|
typing_events: boolean;
|
|
729
838
|
updated_at: Date;
|
|
730
839
|
uploads: boolean;
|
|
@@ -735,7 +844,7 @@ export interface ChannelTypeConfig {
|
|
|
735
844
|
blocklist?: string;
|
|
736
845
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
737
846
|
partition_size?: number;
|
|
738
|
-
partition_ttl?:
|
|
847
|
+
partition_ttl?: string;
|
|
739
848
|
allowed_flag_reasons?: string[];
|
|
740
849
|
blocklists?: BlockListOptions[];
|
|
741
850
|
automod_thresholds?: Thresholds;
|
|
@@ -769,6 +878,7 @@ export interface CheckRequest {
|
|
|
769
878
|
entity_creator_id: string;
|
|
770
879
|
entity_id: string;
|
|
771
880
|
entity_type: string;
|
|
881
|
+
test_mode?: boolean;
|
|
772
882
|
user_id?: string;
|
|
773
883
|
moderation_payload?: ModerationPayload;
|
|
774
884
|
options?: Record<string, any>;
|
|
@@ -830,18 +940,30 @@ export interface Config {
|
|
|
830
940
|
default_role?: 'attendee' | 'publisher' | 'subscriber' | 'admin';
|
|
831
941
|
role_map?: Record<string, string>;
|
|
832
942
|
}
|
|
943
|
+
export interface ConfigOverrides {
|
|
944
|
+
commands: string[];
|
|
945
|
+
grants: Record<string, string[]>;
|
|
946
|
+
blocklist?: string;
|
|
947
|
+
blocklist_behavior?: 'flag' | 'block';
|
|
948
|
+
max_message_length?: number;
|
|
949
|
+
quotes?: boolean;
|
|
950
|
+
reactions?: boolean;
|
|
951
|
+
replies?: boolean;
|
|
952
|
+
typing_events?: boolean;
|
|
953
|
+
uploads?: boolean;
|
|
954
|
+
url_enrichment?: boolean;
|
|
955
|
+
}
|
|
833
956
|
export interface ConfigResponse {
|
|
834
957
|
async: boolean;
|
|
835
958
|
created_at: Date;
|
|
836
959
|
key: string;
|
|
837
960
|
updated_at: Date;
|
|
961
|
+
ai_image_config?: AIImageConfig;
|
|
962
|
+
ai_text_config?: AITextConfig;
|
|
838
963
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
839
964
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
840
965
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
841
|
-
aws_rek_og_nition_config?: AWSRekognitionConfig;
|
|
842
966
|
block_list_config?: BlockListConfig;
|
|
843
|
-
bodyguard_config?: BodyguardConfig;
|
|
844
|
-
go_og_le_vision_config?: GoogleVisionConfig;
|
|
845
967
|
velocity_filter_config?: VelocityFilterConfig;
|
|
846
968
|
}
|
|
847
969
|
export interface Coordinates {
|
|
@@ -849,7 +971,7 @@ export interface Coordinates {
|
|
|
849
971
|
longitude: number;
|
|
850
972
|
}
|
|
851
973
|
export interface Count {
|
|
852
|
-
|
|
974
|
+
approximate: boolean;
|
|
853
975
|
value: number;
|
|
854
976
|
}
|
|
855
977
|
export interface CountrywiseAggregateStats {
|
|
@@ -891,7 +1013,7 @@ export interface CreateChannelTypeRequest {
|
|
|
891
1013
|
connect_events?: boolean;
|
|
892
1014
|
custom_events?: boolean;
|
|
893
1015
|
mark_messages_pending?: boolean;
|
|
894
|
-
message_retention?:
|
|
1016
|
+
message_retention?: 'infinite' | 'numeric';
|
|
895
1017
|
mutes?: boolean;
|
|
896
1018
|
partition_size?: number;
|
|
897
1019
|
partition_ttl?: string;
|
|
@@ -901,6 +1023,7 @@ export interface CreateChannelTypeRequest {
|
|
|
901
1023
|
read_events?: boolean;
|
|
902
1024
|
replies?: boolean;
|
|
903
1025
|
search?: boolean;
|
|
1026
|
+
skip_last_msg_update_for_system_msgs?: boolean;
|
|
904
1027
|
typing_events?: boolean;
|
|
905
1028
|
uploads?: boolean;
|
|
906
1029
|
url_enrichment?: boolean;
|
|
@@ -928,6 +1051,7 @@ export interface CreateChannelTypeResponse {
|
|
|
928
1051
|
reminders: boolean;
|
|
929
1052
|
replies: boolean;
|
|
930
1053
|
search: boolean;
|
|
1054
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
931
1055
|
typing_events: boolean;
|
|
932
1056
|
updated_at: Date;
|
|
933
1057
|
uploads: boolean;
|
|
@@ -938,7 +1062,7 @@ export interface CreateChannelTypeResponse {
|
|
|
938
1062
|
blocklist?: string;
|
|
939
1063
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
940
1064
|
partition_size?: number;
|
|
941
|
-
partition_ttl?:
|
|
1065
|
+
partition_ttl?: string;
|
|
942
1066
|
allowed_flag_reasons?: string[];
|
|
943
1067
|
blocklists?: BlockListOptions[];
|
|
944
1068
|
automod_thresholds?: Thresholds;
|
|
@@ -1119,6 +1243,9 @@ export interface DeleteMessageResponse {
|
|
|
1119
1243
|
duration: string;
|
|
1120
1244
|
message: MessageResponse;
|
|
1121
1245
|
}
|
|
1246
|
+
export interface DeleteModerationConfigResponse {
|
|
1247
|
+
duration: string;
|
|
1248
|
+
}
|
|
1122
1249
|
export interface DeleteModerationTemplateResponse {
|
|
1123
1250
|
duration: string;
|
|
1124
1251
|
}
|
|
@@ -1128,11 +1255,15 @@ export interface DeleteReactionRequest {
|
|
|
1128
1255
|
export interface DeleteRecordingResponse {
|
|
1129
1256
|
duration: string;
|
|
1130
1257
|
}
|
|
1258
|
+
export interface DeleteSegmentTargetsRequest {
|
|
1259
|
+
target_ids: string[];
|
|
1260
|
+
}
|
|
1131
1261
|
export interface DeleteTranscriptionResponse {
|
|
1132
1262
|
duration: string;
|
|
1133
1263
|
}
|
|
1134
1264
|
export interface DeleteUserRequest {
|
|
1135
1265
|
delete_conversation_channels?: boolean;
|
|
1266
|
+
delete_feeds_content?: boolean;
|
|
1136
1267
|
hard_delete?: boolean;
|
|
1137
1268
|
mark_messages_deleted?: boolean;
|
|
1138
1269
|
}
|
|
@@ -1152,7 +1283,7 @@ export interface DeleteUsersResponse {
|
|
|
1152
1283
|
export interface Device {
|
|
1153
1284
|
created_at: Date;
|
|
1154
1285
|
id: string;
|
|
1155
|
-
push_provider:
|
|
1286
|
+
push_provider: 'firebase' | 'apn' | 'huawei' | 'xiaomi';
|
|
1156
1287
|
user_id: string;
|
|
1157
1288
|
disabled?: boolean;
|
|
1158
1289
|
disabled_reason?: string;
|
|
@@ -1164,6 +1295,16 @@ export interface DeviceErrorInfo {
|
|
|
1164
1295
|
provider: string;
|
|
1165
1296
|
provider_name: string;
|
|
1166
1297
|
}
|
|
1298
|
+
export interface DeviceResponse {
|
|
1299
|
+
created_at: Date;
|
|
1300
|
+
id: string;
|
|
1301
|
+
push_provider: string;
|
|
1302
|
+
user_id: string;
|
|
1303
|
+
disabled?: boolean;
|
|
1304
|
+
disabled_reason?: string;
|
|
1305
|
+
push_provider_name?: string;
|
|
1306
|
+
voip?: boolean;
|
|
1307
|
+
}
|
|
1167
1308
|
export interface EdgeResponse {
|
|
1168
1309
|
continent_code: string;
|
|
1169
1310
|
country_iso_code: string;
|
|
@@ -1187,7 +1328,7 @@ export interface EgressRTMPResponse {
|
|
|
1187
1328
|
}
|
|
1188
1329
|
export interface EgressResponse {
|
|
1189
1330
|
broadcasting: boolean;
|
|
1190
|
-
|
|
1331
|
+
rtmps: EgressRTMPResponse[];
|
|
1191
1332
|
hls?: EgressHLSResponse;
|
|
1192
1333
|
}
|
|
1193
1334
|
export interface EndCallRequest {
|
|
@@ -1224,6 +1365,54 @@ export interface EnrichedReaction {
|
|
|
1224
1365
|
updated_at?: Time;
|
|
1225
1366
|
user?: Data;
|
|
1226
1367
|
}
|
|
1368
|
+
export interface EntityCreator {
|
|
1369
|
+
ban_count: number;
|
|
1370
|
+
banned: boolean;
|
|
1371
|
+
deleted_content_count: number;
|
|
1372
|
+
id: string;
|
|
1373
|
+
online: boolean;
|
|
1374
|
+
role: string;
|
|
1375
|
+
custom: Record<string, any>;
|
|
1376
|
+
ban_expires?: Date;
|
|
1377
|
+
created_at?: Date;
|
|
1378
|
+
deactivated_at?: Date;
|
|
1379
|
+
deleted_at?: Date;
|
|
1380
|
+
invisible?: boolean;
|
|
1381
|
+
language?: string;
|
|
1382
|
+
last_active?: Date;
|
|
1383
|
+
last_engaged_at?: Date;
|
|
1384
|
+
revoke_tokens_issued_before?: Date;
|
|
1385
|
+
updated_at?: Date;
|
|
1386
|
+
teams?: string[];
|
|
1387
|
+
privacy_settings?: PrivacySettings;
|
|
1388
|
+
push_notifications?: PushNotificationSettings;
|
|
1389
|
+
}
|
|
1390
|
+
export interface EntityCreatorResponse {
|
|
1391
|
+
ban_count: number;
|
|
1392
|
+
banned: boolean;
|
|
1393
|
+
created_at: Date;
|
|
1394
|
+
deleted_content_count: number;
|
|
1395
|
+
id: string;
|
|
1396
|
+
invisible: boolean;
|
|
1397
|
+
language: string;
|
|
1398
|
+
online: boolean;
|
|
1399
|
+
role: string;
|
|
1400
|
+
shadow_banned: boolean;
|
|
1401
|
+
updated_at: Date;
|
|
1402
|
+
blocked_user_ids: string[];
|
|
1403
|
+
devices: DeviceResponse[];
|
|
1404
|
+
teams: string[];
|
|
1405
|
+
custom: Record<string, any>;
|
|
1406
|
+
ban_expires?: Date;
|
|
1407
|
+
deactivated_at?: Date;
|
|
1408
|
+
deleted_at?: Date;
|
|
1409
|
+
image?: string;
|
|
1410
|
+
last_active?: Date;
|
|
1411
|
+
name?: string;
|
|
1412
|
+
revoke_tokens_issued_before?: Date;
|
|
1413
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
1414
|
+
push_notifications?: PushNotificationSettingsResponse;
|
|
1415
|
+
}
|
|
1227
1416
|
export interface ErrorResult {
|
|
1228
1417
|
type: string;
|
|
1229
1418
|
stacktrace?: string;
|
|
@@ -1263,8 +1452,8 @@ export interface ExportChannelsResult {
|
|
|
1263
1452
|
}
|
|
1264
1453
|
export interface ExportUserResponse {
|
|
1265
1454
|
duration: string;
|
|
1266
|
-
messages?:
|
|
1267
|
-
reactions?:
|
|
1455
|
+
messages?: MessageResponse[];
|
|
1456
|
+
reactions?: ReactionResponse[];
|
|
1268
1457
|
user?: UserResponse;
|
|
1269
1458
|
}
|
|
1270
1459
|
export interface ExportUsersRequest {
|
|
@@ -1335,7 +1524,23 @@ export interface Flag2 {
|
|
|
1335
1524
|
labels?: string[];
|
|
1336
1525
|
custom?: Record<string, any>;
|
|
1337
1526
|
moderation_payload?: ModerationPayload;
|
|
1338
|
-
user?:
|
|
1527
|
+
user?: User;
|
|
1528
|
+
}
|
|
1529
|
+
export interface Flag2Response {
|
|
1530
|
+
created_at: Date;
|
|
1531
|
+
entity_id: string;
|
|
1532
|
+
entity_type: string;
|
|
1533
|
+
updated_at: Date;
|
|
1534
|
+
user_id: string;
|
|
1535
|
+
result: Array<Record<string, any>>;
|
|
1536
|
+
entity_creator_id?: string;
|
|
1537
|
+
reason?: string;
|
|
1538
|
+
review_queue_item_id?: string;
|
|
1539
|
+
type?: string;
|
|
1540
|
+
labels?: string[];
|
|
1541
|
+
custom?: Record<string, any>;
|
|
1542
|
+
moderation_payload?: ModerationPayload;
|
|
1543
|
+
user?: UserResponse;
|
|
1339
1544
|
}
|
|
1340
1545
|
export interface FlagDetails {
|
|
1341
1546
|
original_text: string;
|
|
@@ -1356,8 +1561,8 @@ export interface FlagMessageDetails {
|
|
|
1356
1561
|
export interface FlagRequest {
|
|
1357
1562
|
entity_id: string;
|
|
1358
1563
|
entity_type: string;
|
|
1359
|
-
reason: string;
|
|
1360
1564
|
entity_creator_id?: string;
|
|
1565
|
+
reason?: string;
|
|
1361
1566
|
user_id?: string;
|
|
1362
1567
|
custom?: Record<string, any>;
|
|
1363
1568
|
moderation_payload?: ModerationPayload;
|
|
@@ -1383,7 +1588,7 @@ export interface FullUserResponse {
|
|
|
1383
1588
|
updated_at: Date;
|
|
1384
1589
|
blocked_user_ids: string[];
|
|
1385
1590
|
channel_mutes: ChannelMute[];
|
|
1386
|
-
devices:
|
|
1591
|
+
devices: DeviceResponse[];
|
|
1387
1592
|
mutes: UserMuteResponse[];
|
|
1388
1593
|
teams: string[];
|
|
1389
1594
|
custom: Record<string, any>;
|
|
@@ -1469,6 +1674,10 @@ export interface GetCallTypeResponse {
|
|
|
1469
1674
|
settings: CallSettingsResponse;
|
|
1470
1675
|
external_storage?: string;
|
|
1471
1676
|
}
|
|
1677
|
+
export interface GetCampaignResponse {
|
|
1678
|
+
duration: string;
|
|
1679
|
+
campaign?: CampaignResponse;
|
|
1680
|
+
}
|
|
1472
1681
|
export interface GetChannelTypeResponse {
|
|
1473
1682
|
automod: 'disabled' | 'simple' | 'AI';
|
|
1474
1683
|
automod_behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -1488,6 +1697,7 @@ export interface GetChannelTypeResponse {
|
|
|
1488
1697
|
reminders: boolean;
|
|
1489
1698
|
replies: boolean;
|
|
1490
1699
|
search: boolean;
|
|
1700
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
1491
1701
|
typing_events: boolean;
|
|
1492
1702
|
updated_at: Date;
|
|
1493
1703
|
uploads: boolean;
|
|
@@ -1498,7 +1708,7 @@ export interface GetChannelTypeResponse {
|
|
|
1498
1708
|
blocklist?: string;
|
|
1499
1709
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
1500
1710
|
partition_size?: number;
|
|
1501
|
-
partition_ttl?:
|
|
1711
|
+
partition_ttl?: string;
|
|
1502
1712
|
allowed_flag_reasons?: string[];
|
|
1503
1713
|
blocklists?: BlockListOptions[];
|
|
1504
1714
|
automod_thresholds?: Thresholds;
|
|
@@ -1539,7 +1749,7 @@ export interface GetImportResponse {
|
|
|
1539
1749
|
}
|
|
1540
1750
|
export interface GetManyMessagesResponse {
|
|
1541
1751
|
duration: string;
|
|
1542
|
-
messages:
|
|
1752
|
+
messages: MessageResponse[];
|
|
1543
1753
|
}
|
|
1544
1754
|
export interface GetMessageResponse {
|
|
1545
1755
|
duration: string;
|
|
@@ -1558,10 +1768,13 @@ export interface GetOGResponse {
|
|
|
1558
1768
|
footer?: string;
|
|
1559
1769
|
footer_icon?: string;
|
|
1560
1770
|
image_url?: string;
|
|
1771
|
+
latitude?: number;
|
|
1772
|
+
longitude?: number;
|
|
1561
1773
|
og_scrape_url?: string;
|
|
1562
1774
|
original_height?: number;
|
|
1563
1775
|
original_width?: number;
|
|
1564
1776
|
pretext?: string;
|
|
1777
|
+
stopped_sharing?: boolean;
|
|
1565
1778
|
text?: string;
|
|
1566
1779
|
thumb_url?: string;
|
|
1567
1780
|
title?: string;
|
|
@@ -1602,8 +1815,12 @@ export interface GetRepliesResponse {
|
|
|
1602
1815
|
}
|
|
1603
1816
|
export interface GetReviewQueueItemResponse {
|
|
1604
1817
|
duration: string;
|
|
1605
|
-
history:
|
|
1606
|
-
item?:
|
|
1818
|
+
history: ReviewQueueItemResponse[];
|
|
1819
|
+
item?: ReviewQueueItemResponse;
|
|
1820
|
+
}
|
|
1821
|
+
export interface GetSegmentResponse {
|
|
1822
|
+
duration: string;
|
|
1823
|
+
segment?: SegmentResponse;
|
|
1607
1824
|
}
|
|
1608
1825
|
export interface GetTaskResponse {
|
|
1609
1826
|
created_at: Date;
|
|
@@ -1736,10 +1953,12 @@ export interface LayoutSettings {
|
|
|
1736
1953
|
external_app_url: string;
|
|
1737
1954
|
external_css_url: string;
|
|
1738
1955
|
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
1956
|
+
detect_orientation?: boolean;
|
|
1739
1957
|
options?: Record<string, any>;
|
|
1740
1958
|
}
|
|
1741
1959
|
export interface LayoutSettingsRequest {
|
|
1742
1960
|
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
1961
|
+
detect_orientation?: boolean;
|
|
1743
1962
|
external_app_url?: string;
|
|
1744
1963
|
external_css_url?: string;
|
|
1745
1964
|
options?: Record<string, any>;
|
|
@@ -1748,6 +1967,7 @@ export interface LayoutSettingsResponse {
|
|
|
1748
1967
|
external_app_url: string;
|
|
1749
1968
|
external_css_url: string;
|
|
1750
1969
|
name: 'spotlight' | 'grid' | 'single-participant' | 'mobile' | 'custom';
|
|
1970
|
+
detect_orientation?: boolean;
|
|
1751
1971
|
options?: Record<string, any>;
|
|
1752
1972
|
}
|
|
1753
1973
|
export interface LimitInfo {
|
|
@@ -1785,7 +2005,7 @@ export interface ListCommandsResponse {
|
|
|
1785
2005
|
}
|
|
1786
2006
|
export interface ListDevicesResponse {
|
|
1787
2007
|
duration: string;
|
|
1788
|
-
devices:
|
|
2008
|
+
devices: DeviceResponse[];
|
|
1789
2009
|
}
|
|
1790
2010
|
export interface ListExternalStorageResponse {
|
|
1791
2011
|
duration: string;
|
|
@@ -1820,12 +2040,6 @@ export interface Location {
|
|
|
1820
2040
|
country_iso_code: string;
|
|
1821
2041
|
subdivision_iso_code: string;
|
|
1822
2042
|
}
|
|
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
2043
|
export interface MarkChannelsReadRequest {
|
|
1830
2044
|
user_id?: string;
|
|
1831
2045
|
read_by_channel?: Record<string, string>;
|
|
@@ -1841,6 +2055,10 @@ export interface MarkReadResponse {
|
|
|
1841
2055
|
duration: string;
|
|
1842
2056
|
event?: MessageReadEvent;
|
|
1843
2057
|
}
|
|
2058
|
+
export interface MarkReviewedRequest {
|
|
2059
|
+
content_to_mark_as_reviewed_limit?: number;
|
|
2060
|
+
disable_marking_content_as_reviewed?: boolean;
|
|
2061
|
+
}
|
|
1844
2062
|
export interface MarkUnreadRequest {
|
|
1845
2063
|
message_id?: string;
|
|
1846
2064
|
thread_id?: string;
|
|
@@ -1882,11 +2100,11 @@ export interface Message {
|
|
|
1882
2100
|
shadowed: boolean;
|
|
1883
2101
|
silent: boolean;
|
|
1884
2102
|
text: string;
|
|
1885
|
-
type:
|
|
2103
|
+
type: string;
|
|
1886
2104
|
updated_at: Date;
|
|
1887
2105
|
attachments: Attachment[];
|
|
1888
2106
|
latest_reactions: Reaction[];
|
|
1889
|
-
mentioned_users:
|
|
2107
|
+
mentioned_users: User[];
|
|
1890
2108
|
own_reactions: Reaction[];
|
|
1891
2109
|
custom: Record<string, any>;
|
|
1892
2110
|
reaction_counts: Record<string, number>;
|
|
@@ -1903,13 +2121,14 @@ export interface Message {
|
|
|
1903
2121
|
poll_id?: string;
|
|
1904
2122
|
quoted_message_id?: string;
|
|
1905
2123
|
show_in_channel?: boolean;
|
|
1906
|
-
thread_participants?:
|
|
2124
|
+
thread_participants?: User[];
|
|
1907
2125
|
i18n?: Record<string, string>;
|
|
1908
2126
|
image_labels?: Record<string, string[]>;
|
|
1909
|
-
|
|
2127
|
+
moderation?: ModerationV2Response;
|
|
2128
|
+
pinned_by?: User;
|
|
1910
2129
|
poll?: Poll;
|
|
1911
2130
|
quoted_message?: Message;
|
|
1912
|
-
user?:
|
|
2131
|
+
user?: User;
|
|
1913
2132
|
}
|
|
1914
2133
|
export interface MessageActionRequest {
|
|
1915
2134
|
form_data: Record<string, string>;
|
|
@@ -1976,7 +2195,7 @@ export interface MessageReadEvent {
|
|
|
1976
2195
|
last_read_message_id?: string;
|
|
1977
2196
|
team?: string;
|
|
1978
2197
|
thread?: ThreadResponse;
|
|
1979
|
-
user?:
|
|
2198
|
+
user?: UserResponse;
|
|
1980
2199
|
}
|
|
1981
2200
|
export interface MessageRequest {
|
|
1982
2201
|
html?: string;
|
|
@@ -2009,7 +2228,7 @@ export interface MessageResponse {
|
|
|
2009
2228
|
shadowed: boolean;
|
|
2010
2229
|
silent: boolean;
|
|
2011
2230
|
text: string;
|
|
2012
|
-
type:
|
|
2231
|
+
type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
|
|
2013
2232
|
updated_at: Date;
|
|
2014
2233
|
attachments: Attachment[];
|
|
2015
2234
|
latest_reactions: ReactionResponse[];
|
|
@@ -2032,9 +2251,10 @@ export interface MessageResponse {
|
|
|
2032
2251
|
thread_participants?: UserResponse[];
|
|
2033
2252
|
i18n?: Record<string, string>;
|
|
2034
2253
|
image_labels?: Record<string, string[]>;
|
|
2254
|
+
moderation?: ModerationV2Response;
|
|
2035
2255
|
pinned_by?: UserResponse;
|
|
2036
|
-
poll?:
|
|
2037
|
-
quoted_message?:
|
|
2256
|
+
poll?: PollResponseData;
|
|
2257
|
+
quoted_message?: MessageResponse;
|
|
2038
2258
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
2039
2259
|
}
|
|
2040
2260
|
export interface MessageUpdate {
|
|
@@ -2052,7 +2272,7 @@ export interface MessageWithChannelResponse {
|
|
|
2052
2272
|
shadowed: boolean;
|
|
2053
2273
|
silent: boolean;
|
|
2054
2274
|
text: string;
|
|
2055
|
-
type:
|
|
2275
|
+
type: 'regular' | 'ephemeral' | 'error' | 'reply' | 'system' | 'deleted';
|
|
2056
2276
|
updated_at: Date;
|
|
2057
2277
|
attachments: Attachment[];
|
|
2058
2278
|
latest_reactions: ReactionResponse[];
|
|
@@ -2076,9 +2296,10 @@ export interface MessageWithChannelResponse {
|
|
|
2076
2296
|
thread_participants?: UserResponse[];
|
|
2077
2297
|
i18n?: Record<string, string>;
|
|
2078
2298
|
image_labels?: Record<string, string[]>;
|
|
2299
|
+
moderation?: ModerationV2Response;
|
|
2079
2300
|
pinned_by?: UserResponse;
|
|
2080
|
-
poll?:
|
|
2081
|
-
quoted_message?:
|
|
2301
|
+
poll?: PollResponseData;
|
|
2302
|
+
quoted_message?: MessageResponse;
|
|
2082
2303
|
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
2083
2304
|
}
|
|
2084
2305
|
export interface ModerationActionConfig {
|
|
@@ -2102,10 +2323,22 @@ export interface ModerationResponse {
|
|
|
2102
2323
|
toxic: number;
|
|
2103
2324
|
}
|
|
2104
2325
|
export interface ModerationUsageStats {
|
|
2105
|
-
|
|
2106
|
-
|
|
2326
|
+
app_pk: number;
|
|
2327
|
+
id: number;
|
|
2328
|
+
organization_id: number;
|
|
2329
|
+
reference_date: Date;
|
|
2107
2330
|
updated_at: Date;
|
|
2108
|
-
|
|
2331
|
+
usage_amount: number;
|
|
2332
|
+
usage_type: string;
|
|
2333
|
+
}
|
|
2334
|
+
export interface ModerationV2Response {
|
|
2335
|
+
action: string;
|
|
2336
|
+
original_text: string;
|
|
2337
|
+
blocklist_matched?: string;
|
|
2338
|
+
platform_circumvented?: boolean;
|
|
2339
|
+
semantic_filter_matched?: string;
|
|
2340
|
+
image_harms?: string[];
|
|
2341
|
+
text_harms?: string[];
|
|
2109
2342
|
}
|
|
2110
2343
|
export interface ModeratorStats {
|
|
2111
2344
|
id: string;
|
|
@@ -2193,9 +2426,11 @@ export declare const OwnCapability: {
|
|
|
2193
2426
|
readonly SEND_AUDIO: "send-audio";
|
|
2194
2427
|
readonly SEND_VIDEO: "send-video";
|
|
2195
2428
|
readonly START_BROADCAST_CALL: "start-broadcast-call";
|
|
2429
|
+
readonly START_CLOSED_CAPTIONS_CALL: "start-closed-captions-call";
|
|
2196
2430
|
readonly START_RECORD_CALL: "start-record-call";
|
|
2197
2431
|
readonly START_TRANSCRIPTION_CALL: "start-transcription-call";
|
|
2198
2432
|
readonly STOP_BROADCAST_CALL: "stop-broadcast-call";
|
|
2433
|
+
readonly STOP_CLOSED_CAPTIONS_CALL: "stop-closed-captions-call";
|
|
2199
2434
|
readonly STOP_RECORD_CALL: "stop-record-call";
|
|
2200
2435
|
readonly STOP_TRANSCRIPTION_CALL: "stop-transcription-call";
|
|
2201
2436
|
readonly UPDATE_CALL: "update-call";
|
|
@@ -2224,12 +2459,42 @@ export interface OwnUser {
|
|
|
2224
2459
|
deleted_at?: Date;
|
|
2225
2460
|
invisible?: boolean;
|
|
2226
2461
|
last_active?: Date;
|
|
2462
|
+
last_engaged_at?: Date;
|
|
2227
2463
|
blocked_user_ids?: string[];
|
|
2228
2464
|
latest_hidden_channels?: string[];
|
|
2229
2465
|
teams?: string[];
|
|
2230
2466
|
privacy_settings?: PrivacySettings;
|
|
2231
2467
|
push_notifications?: PushNotificationSettings;
|
|
2232
2468
|
}
|
|
2469
|
+
export interface OwnUserResponse {
|
|
2470
|
+
banned: boolean;
|
|
2471
|
+
created_at: Date;
|
|
2472
|
+
id: string;
|
|
2473
|
+
invisible: boolean;
|
|
2474
|
+
language: string;
|
|
2475
|
+
online: boolean;
|
|
2476
|
+
role: string;
|
|
2477
|
+
total_unread_count: number;
|
|
2478
|
+
unread_channels: number;
|
|
2479
|
+
unread_count: number;
|
|
2480
|
+
unread_threads: number;
|
|
2481
|
+
updated_at: Date;
|
|
2482
|
+
channel_mutes: ChannelMute[];
|
|
2483
|
+
devices: DeviceResponse[];
|
|
2484
|
+
mutes: UserMuteResponse[];
|
|
2485
|
+
teams: string[];
|
|
2486
|
+
custom: Record<string, any>;
|
|
2487
|
+
deactivated_at?: Date;
|
|
2488
|
+
deleted_at?: Date;
|
|
2489
|
+
image?: string;
|
|
2490
|
+
last_active?: Date;
|
|
2491
|
+
name?: string;
|
|
2492
|
+
revoke_tokens_issued_before?: Date;
|
|
2493
|
+
blocked_user_ids?: string[];
|
|
2494
|
+
latest_hidden_channels?: string[];
|
|
2495
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
2496
|
+
push_notifications?: PushNotificationSettingsResponse;
|
|
2497
|
+
}
|
|
2233
2498
|
export interface PaginationParams {
|
|
2234
2499
|
limit?: number;
|
|
2235
2500
|
offset?: number;
|
|
@@ -2298,7 +2563,7 @@ export interface Poll {
|
|
|
2298
2563
|
is_closed?: boolean;
|
|
2299
2564
|
max_votes_allowed?: number;
|
|
2300
2565
|
voting_visibility?: string;
|
|
2301
|
-
created_by?:
|
|
2566
|
+
created_by?: User;
|
|
2302
2567
|
}
|
|
2303
2568
|
export interface PollOption {
|
|
2304
2569
|
id: string;
|
|
@@ -2340,6 +2605,7 @@ export interface PollResponseData {
|
|
|
2340
2605
|
updated_at: Date;
|
|
2341
2606
|
vote_count: number;
|
|
2342
2607
|
voting_visibility: string;
|
|
2608
|
+
latest_answers: PollVoteResponseData[];
|
|
2343
2609
|
options: PollOptionResponseData[];
|
|
2344
2610
|
own_votes: PollVoteResponseData[];
|
|
2345
2611
|
custom: Record<string, any>;
|
|
@@ -2358,7 +2624,7 @@ export interface PollVote {
|
|
|
2358
2624
|
answer_text?: string;
|
|
2359
2625
|
is_answer?: boolean;
|
|
2360
2626
|
user_id?: string;
|
|
2361
|
-
user?:
|
|
2627
|
+
user?: User;
|
|
2362
2628
|
}
|
|
2363
2629
|
export interface PollVoteResponse {
|
|
2364
2630
|
duration: string;
|
|
@@ -2535,6 +2801,19 @@ export interface QueryCallsResponse {
|
|
|
2535
2801
|
next?: string;
|
|
2536
2802
|
prev?: string;
|
|
2537
2803
|
}
|
|
2804
|
+
export interface QueryCampaignsRequest {
|
|
2805
|
+
limit?: number;
|
|
2806
|
+
next?: string;
|
|
2807
|
+
prev?: string;
|
|
2808
|
+
sort?: SortParamRequest[];
|
|
2809
|
+
filter?: Record<string, any>;
|
|
2810
|
+
}
|
|
2811
|
+
export interface QueryCampaignsResponse {
|
|
2812
|
+
duration: string;
|
|
2813
|
+
campaigns: CampaignResponse[];
|
|
2814
|
+
next?: string;
|
|
2815
|
+
prev?: string;
|
|
2816
|
+
}
|
|
2538
2817
|
export interface QueryChannelsRequest {
|
|
2539
2818
|
limit?: number;
|
|
2540
2819
|
member_limit?: number;
|
|
@@ -2576,7 +2855,7 @@ export interface QueryMessageFlagsPayload {
|
|
|
2576
2855
|
offset?: number;
|
|
2577
2856
|
show_deleted_messages?: boolean;
|
|
2578
2857
|
user_id?: string;
|
|
2579
|
-
sort?:
|
|
2858
|
+
sort?: SortParamRequest[];
|
|
2580
2859
|
filter_conditions?: Record<string, any>;
|
|
2581
2860
|
user?: UserRequest;
|
|
2582
2861
|
}
|
|
@@ -2597,6 +2876,21 @@ export interface QueryMessageHistoryResponse {
|
|
|
2597
2876
|
next?: string;
|
|
2598
2877
|
prev?: string;
|
|
2599
2878
|
}
|
|
2879
|
+
export interface QueryModerationConfigsRequest {
|
|
2880
|
+
limit?: number;
|
|
2881
|
+
next?: string;
|
|
2882
|
+
prev?: string;
|
|
2883
|
+
user_id?: string;
|
|
2884
|
+
sort?: SortParamRequest[];
|
|
2885
|
+
filter?: Record<string, any>;
|
|
2886
|
+
user?: UserRequest;
|
|
2887
|
+
}
|
|
2888
|
+
export interface QueryModerationConfigsResponse {
|
|
2889
|
+
duration: string;
|
|
2890
|
+
configs: ConfigResponse[];
|
|
2891
|
+
next?: string;
|
|
2892
|
+
prev?: string;
|
|
2893
|
+
}
|
|
2600
2894
|
export interface QueryModerationLogsRequest {
|
|
2601
2895
|
limit?: number;
|
|
2602
2896
|
next?: string;
|
|
@@ -2608,7 +2902,7 @@ export interface QueryModerationLogsRequest {
|
|
|
2608
2902
|
}
|
|
2609
2903
|
export interface QueryModerationLogsResponse {
|
|
2610
2904
|
duration: string;
|
|
2611
|
-
|
|
2905
|
+
logs: ActionLogResponse[];
|
|
2612
2906
|
next?: string;
|
|
2613
2907
|
prev?: string;
|
|
2614
2908
|
}
|
|
@@ -2649,8 +2943,9 @@ export interface QueryReactionsResponse {
|
|
|
2649
2943
|
}
|
|
2650
2944
|
export interface QueryReviewQueueRequest {
|
|
2651
2945
|
limit?: number;
|
|
2652
|
-
|
|
2653
|
-
|
|
2946
|
+
lock_count?: number;
|
|
2947
|
+
lock_duration?: number;
|
|
2948
|
+
lock_items?: boolean;
|
|
2654
2949
|
next?: string;
|
|
2655
2950
|
prev?: string;
|
|
2656
2951
|
stats_only?: boolean;
|
|
@@ -2661,12 +2956,38 @@ export interface QueryReviewQueueRequest {
|
|
|
2661
2956
|
}
|
|
2662
2957
|
export interface QueryReviewQueueResponse {
|
|
2663
2958
|
duration: string;
|
|
2664
|
-
items:
|
|
2959
|
+
items: ReviewQueueItemResponse[];
|
|
2665
2960
|
action_config: Record<string, Array<ModerationActionConfig | null>>;
|
|
2666
2961
|
stats: Record<string, number>;
|
|
2667
2962
|
next?: string;
|
|
2668
2963
|
prev?: string;
|
|
2669
2964
|
}
|
|
2965
|
+
export interface QuerySegmentTargetsRequest {
|
|
2966
|
+
limit?: number;
|
|
2967
|
+
next?: string;
|
|
2968
|
+
prev?: string;
|
|
2969
|
+
sort?: SortParamRequest[];
|
|
2970
|
+
filter?: Record<string, any>;
|
|
2971
|
+
}
|
|
2972
|
+
export interface QuerySegmentTargetsResponse {
|
|
2973
|
+
duration: string;
|
|
2974
|
+
targets: SegmentTargetResponse[];
|
|
2975
|
+
next?: string;
|
|
2976
|
+
prev?: string;
|
|
2977
|
+
}
|
|
2978
|
+
export interface QuerySegmentsRequest {
|
|
2979
|
+
filter: Record<string, any>;
|
|
2980
|
+
limit?: number;
|
|
2981
|
+
next?: string;
|
|
2982
|
+
prev?: string;
|
|
2983
|
+
sort?: SortParamRequest[];
|
|
2984
|
+
}
|
|
2985
|
+
export interface QuerySegmentsResponse {
|
|
2986
|
+
duration: string;
|
|
2987
|
+
segments: SegmentResponse[];
|
|
2988
|
+
next?: string;
|
|
2989
|
+
prev?: string;
|
|
2990
|
+
}
|
|
2670
2991
|
export interface QueryThreadsRequest {
|
|
2671
2992
|
limit?: number;
|
|
2672
2993
|
member_limit?: number;
|
|
@@ -2756,7 +3077,7 @@ export interface Reaction {
|
|
|
2756
3077
|
updated_at: Date;
|
|
2757
3078
|
custom: Record<string, any>;
|
|
2758
3079
|
user_id?: string;
|
|
2759
|
-
user?:
|
|
3080
|
+
user?: User;
|
|
2760
3081
|
}
|
|
2761
3082
|
export interface ReactionGroupResponse {
|
|
2762
3083
|
count: number;
|
|
@@ -2807,17 +3128,11 @@ export interface ReactivateUsersResponse {
|
|
|
2807
3128
|
duration: string;
|
|
2808
3129
|
task_id: string;
|
|
2809
3130
|
}
|
|
2810
|
-
export interface Read {
|
|
2811
|
-
last_read: Date;
|
|
2812
|
-
unread_messages: number;
|
|
2813
|
-
last_read_message_id?: string;
|
|
2814
|
-
user?: UserObject;
|
|
2815
|
-
}
|
|
2816
3131
|
export interface ReadReceipts {
|
|
2817
|
-
enabled
|
|
3132
|
+
enabled: boolean;
|
|
2818
3133
|
}
|
|
2819
3134
|
export interface ReadReceiptsResponse {
|
|
2820
|
-
enabled
|
|
3135
|
+
enabled?: boolean;
|
|
2821
3136
|
}
|
|
2822
3137
|
export interface ReadStateResponse {
|
|
2823
3138
|
last_read: Date;
|
|
@@ -2826,9 +3141,9 @@ export interface ReadStateResponse {
|
|
|
2826
3141
|
last_read_message_id?: string;
|
|
2827
3142
|
}
|
|
2828
3143
|
export interface RecordSettings {
|
|
2829
|
-
audio_only: boolean;
|
|
2830
3144
|
mode: string;
|
|
2831
|
-
|
|
3145
|
+
audio_only?: boolean;
|
|
3146
|
+
quality?: string;
|
|
2832
3147
|
layout?: LayoutSettings;
|
|
2833
3148
|
}
|
|
2834
3149
|
export interface RecordSettingsRequest {
|
|
@@ -2870,15 +3185,40 @@ export interface ReviewQueueItem {
|
|
|
2870
3185
|
bans: Ban[];
|
|
2871
3186
|
flags: Flag2[];
|
|
2872
3187
|
languages: string[];
|
|
3188
|
+
teams: string[];
|
|
2873
3189
|
completed_at: NullTime;
|
|
2874
3190
|
reviewed_at: NullTime;
|
|
2875
|
-
assigned_to?:
|
|
2876
|
-
entity_creator?:
|
|
3191
|
+
assigned_to?: User;
|
|
3192
|
+
entity_creator?: EntityCreator;
|
|
2877
3193
|
feeds_v2_activity?: EnrichedActivity;
|
|
2878
3194
|
feeds_v2_reaction?: Reaction;
|
|
2879
3195
|
message?: Message;
|
|
2880
3196
|
moderation_payload?: ModerationPayload;
|
|
2881
3197
|
}
|
|
3198
|
+
export interface ReviewQueueItemResponse {
|
|
3199
|
+
created_at: Date;
|
|
3200
|
+
entity_id: string;
|
|
3201
|
+
entity_type: string;
|
|
3202
|
+
id: string;
|
|
3203
|
+
recommended_action: string;
|
|
3204
|
+
reviewed_by: string;
|
|
3205
|
+
severity: number;
|
|
3206
|
+
status: string;
|
|
3207
|
+
updated_at: Date;
|
|
3208
|
+
actions: ActionLogResponse[];
|
|
3209
|
+
bans: Ban[];
|
|
3210
|
+
flags: Flag2Response[];
|
|
3211
|
+
languages: string[];
|
|
3212
|
+
completed_at?: Date;
|
|
3213
|
+
entity_creator_id?: string;
|
|
3214
|
+
reviewed_at?: Date;
|
|
3215
|
+
assigned_to?: UserResponse;
|
|
3216
|
+
entity_creator?: EntityCreatorResponse;
|
|
3217
|
+
feeds_v2_activity?: EnrichedActivity;
|
|
3218
|
+
feeds_v2_reaction?: Reaction;
|
|
3219
|
+
message?: MessageResponse;
|
|
3220
|
+
moderation_payload?: ModerationPayload;
|
|
3221
|
+
}
|
|
2882
3222
|
export interface RingSettings {
|
|
2883
3223
|
auto_cancel_timeout_ms: number;
|
|
2884
3224
|
incoming_call_timeout_ms: number;
|
|
@@ -2960,14 +3300,13 @@ export interface SearchResultMessage {
|
|
|
2960
3300
|
type: string;
|
|
2961
3301
|
updated_at: Date;
|
|
2962
3302
|
attachments: Attachment[];
|
|
2963
|
-
latest_reactions:
|
|
2964
|
-
mentioned_users:
|
|
2965
|
-
own_reactions:
|
|
3303
|
+
latest_reactions: ReactionResponse[];
|
|
3304
|
+
mentioned_users: UserResponse[];
|
|
3305
|
+
own_reactions: ReactionResponse[];
|
|
2966
3306
|
custom: Record<string, any>;
|
|
2967
3307
|
reaction_counts: Record<string, number>;
|
|
2968
|
-
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
2969
3308
|
reaction_scores: Record<string, number>;
|
|
2970
|
-
|
|
3309
|
+
user: UserResponse;
|
|
2971
3310
|
command?: string;
|
|
2972
3311
|
deleted_at?: Date;
|
|
2973
3312
|
message_text_updated_at?: Date;
|
|
@@ -2978,14 +3317,15 @@ export interface SearchResultMessage {
|
|
|
2978
3317
|
poll_id?: string;
|
|
2979
3318
|
quoted_message_id?: string;
|
|
2980
3319
|
show_in_channel?: boolean;
|
|
2981
|
-
thread_participants?:
|
|
3320
|
+
thread_participants?: UserResponse[];
|
|
2982
3321
|
channel?: ChannelResponse;
|
|
2983
3322
|
i18n?: Record<string, string>;
|
|
2984
3323
|
image_labels?: Record<string, string[]>;
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
3324
|
+
moderation?: ModerationV2Response;
|
|
3325
|
+
pinned_by?: UserResponse;
|
|
3326
|
+
poll?: PollResponseData;
|
|
3327
|
+
quoted_message?: MessageResponse;
|
|
3328
|
+
reaction_groups?: Record<string, ReactionGroupResponse>;
|
|
2989
3329
|
}
|
|
2990
3330
|
export interface SearchWarning {
|
|
2991
3331
|
warning_code: number;
|
|
@@ -2993,6 +3333,39 @@ export interface SearchWarning {
|
|
|
2993
3333
|
channel_search_count?: number;
|
|
2994
3334
|
channel_search_cids?: string[];
|
|
2995
3335
|
}
|
|
3336
|
+
export interface Segment {
|
|
3337
|
+
all_sender_channels: boolean;
|
|
3338
|
+
all_users: boolean;
|
|
3339
|
+
created_at: Date;
|
|
3340
|
+
id: string;
|
|
3341
|
+
name: string;
|
|
3342
|
+
size: number;
|
|
3343
|
+
type: string;
|
|
3344
|
+
updated_at: Date;
|
|
3345
|
+
deleted_at?: Date;
|
|
3346
|
+
description?: string;
|
|
3347
|
+
task_id?: string;
|
|
3348
|
+
filter?: Record<string, any>;
|
|
3349
|
+
}
|
|
3350
|
+
export interface SegmentResponse {
|
|
3351
|
+
all_sender_channels: boolean;
|
|
3352
|
+
all_users: boolean;
|
|
3353
|
+
created_at: Date;
|
|
3354
|
+
deleted_at: Date;
|
|
3355
|
+
description: string;
|
|
3356
|
+
id: string;
|
|
3357
|
+
name: string;
|
|
3358
|
+
size: number;
|
|
3359
|
+
type: string;
|
|
3360
|
+
updated_at: Date;
|
|
3361
|
+
filter: Record<string, any>;
|
|
3362
|
+
}
|
|
3363
|
+
export interface SegmentTargetResponse {
|
|
3364
|
+
app_pk: number;
|
|
3365
|
+
created_at: Date;
|
|
3366
|
+
segment_id: string;
|
|
3367
|
+
target_id: string;
|
|
3368
|
+
}
|
|
2996
3369
|
export interface SendCallEventRequest {
|
|
2997
3370
|
user_id?: string;
|
|
2998
3371
|
custom?: Record<string, any>;
|
|
@@ -3038,14 +3411,23 @@ export interface ShowChannelRequest {
|
|
|
3038
3411
|
export interface ShowChannelResponse {
|
|
3039
3412
|
duration: string;
|
|
3040
3413
|
}
|
|
3041
|
-
export interface SortParam {
|
|
3042
|
-
direction?: number;
|
|
3043
|
-
field?: string;
|
|
3044
|
-
}
|
|
3045
3414
|
export interface SortParamRequest {
|
|
3046
3415
|
direction?: number;
|
|
3047
3416
|
field?: string;
|
|
3048
3417
|
}
|
|
3418
|
+
export interface StartCampaignRequest {
|
|
3419
|
+
scheduled_for?: Date;
|
|
3420
|
+
stop_at?: Date;
|
|
3421
|
+
}
|
|
3422
|
+
export interface StartCampaignResponse {
|
|
3423
|
+
duration: string;
|
|
3424
|
+
campaign?: CampaignResponse;
|
|
3425
|
+
}
|
|
3426
|
+
export interface StartClosedCaptionsRequest {
|
|
3427
|
+
}
|
|
3428
|
+
export interface StartClosedCaptionsResponse {
|
|
3429
|
+
duration: string;
|
|
3430
|
+
}
|
|
3049
3431
|
export interface StartHLSBroadcastingRequest {
|
|
3050
3432
|
}
|
|
3051
3433
|
export interface StartHLSBroadcastingResponse {
|
|
@@ -3075,12 +3457,23 @@ export interface StopAllRTMPBroadcastsRequest {
|
|
|
3075
3457
|
export interface StopAllRTMPBroadcastsResponse {
|
|
3076
3458
|
duration: string;
|
|
3077
3459
|
}
|
|
3460
|
+
export interface StopCampaignRequest {
|
|
3461
|
+
}
|
|
3462
|
+
export interface StopClosedCaptionsRequest {
|
|
3463
|
+
}
|
|
3464
|
+
export interface StopClosedCaptionsResponse {
|
|
3465
|
+
duration: string;
|
|
3466
|
+
}
|
|
3078
3467
|
export interface StopHLSBroadcastingRequest {
|
|
3079
3468
|
}
|
|
3080
3469
|
export interface StopHLSBroadcastingResponse {
|
|
3081
3470
|
duration: string;
|
|
3082
3471
|
}
|
|
3083
3472
|
export interface StopLiveRequest {
|
|
3473
|
+
continue_hls?: boolean;
|
|
3474
|
+
continue_recording?: boolean;
|
|
3475
|
+
continue_rtmp_broadcast?: boolean;
|
|
3476
|
+
continue_transcription?: boolean;
|
|
3084
3477
|
}
|
|
3085
3478
|
export interface StopLiveResponse {
|
|
3086
3479
|
duration: string;
|
|
@@ -3111,6 +3504,7 @@ export interface SubmitActionRequest {
|
|
|
3111
3504
|
delete_message?: DeleteMessageRequest;
|
|
3112
3505
|
delete_reaction?: DeleteReactionRequest;
|
|
3113
3506
|
delete_user?: DeleteUserRequest;
|
|
3507
|
+
mark_reviewed?: MarkReviewedRequest;
|
|
3114
3508
|
unban?: UnbanActionRequest;
|
|
3115
3509
|
user?: UserRequest;
|
|
3116
3510
|
}
|
|
@@ -3143,7 +3537,7 @@ export interface ThreadParticipant {
|
|
|
3143
3537
|
left_thread_at?: Date;
|
|
3144
3538
|
thread_id?: string;
|
|
3145
3539
|
user_id?: string;
|
|
3146
|
-
user?:
|
|
3540
|
+
user?: UserResponse;
|
|
3147
3541
|
}
|
|
3148
3542
|
export interface ThreadResponse {
|
|
3149
3543
|
channel_cid: string;
|
|
@@ -3160,27 +3554,8 @@ export interface ThreadResponse {
|
|
|
3160
3554
|
reply_count?: number;
|
|
3161
3555
|
thread_participants?: ThreadParticipant[];
|
|
3162
3556
|
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;
|
|
3557
|
+
created_by?: UserResponse;
|
|
3558
|
+
parent_message?: MessageResponse;
|
|
3184
3559
|
}
|
|
3185
3560
|
export interface ThreadStateResponse {
|
|
3186
3561
|
channel_cid: string;
|
|
@@ -3196,11 +3571,11 @@ export interface ThreadStateResponse {
|
|
|
3196
3571
|
last_message_at?: Date;
|
|
3197
3572
|
participant_count?: number;
|
|
3198
3573
|
reply_count?: number;
|
|
3199
|
-
read?:
|
|
3574
|
+
read?: ReadStateResponse[];
|
|
3200
3575
|
thread_participants?: ThreadParticipant[];
|
|
3201
3576
|
channel?: ChannelResponse;
|
|
3202
3577
|
created_by?: UserResponse;
|
|
3203
|
-
parent_message?:
|
|
3578
|
+
parent_message?: MessageResponse;
|
|
3204
3579
|
}
|
|
3205
3580
|
export interface Thresholds {
|
|
3206
3581
|
explicit?: LabelThresholds;
|
|
@@ -3226,22 +3601,22 @@ export interface TimeStats {
|
|
|
3226
3601
|
max_seconds: number;
|
|
3227
3602
|
}
|
|
3228
3603
|
export interface TranscriptionSettings {
|
|
3229
|
-
closed_caption_mode:
|
|
3604
|
+
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
3230
3605
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3231
3606
|
languages: string[];
|
|
3232
3607
|
}
|
|
3233
3608
|
export interface TranscriptionSettingsRequest {
|
|
3234
3609
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3235
|
-
closed_caption_mode?:
|
|
3610
|
+
closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
|
|
3236
3611
|
languages?: string[];
|
|
3237
3612
|
}
|
|
3238
3613
|
export interface TranscriptionSettingsResponse {
|
|
3239
|
-
closed_caption_mode:
|
|
3614
|
+
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
3240
3615
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
3241
3616
|
languages: string[];
|
|
3242
3617
|
}
|
|
3243
3618
|
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';
|
|
3619
|
+
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
3620
|
}
|
|
3246
3621
|
export interface TruncateChannelRequest {
|
|
3247
3622
|
hard_delete?: boolean;
|
|
@@ -3257,10 +3632,10 @@ export interface TruncateChannelResponse {
|
|
|
3257
3632
|
message?: MessageResponse;
|
|
3258
3633
|
}
|
|
3259
3634
|
export interface TypingIndicators {
|
|
3260
|
-
enabled
|
|
3635
|
+
enabled: boolean;
|
|
3261
3636
|
}
|
|
3262
3637
|
export interface TypingIndicatorsResponse {
|
|
3263
|
-
enabled
|
|
3638
|
+
enabled?: boolean;
|
|
3264
3639
|
}
|
|
3265
3640
|
export interface UnbanActionRequest {
|
|
3266
3641
|
}
|
|
@@ -3456,7 +3831,7 @@ export interface UpdateChannelResponse {
|
|
|
3456
3831
|
duration: string;
|
|
3457
3832
|
members: ChannelMember[];
|
|
3458
3833
|
channel?: ChannelResponse;
|
|
3459
|
-
message?:
|
|
3834
|
+
message?: MessageResponse;
|
|
3460
3835
|
}
|
|
3461
3836
|
export interface UpdateChannelTypeRequest {
|
|
3462
3837
|
automod: 'disabled' | 'simple' | 'AI';
|
|
@@ -3478,6 +3853,7 @@ export interface UpdateChannelTypeRequest {
|
|
|
3478
3853
|
reminders?: boolean;
|
|
3479
3854
|
replies?: boolean;
|
|
3480
3855
|
search?: boolean;
|
|
3856
|
+
skip_last_msg_update_for_system_msgs?: boolean;
|
|
3481
3857
|
typing_events?: boolean;
|
|
3482
3858
|
uploads?: boolean;
|
|
3483
3859
|
url_enrichment?: boolean;
|
|
@@ -3507,6 +3883,7 @@ export interface UpdateChannelTypeResponse {
|
|
|
3507
3883
|
reminders: boolean;
|
|
3508
3884
|
replies: boolean;
|
|
3509
3885
|
search: boolean;
|
|
3886
|
+
skip_last_msg_update_for_system_msgs: boolean;
|
|
3510
3887
|
typing_events: boolean;
|
|
3511
3888
|
updated_at: Date;
|
|
3512
3889
|
uploads: boolean;
|
|
@@ -3517,7 +3894,7 @@ export interface UpdateChannelTypeResponse {
|
|
|
3517
3894
|
blocklist?: string;
|
|
3518
3895
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
3519
3896
|
partition_size?: number;
|
|
3520
|
-
partition_ttl?:
|
|
3897
|
+
partition_ttl?: string;
|
|
3521
3898
|
allowed_flag_reasons?: string[];
|
|
3522
3899
|
blocklists?: BlockListOptions[];
|
|
3523
3900
|
automod_thresholds?: Thresholds;
|
|
@@ -3563,7 +3940,7 @@ export interface UpdateMessagePartialRequest {
|
|
|
3563
3940
|
}
|
|
3564
3941
|
export interface UpdateMessagePartialResponse {
|
|
3565
3942
|
duration: string;
|
|
3566
|
-
message?:
|
|
3943
|
+
message?: MessageResponse;
|
|
3567
3944
|
pending_message_metadata?: Record<string, string>;
|
|
3568
3945
|
}
|
|
3569
3946
|
export interface UpdateMessageRequest {
|
|
@@ -3572,7 +3949,7 @@ export interface UpdateMessageRequest {
|
|
|
3572
3949
|
}
|
|
3573
3950
|
export interface UpdateMessageResponse {
|
|
3574
3951
|
duration: string;
|
|
3575
|
-
message:
|
|
3952
|
+
message: MessageResponse;
|
|
3576
3953
|
pending_message_metadata?: Record<string, string>;
|
|
3577
3954
|
}
|
|
3578
3955
|
export interface UpdatePollOptionRequest {
|
|
@@ -3640,13 +4017,15 @@ export interface UpdateUsersResponse {
|
|
|
3640
4017
|
export interface UpsertConfigRequest {
|
|
3641
4018
|
key: string;
|
|
3642
4019
|
async?: boolean;
|
|
4020
|
+
ai_image_config?: AIImageConfig;
|
|
4021
|
+
ai_text_config?: AITextConfig;
|
|
3643
4022
|
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
3644
4023
|
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
3645
4024
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
3646
|
-
|
|
4025
|
+
aws_rekognition_config?: AIImageConfig;
|
|
3647
4026
|
block_list_config?: BlockListConfig;
|
|
3648
|
-
bodyguard_config?:
|
|
3649
|
-
|
|
4027
|
+
bodyguard_config?: AITextConfig;
|
|
4028
|
+
google_vision_config?: GoogleVisionConfig;
|
|
3650
4029
|
velocity_filter_config?: VelocityFilterConfig;
|
|
3651
4030
|
}
|
|
3652
4031
|
export interface UpsertConfigResponse {
|
|
@@ -3671,6 +4050,26 @@ export interface UpsertPushProviderResponse {
|
|
|
3671
4050
|
duration: string;
|
|
3672
4051
|
push_provider: PushProviderResponse;
|
|
3673
4052
|
}
|
|
4053
|
+
export interface User {
|
|
4054
|
+
banned: boolean;
|
|
4055
|
+
id: string;
|
|
4056
|
+
online: boolean;
|
|
4057
|
+
role: string;
|
|
4058
|
+
custom: Record<string, any>;
|
|
4059
|
+
ban_expires?: Date;
|
|
4060
|
+
created_at?: Date;
|
|
4061
|
+
deactivated_at?: Date;
|
|
4062
|
+
deleted_at?: Date;
|
|
4063
|
+
invisible?: boolean;
|
|
4064
|
+
language?: string;
|
|
4065
|
+
last_active?: Date;
|
|
4066
|
+
last_engaged_at?: Date;
|
|
4067
|
+
revoke_tokens_issued_before?: Date;
|
|
4068
|
+
updated_at?: Date;
|
|
4069
|
+
teams?: string[];
|
|
4070
|
+
privacy_settings?: PrivacySettings;
|
|
4071
|
+
push_notifications?: PushNotificationSettings;
|
|
4072
|
+
}
|
|
3674
4073
|
export interface UserBlock {
|
|
3675
4074
|
blocked_by_user_id: string;
|
|
3676
4075
|
blocked_user_id: string;
|
|
@@ -3681,6 +4080,7 @@ export interface UserCustomEventRequest {
|
|
|
3681
4080
|
custom?: Record<string, any>;
|
|
3682
4081
|
}
|
|
3683
4082
|
export interface UserInfoResponse {
|
|
4083
|
+
id: string;
|
|
3684
4084
|
image: string;
|
|
3685
4085
|
name: string;
|
|
3686
4086
|
roles: string[];
|
|
@@ -3690,8 +4090,8 @@ export interface UserMute {
|
|
|
3690
4090
|
created_at: Date;
|
|
3691
4091
|
updated_at: Date;
|
|
3692
4092
|
expires?: Date;
|
|
3693
|
-
target?:
|
|
3694
|
-
user?:
|
|
4093
|
+
target?: User;
|
|
4094
|
+
user?: User;
|
|
3695
4095
|
}
|
|
3696
4096
|
export interface UserMuteResponse {
|
|
3697
4097
|
created_at: Date;
|
|
@@ -3700,25 +4100,6 @@ export interface UserMuteResponse {
|
|
|
3700
4100
|
target?: UserResponse;
|
|
3701
4101
|
user?: UserResponse;
|
|
3702
4102
|
}
|
|
3703
|
-
export interface UserObject {
|
|
3704
|
-
banned: boolean;
|
|
3705
|
-
id: string;
|
|
3706
|
-
online: boolean;
|
|
3707
|
-
role: string;
|
|
3708
|
-
custom: Record<string, any>;
|
|
3709
|
-
ban_expires?: Date;
|
|
3710
|
-
created_at?: Date;
|
|
3711
|
-
deactivated_at?: Date;
|
|
3712
|
-
deleted_at?: Date;
|
|
3713
|
-
invisible?: boolean;
|
|
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;
|
|
3721
|
-
}
|
|
3722
4103
|
export interface UserRequest {
|
|
3723
4104
|
id: string;
|
|
3724
4105
|
image?: string;
|
|
@@ -3728,7 +4109,7 @@ export interface UserRequest {
|
|
|
3728
4109
|
role?: string;
|
|
3729
4110
|
teams?: string[];
|
|
3730
4111
|
custom?: Record<string, any>;
|
|
3731
|
-
privacy_settings?:
|
|
4112
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
3732
4113
|
push_notifications?: PushNotificationSettingsInput;
|
|
3733
4114
|
}
|
|
3734
4115
|
export interface UserResponse {
|
|
@@ -3742,7 +4123,7 @@ export interface UserResponse {
|
|
|
3742
4123
|
shadow_banned: boolean;
|
|
3743
4124
|
updated_at: Date;
|
|
3744
4125
|
blocked_user_ids: string[];
|
|
3745
|
-
devices:
|
|
4126
|
+
devices: DeviceResponse[];
|
|
3746
4127
|
teams: string[];
|
|
3747
4128
|
custom: Record<string, any>;
|
|
3748
4129
|
ban_expires?: Date;
|
|
@@ -3757,6 +4138,7 @@ export interface UserResponse {
|
|
|
3757
4138
|
}
|
|
3758
4139
|
export interface UserSessionStats {
|
|
3759
4140
|
freeze_duration_seconds: number;
|
|
4141
|
+
group: string;
|
|
3760
4142
|
max_freeze_fraction: number;
|
|
3761
4143
|
max_freezes_duration_seconds: number;
|
|
3762
4144
|
min_event_ts: number;
|
|
@@ -3768,7 +4150,7 @@ export interface UserSessionStats {
|
|
|
3768
4150
|
session_id: string;
|
|
3769
4151
|
total_pixels_in: number;
|
|
3770
4152
|
total_pixels_out: number;
|
|
3771
|
-
|
|
4153
|
+
browser?: string;
|
|
3772
4154
|
browser_version?: string;
|
|
3773
4155
|
current_ip?: string;
|
|
3774
4156
|
current_sfu?: string;
|
|
@@ -3800,11 +4182,9 @@ export interface UserSessionStats {
|
|
|
3800
4182
|
max_publishing_video_quality?: VideoQuality;
|
|
3801
4183
|
max_receiving_video_quality?: VideoQuality;
|
|
3802
4184
|
pub_sub_hints?: MediaPubSubHint;
|
|
3803
|
-
publisher_audio_mos?: MOSStats;
|
|
3804
4185
|
publisher_jitter?: TimeStats;
|
|
3805
4186
|
publisher_latency?: TimeStats;
|
|
3806
4187
|
publisher_video_quality_limitation_duration_seconds?: Record<string, number>;
|
|
3807
|
-
subscriber_audio_mos?: MOSStats;
|
|
3808
4188
|
subscriber_jitter?: TimeStats;
|
|
3809
4189
|
subscriber_latency?: TimeStats;
|
|
3810
4190
|
timeline?: CallTimeline;
|
|
@@ -3816,22 +4196,33 @@ export interface UserStats {
|
|
|
3816
4196
|
rating?: number;
|
|
3817
4197
|
}
|
|
3818
4198
|
export interface VelocityFilterConfig {
|
|
3819
|
-
|
|
3820
|
-
|
|
4199
|
+
cascading_actions: boolean;
|
|
4200
|
+
enabled: boolean;
|
|
4201
|
+
first_message_only: boolean;
|
|
4202
|
+
rules: VelocityFilterConfigRule[];
|
|
4203
|
+
async?: boolean;
|
|
3821
4204
|
}
|
|
3822
4205
|
export interface VelocityFilterConfigRule {
|
|
3823
4206
|
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
4207
|
+
ban_duration: number;
|
|
4208
|
+
cascading_action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
4209
|
+
cascading_threshold: number;
|
|
4210
|
+
check_message_context: boolean;
|
|
4211
|
+
fast_spam_threshold: number;
|
|
4212
|
+
fast_spam_ttl: number;
|
|
4213
|
+
ip_ban: boolean;
|
|
4214
|
+
shadow_ban: boolean;
|
|
4215
|
+
slow_spam_threshold: number;
|
|
4216
|
+
slow_spam_ttl: number;
|
|
4217
|
+
slow_spam_ban_duration?: number;
|
|
4218
|
+
}
|
|
4219
|
+
export interface VideoDimension {
|
|
4220
|
+
height: number;
|
|
4221
|
+
width: number;
|
|
3827
4222
|
}
|
|
3828
4223
|
export interface VideoQuality {
|
|
3829
4224
|
usage_type?: string;
|
|
3830
|
-
resolution?:
|
|
3831
|
-
}
|
|
3832
|
-
export interface VideoResolution {
|
|
3833
|
-
height: number;
|
|
3834
|
-
width: number;
|
|
4225
|
+
resolution?: VideoDimension;
|
|
3835
4226
|
}
|
|
3836
4227
|
export interface VideoSettings {
|
|
3837
4228
|
access_request_enabled: boolean;
|
|
@@ -3857,7 +4248,7 @@ export interface VideoSettingsResponse {
|
|
|
3857
4248
|
export interface VoteData {
|
|
3858
4249
|
answer_text?: string;
|
|
3859
4250
|
option_id?: string;
|
|
3860
|
-
option?:
|
|
4251
|
+
option?: PollOptionResponseData;
|
|
3861
4252
|
}
|
|
3862
4253
|
export interface WSEvent {
|
|
3863
4254
|
created_at: Date;
|
|
@@ -3876,16 +4267,16 @@ export interface WSEvent {
|
|
|
3876
4267
|
watcher_count?: number;
|
|
3877
4268
|
automoderation_scores?: ModerationResponse;
|
|
3878
4269
|
channel?: ChannelResponse;
|
|
3879
|
-
created_by?:
|
|
3880
|
-
me?:
|
|
4270
|
+
created_by?: UserResponse;
|
|
4271
|
+
me?: OwnUserResponse;
|
|
3881
4272
|
member?: ChannelMember;
|
|
3882
|
-
message?:
|
|
4273
|
+
message?: MessageResponse;
|
|
3883
4274
|
message_update?: MessageUpdate;
|
|
3884
|
-
poll?:
|
|
3885
|
-
poll_vote?:
|
|
3886
|
-
reaction?:
|
|
4275
|
+
poll?: PollResponseData;
|
|
4276
|
+
poll_vote?: PollVoteResponseData;
|
|
4277
|
+
reaction?: ReactionResponse;
|
|
3887
4278
|
thread?: ThreadResponse;
|
|
3888
|
-
user?:
|
|
4279
|
+
user?: UserResponse;
|
|
3889
4280
|
}
|
|
3890
4281
|
export interface WrappedUnreadCountsResponse {
|
|
3891
4282
|
duration: string;
|