@stream-io/node-sdk 0.4.23 → 0.4.24
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.
|
@@ -4075,9 +4075,35 @@ export interface Role {
|
|
|
4075
4075
|
updated_at: Date;
|
|
4076
4076
|
scopes: string[];
|
|
4077
4077
|
}
|
|
4078
|
+
export interface RuleBuilderAction {
|
|
4079
|
+
duration?: number;
|
|
4080
|
+
ip_ban?: boolean;
|
|
4081
|
+
reason?: string;
|
|
4082
|
+
shadow_ban?: boolean;
|
|
4083
|
+
type?: string;
|
|
4084
|
+
}
|
|
4085
|
+
export interface RuleBuilderCondition {
|
|
4086
|
+
provider?: string;
|
|
4087
|
+
threshold?: number;
|
|
4088
|
+
time_window?: string;
|
|
4089
|
+
labels?: string[];
|
|
4090
|
+
}
|
|
4091
|
+
export interface RuleBuilderConfig {
|
|
4092
|
+
async?: boolean;
|
|
4093
|
+
enabled?: boolean;
|
|
4094
|
+
rules?: RuleBuilderRule[];
|
|
4095
|
+
}
|
|
4096
|
+
export interface RuleBuilderRule {
|
|
4097
|
+
enabled?: boolean;
|
|
4098
|
+
id?: string;
|
|
4099
|
+
name?: string;
|
|
4100
|
+
conditions?: RuleBuilderCondition[];
|
|
4101
|
+
action?: RuleBuilderAction;
|
|
4102
|
+
}
|
|
4078
4103
|
export interface S3Request {
|
|
4079
4104
|
s3_region: string;
|
|
4080
4105
|
s3_api_key?: string;
|
|
4106
|
+
s3_custom_endpoint_url?: string;
|
|
4081
4107
|
s3_secret?: string;
|
|
4082
4108
|
}
|
|
4083
4109
|
export interface SDKUsageReport {
|
|
@@ -4918,6 +4944,7 @@ export interface UpsertConfigRequest {
|
|
|
4918
4944
|
block_list_config?: BlockListConfig;
|
|
4919
4945
|
bodyguard_config?: AITextConfig;
|
|
4920
4946
|
google_vision_config?: GoogleVisionConfig;
|
|
4947
|
+
rule_builder_config?: RuleBuilderConfig;
|
|
4921
4948
|
user?: UserRequest;
|
|
4922
4949
|
velocity_filter_config?: VelocityFilterConfig;
|
|
4923
4950
|
}
|
package/package.json
CHANGED
package/src/gen/models/index.ts
CHANGED
|
@@ -7120,11 +7120,55 @@ export interface Role {
|
|
|
7120
7120
|
scopes: string[];
|
|
7121
7121
|
}
|
|
7122
7122
|
|
|
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
|
+
|
|
7123
7165
|
export interface S3Request {
|
|
7124
7166
|
s3_region: string;
|
|
7125
7167
|
|
|
7126
7168
|
s3_api_key?: string;
|
|
7127
7169
|
|
|
7170
|
+
s3_custom_endpoint_url?: string;
|
|
7171
|
+
|
|
7128
7172
|
s3_secret?: string;
|
|
7129
7173
|
}
|
|
7130
7174
|
|
|
@@ -8778,6 +8822,8 @@ export interface UpsertConfigRequest {
|
|
|
8778
8822
|
|
|
8779
8823
|
google_vision_config?: GoogleVisionConfig;
|
|
8780
8824
|
|
|
8825
|
+
rule_builder_config?: RuleBuilderConfig;
|
|
8826
|
+
|
|
8781
8827
|
user?: UserRequest;
|
|
8782
8828
|
|
|
8783
8829
|
velocity_filter_config?: VelocityFilterConfig;
|
|
@@ -109,6 +109,7 @@ export class ModerationApi extends BaseApi {
|
|
|
109
109
|
block_list_config: request?.block_list_config,
|
|
110
110
|
bodyguard_config: request?.bodyguard_config,
|
|
111
111
|
google_vision_config: request?.google_vision_config,
|
|
112
|
+
rule_builder_config: request?.rule_builder_config,
|
|
112
113
|
user: request?.user,
|
|
113
114
|
velocity_filter_config: request?.velocity_filter_config,
|
|
114
115
|
};
|