File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -7120,11 +7120,55 @@ export interface Role {
71207120 scopes : string [ ] ;
71217121}
71227122
7123+ export interface RuleBuilderAction {
7124+ duration ?: number ;
7125+
7126+ ip_ban ?: boolean ;
7127+
7128+ reason ?: string ;
7129+
7130+ shadow_ban ?: boolean ;
7131+
7132+ type ?: string ;
7133+ }
7134+
7135+ export interface RuleBuilderCondition {
7136+ provider ?: string ;
7137+
7138+ threshold ?: number ;
7139+
7140+ time_window ?: string ;
7141+
7142+ labels ?: string [ ] ;
7143+ }
7144+
7145+ export interface RuleBuilderConfig {
7146+ async ?: boolean ;
7147+
7148+ enabled ?: boolean ;
7149+
7150+ rules ?: RuleBuilderRule [ ] ;
7151+ }
7152+
7153+ export interface RuleBuilderRule {
7154+ enabled ?: boolean ;
7155+
7156+ id ?: string ;
7157+
7158+ name ?: string ;
7159+
7160+ conditions ?: RuleBuilderCondition [ ] ;
7161+
7162+ action ?: RuleBuilderAction ;
7163+ }
7164+
71237165export interface S3Request {
71247166 s3_region : string ;
71257167
71267168 s3_api_key ?: string ;
71277169
7170+ s3_custom_endpoint_url ?: string ;
7171+
71287172 s3_secret ?: string ;
71297173}
71307174
@@ -8778,6 +8822,8 @@ export interface UpsertConfigRequest {
87788822
87798823 google_vision_config ?: GoogleVisionConfig ;
87808824
8825+ rule_builder_config ?: RuleBuilderConfig ;
8826+
87818827 user ?: UserRequest ;
87828828
87838829 velocity_filter_config ?: VelocityFilterConfig ;
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ export class ModerationApi extends BaseApi {
109109 block_list_config : request ?. block_list_config ,
110110 bodyguard_config : request ?. bodyguard_config ,
111111 google_vision_config : request ?. google_vision_config ,
112+ rule_builder_config : request ?. rule_builder_config ,
112113 user : request ?. user ,
113114 velocity_filter_config : request ?. velocity_filter_config ,
114115 } ;
You can’t perform that action at this time.
0 commit comments