@stream-io/node-sdk 0.6.2 → 0.6.3
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 +113 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +113 -23
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +1 -1
- package/dist/src/gen/common/CommonApi.d.ts +1 -1
- package/dist/src/gen/models/index.d.ts +242 -114
- package/dist/src/gen/moderation/ModerationApi.d.ts +5 -1
- package/dist/src/gen/video/CallApi.d.ts +2 -1
- package/dist/src/gen/video/VideoApi.d.ts +5 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +2 -2
- package/src/gen/common/CommonApi.ts +2 -2
- package/src/gen/feeds/FeedsApi.ts +9 -0
- package/src/gen/model-decoders/decoders.ts +42 -32
- package/src/gen/models/index.ts +401 -164
- package/src/gen/moderation/ModerationApi.ts +99 -1
- package/src/gen/video/CallApi.ts +15 -3
- package/src/gen/video/VideoApi.ts +42 -5
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export interface AIImageConfig {
|
|
2
|
-
enabled: boolean;
|
|
3
|
-
ocr_rules: OCRRule[];
|
|
4
|
-
rules: AWSRekognitionRule[];
|
|
5
2
|
async?: boolean;
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
ocr_rules?: OCRRule[];
|
|
5
|
+
rules?: AWSRekognitionRule[];
|
|
6
6
|
}
|
|
7
7
|
export interface AITextConfig {
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
profile: string;
|
|
10
|
-
rules: BodyguardRule[];
|
|
11
|
-
severity_rules: BodyguardSeverityRule[];
|
|
12
8
|
async?: boolean;
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
profile?: string;
|
|
11
|
+
rules?: BodyguardRule[];
|
|
12
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
13
13
|
}
|
|
14
14
|
export interface AIVideoConfig {
|
|
15
|
-
enabled: boolean;
|
|
16
|
-
rules: AWSRekognitionRule[];
|
|
17
15
|
async?: boolean;
|
|
16
|
+
enabled?: boolean;
|
|
17
|
+
rules?: AWSRekognitionRule[];
|
|
18
18
|
}
|
|
19
19
|
export interface APIError {
|
|
20
20
|
code: number;
|
|
@@ -113,13 +113,13 @@ export interface ActionLogResponse {
|
|
|
113
113
|
user?: UserResponse;
|
|
114
114
|
}
|
|
115
115
|
export interface ActionSequence {
|
|
116
|
-
action
|
|
117
|
-
blur
|
|
118
|
-
cooldown_period
|
|
119
|
-
threshold
|
|
120
|
-
time_window
|
|
121
|
-
warning
|
|
122
|
-
warning_text
|
|
116
|
+
action?: string;
|
|
117
|
+
blur?: boolean;
|
|
118
|
+
cooldown_period?: number;
|
|
119
|
+
threshold?: number;
|
|
120
|
+
time_window?: number;
|
|
121
|
+
warning?: boolean;
|
|
122
|
+
warning_text?: string;
|
|
123
123
|
}
|
|
124
124
|
export interface ActiveCallsBitrateStats {
|
|
125
125
|
p10: number;
|
|
@@ -395,6 +395,7 @@ export interface AddBookmarkResponse {
|
|
|
395
395
|
export interface AddCommentReactionRequest {
|
|
396
396
|
type: string;
|
|
397
397
|
create_notification_activity?: boolean;
|
|
398
|
+
skip_push?: boolean;
|
|
398
399
|
user_id?: string;
|
|
399
400
|
custom?: Record<string, any>;
|
|
400
401
|
user?: UserRequest;
|
|
@@ -410,6 +411,7 @@ export interface AddCommentRequest {
|
|
|
410
411
|
object_type: string;
|
|
411
412
|
create_notification_activity?: boolean;
|
|
412
413
|
parent_id?: string;
|
|
414
|
+
skip_push?: boolean;
|
|
413
415
|
user_id?: string;
|
|
414
416
|
attachments?: Attachment[];
|
|
415
417
|
mentioned_user_ids?: string[];
|
|
@@ -434,6 +436,7 @@ export interface AddFolderRequest {
|
|
|
434
436
|
export interface AddReactionRequest {
|
|
435
437
|
type: string;
|
|
436
438
|
create_notification_activity?: boolean;
|
|
439
|
+
skip_push?: boolean;
|
|
437
440
|
user_id?: string;
|
|
438
441
|
custom?: Record<string, any>;
|
|
439
442
|
user?: UserRequest;
|
|
@@ -626,9 +629,9 @@ export interface AutomodDetails {
|
|
|
626
629
|
result?: MessageModerationResult;
|
|
627
630
|
}
|
|
628
631
|
export interface AutomodPlatformCircumventionConfig {
|
|
629
|
-
enabled: boolean;
|
|
630
|
-
rules: AutomodRule[];
|
|
631
632
|
async?: boolean;
|
|
633
|
+
enabled?: boolean;
|
|
634
|
+
rules?: AutomodRule[];
|
|
632
635
|
}
|
|
633
636
|
export interface AutomodRule {
|
|
634
637
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
@@ -636,9 +639,9 @@ export interface AutomodRule {
|
|
|
636
639
|
threshold: number;
|
|
637
640
|
}
|
|
638
641
|
export interface AutomodSemanticFiltersConfig {
|
|
639
|
-
enabled: boolean;
|
|
640
|
-
rules: AutomodSemanticFiltersRule[];
|
|
641
642
|
async?: boolean;
|
|
643
|
+
enabled?: boolean;
|
|
644
|
+
rules?: AutomodSemanticFiltersRule[];
|
|
642
645
|
}
|
|
643
646
|
export interface AutomodSemanticFiltersRule {
|
|
644
647
|
action: 'flag' | 'shadow' | 'remove';
|
|
@@ -646,9 +649,9 @@ export interface AutomodSemanticFiltersRule {
|
|
|
646
649
|
threshold: number;
|
|
647
650
|
}
|
|
648
651
|
export interface AutomodToxicityConfig {
|
|
649
|
-
enabled: boolean;
|
|
650
|
-
rules: AutomodRule[];
|
|
651
652
|
async?: boolean;
|
|
653
|
+
enabled?: boolean;
|
|
654
|
+
rules?: AutomodRule[];
|
|
652
655
|
}
|
|
653
656
|
export interface AzureRequest {
|
|
654
657
|
abs_account_name: string;
|
|
@@ -686,10 +689,10 @@ export interface BanActionRequest {
|
|
|
686
689
|
timeout?: number;
|
|
687
690
|
}
|
|
688
691
|
export interface BanOptions {
|
|
689
|
-
duration
|
|
690
|
-
ip_ban
|
|
691
|
-
reason
|
|
692
|
-
shadow_ban
|
|
692
|
+
duration?: number;
|
|
693
|
+
ip_ban?: boolean;
|
|
694
|
+
reason?: string;
|
|
695
|
+
shadow_ban?: boolean;
|
|
693
696
|
}
|
|
694
697
|
export interface BanRequest {
|
|
695
698
|
target_user_id: string;
|
|
@@ -712,12 +715,12 @@ export interface BanResponse {
|
|
|
712
715
|
user?: UserResponse;
|
|
713
716
|
}
|
|
714
717
|
export interface BlockContentOptions {
|
|
715
|
-
reason
|
|
718
|
+
reason?: string;
|
|
716
719
|
}
|
|
717
720
|
export interface BlockListConfig {
|
|
718
|
-
enabled: boolean;
|
|
719
|
-
rules: BlockListRule[];
|
|
720
721
|
async?: boolean;
|
|
722
|
+
enabled?: boolean;
|
|
723
|
+
rules?: BlockListRule[];
|
|
721
724
|
}
|
|
722
725
|
export interface BlockListOptions {
|
|
723
726
|
behavior: 'flag' | 'block' | 'shadow_block';
|
|
@@ -734,8 +737,8 @@ export interface BlockListResponse {
|
|
|
734
737
|
}
|
|
735
738
|
export interface BlockListRule {
|
|
736
739
|
action: 'flag' | 'mask_flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
737
|
-
name
|
|
738
|
-
team
|
|
740
|
+
name?: string;
|
|
741
|
+
team?: string;
|
|
739
742
|
}
|
|
740
743
|
export interface BlockUserRequest {
|
|
741
744
|
user_id: string;
|
|
@@ -768,10 +771,13 @@ export interface BlockedUserResponse {
|
|
|
768
771
|
blocked_user: UserResponse;
|
|
769
772
|
user: UserResponse;
|
|
770
773
|
}
|
|
774
|
+
export interface BodyguardImageAnalysisConfig {
|
|
775
|
+
rules?: BodyguardRule[];
|
|
776
|
+
}
|
|
771
777
|
export interface BodyguardRule {
|
|
772
|
-
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
773
778
|
label: string;
|
|
774
|
-
|
|
779
|
+
action?: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
780
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
775
781
|
}
|
|
776
782
|
export interface BodyguardSeverityRule {
|
|
777
783
|
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove';
|
|
@@ -904,10 +910,14 @@ export interface CallAcceptedEvent {
|
|
|
904
910
|
}
|
|
905
911
|
export interface CallClosedCaption {
|
|
906
912
|
end_time: Date;
|
|
913
|
+
id: string;
|
|
914
|
+
language: string;
|
|
907
915
|
speaker_id: string;
|
|
908
916
|
start_time: Date;
|
|
909
917
|
text: string;
|
|
918
|
+
translated: boolean;
|
|
910
919
|
user: UserResponse;
|
|
920
|
+
service?: string;
|
|
911
921
|
}
|
|
912
922
|
export interface CallClosedCaptionsFailedEvent {
|
|
913
923
|
call_cid: string;
|
|
@@ -1552,6 +1562,7 @@ export interface Channel {
|
|
|
1552
1562
|
last_campaigns?: string;
|
|
1553
1563
|
last_message_at?: Date;
|
|
1554
1564
|
member_count?: number;
|
|
1565
|
+
message_count?: number;
|
|
1555
1566
|
message_count_updated_at?: Date;
|
|
1556
1567
|
team?: string;
|
|
1557
1568
|
active_live_locations?: SharedLocation[];
|
|
@@ -1718,25 +1729,7 @@ export interface ChannelMember {
|
|
|
1718
1729
|
user?: UserResponse;
|
|
1719
1730
|
}
|
|
1720
1731
|
export interface ChannelMemberResponse {
|
|
1721
|
-
banned: boolean;
|
|
1722
1732
|
channel_role: string;
|
|
1723
|
-
created_at: Date;
|
|
1724
|
-
notifications_muted: boolean;
|
|
1725
|
-
shadow_banned: boolean;
|
|
1726
|
-
updated_at: Date;
|
|
1727
|
-
custom: Record<string, any>;
|
|
1728
|
-
archived_at?: Date;
|
|
1729
|
-
ban_expires?: Date;
|
|
1730
|
-
deleted_at?: Date;
|
|
1731
|
-
invite_accepted_at?: Date;
|
|
1732
|
-
invite_rejected_at?: Date;
|
|
1733
|
-
invited?: boolean;
|
|
1734
|
-
is_moderator?: boolean;
|
|
1735
|
-
pinned_at?: Date;
|
|
1736
|
-
role?: 'member' | 'moderator' | 'admin' | 'owner';
|
|
1737
|
-
status?: string;
|
|
1738
|
-
user_id?: string;
|
|
1739
|
-
user?: UserResponse;
|
|
1740
1733
|
}
|
|
1741
1734
|
export interface ChannelMessages {
|
|
1742
1735
|
messages: Message[];
|
|
@@ -1969,13 +1962,14 @@ export interface CheckPushResponse {
|
|
|
1969
1962
|
rendered_message?: Record<string, string>;
|
|
1970
1963
|
}
|
|
1971
1964
|
export interface CheckRequest {
|
|
1972
|
-
config_key: string;
|
|
1973
1965
|
entity_creator_id: string;
|
|
1974
1966
|
entity_id: string;
|
|
1975
1967
|
entity_type: string;
|
|
1968
|
+
config_key?: string;
|
|
1976
1969
|
config_team?: string;
|
|
1977
1970
|
test_mode?: boolean;
|
|
1978
1971
|
user_id?: string;
|
|
1972
|
+
config?: ModerationConfig;
|
|
1979
1973
|
moderation_payload?: ModerationPayload;
|
|
1980
1974
|
options?: Record<string, any>;
|
|
1981
1975
|
user?: UserRequest;
|
|
@@ -2042,6 +2036,7 @@ export interface Command {
|
|
|
2042
2036
|
export interface CommentAddedEvent {
|
|
2043
2037
|
created_at: Date;
|
|
2044
2038
|
fid: string;
|
|
2039
|
+
activity: ActivityResponse;
|
|
2045
2040
|
comment: CommentResponse;
|
|
2046
2041
|
custom: Record<string, any>;
|
|
2047
2042
|
type: string;
|
|
@@ -2062,6 +2057,7 @@ export interface CommentDeletedEvent {
|
|
|
2062
2057
|
export interface CommentReactionAddedEvent {
|
|
2063
2058
|
created_at: Date;
|
|
2064
2059
|
fid: string;
|
|
2060
|
+
activity: ActivityResponse;
|
|
2065
2061
|
comment: CommentResponse;
|
|
2066
2062
|
custom: Record<string, any>;
|
|
2067
2063
|
reaction: FeedsReactionResponse;
|
|
@@ -2083,6 +2079,7 @@ export interface CommentReactionDeletedEvent {
|
|
|
2083
2079
|
export interface CommentReactionUpdatedEvent {
|
|
2084
2080
|
created_at: Date;
|
|
2085
2081
|
fid: string;
|
|
2082
|
+
activity: ActivityResponse;
|
|
2086
2083
|
comment: CommentResponse;
|
|
2087
2084
|
custom: Record<string, any>;
|
|
2088
2085
|
reaction: FeedsReactionResponse;
|
|
@@ -2163,13 +2160,12 @@ export interface ConfigResponse {
|
|
|
2163
2160
|
automod_toxicity_config?: AutomodToxicityConfig;
|
|
2164
2161
|
block_list_config?: BlockListConfig;
|
|
2165
2162
|
llm_config?: LLMConfig;
|
|
2166
|
-
rule_builder_config?: RuleBuilderConfig;
|
|
2167
2163
|
velocity_filter_config?: VelocityFilterConfig;
|
|
2168
2164
|
video_call_rule_config?: VideoCallRuleConfig;
|
|
2169
2165
|
}
|
|
2170
2166
|
export interface ContentCountRuleParameters {
|
|
2171
|
-
threshold
|
|
2172
|
-
time_window
|
|
2167
|
+
threshold?: number;
|
|
2168
|
+
time_window?: string;
|
|
2173
2169
|
}
|
|
2174
2170
|
export interface CountByMinuteResponse {
|
|
2175
2171
|
count: number;
|
|
@@ -2309,6 +2305,7 @@ export interface CreateFeedGroupRequest {
|
|
|
2309
2305
|
aggregation?: AggregationConfig;
|
|
2310
2306
|
custom?: Record<string, any>;
|
|
2311
2307
|
notification?: NotificationConfig;
|
|
2308
|
+
push_notification?: PushNotificationConfig;
|
|
2312
2309
|
ranking?: RankingConfig;
|
|
2313
2310
|
}
|
|
2314
2311
|
export interface CreateFeedGroupResponse {
|
|
@@ -2586,6 +2583,9 @@ export interface DeleteMessageResponse {
|
|
|
2586
2583
|
export interface DeleteModerationConfigResponse {
|
|
2587
2584
|
duration: string;
|
|
2588
2585
|
}
|
|
2586
|
+
export interface DeleteModerationRuleResponse {
|
|
2587
|
+
duration: string;
|
|
2588
|
+
}
|
|
2589
2589
|
export interface DeleteModerationTemplateResponse {
|
|
2590
2590
|
duration: string;
|
|
2591
2591
|
}
|
|
@@ -2817,6 +2817,7 @@ export interface EventHook {
|
|
|
2817
2817
|
enabled?: boolean;
|
|
2818
2818
|
hook_type?: string;
|
|
2819
2819
|
id?: string;
|
|
2820
|
+
product?: string;
|
|
2820
2821
|
sns_auth_type?: string;
|
|
2821
2822
|
sns_key?: string;
|
|
2822
2823
|
sns_region?: string;
|
|
@@ -2940,6 +2941,7 @@ export interface FeedGroup {
|
|
|
2940
2941
|
last_feed_get_at?: Date;
|
|
2941
2942
|
aggregation?: AggregationConfig;
|
|
2942
2943
|
notification?: NotificationConfig;
|
|
2944
|
+
push_notification?: PushNotificationConfig;
|
|
2943
2945
|
ranking?: RankingConfig;
|
|
2944
2946
|
stories?: StoriesConfig;
|
|
2945
2947
|
}
|
|
@@ -2972,6 +2974,7 @@ export interface FeedGroupResponse {
|
|
|
2972
2974
|
aggregation?: AggregationConfig;
|
|
2973
2975
|
custom?: Record<string, any>;
|
|
2974
2976
|
notification?: NotificationConfig;
|
|
2977
|
+
push_notification?: PushNotificationConfig;
|
|
2975
2978
|
ranking?: RankingConfig;
|
|
2976
2979
|
stories?: StoriesConfig;
|
|
2977
2980
|
}
|
|
@@ -3112,6 +3115,18 @@ export interface FeedViewResponse {
|
|
|
3112
3115
|
aggregation?: AggregationConfig;
|
|
3113
3116
|
ranking?: RankingConfig;
|
|
3114
3117
|
}
|
|
3118
|
+
export interface FeedsEventPreferences {
|
|
3119
|
+
comments?: string;
|
|
3120
|
+
mentions?: string;
|
|
3121
|
+
new_followers?: string;
|
|
3122
|
+
reactions?: string;
|
|
3123
|
+
}
|
|
3124
|
+
export interface FeedsEventPreferencesInput {
|
|
3125
|
+
comments?: 'all' | 'none';
|
|
3126
|
+
mentions?: 'all' | 'none';
|
|
3127
|
+
new_followers?: 'all' | 'none';
|
|
3128
|
+
reactions?: 'all' | 'none';
|
|
3129
|
+
}
|
|
3115
3130
|
export interface FeedsModerationTemplateConfig {
|
|
3116
3131
|
config_key: string;
|
|
3117
3132
|
data_types: Record<string, string>;
|
|
@@ -3164,22 +3179,24 @@ export interface FirebaseConfigFields {
|
|
|
3164
3179
|
}
|
|
3165
3180
|
export interface Flag {
|
|
3166
3181
|
created_at: Date;
|
|
3167
|
-
|
|
3182
|
+
entity_id: string;
|
|
3183
|
+
entity_type: string;
|
|
3168
3184
|
updated_at: Date;
|
|
3169
|
-
|
|
3185
|
+
result: Array<Record<string, any>>;
|
|
3186
|
+
entity_creator_id?: string;
|
|
3187
|
+
is_streamed_content?: boolean;
|
|
3188
|
+
moderation_payload_hash?: string;
|
|
3170
3189
|
reason?: string;
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
target_message_id?: string;
|
|
3190
|
+
review_queue_item_id?: string;
|
|
3191
|
+
type?: string;
|
|
3192
|
+
labels?: string[];
|
|
3175
3193
|
custom?: Record<string, any>;
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
target_user?: User;
|
|
3194
|
+
moderation_payload?: ModerationPayload;
|
|
3195
|
+
review_queue_item?: ReviewQueueItem;
|
|
3179
3196
|
user?: User;
|
|
3180
3197
|
}
|
|
3181
3198
|
export interface FlagContentOptions {
|
|
3182
|
-
reason
|
|
3199
|
+
reason?: string;
|
|
3183
3200
|
}
|
|
3184
3201
|
export interface FlagDetails {
|
|
3185
3202
|
original_text: string;
|
|
@@ -3221,7 +3238,7 @@ export interface FlagUpdatedEvent {
|
|
|
3221
3238
|
user?: UserResponse;
|
|
3222
3239
|
}
|
|
3223
3240
|
export interface FlagUserOptions {
|
|
3224
|
-
reason
|
|
3241
|
+
reason?: string;
|
|
3225
3242
|
}
|
|
3226
3243
|
export interface FollowBatchRequest {
|
|
3227
3244
|
follows: FollowRequest[];
|
|
@@ -3257,6 +3274,7 @@ export interface FollowRequest {
|
|
|
3257
3274
|
target: string;
|
|
3258
3275
|
create_notification_activity?: boolean;
|
|
3259
3276
|
push_preference?: 'all' | 'none';
|
|
3277
|
+
skip_push?: boolean;
|
|
3260
3278
|
custom?: Record<string, any>;
|
|
3261
3279
|
}
|
|
3262
3280
|
export interface FollowResponse {
|
|
@@ -3506,6 +3524,10 @@ export interface GetMessageResponse {
|
|
|
3506
3524
|
message: MessageWithChannelResponse;
|
|
3507
3525
|
pending_message_metadata?: Record<string, string>;
|
|
3508
3526
|
}
|
|
3527
|
+
export interface GetModerationRuleResponse {
|
|
3528
|
+
duration: string;
|
|
3529
|
+
rule?: ModerationRuleV2Response;
|
|
3530
|
+
}
|
|
3509
3531
|
export interface GetOGResponse {
|
|
3510
3532
|
duration: string;
|
|
3511
3533
|
custom: Record<string, any>;
|
|
@@ -3552,6 +3574,7 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
3552
3574
|
aggregation?: AggregationConfig;
|
|
3553
3575
|
custom?: Record<string, any>;
|
|
3554
3576
|
notification?: NotificationConfig;
|
|
3577
|
+
push_notification?: PushNotificationConfig;
|
|
3555
3578
|
ranking?: RankingConfig;
|
|
3556
3579
|
}
|
|
3557
3580
|
export interface GetOrCreateFeedGroupResponse {
|
|
@@ -3691,8 +3714,8 @@ export interface HLSSettingsResponse {
|
|
|
3691
3714
|
layout: LayoutSettingsResponse;
|
|
3692
3715
|
}
|
|
3693
3716
|
export interface HarmConfig {
|
|
3694
|
-
severity
|
|
3695
|
-
action_sequences
|
|
3717
|
+
severity?: number;
|
|
3718
|
+
action_sequences?: ActionSequence[];
|
|
3696
3719
|
}
|
|
3697
3720
|
export interface HideChannelRequest {
|
|
3698
3721
|
clear_history?: boolean;
|
|
@@ -3723,8 +3746,8 @@ export interface ImageData {
|
|
|
3723
3746
|
width: string;
|
|
3724
3747
|
}
|
|
3725
3748
|
export interface ImageRuleParameters {
|
|
3726
|
-
threshold
|
|
3727
|
-
time_window
|
|
3749
|
+
threshold?: number;
|
|
3750
|
+
time_window?: string;
|
|
3728
3751
|
harm_labels?: string[];
|
|
3729
3752
|
}
|
|
3730
3753
|
export interface ImageSize {
|
|
@@ -3850,16 +3873,17 @@ export interface KickedUserEvent {
|
|
|
3850
3873
|
kicked_by_user?: UserResponse;
|
|
3851
3874
|
}
|
|
3852
3875
|
export interface LLMConfig {
|
|
3853
|
-
|
|
3854
|
-
rules: LLMRule[];
|
|
3876
|
+
app_context?: string;
|
|
3855
3877
|
async?: boolean;
|
|
3878
|
+
enabled?: boolean;
|
|
3879
|
+
rules?: LLMRule[];
|
|
3856
3880
|
severity_descriptions?: Record<string, string>;
|
|
3857
3881
|
}
|
|
3858
3882
|
export interface LLMRule {
|
|
3859
|
-
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove' | 'keep';
|
|
3860
3883
|
description: string;
|
|
3861
3884
|
label: string;
|
|
3862
|
-
|
|
3885
|
+
action?: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove' | 'keep';
|
|
3886
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
3863
3887
|
}
|
|
3864
3888
|
export interface Label {
|
|
3865
3889
|
name: string;
|
|
@@ -4101,6 +4125,7 @@ export interface Message {
|
|
|
4101
4125
|
thread_participants?: User[];
|
|
4102
4126
|
i18n?: Record<string, string>;
|
|
4103
4127
|
image_labels?: Record<string, string[]>;
|
|
4128
|
+
member?: ChannelMember;
|
|
4104
4129
|
moderation?: ModerationV2Response;
|
|
4105
4130
|
pinned_by?: User;
|
|
4106
4131
|
poll?: Poll;
|
|
@@ -4132,6 +4157,7 @@ export interface MessageDeletedEvent {
|
|
|
4132
4157
|
created_at: Date;
|
|
4133
4158
|
hard_delete: boolean;
|
|
4134
4159
|
type: string;
|
|
4160
|
+
deleted_for_me?: boolean;
|
|
4135
4161
|
team?: string;
|
|
4136
4162
|
thread_participants?: User[];
|
|
4137
4163
|
message?: Message;
|
|
@@ -4284,6 +4310,7 @@ export interface MessageResponse {
|
|
|
4284
4310
|
draft?: DraftResponse;
|
|
4285
4311
|
i18n?: Record<string, string>;
|
|
4286
4312
|
image_labels?: Record<string, string[]>;
|
|
4313
|
+
member?: ChannelMemberResponse;
|
|
4287
4314
|
moderation?: ModerationV2Response;
|
|
4288
4315
|
pinned_by?: UserResponse;
|
|
4289
4316
|
poll?: PollResponseData;
|
|
@@ -4367,6 +4394,7 @@ export interface MessageWithChannelResponse {
|
|
|
4367
4394
|
draft?: DraftResponse;
|
|
4368
4395
|
i18n?: Record<string, string>;
|
|
4369
4396
|
image_labels?: Record<string, string[]>;
|
|
4397
|
+
member?: ChannelMemberResponse;
|
|
4370
4398
|
moderation?: ModerationV2Response;
|
|
4371
4399
|
pinned_by?: UserResponse;
|
|
4372
4400
|
poll?: PollResponseData;
|
|
@@ -4393,6 +4421,25 @@ export interface ModerationCheckCompletedEvent {
|
|
|
4393
4421
|
type: string;
|
|
4394
4422
|
received_at?: Date;
|
|
4395
4423
|
}
|
|
4424
|
+
export interface ModerationConfig {
|
|
4425
|
+
async?: boolean;
|
|
4426
|
+
created_at?: Date;
|
|
4427
|
+
key?: string;
|
|
4428
|
+
team?: string;
|
|
4429
|
+
updated_at?: Date;
|
|
4430
|
+
ai_image_config?: AIImageConfig;
|
|
4431
|
+
ai_image_lite_config?: BodyguardImageAnalysisConfig;
|
|
4432
|
+
ai_text_config?: AITextConfig;
|
|
4433
|
+
ai_video_config?: AIVideoConfig;
|
|
4434
|
+
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
4435
|
+
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
4436
|
+
automod_toxicity_config?: AutomodToxicityConfig;
|
|
4437
|
+
block_list_config?: BlockListConfig;
|
|
4438
|
+
google_vision_config?: GoogleVisionConfig;
|
|
4439
|
+
llm_config?: LLMConfig;
|
|
4440
|
+
velocity_filter_config?: VelocityFilterConfig;
|
|
4441
|
+
video_call_rule_config?: VideoCallRuleConfig;
|
|
4442
|
+
}
|
|
4396
4443
|
export interface ModerationCustomActionEvent {
|
|
4397
4444
|
created_at: Date;
|
|
4398
4445
|
type: string;
|
|
@@ -4405,11 +4452,11 @@ export interface ModerationDashboardPreferences {
|
|
|
4405
4452
|
media_queue_blur_enabled?: boolean;
|
|
4406
4453
|
}
|
|
4407
4454
|
export interface ModerationFlagResponse {
|
|
4408
|
-
created_at:
|
|
4455
|
+
created_at: Date;
|
|
4409
4456
|
entity_id: string;
|
|
4410
4457
|
entity_type: string;
|
|
4411
4458
|
type: string;
|
|
4412
|
-
updated_at:
|
|
4459
|
+
updated_at: Date;
|
|
4413
4460
|
user_id: string;
|
|
4414
4461
|
result: Array<Record<string, any>>;
|
|
4415
4462
|
entity_creator_id?: string;
|
|
@@ -4447,6 +4494,22 @@ export interface ModerationResponse {
|
|
|
4447
4494
|
spam: number;
|
|
4448
4495
|
toxic: number;
|
|
4449
4496
|
}
|
|
4497
|
+
export interface ModerationRuleV2Response {
|
|
4498
|
+
created_at: Date;
|
|
4499
|
+
description: string;
|
|
4500
|
+
enabled: boolean;
|
|
4501
|
+
id: string;
|
|
4502
|
+
name: string;
|
|
4503
|
+
rule_type: string;
|
|
4504
|
+
team: string;
|
|
4505
|
+
updated_at: Date;
|
|
4506
|
+
config_keys: string[];
|
|
4507
|
+
action: RuleBuilderAction;
|
|
4508
|
+
cooldown_period?: string;
|
|
4509
|
+
logic?: string;
|
|
4510
|
+
conditions?: RuleBuilderCondition[];
|
|
4511
|
+
groups?: RuleBuilderConditionGroup[];
|
|
4512
|
+
}
|
|
4450
4513
|
export interface ModerationV2Response {
|
|
4451
4514
|
action: string;
|
|
4452
4515
|
original_text: string;
|
|
@@ -4579,6 +4642,7 @@ export declare const OwnCapability: {
|
|
|
4579
4642
|
readonly REMOVE_CALL_MEMBER: "remove-call-member";
|
|
4580
4643
|
readonly SCREENSHARE: "screenshare";
|
|
4581
4644
|
readonly SEND_AUDIO: "send-audio";
|
|
4645
|
+
readonly SEND_CLOSED_CAPTIONS_CALL: "send-closed-captions-call";
|
|
4582
4646
|
readonly SEND_VIDEO: "send-video";
|
|
4583
4647
|
readonly START_BROADCAST_CALL: "start-broadcast-call";
|
|
4584
4648
|
readonly START_CLOSED_CAPTIONS_CALL: "start-closed-captions-call";
|
|
@@ -4914,6 +4978,10 @@ export interface PushConfig {
|
|
|
4914
4978
|
version: 'v1' | 'v2' | 'v3';
|
|
4915
4979
|
offline_only?: boolean;
|
|
4916
4980
|
}
|
|
4981
|
+
export interface PushNotificationConfig {
|
|
4982
|
+
enabled?: boolean;
|
|
4983
|
+
activity_types?: 'follow' | 'comment' | 'reaction' | 'comment_reaction';
|
|
4984
|
+
}
|
|
4917
4985
|
export interface PushNotificationFields {
|
|
4918
4986
|
offline_only: boolean;
|
|
4919
4987
|
version: string;
|
|
@@ -4932,13 +5000,17 @@ export interface PushPreferenceInput {
|
|
|
4932
5000
|
channel_cid?: string;
|
|
4933
5001
|
chat_level?: 'all' | 'mentions' | 'none' | 'default';
|
|
4934
5002
|
disabled_until?: Date;
|
|
5003
|
+
feeds_level?: 'all' | 'none' | 'default';
|
|
4935
5004
|
remove_disable?: boolean;
|
|
4936
5005
|
user_id?: string;
|
|
5006
|
+
feeds_events?: FeedsEventPreferencesInput;
|
|
4937
5007
|
}
|
|
4938
5008
|
export interface PushPreferences {
|
|
4939
5009
|
call_level?: string;
|
|
4940
5010
|
chat_level?: string;
|
|
4941
5011
|
disabled_until?: Date;
|
|
5012
|
+
feeds_level?: string;
|
|
5013
|
+
feeds_events?: FeedsEventPreferences;
|
|
4942
5014
|
}
|
|
4943
5015
|
export interface PushProvider {
|
|
4944
5016
|
created_at: Date;
|
|
@@ -5002,7 +5074,7 @@ export interface PushProviderResponse {
|
|
|
5002
5074
|
export interface PushTemplate {
|
|
5003
5075
|
created_at: Date;
|
|
5004
5076
|
enable_push: boolean;
|
|
5005
|
-
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due';
|
|
5077
|
+
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due' | 'feeds.activity.added' | 'feeds.comment.added' | 'feeds.activity.reaction.added' | 'feeds.comment.reaction.added' | 'feeds.follow.created' | 'feeds.notification_feed.updated';
|
|
5006
5078
|
updated_at: Date;
|
|
5007
5079
|
template?: string;
|
|
5008
5080
|
}
|
|
@@ -5365,6 +5437,22 @@ export interface QueryModerationLogsResponse {
|
|
|
5365
5437
|
next?: string;
|
|
5366
5438
|
prev?: string;
|
|
5367
5439
|
}
|
|
5440
|
+
export interface QueryModerationRulesRequest {
|
|
5441
|
+
limit?: number;
|
|
5442
|
+
next?: string;
|
|
5443
|
+
prev?: string;
|
|
5444
|
+
user_id?: string;
|
|
5445
|
+
sort?: SortParamRequest[];
|
|
5446
|
+
filter?: Record<string, any>;
|
|
5447
|
+
user?: UserRequest;
|
|
5448
|
+
}
|
|
5449
|
+
export interface QueryModerationRulesResponse {
|
|
5450
|
+
duration: string;
|
|
5451
|
+
rules: ModerationRuleV2Response[];
|
|
5452
|
+
default_llm_labels: Record<string, string>;
|
|
5453
|
+
next?: string;
|
|
5454
|
+
prev?: string;
|
|
5455
|
+
}
|
|
5368
5456
|
export interface QueryPollVotesRequest {
|
|
5369
5457
|
limit?: number;
|
|
5370
5458
|
next?: string;
|
|
@@ -5885,40 +5973,39 @@ export interface Role {
|
|
|
5885
5973
|
scopes: string[];
|
|
5886
5974
|
}
|
|
5887
5975
|
export interface RuleBuilderAction {
|
|
5888
|
-
type
|
|
5976
|
+
type?: string;
|
|
5889
5977
|
ban_options?: BanOptions;
|
|
5890
5978
|
flag_content_options?: FlagContentOptions;
|
|
5891
5979
|
flag_user_options?: FlagUserOptions;
|
|
5892
5980
|
remove_content_options?: BlockContentOptions;
|
|
5893
5981
|
}
|
|
5894
5982
|
export interface RuleBuilderCondition {
|
|
5895
|
-
type: string;
|
|
5896
5983
|
confidence?: number;
|
|
5984
|
+
type?: string;
|
|
5897
5985
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
5898
5986
|
image_content_params?: ImageContentParameters;
|
|
5899
5987
|
image_rule_params?: ImageRuleParameters;
|
|
5900
5988
|
text_content_params?: TextContentParameters;
|
|
5901
5989
|
text_rule_params?: TextRuleParameters;
|
|
5902
5990
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
5991
|
+
user_custom_property_params?: UserCustomPropertyParameters;
|
|
5903
5992
|
user_rule_params?: UserRuleParameters;
|
|
5904
5993
|
video_content_params?: VideoContentParameters;
|
|
5905
5994
|
video_rule_params?: VideoRuleParameters;
|
|
5906
5995
|
}
|
|
5907
5996
|
export interface RuleBuilderConditionGroup {
|
|
5908
|
-
logic
|
|
5909
|
-
conditions
|
|
5997
|
+
logic?: string;
|
|
5998
|
+
conditions?: RuleBuilderCondition[];
|
|
5910
5999
|
}
|
|
5911
6000
|
export interface RuleBuilderConfig {
|
|
5912
|
-
rules: RuleBuilderRule[];
|
|
5913
6001
|
async?: boolean;
|
|
6002
|
+
rules?: RuleBuilderRule[];
|
|
5914
6003
|
}
|
|
5915
6004
|
export interface RuleBuilderRule {
|
|
5916
|
-
enabled: boolean;
|
|
5917
|
-
id: string;
|
|
5918
|
-
name: string;
|
|
5919
6005
|
rule_type: string;
|
|
5920
6006
|
action: RuleBuilderAction;
|
|
5921
6007
|
cooldown_period?: string;
|
|
6008
|
+
id?: string;
|
|
5922
6009
|
logic?: string;
|
|
5923
6010
|
conditions?: RuleBuilderCondition[];
|
|
5924
6011
|
groups?: RuleBuilderConditionGroup[];
|
|
@@ -6023,6 +6110,7 @@ export interface SearchResultMessage {
|
|
|
6023
6110
|
draft?: DraftResponse;
|
|
6024
6111
|
i18n?: Record<string, string>;
|
|
6025
6112
|
image_labels?: Record<string, string[]>;
|
|
6113
|
+
member?: ChannelMemberResponse;
|
|
6026
6114
|
moderation?: ModerationV2Response;
|
|
6027
6115
|
pinned_by?: UserResponse;
|
|
6028
6116
|
poll?: PollResponseData;
|
|
@@ -6078,6 +6166,20 @@ export interface SendCallEventRequest {
|
|
|
6078
6166
|
export interface SendCallEventResponse {
|
|
6079
6167
|
duration: string;
|
|
6080
6168
|
}
|
|
6169
|
+
export interface SendClosedCaptionRequest {
|
|
6170
|
+
speaker_id: string;
|
|
6171
|
+
text: string;
|
|
6172
|
+
end_time?: Date;
|
|
6173
|
+
language?: string;
|
|
6174
|
+
service?: string;
|
|
6175
|
+
start_time?: Date;
|
|
6176
|
+
translated?: boolean;
|
|
6177
|
+
user_id?: string;
|
|
6178
|
+
user?: UserRequest;
|
|
6179
|
+
}
|
|
6180
|
+
export interface SendClosedCaptionResponse {
|
|
6181
|
+
duration: string;
|
|
6182
|
+
}
|
|
6081
6183
|
export interface SendEventRequest {
|
|
6082
6184
|
event: EventRequest;
|
|
6083
6185
|
}
|
|
@@ -6336,14 +6438,16 @@ export interface TextContentParameters {
|
|
|
6336
6438
|
severity?: string;
|
|
6337
6439
|
blocklist_match?: string[];
|
|
6338
6440
|
harm_labels?: string[];
|
|
6441
|
+
llm_harm_labels?: Record<string, string>;
|
|
6339
6442
|
}
|
|
6340
6443
|
export interface TextRuleParameters {
|
|
6341
|
-
threshold: number;
|
|
6342
|
-
time_window: string;
|
|
6343
6444
|
contains_url?: boolean;
|
|
6344
6445
|
severity?: string;
|
|
6446
|
+
threshold?: number;
|
|
6447
|
+
time_window?: string;
|
|
6345
6448
|
blocklist_match?: string[];
|
|
6346
6449
|
harm_labels?: string[];
|
|
6450
|
+
llm_harm_labels?: Record<string, string>;
|
|
6347
6451
|
}
|
|
6348
6452
|
export interface ThreadParticipant {
|
|
6349
6453
|
app_pk: number;
|
|
@@ -6358,17 +6462,17 @@ export interface ThreadParticipant {
|
|
|
6358
6462
|
user?: UserResponse;
|
|
6359
6463
|
}
|
|
6360
6464
|
export interface ThreadResponse {
|
|
6465
|
+
active_participant_count: number;
|
|
6361
6466
|
channel_cid: string;
|
|
6362
6467
|
created_at: Date;
|
|
6363
6468
|
created_by_user_id: string;
|
|
6364
6469
|
parent_message_id: string;
|
|
6470
|
+
participant_count: number;
|
|
6365
6471
|
title: string;
|
|
6366
6472
|
updated_at: Date;
|
|
6367
6473
|
custom: Record<string, any>;
|
|
6368
|
-
active_participant_count?: number;
|
|
6369
6474
|
deleted_at?: Date;
|
|
6370
6475
|
last_message_at?: Date;
|
|
6371
|
-
participant_count?: number;
|
|
6372
6476
|
reply_count?: number;
|
|
6373
6477
|
thread_participants?: ThreadParticipant[];
|
|
6374
6478
|
channel?: ChannelResponse;
|
|
@@ -6376,18 +6480,18 @@ export interface ThreadResponse {
|
|
|
6376
6480
|
parent_message?: MessageResponse;
|
|
6377
6481
|
}
|
|
6378
6482
|
export interface ThreadStateResponse {
|
|
6483
|
+
active_participant_count: number;
|
|
6379
6484
|
channel_cid: string;
|
|
6380
6485
|
created_at: Date;
|
|
6381
6486
|
created_by_user_id: string;
|
|
6382
6487
|
parent_message_id: string;
|
|
6488
|
+
participant_count: number;
|
|
6383
6489
|
title: string;
|
|
6384
6490
|
updated_at: Date;
|
|
6385
6491
|
latest_replies: MessageResponse[];
|
|
6386
6492
|
custom: Record<string, any>;
|
|
6387
|
-
active_participant_count?: number;
|
|
6388
6493
|
deleted_at?: Date;
|
|
6389
6494
|
last_message_at?: Date;
|
|
6390
|
-
participant_count?: number;
|
|
6391
6495
|
reply_count?: number;
|
|
6392
6496
|
read?: ReadStateResponse[];
|
|
6393
6497
|
thread_participants?: ThreadParticipant[];
|
|
@@ -6853,6 +6957,7 @@ export interface UpdateCommandResponse {
|
|
|
6853
6957
|
}
|
|
6854
6958
|
export interface UpdateCommentRequest {
|
|
6855
6959
|
comment?: string;
|
|
6960
|
+
skip_push?: boolean;
|
|
6856
6961
|
custom?: Record<string, any>;
|
|
6857
6962
|
}
|
|
6858
6963
|
export interface UpdateCommentResponse {
|
|
@@ -6880,6 +6985,7 @@ export interface UpdateFeedGroupRequest {
|
|
|
6880
6985
|
aggregation?: AggregationConfig;
|
|
6881
6986
|
custom?: Record<string, any>;
|
|
6882
6987
|
notification?: NotificationConfig;
|
|
6988
|
+
push_notification?: PushNotificationConfig;
|
|
6883
6989
|
ranking?: RankingConfig;
|
|
6884
6990
|
}
|
|
6885
6991
|
export interface UpdateFeedGroupResponse {
|
|
@@ -6923,6 +7029,7 @@ export interface UpdateFollowRequest {
|
|
|
6923
7029
|
create_notification_activity?: boolean;
|
|
6924
7030
|
follower_role?: string;
|
|
6925
7031
|
push_preference?: 'all' | 'none';
|
|
7032
|
+
skip_push?: boolean;
|
|
6926
7033
|
custom?: Record<string, any>;
|
|
6927
7034
|
}
|
|
6928
7035
|
export interface UpdateFollowResponse {
|
|
@@ -7086,6 +7193,23 @@ export interface UpsertConfigResponse {
|
|
|
7086
7193
|
duration: string;
|
|
7087
7194
|
config?: ConfigResponse;
|
|
7088
7195
|
}
|
|
7196
|
+
export interface UpsertModerationRuleRequest {
|
|
7197
|
+
name: string;
|
|
7198
|
+
rule_type: string;
|
|
7199
|
+
action: RuleBuilderAction;
|
|
7200
|
+
cooldown_period?: string;
|
|
7201
|
+
description?: string;
|
|
7202
|
+
enabled?: boolean;
|
|
7203
|
+
logic?: string;
|
|
7204
|
+
team?: string;
|
|
7205
|
+
conditions?: RuleBuilderCondition[];
|
|
7206
|
+
config_keys?: string[];
|
|
7207
|
+
groups?: RuleBuilderConditionGroup[];
|
|
7208
|
+
}
|
|
7209
|
+
export interface UpsertModerationRuleResponse {
|
|
7210
|
+
duration: string;
|
|
7211
|
+
rule?: ModerationRuleV2Response;
|
|
7212
|
+
}
|
|
7089
7213
|
export interface UpsertModerationTemplateRequest {
|
|
7090
7214
|
name: string;
|
|
7091
7215
|
config: FeedsModerationTemplateConfig;
|
|
@@ -7113,7 +7237,7 @@ export interface UpsertPushProviderResponse {
|
|
|
7113
7237
|
push_provider: PushProviderResponse;
|
|
7114
7238
|
}
|
|
7115
7239
|
export interface UpsertPushTemplateRequest {
|
|
7116
|
-
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due';
|
|
7240
|
+
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due' | 'feeds.activity.added' | 'feeds.comment.added' | 'feeds.activity.reaction.added' | 'feeds.comment.reaction.added' | 'feeds.follow.created' | 'feeds.notification_feed.updated';
|
|
7117
7241
|
push_provider_type: 'firebase' | 'apn';
|
|
7118
7242
|
enable_push?: boolean;
|
|
7119
7243
|
push_provider_name?: string;
|
|
@@ -7164,6 +7288,10 @@ export interface UserCustomEventRequest {
|
|
|
7164
7288
|
type: string;
|
|
7165
7289
|
custom?: Record<string, any>;
|
|
7166
7290
|
}
|
|
7291
|
+
export interface UserCustomPropertyParameters {
|
|
7292
|
+
operator?: string;
|
|
7293
|
+
property_key?: string;
|
|
7294
|
+
}
|
|
7167
7295
|
export interface UserDeactivatedEvent {
|
|
7168
7296
|
created_at: Date;
|
|
7169
7297
|
created_by: User;
|
|
@@ -7205,12 +7333,12 @@ export interface UserFlaggedEvent {
|
|
|
7205
7333
|
}
|
|
7206
7334
|
export interface UserMessagesDeletedEvent {
|
|
7207
7335
|
created_at: Date;
|
|
7208
|
-
soft_delete: boolean;
|
|
7209
7336
|
custom: Record<string, any>;
|
|
7210
7337
|
user: UserResponseCommonFields;
|
|
7211
7338
|
type: string;
|
|
7212
7339
|
channel_id?: string;
|
|
7213
7340
|
channel_member_count?: number;
|
|
7341
|
+
channel_message_count?: number;
|
|
7214
7342
|
channel_type?: string;
|
|
7215
7343
|
cid?: string;
|
|
7216
7344
|
hard_delete?: boolean;
|
|
@@ -7362,32 +7490,32 @@ export interface UserUpdatedEvent {
|
|
|
7362
7490
|
received_at?: Date;
|
|
7363
7491
|
}
|
|
7364
7492
|
export interface VelocityFilterConfig {
|
|
7365
|
-
advanced_filters
|
|
7366
|
-
cascading_actions: boolean;
|
|
7367
|
-
cids_per_user: number;
|
|
7368
|
-
enabled: boolean;
|
|
7369
|
-
first_message_only: boolean;
|
|
7370
|
-
rules: VelocityFilterConfigRule[];
|
|
7493
|
+
advanced_filters?: boolean;
|
|
7371
7494
|
async?: boolean;
|
|
7495
|
+
cascading_actions?: boolean;
|
|
7496
|
+
cids_per_user?: number;
|
|
7497
|
+
enabled?: boolean;
|
|
7498
|
+
first_message_only?: boolean;
|
|
7499
|
+
rules?: VelocityFilterConfigRule[];
|
|
7372
7500
|
}
|
|
7373
7501
|
export interface VelocityFilterConfigRule {
|
|
7374
7502
|
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
7375
|
-
ban_duration
|
|
7376
|
-
cascading_action
|
|
7377
|
-
cascading_threshold
|
|
7378
|
-
check_message_context
|
|
7379
|
-
fast_spam_threshold
|
|
7380
|
-
fast_spam_ttl
|
|
7381
|
-
ip_ban
|
|
7382
|
-
probation_period
|
|
7383
|
-
shadow_ban
|
|
7384
|
-
slow_spam_threshold: number;
|
|
7385
|
-
slow_spam_ttl: number;
|
|
7386
|
-
url_only: boolean;
|
|
7503
|
+
ban_duration?: number;
|
|
7504
|
+
cascading_action?: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
7505
|
+
cascading_threshold?: number;
|
|
7506
|
+
check_message_context?: boolean;
|
|
7507
|
+
fast_spam_threshold?: number;
|
|
7508
|
+
fast_spam_ttl?: number;
|
|
7509
|
+
ip_ban?: boolean;
|
|
7510
|
+
probation_period?: number;
|
|
7511
|
+
shadow_ban?: boolean;
|
|
7387
7512
|
slow_spam_ban_duration?: number;
|
|
7513
|
+
slow_spam_threshold?: number;
|
|
7514
|
+
slow_spam_ttl?: number;
|
|
7515
|
+
url_only?: boolean;
|
|
7388
7516
|
}
|
|
7389
7517
|
export interface VideoCallRuleConfig {
|
|
7390
|
-
rules
|
|
7518
|
+
rules?: Record<string, HarmConfig>;
|
|
7391
7519
|
}
|
|
7392
7520
|
export interface VideoContentParameters {
|
|
7393
7521
|
harm_labels?: string[];
|
|
@@ -7407,8 +7535,8 @@ export interface VideoReactionsResponse {
|
|
|
7407
7535
|
count_over_time?: VideoReactionOverTimeResponse;
|
|
7408
7536
|
}
|
|
7409
7537
|
export interface VideoRuleParameters {
|
|
7410
|
-
threshold
|
|
7411
|
-
time_window
|
|
7538
|
+
threshold?: number;
|
|
7539
|
+
time_window?: string;
|
|
7412
7540
|
harm_labels?: string[];
|
|
7413
7541
|
}
|
|
7414
7542
|
export interface VideoSettings {
|