@@ -128,6 +128,18 @@ export interface paths {
128
128
*/
129
129
post : operations [ 'mark_rule_pack_as_outdated_resc_v1_rule_packs_mark_as_outdated_post' ] ;
130
130
} ;
131
+ '/resc/v1/rule-packs/{rule_pack_version}/rules' : {
132
+ /**
133
+ * Get unique rule from rule pack
134
+ * @description Retrieve the rule data from a rule_name and rule_pack
135
+ *
136
+ * - **db_connection**: Session of the database connection
137
+ * - **rule_pack_version**: filter on rule pack version
138
+ * - **rule_name**: filter on rule pack version
139
+ * - **return**: List[str] The output will contain a list of strings of unique rules in the findings table
140
+ */
141
+ get : operations [ 'get_rule_from_rule_pack_resc_v1_rule_packs__rule_pack_version__rules_get' ] ;
142
+ } ;
131
143
'/resc/v1/findings' : {
132
144
/**
133
145
* Get findings
@@ -1381,6 +1393,31 @@ export interface components {
1381
1393
/** Version */
1382
1394
version : string ;
1383
1395
} ;
1396
+ /** RuleRead */
1397
+ RuleRead : {
1398
+ /** Rule Name */
1399
+ rule_name : string ;
1400
+ /** Description */
1401
+ description ?: string ;
1402
+ /** Comment */
1403
+ comment ?: string ;
1404
+ /** Entropy */
1405
+ entropy ?: number ;
1406
+ /** Secret Group */
1407
+ secret_group ?: number ;
1408
+ /** Regex */
1409
+ regex ?: string ;
1410
+ /** Path */
1411
+ path ?: string ;
1412
+ /** Keywords */
1413
+ keywords ?: string ;
1414
+ /** Rule Pack */
1415
+ rule_pack : string ;
1416
+ /** Allow List */
1417
+ allow_list ?: number ;
1418
+ /** Id */
1419
+ id_ : number ;
1420
+ } ;
1384
1421
/** ScanCreate */
1385
1422
ScanCreate : {
1386
1423
/** @default BASE */
@@ -1923,6 +1960,53 @@ export interface operations {
1923
1960
} ;
1924
1961
} ;
1925
1962
} ;
1963
+ /**
1964
+ * Get unique rule from rule pack
1965
+ * @description Retrieve the rule data from a rule_name and rule_pack
1966
+ *
1967
+ * - **db_connection**: Session of the database connection
1968
+ * - **rule_pack_version**: filter on rule pack version
1969
+ * - **rule_name**: filter on rule pack version
1970
+ * - **return**: List[str] The output will contain a list of strings of unique rules in the findings table
1971
+ */
1972
+ get_rule_from_rule_pack_resc_v1_rule_packs__rule_pack_version__rules_get : {
1973
+ parameters : {
1974
+ query : {
1975
+ rule_name : string ;
1976
+ } ;
1977
+ path : {
1978
+ rule_pack_version : string ;
1979
+ } ;
1980
+ } ;
1981
+ responses : {
1982
+ /** @description Retrieve the rule data for a rule pack */
1983
+ 200 : {
1984
+ content : {
1985
+ 'application/json' : components [ 'schemas' ] [ 'RuleRead' ] ;
1986
+ } ;
1987
+ } ;
1988
+ /** @description Scan <scan_id> not found */
1989
+ 404 : {
1990
+ content : {
1991
+ 'application/json' : components [ 'schemas' ] [ 'Model404' ] ;
1992
+ } ;
1993
+ } ;
1994
+ /** @description RulePackVersion and RuleName required */
1995
+ 422 : {
1996
+ content : {
1997
+ 'application/json' : components [ 'schemas' ] [ 'Model422' ] ;
1998
+ } ;
1999
+ } ;
2000
+ /** @description Internal server error. Contact your system administrator */
2001
+ 500 : {
2002
+ content : never ;
2003
+ } ;
2004
+ /** @description Unable to communicate with DataBase, Please contact your system administrator */
2005
+ 503 : {
2006
+ content : never ;
2007
+ } ;
2008
+ } ;
2009
+ } ;
1926
2010
/**
1927
2011
* Get findings
1928
2012
* @description Retrieve all findings objects paginated
0 commit comments