@stream-io/node-sdk 0.6.2 → 0.6.4
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 +249 -115
- 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 +415 -166
- 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 {
|
|
@@ -2564,6 +2561,7 @@ export interface DeleteFeedGroupResponse {
|
|
|
2564
2561
|
duration: string;
|
|
2565
2562
|
}
|
|
2566
2563
|
export interface DeleteFeedResponse {
|
|
2564
|
+
delete_feed_task_id: string;
|
|
2567
2565
|
duration: string;
|
|
2568
2566
|
}
|
|
2569
2567
|
export interface DeleteFeedUserDataResponse {
|
|
@@ -2586,6 +2584,9 @@ export interface DeleteMessageResponse {
|
|
|
2586
2584
|
export interface DeleteModerationConfigResponse {
|
|
2587
2585
|
duration: string;
|
|
2588
2586
|
}
|
|
2587
|
+
export interface DeleteModerationRuleResponse {
|
|
2588
|
+
duration: string;
|
|
2589
|
+
}
|
|
2589
2590
|
export interface DeleteModerationTemplateResponse {
|
|
2590
2591
|
duration: string;
|
|
2591
2592
|
}
|
|
@@ -2817,6 +2818,7 @@ export interface EventHook {
|
|
|
2817
2818
|
enabled?: boolean;
|
|
2818
2819
|
hook_type?: string;
|
|
2819
2820
|
id?: string;
|
|
2821
|
+
product?: string;
|
|
2820
2822
|
sns_auth_type?: string;
|
|
2821
2823
|
sns_key?: string;
|
|
2822
2824
|
sns_region?: string;
|
|
@@ -2940,6 +2942,7 @@ export interface FeedGroup {
|
|
|
2940
2942
|
last_feed_get_at?: Date;
|
|
2941
2943
|
aggregation?: AggregationConfig;
|
|
2942
2944
|
notification?: NotificationConfig;
|
|
2945
|
+
push_notification?: PushNotificationConfig;
|
|
2943
2946
|
ranking?: RankingConfig;
|
|
2944
2947
|
stories?: StoriesConfig;
|
|
2945
2948
|
}
|
|
@@ -2972,6 +2975,7 @@ export interface FeedGroupResponse {
|
|
|
2972
2975
|
aggregation?: AggregationConfig;
|
|
2973
2976
|
custom?: Record<string, any>;
|
|
2974
2977
|
notification?: NotificationConfig;
|
|
2978
|
+
push_notification?: PushNotificationConfig;
|
|
2975
2979
|
ranking?: RankingConfig;
|
|
2976
2980
|
stories?: StoriesConfig;
|
|
2977
2981
|
}
|
|
@@ -3116,6 +3120,14 @@ export interface FeedsModerationTemplateConfig {
|
|
|
3116
3120
|
config_key: string;
|
|
3117
3121
|
data_types: Record<string, string>;
|
|
3118
3122
|
}
|
|
3123
|
+
export interface FeedsPreferences {
|
|
3124
|
+
comment?: string;
|
|
3125
|
+
comment_reaction?: string;
|
|
3126
|
+
follow?: string;
|
|
3127
|
+
mention?: string;
|
|
3128
|
+
reaction?: string;
|
|
3129
|
+
custom_activity_types?: Record<string, string>;
|
|
3130
|
+
}
|
|
3119
3131
|
export interface FeedsReactionResponse {
|
|
3120
3132
|
activity_id: string;
|
|
3121
3133
|
created_at: Date;
|
|
@@ -3164,22 +3176,24 @@ export interface FirebaseConfigFields {
|
|
|
3164
3176
|
}
|
|
3165
3177
|
export interface Flag {
|
|
3166
3178
|
created_at: Date;
|
|
3167
|
-
|
|
3179
|
+
entity_id: string;
|
|
3180
|
+
entity_type: string;
|
|
3168
3181
|
updated_at: Date;
|
|
3169
|
-
|
|
3182
|
+
result: Array<Record<string, any>>;
|
|
3183
|
+
entity_creator_id?: string;
|
|
3184
|
+
is_streamed_content?: boolean;
|
|
3185
|
+
moderation_payload_hash?: string;
|
|
3170
3186
|
reason?: string;
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
target_message_id?: string;
|
|
3187
|
+
review_queue_item_id?: string;
|
|
3188
|
+
type?: string;
|
|
3189
|
+
labels?: string[];
|
|
3175
3190
|
custom?: Record<string, any>;
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
target_user?: User;
|
|
3191
|
+
moderation_payload?: ModerationPayload;
|
|
3192
|
+
review_queue_item?: ReviewQueueItem;
|
|
3179
3193
|
user?: User;
|
|
3180
3194
|
}
|
|
3181
3195
|
export interface FlagContentOptions {
|
|
3182
|
-
reason
|
|
3196
|
+
reason?: string;
|
|
3183
3197
|
}
|
|
3184
3198
|
export interface FlagDetails {
|
|
3185
3199
|
original_text: string;
|
|
@@ -3221,7 +3235,7 @@ export interface FlagUpdatedEvent {
|
|
|
3221
3235
|
user?: UserResponse;
|
|
3222
3236
|
}
|
|
3223
3237
|
export interface FlagUserOptions {
|
|
3224
|
-
reason
|
|
3238
|
+
reason?: string;
|
|
3225
3239
|
}
|
|
3226
3240
|
export interface FollowBatchRequest {
|
|
3227
3241
|
follows: FollowRequest[];
|
|
@@ -3257,6 +3271,7 @@ export interface FollowRequest {
|
|
|
3257
3271
|
target: string;
|
|
3258
3272
|
create_notification_activity?: boolean;
|
|
3259
3273
|
push_preference?: 'all' | 'none';
|
|
3274
|
+
skip_push?: boolean;
|
|
3260
3275
|
custom?: Record<string, any>;
|
|
3261
3276
|
}
|
|
3262
3277
|
export interface FollowResponse {
|
|
@@ -3506,6 +3521,10 @@ export interface GetMessageResponse {
|
|
|
3506
3521
|
message: MessageWithChannelResponse;
|
|
3507
3522
|
pending_message_metadata?: Record<string, string>;
|
|
3508
3523
|
}
|
|
3524
|
+
export interface GetModerationRuleResponse {
|
|
3525
|
+
duration: string;
|
|
3526
|
+
rule?: ModerationRuleV2Response;
|
|
3527
|
+
}
|
|
3509
3528
|
export interface GetOGResponse {
|
|
3510
3529
|
duration: string;
|
|
3511
3530
|
custom: Record<string, any>;
|
|
@@ -3552,6 +3571,7 @@ export interface GetOrCreateFeedGroupRequest {
|
|
|
3552
3571
|
aggregation?: AggregationConfig;
|
|
3553
3572
|
custom?: Record<string, any>;
|
|
3554
3573
|
notification?: NotificationConfig;
|
|
3574
|
+
push_notification?: PushNotificationConfig;
|
|
3555
3575
|
ranking?: RankingConfig;
|
|
3556
3576
|
}
|
|
3557
3577
|
export interface GetOrCreateFeedGroupResponse {
|
|
@@ -3691,8 +3711,8 @@ export interface HLSSettingsResponse {
|
|
|
3691
3711
|
layout: LayoutSettingsResponse;
|
|
3692
3712
|
}
|
|
3693
3713
|
export interface HarmConfig {
|
|
3694
|
-
severity
|
|
3695
|
-
action_sequences
|
|
3714
|
+
severity?: number;
|
|
3715
|
+
action_sequences?: ActionSequence[];
|
|
3696
3716
|
}
|
|
3697
3717
|
export interface HideChannelRequest {
|
|
3698
3718
|
clear_history?: boolean;
|
|
@@ -3723,8 +3743,8 @@ export interface ImageData {
|
|
|
3723
3743
|
width: string;
|
|
3724
3744
|
}
|
|
3725
3745
|
export interface ImageRuleParameters {
|
|
3726
|
-
threshold
|
|
3727
|
-
time_window
|
|
3746
|
+
threshold?: number;
|
|
3747
|
+
time_window?: string;
|
|
3728
3748
|
harm_labels?: string[];
|
|
3729
3749
|
}
|
|
3730
3750
|
export interface ImageSize {
|
|
@@ -3850,16 +3870,17 @@ export interface KickedUserEvent {
|
|
|
3850
3870
|
kicked_by_user?: UserResponse;
|
|
3851
3871
|
}
|
|
3852
3872
|
export interface LLMConfig {
|
|
3853
|
-
|
|
3854
|
-
rules: LLMRule[];
|
|
3873
|
+
app_context?: string;
|
|
3855
3874
|
async?: boolean;
|
|
3875
|
+
enabled?: boolean;
|
|
3876
|
+
rules?: LLMRule[];
|
|
3856
3877
|
severity_descriptions?: Record<string, string>;
|
|
3857
3878
|
}
|
|
3858
3879
|
export interface LLMRule {
|
|
3859
|
-
action: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove' | 'keep';
|
|
3860
3880
|
description: string;
|
|
3861
3881
|
label: string;
|
|
3862
|
-
|
|
3882
|
+
action?: 'flag' | 'shadow' | 'remove' | 'bounce' | 'bounce_flag' | 'bounce_remove' | 'keep';
|
|
3883
|
+
severity_rules?: BodyguardSeverityRule[];
|
|
3863
3884
|
}
|
|
3864
3885
|
export interface Label {
|
|
3865
3886
|
name: string;
|
|
@@ -4101,6 +4122,7 @@ export interface Message {
|
|
|
4101
4122
|
thread_participants?: User[];
|
|
4102
4123
|
i18n?: Record<string, string>;
|
|
4103
4124
|
image_labels?: Record<string, string[]>;
|
|
4125
|
+
member?: ChannelMember;
|
|
4104
4126
|
moderation?: ModerationV2Response;
|
|
4105
4127
|
pinned_by?: User;
|
|
4106
4128
|
poll?: Poll;
|
|
@@ -4132,6 +4154,7 @@ export interface MessageDeletedEvent {
|
|
|
4132
4154
|
created_at: Date;
|
|
4133
4155
|
hard_delete: boolean;
|
|
4134
4156
|
type: string;
|
|
4157
|
+
deleted_for_me?: boolean;
|
|
4135
4158
|
team?: string;
|
|
4136
4159
|
thread_participants?: User[];
|
|
4137
4160
|
message?: Message;
|
|
@@ -4284,6 +4307,7 @@ export interface MessageResponse {
|
|
|
4284
4307
|
draft?: DraftResponse;
|
|
4285
4308
|
i18n?: Record<string, string>;
|
|
4286
4309
|
image_labels?: Record<string, string[]>;
|
|
4310
|
+
member?: ChannelMemberResponse;
|
|
4287
4311
|
moderation?: ModerationV2Response;
|
|
4288
4312
|
pinned_by?: UserResponse;
|
|
4289
4313
|
poll?: PollResponseData;
|
|
@@ -4367,6 +4391,7 @@ export interface MessageWithChannelResponse {
|
|
|
4367
4391
|
draft?: DraftResponse;
|
|
4368
4392
|
i18n?: Record<string, string>;
|
|
4369
4393
|
image_labels?: Record<string, string[]>;
|
|
4394
|
+
member?: ChannelMemberResponse;
|
|
4370
4395
|
moderation?: ModerationV2Response;
|
|
4371
4396
|
pinned_by?: UserResponse;
|
|
4372
4397
|
poll?: PollResponseData;
|
|
@@ -4393,6 +4418,25 @@ export interface ModerationCheckCompletedEvent {
|
|
|
4393
4418
|
type: string;
|
|
4394
4419
|
received_at?: Date;
|
|
4395
4420
|
}
|
|
4421
|
+
export interface ModerationConfig {
|
|
4422
|
+
async?: boolean;
|
|
4423
|
+
created_at?: Date;
|
|
4424
|
+
key?: string;
|
|
4425
|
+
team?: string;
|
|
4426
|
+
updated_at?: Date;
|
|
4427
|
+
ai_image_config?: AIImageConfig;
|
|
4428
|
+
ai_image_lite_config?: BodyguardImageAnalysisConfig;
|
|
4429
|
+
ai_text_config?: AITextConfig;
|
|
4430
|
+
ai_video_config?: AIVideoConfig;
|
|
4431
|
+
automod_platform_circumvention_config?: AutomodPlatformCircumventionConfig;
|
|
4432
|
+
automod_semantic_filters_config?: AutomodSemanticFiltersConfig;
|
|
4433
|
+
automod_toxicity_config?: AutomodToxicityConfig;
|
|
4434
|
+
block_list_config?: BlockListConfig;
|
|
4435
|
+
google_vision_config?: GoogleVisionConfig;
|
|
4436
|
+
llm_config?: LLMConfig;
|
|
4437
|
+
velocity_filter_config?: VelocityFilterConfig;
|
|
4438
|
+
video_call_rule_config?: VideoCallRuleConfig;
|
|
4439
|
+
}
|
|
4396
4440
|
export interface ModerationCustomActionEvent {
|
|
4397
4441
|
created_at: Date;
|
|
4398
4442
|
type: string;
|
|
@@ -4405,11 +4449,11 @@ export interface ModerationDashboardPreferences {
|
|
|
4405
4449
|
media_queue_blur_enabled?: boolean;
|
|
4406
4450
|
}
|
|
4407
4451
|
export interface ModerationFlagResponse {
|
|
4408
|
-
created_at:
|
|
4452
|
+
created_at: Date;
|
|
4409
4453
|
entity_id: string;
|
|
4410
4454
|
entity_type: string;
|
|
4411
4455
|
type: string;
|
|
4412
|
-
updated_at:
|
|
4456
|
+
updated_at: Date;
|
|
4413
4457
|
user_id: string;
|
|
4414
4458
|
result: Array<Record<string, any>>;
|
|
4415
4459
|
entity_creator_id?: string;
|
|
@@ -4447,6 +4491,22 @@ export interface ModerationResponse {
|
|
|
4447
4491
|
spam: number;
|
|
4448
4492
|
toxic: number;
|
|
4449
4493
|
}
|
|
4494
|
+
export interface ModerationRuleV2Response {
|
|
4495
|
+
created_at: Date;
|
|
4496
|
+
description: string;
|
|
4497
|
+
enabled: boolean;
|
|
4498
|
+
id: string;
|
|
4499
|
+
name: string;
|
|
4500
|
+
rule_type: string;
|
|
4501
|
+
team: string;
|
|
4502
|
+
updated_at: Date;
|
|
4503
|
+
config_keys: string[];
|
|
4504
|
+
action: RuleBuilderAction;
|
|
4505
|
+
cooldown_period?: string;
|
|
4506
|
+
logic?: string;
|
|
4507
|
+
conditions?: RuleBuilderCondition[];
|
|
4508
|
+
groups?: RuleBuilderConditionGroup[];
|
|
4509
|
+
}
|
|
4450
4510
|
export interface ModerationV2Response {
|
|
4451
4511
|
action: string;
|
|
4452
4512
|
original_text: string;
|
|
@@ -4579,6 +4639,7 @@ export declare const OwnCapability: {
|
|
|
4579
4639
|
readonly REMOVE_CALL_MEMBER: "remove-call-member";
|
|
4580
4640
|
readonly SCREENSHARE: "screenshare";
|
|
4581
4641
|
readonly SEND_AUDIO: "send-audio";
|
|
4642
|
+
readonly SEND_CLOSED_CAPTIONS_CALL: "send-closed-captions-call";
|
|
4582
4643
|
readonly SEND_VIDEO: "send-video";
|
|
4583
4644
|
readonly START_BROADCAST_CALL: "start-broadcast-call";
|
|
4584
4645
|
readonly START_CLOSED_CAPTIONS_CALL: "start-closed-captions-call";
|
|
@@ -4914,6 +4975,10 @@ export interface PushConfig {
|
|
|
4914
4975
|
version: 'v1' | 'v2' | 'v3';
|
|
4915
4976
|
offline_only?: boolean;
|
|
4916
4977
|
}
|
|
4978
|
+
export interface PushNotificationConfig {
|
|
4979
|
+
enable_push?: boolean;
|
|
4980
|
+
push_types?: string[];
|
|
4981
|
+
}
|
|
4917
4982
|
export interface PushNotificationFields {
|
|
4918
4983
|
offline_only: boolean;
|
|
4919
4984
|
version: string;
|
|
@@ -4932,13 +4997,17 @@ export interface PushPreferenceInput {
|
|
|
4932
4997
|
channel_cid?: string;
|
|
4933
4998
|
chat_level?: 'all' | 'mentions' | 'none' | 'default';
|
|
4934
4999
|
disabled_until?: Date;
|
|
5000
|
+
feeds_level?: 'all' | 'none' | 'default';
|
|
4935
5001
|
remove_disable?: boolean;
|
|
4936
5002
|
user_id?: string;
|
|
5003
|
+
feeds_preferences?: FeedsPreferences;
|
|
4937
5004
|
}
|
|
4938
5005
|
export interface PushPreferences {
|
|
4939
5006
|
call_level?: string;
|
|
4940
5007
|
chat_level?: string;
|
|
4941
5008
|
disabled_until?: Date;
|
|
5009
|
+
feeds_level?: string;
|
|
5010
|
+
feeds_preferences?: FeedsPreferences;
|
|
4942
5011
|
}
|
|
4943
5012
|
export interface PushProvider {
|
|
4944
5013
|
created_at: Date;
|
|
@@ -5002,7 +5071,7 @@ export interface PushProviderResponse {
|
|
|
5002
5071
|
export interface PushTemplate {
|
|
5003
5072
|
created_at: Date;
|
|
5004
5073
|
enable_push: boolean;
|
|
5005
|
-
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due';
|
|
5074
|
+
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
5075
|
updated_at: Date;
|
|
5007
5076
|
template?: string;
|
|
5008
5077
|
}
|
|
@@ -5365,6 +5434,22 @@ export interface QueryModerationLogsResponse {
|
|
|
5365
5434
|
next?: string;
|
|
5366
5435
|
prev?: string;
|
|
5367
5436
|
}
|
|
5437
|
+
export interface QueryModerationRulesRequest {
|
|
5438
|
+
limit?: number;
|
|
5439
|
+
next?: string;
|
|
5440
|
+
prev?: string;
|
|
5441
|
+
user_id?: string;
|
|
5442
|
+
sort?: SortParamRequest[];
|
|
5443
|
+
filter?: Record<string, any>;
|
|
5444
|
+
user?: UserRequest;
|
|
5445
|
+
}
|
|
5446
|
+
export interface QueryModerationRulesResponse {
|
|
5447
|
+
duration: string;
|
|
5448
|
+
rules: ModerationRuleV2Response[];
|
|
5449
|
+
default_llm_labels: Record<string, string>;
|
|
5450
|
+
next?: string;
|
|
5451
|
+
prev?: string;
|
|
5452
|
+
}
|
|
5368
5453
|
export interface QueryPollVotesRequest {
|
|
5369
5454
|
limit?: number;
|
|
5370
5455
|
next?: string;
|
|
@@ -5885,40 +5970,39 @@ export interface Role {
|
|
|
5885
5970
|
scopes: string[];
|
|
5886
5971
|
}
|
|
5887
5972
|
export interface RuleBuilderAction {
|
|
5888
|
-
type
|
|
5973
|
+
type?: string;
|
|
5889
5974
|
ban_options?: BanOptions;
|
|
5890
5975
|
flag_content_options?: FlagContentOptions;
|
|
5891
5976
|
flag_user_options?: FlagUserOptions;
|
|
5892
5977
|
remove_content_options?: BlockContentOptions;
|
|
5893
5978
|
}
|
|
5894
5979
|
export interface RuleBuilderCondition {
|
|
5895
|
-
type: string;
|
|
5896
5980
|
confidence?: number;
|
|
5981
|
+
type?: string;
|
|
5897
5982
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
5898
5983
|
image_content_params?: ImageContentParameters;
|
|
5899
5984
|
image_rule_params?: ImageRuleParameters;
|
|
5900
5985
|
text_content_params?: TextContentParameters;
|
|
5901
5986
|
text_rule_params?: TextRuleParameters;
|
|
5902
5987
|
user_created_within_params?: UserCreatedWithinParameters;
|
|
5988
|
+
user_custom_property_params?: UserCustomPropertyParameters;
|
|
5903
5989
|
user_rule_params?: UserRuleParameters;
|
|
5904
5990
|
video_content_params?: VideoContentParameters;
|
|
5905
5991
|
video_rule_params?: VideoRuleParameters;
|
|
5906
5992
|
}
|
|
5907
5993
|
export interface RuleBuilderConditionGroup {
|
|
5908
|
-
logic
|
|
5909
|
-
conditions
|
|
5994
|
+
logic?: string;
|
|
5995
|
+
conditions?: RuleBuilderCondition[];
|
|
5910
5996
|
}
|
|
5911
5997
|
export interface RuleBuilderConfig {
|
|
5912
|
-
rules: RuleBuilderRule[];
|
|
5913
5998
|
async?: boolean;
|
|
5999
|
+
rules?: RuleBuilderRule[];
|
|
5914
6000
|
}
|
|
5915
6001
|
export interface RuleBuilderRule {
|
|
5916
|
-
enabled: boolean;
|
|
5917
|
-
id: string;
|
|
5918
|
-
name: string;
|
|
5919
6002
|
rule_type: string;
|
|
5920
6003
|
action: RuleBuilderAction;
|
|
5921
6004
|
cooldown_period?: string;
|
|
6005
|
+
id?: string;
|
|
5922
6006
|
logic?: string;
|
|
5923
6007
|
conditions?: RuleBuilderCondition[];
|
|
5924
6008
|
groups?: RuleBuilderConditionGroup[];
|
|
@@ -5949,6 +6033,7 @@ export interface STTEgressConfig {
|
|
|
5949
6033
|
whisper_server_base_url?: string;
|
|
5950
6034
|
translation_languages?: string[];
|
|
5951
6035
|
external_storage?: ExternalStorage;
|
|
6036
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
5952
6037
|
}
|
|
5953
6038
|
export interface ScreensharingSettings {
|
|
5954
6039
|
access_request_enabled: boolean;
|
|
@@ -6023,6 +6108,7 @@ export interface SearchResultMessage {
|
|
|
6023
6108
|
draft?: DraftResponse;
|
|
6024
6109
|
i18n?: Record<string, string>;
|
|
6025
6110
|
image_labels?: Record<string, string[]>;
|
|
6111
|
+
member?: ChannelMemberResponse;
|
|
6026
6112
|
moderation?: ModerationV2Response;
|
|
6027
6113
|
pinned_by?: UserResponse;
|
|
6028
6114
|
poll?: PollResponseData;
|
|
@@ -6078,6 +6164,20 @@ export interface SendCallEventRequest {
|
|
|
6078
6164
|
export interface SendCallEventResponse {
|
|
6079
6165
|
duration: string;
|
|
6080
6166
|
}
|
|
6167
|
+
export interface SendClosedCaptionRequest {
|
|
6168
|
+
speaker_id: string;
|
|
6169
|
+
text: string;
|
|
6170
|
+
end_time?: Date;
|
|
6171
|
+
language?: string;
|
|
6172
|
+
service?: string;
|
|
6173
|
+
start_time?: Date;
|
|
6174
|
+
translated?: boolean;
|
|
6175
|
+
user_id?: string;
|
|
6176
|
+
user?: UserRequest;
|
|
6177
|
+
}
|
|
6178
|
+
export interface SendClosedCaptionResponse {
|
|
6179
|
+
duration: string;
|
|
6180
|
+
}
|
|
6081
6181
|
export interface SendEventRequest {
|
|
6082
6182
|
event: EventRequest;
|
|
6083
6183
|
}
|
|
@@ -6182,6 +6282,10 @@ export interface SortParamRequest {
|
|
|
6182
6282
|
direction?: number;
|
|
6183
6283
|
field?: string;
|
|
6184
6284
|
}
|
|
6285
|
+
export interface SpeechSegmentConfig {
|
|
6286
|
+
max_speech_caption_ms?: number;
|
|
6287
|
+
silence_duration_ms?: number;
|
|
6288
|
+
}
|
|
6185
6289
|
export interface StartCampaignRequest {
|
|
6186
6290
|
scheduled_for?: Date;
|
|
6187
6291
|
stop_at?: Date;
|
|
@@ -6195,6 +6299,7 @@ export interface StartClosedCaptionsRequest {
|
|
|
6195
6299
|
enable_transcription?: boolean;
|
|
6196
6300
|
external_storage?: string;
|
|
6197
6301
|
language?: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
6302
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
6198
6303
|
}
|
|
6199
6304
|
export interface StartClosedCaptionsResponse {
|
|
6200
6305
|
duration: string;
|
|
@@ -6336,14 +6441,16 @@ export interface TextContentParameters {
|
|
|
6336
6441
|
severity?: string;
|
|
6337
6442
|
blocklist_match?: string[];
|
|
6338
6443
|
harm_labels?: string[];
|
|
6444
|
+
llm_harm_labels?: Record<string, string>;
|
|
6339
6445
|
}
|
|
6340
6446
|
export interface TextRuleParameters {
|
|
6341
|
-
threshold: number;
|
|
6342
|
-
time_window: string;
|
|
6343
6447
|
contains_url?: boolean;
|
|
6344
6448
|
severity?: string;
|
|
6449
|
+
threshold?: number;
|
|
6450
|
+
time_window?: string;
|
|
6345
6451
|
blocklist_match?: string[];
|
|
6346
6452
|
harm_labels?: string[];
|
|
6453
|
+
llm_harm_labels?: Record<string, string>;
|
|
6347
6454
|
}
|
|
6348
6455
|
export interface ThreadParticipant {
|
|
6349
6456
|
app_pk: number;
|
|
@@ -6358,17 +6465,17 @@ export interface ThreadParticipant {
|
|
|
6358
6465
|
user?: UserResponse;
|
|
6359
6466
|
}
|
|
6360
6467
|
export interface ThreadResponse {
|
|
6468
|
+
active_participant_count: number;
|
|
6361
6469
|
channel_cid: string;
|
|
6362
6470
|
created_at: Date;
|
|
6363
6471
|
created_by_user_id: string;
|
|
6364
6472
|
parent_message_id: string;
|
|
6473
|
+
participant_count: number;
|
|
6365
6474
|
title: string;
|
|
6366
6475
|
updated_at: Date;
|
|
6367
6476
|
custom: Record<string, any>;
|
|
6368
|
-
active_participant_count?: number;
|
|
6369
6477
|
deleted_at?: Date;
|
|
6370
6478
|
last_message_at?: Date;
|
|
6371
|
-
participant_count?: number;
|
|
6372
6479
|
reply_count?: number;
|
|
6373
6480
|
thread_participants?: ThreadParticipant[];
|
|
6374
6481
|
channel?: ChannelResponse;
|
|
@@ -6376,18 +6483,18 @@ export interface ThreadResponse {
|
|
|
6376
6483
|
parent_message?: MessageResponse;
|
|
6377
6484
|
}
|
|
6378
6485
|
export interface ThreadStateResponse {
|
|
6486
|
+
active_participant_count: number;
|
|
6379
6487
|
channel_cid: string;
|
|
6380
6488
|
created_at: Date;
|
|
6381
6489
|
created_by_user_id: string;
|
|
6382
6490
|
parent_message_id: string;
|
|
6491
|
+
participant_count: number;
|
|
6383
6492
|
title: string;
|
|
6384
6493
|
updated_at: Date;
|
|
6385
6494
|
latest_replies: MessageResponse[];
|
|
6386
6495
|
custom: Record<string, any>;
|
|
6387
|
-
active_participant_count?: number;
|
|
6388
6496
|
deleted_at?: Date;
|
|
6389
6497
|
last_message_at?: Date;
|
|
6390
|
-
participant_count?: number;
|
|
6391
6498
|
reply_count?: number;
|
|
6392
6499
|
read?: ReadStateResponse[];
|
|
6393
6500
|
thread_participants?: ThreadParticipant[];
|
|
@@ -6460,16 +6567,19 @@ export interface TranscriptionSettings {
|
|
|
6460
6567
|
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
6461
6568
|
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
6462
6569
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
6570
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
6463
6571
|
}
|
|
6464
6572
|
export interface TranscriptionSettingsRequest {
|
|
6465
|
-
mode: 'available' | 'disabled' | 'auto-on';
|
|
6466
6573
|
closed_caption_mode?: 'available' | 'disabled' | 'auto-on';
|
|
6467
6574
|
language?: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
6575
|
+
mode?: 'available' | 'disabled' | 'auto-on';
|
|
6576
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
6468
6577
|
}
|
|
6469
6578
|
export interface TranscriptionSettingsResponse {
|
|
6470
6579
|
closed_caption_mode: 'available' | 'disabled' | 'auto-on';
|
|
6471
6580
|
language: 'auto' | 'en' | 'fr' | 'es' | 'de' | 'it' | 'nl' | 'pt' | 'pl' | 'ca' | 'cs' | 'da' | 'el' | 'fi' | 'id' | 'ja' | 'ru' | 'sv' | 'ta' | 'th' | 'tr' | 'hu' | 'ro' | 'zh' | 'ar' | 'tl' | 'he' | 'hi' | 'hr' | 'ko' | 'ms' | 'no' | 'uk' | 'bg' | 'et' | 'sl' | 'sk';
|
|
6472
6581
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
6582
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
6473
6583
|
}
|
|
6474
6584
|
export interface TranslateMessageRequest {
|
|
6475
6585
|
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' | 'ht';
|
|
@@ -6853,6 +6963,7 @@ export interface UpdateCommandResponse {
|
|
|
6853
6963
|
}
|
|
6854
6964
|
export interface UpdateCommentRequest {
|
|
6855
6965
|
comment?: string;
|
|
6966
|
+
skip_push?: boolean;
|
|
6856
6967
|
custom?: Record<string, any>;
|
|
6857
6968
|
}
|
|
6858
6969
|
export interface UpdateCommentResponse {
|
|
@@ -6880,6 +6991,7 @@ export interface UpdateFeedGroupRequest {
|
|
|
6880
6991
|
aggregation?: AggregationConfig;
|
|
6881
6992
|
custom?: Record<string, any>;
|
|
6882
6993
|
notification?: NotificationConfig;
|
|
6994
|
+
push_notification?: PushNotificationConfig;
|
|
6883
6995
|
ranking?: RankingConfig;
|
|
6884
6996
|
}
|
|
6885
6997
|
export interface UpdateFeedGroupResponse {
|
|
@@ -6923,6 +7035,7 @@ export interface UpdateFollowRequest {
|
|
|
6923
7035
|
create_notification_activity?: boolean;
|
|
6924
7036
|
follower_role?: string;
|
|
6925
7037
|
push_preference?: 'all' | 'none';
|
|
7038
|
+
skip_push?: boolean;
|
|
6926
7039
|
custom?: Record<string, any>;
|
|
6927
7040
|
}
|
|
6928
7041
|
export interface UpdateFollowResponse {
|
|
@@ -7086,6 +7199,23 @@ export interface UpsertConfigResponse {
|
|
|
7086
7199
|
duration: string;
|
|
7087
7200
|
config?: ConfigResponse;
|
|
7088
7201
|
}
|
|
7202
|
+
export interface UpsertModerationRuleRequest {
|
|
7203
|
+
name: string;
|
|
7204
|
+
rule_type: string;
|
|
7205
|
+
action: RuleBuilderAction;
|
|
7206
|
+
cooldown_period?: string;
|
|
7207
|
+
description?: string;
|
|
7208
|
+
enabled?: boolean;
|
|
7209
|
+
logic?: string;
|
|
7210
|
+
team?: string;
|
|
7211
|
+
conditions?: RuleBuilderCondition[];
|
|
7212
|
+
config_keys?: string[];
|
|
7213
|
+
groups?: RuleBuilderConditionGroup[];
|
|
7214
|
+
}
|
|
7215
|
+
export interface UpsertModerationRuleResponse {
|
|
7216
|
+
duration: string;
|
|
7217
|
+
rule?: ModerationRuleV2Response;
|
|
7218
|
+
}
|
|
7089
7219
|
export interface UpsertModerationTemplateRequest {
|
|
7090
7220
|
name: string;
|
|
7091
7221
|
config: FeedsModerationTemplateConfig;
|
|
@@ -7113,7 +7243,7 @@ export interface UpsertPushProviderResponse {
|
|
|
7113
7243
|
push_provider: PushProviderResponse;
|
|
7114
7244
|
}
|
|
7115
7245
|
export interface UpsertPushTemplateRequest {
|
|
7116
|
-
event_type: 'message.new' | 'message.updated' | 'reaction.new' | 'notification.reminder_due';
|
|
7246
|
+
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
7247
|
push_provider_type: 'firebase' | 'apn';
|
|
7118
7248
|
enable_push?: boolean;
|
|
7119
7249
|
push_provider_name?: string;
|
|
@@ -7164,6 +7294,10 @@ export interface UserCustomEventRequest {
|
|
|
7164
7294
|
type: string;
|
|
7165
7295
|
custom?: Record<string, any>;
|
|
7166
7296
|
}
|
|
7297
|
+
export interface UserCustomPropertyParameters {
|
|
7298
|
+
operator?: string;
|
|
7299
|
+
property_key?: string;
|
|
7300
|
+
}
|
|
7167
7301
|
export interface UserDeactivatedEvent {
|
|
7168
7302
|
created_at: Date;
|
|
7169
7303
|
created_by: User;
|
|
@@ -7205,12 +7339,12 @@ export interface UserFlaggedEvent {
|
|
|
7205
7339
|
}
|
|
7206
7340
|
export interface UserMessagesDeletedEvent {
|
|
7207
7341
|
created_at: Date;
|
|
7208
|
-
soft_delete: boolean;
|
|
7209
7342
|
custom: Record<string, any>;
|
|
7210
7343
|
user: UserResponseCommonFields;
|
|
7211
7344
|
type: string;
|
|
7212
7345
|
channel_id?: string;
|
|
7213
7346
|
channel_member_count?: number;
|
|
7347
|
+
channel_message_count?: number;
|
|
7214
7348
|
channel_type?: string;
|
|
7215
7349
|
cid?: string;
|
|
7216
7350
|
hard_delete?: boolean;
|
|
@@ -7362,32 +7496,32 @@ export interface UserUpdatedEvent {
|
|
|
7362
7496
|
received_at?: Date;
|
|
7363
7497
|
}
|
|
7364
7498
|
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[];
|
|
7499
|
+
advanced_filters?: boolean;
|
|
7371
7500
|
async?: boolean;
|
|
7501
|
+
cascading_actions?: boolean;
|
|
7502
|
+
cids_per_user?: number;
|
|
7503
|
+
enabled?: boolean;
|
|
7504
|
+
first_message_only?: boolean;
|
|
7505
|
+
rules?: VelocityFilterConfigRule[];
|
|
7372
7506
|
}
|
|
7373
7507
|
export interface VelocityFilterConfigRule {
|
|
7374
7508
|
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;
|
|
7509
|
+
ban_duration?: number;
|
|
7510
|
+
cascading_action?: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
7511
|
+
cascading_threshold?: number;
|
|
7512
|
+
check_message_context?: boolean;
|
|
7513
|
+
fast_spam_threshold?: number;
|
|
7514
|
+
fast_spam_ttl?: number;
|
|
7515
|
+
ip_ban?: boolean;
|
|
7516
|
+
probation_period?: number;
|
|
7517
|
+
shadow_ban?: boolean;
|
|
7387
7518
|
slow_spam_ban_duration?: number;
|
|
7519
|
+
slow_spam_threshold?: number;
|
|
7520
|
+
slow_spam_ttl?: number;
|
|
7521
|
+
url_only?: boolean;
|
|
7388
7522
|
}
|
|
7389
7523
|
export interface VideoCallRuleConfig {
|
|
7390
|
-
rules
|
|
7524
|
+
rules?: Record<string, HarmConfig>;
|
|
7391
7525
|
}
|
|
7392
7526
|
export interface VideoContentParameters {
|
|
7393
7527
|
harm_labels?: string[];
|
|
@@ -7407,8 +7541,8 @@ export interface VideoReactionsResponse {
|
|
|
7407
7541
|
count_over_time?: VideoReactionOverTimeResponse;
|
|
7408
7542
|
}
|
|
7409
7543
|
export interface VideoRuleParameters {
|
|
7410
|
-
threshold
|
|
7411
|
-
time_window
|
|
7544
|
+
threshold?: number;
|
|
7545
|
+
time_window?: string;
|
|
7412
7546
|
harm_labels?: string[];
|
|
7413
7547
|
}
|
|
7414
7548
|
export interface VideoSettings {
|