@@ -27,14 +27,14 @@ export class AppAdmin {
2727export class Application {
2828 id : number ;
2929 name : string ;
30- internal_scheme : string ;
31- redirect_https : boolean ;
30+ internal_scheme : string ;
31+ redirect_https : boolean ;
3232 hsts_enabled : boolean ;
3333 waf_enabled : boolean ;
34- shield_enabled : boolean ;
35- destinations : Destination [ ] ;
36- domains : Domain [ ] ;
37- ip_method : IPMethod ;
34+ shield_enabled : boolean ;
35+ destinations : Destination [ ] ;
36+ domains : Domain [ ] ;
37+ ip_method : IPMethod ;
3838 description : string ;
3939 oauth_required : boolean ;
4040 session_seconds : number ;
@@ -63,25 +63,25 @@ export class VipTarget {
6363}
6464
6565export enum IPMethod {
66- REMOTE_ADDR = 1 ,
67- X_Forwarded_For = 1 << 1 ,
68- X_REAL_IP = 1 << 2 ,
69- REAL_IP = 1 << 3
66+ REMOTE_ADDR = 1 ,
67+ X_Forwarded_For = 1 << 1 ,
68+ X_REAL_IP = 1 << 2 ,
69+ REAL_IP = 1 << 3
7070}
7171
7272export class Certificate {
7373 id : number ;
7474 common_name : string ;
7575 cert_content : string ;
7676 priv_key_content : string ;
77- expire_time : number ;
77+ expire_time : number ;
7878 description : string ;
7979 due_to_expire : boolean ;
8080}
8181
8282export enum RouteType {
83- Reverse_Proxy = 1 ,
84- Local_FastCGI = 1 << 1 ,
83+ Reverse_Proxy = 1 ,
84+ Local_FastCGI = 1 << 1 ,
8585 Static_Website = 1 << 2
8686}
8787
@@ -126,40 +126,40 @@ export class CCPolicy {
126126 stat_by_url : boolean ;
127127 stat_by_ua : boolean ;
128128 stat_by_cookie : boolean ;
129- is_enabled : boolean ;
129+ is_enabled : boolean ;
130130}
131131
132132export enum ChkPoint {
133- Host = 1 ,
134- IPAddress = 1 << 1 ,
135- Method = 1 << 2 ,
136- URLPath = 1 << 3 ,
137- URLQuery = 1 << 4 ,
138- FileExt = 1 << 5 ,
139- // ValueLength = 1 << 6,
140- GetPostKey = 1 << 7 ,
141- GetPostValue = 1 << 8 ,
142- UploadFileExt = 1 << 9 ,
143- Referer = 1 << 10 ,
144- CookieKey = 1 << 11 ,
145- CookieValue = 1 << 12 ,
146- UserAgent = 1 << 13 ,
147- ContentType = 1 << 14 ,
148- HeaderKey = 1 << 15 ,
149- HeaderValue = 1 << 16 ,
150- Proto = 1 << 17 ,
151- ResponseStatusCode = 1 << 25 ,
152- ResponseHeaderKey = 1 << 26 ,
153- ResponseHeaderValue = 1 << 27 ,
154- //ResponseBodyLength = 1 << 28,
155- ResponseBody = 1 << 29
133+ Host = 1 ,
134+ IPAddress = 1 << 1 ,
135+ Method = 1 << 2 ,
136+ URLPath = 1 << 3 ,
137+ URLQuery = 1 << 4 ,
138+ FileExt = 1 << 5 ,
139+ // ValueLength = 1 << 6,
140+ GetPostKey = 1 << 7 ,
141+ GetPostValue = 1 << 8 ,
142+ UploadFileExt = 1 << 9 ,
143+ Referer = 1 << 10 ,
144+ CookieKey = 1 << 11 ,
145+ CookieValue = 1 << 12 ,
146+ UserAgent = 1 << 13 ,
147+ ContentType = 1 << 14 ,
148+ HeaderKey = 1 << 15 ,
149+ HeaderValue = 1 << 16 ,
150+ Proto = 1 << 17 ,
151+ ResponseStatusCode = 1 << 25 ,
152+ ResponseHeaderKey = 1 << 26 ,
153+ ResponseHeaderValue = 1 << 27 ,
154+ //ResponseBodyLength = 1 << 28,
155+ ResponseBody = 1 << 29
156156}
157157
158158export enum PolicyAction {
159- BLOCK = 100 ,
160- BYPASS_AND_LOG = 200 ,
159+ BLOCK = 100 ,
160+ BYPASS_AND_LOG = 200 ,
161161 CAPTCHA = 300 ,
162- OK_PASS = 400
162+ OK_PASS = 400
163163}
164164
165165export class VulnType {
@@ -175,24 +175,25 @@ export class GroupPolicy {
175175 check_items : CheckItem [ ] ;
176176 hit_value : number ;
177177 action : PolicyAction ;
178- is_enabled : boolean ;
179-
178+ is_enabled : boolean ;
179+ // extends
180+ unique_hash : string ;
180181}
181182
182183export enum Operation {
183- Regex_Match = 1 ,
184- Equals_String_Case_Insensitive = 1 << 1 ,
185- Greater_Than_Integer = 1 << 2 ,
186- Equals_Integer = 1 << 3 ,
187- Length_Greater_Than_Integer = 1 << 4 ,
188- Regex_Not_Match = 1 << 5
184+ Regex_Match = 1 ,
185+ Equals_String_Case_Insensitive = 1 << 1 ,
186+ Greater_Than_Integer = 1 << 2 ,
187+ Equals_Integer = 1 << 3 ,
188+ Length_Greater_Than_Integer = 1 << 4 ,
189+ Regex_Not_Match = 1 << 5
189190}
190191
191192export class CheckItem {
192193 id : number ;
193194 check_point : ChkPoint ;
194195 operation : Operation ;
195- key_name : string ;
196+ key_name : string ;
196197 regex_policy : string ;
197198 group_policy_id : number ;
198199}
@@ -287,26 +288,26 @@ export class CCLogsCount {
287288}
288289
289290export class LastRegexLogs {
290- app_id : number ;
291+ app_id : number ;
291292 start_date : Date ;
292293 end_date : Date ;
293294 page_index : number ;
294295 length : number ;
295- regex_logs : SimpleRegexHitLog [ ] = [ ] ;
296+ regex_logs : SimpleRegexHitLog [ ] = [ ] ;
296297}
297298
298299export class LastCCLogs {
299- app_id : number ;
300+ app_id : number ;
300301 start_date : Date ;
301302 end_date : Date ;
302303 page_index : number ;
303304 length : number ;
304- cc_logs : SimpleCCLog [ ] = [ ] ;
305+ cc_logs : SimpleCCLog [ ] = [ ] ;
305306}
306307
307308export class VulnStat {
308- vuln_id : number ;
309- count : number ;
309+ vuln_id : number ;
310+ count : number ;
310311}
311312
312313export class Server {
@@ -315,12 +316,12 @@ export class Server {
315316 username : string ;
316317 password : string ;
317318
318- constructor ( ip :string , port :string , username :string , password :string ) {
319+ constructor ( ip : string , port : string , username : string , password : string ) {
319320 this . ip = ip ;
320321 this . port = port ;
321- this . username = username ;
322+ this . username = username ;
322323 this . password = password ;
323- }
324+ }
324325}
325326
326327export class OAuthInfo {
@@ -332,14 +333,14 @@ export class OAuthInfo {
332333
333334export class RefererHost {
334335 host : string ;
335- PV : number ;
336- UV : number ;
336+ PV : number ;
337+ UV : number ;
337338}
338339
339340export class RefererURL {
340- url : string ;
341- PV : number ;
342- UV : number ;
341+ url : string ;
342+ PV : number ;
343+ UV : number ;
343344}
344345
345346export class PopContent {
0 commit comments