diff --git a/src/resources/url-scanner/url-scanner.ts b/src/resources/url-scanner/url-scanner.ts index 6172b6597c..9c5747aeff 100644 --- a/src/resources/url-scanner/url-scanner.ts +++ b/src/resources/url-scanner/url-scanner.ts @@ -83,6 +83,12 @@ export interface URLScannerScanParams { */ account_scans?: boolean; + /** + * Filter scans by Autonomous System Number (ASN) of _any_ request made by the + * webpage. + */ + asn?: string; + /** * Filter scans requested before date (inclusive). */ @@ -103,6 +109,11 @@ export interface URLScannerScanParams { */ ip?: string; + /** + * Filter scans by malicious verdict. + */ + is_malicious?: boolean; + /** * Limit the number of objects in the response. */ @@ -113,6 +124,11 @@ export interface URLScannerScanParams { */ next_cursor?: string; + /** + * Filter scans by main page Autonomous System Number (ASN). + */ + page_asn?: string; + /** * Filter scans by main page hostname . */ diff --git a/tests/api-resources/url-scanner/url-scanner.test.ts b/tests/api-resources/url-scanner/url-scanner.test.ts index 4cfa611e52..81a51eb3f9 100644 --- a/tests/api-resources/url-scanner/url-scanner.test.ts +++ b/tests/api-resources/url-scanner/url-scanner.test.ts @@ -38,12 +38,15 @@ describe('resource urlScanner', () => { 'string', { account_scans: true, + asn: '13335', date_end: '2019-12-27T18:11:19.117Z', date_start: '2019-12-27T18:11:19.117Z', hostname: 'example.com', ip: '1.1.1.1', + is_malicious: true, limit: 100, next_cursor: 'string', + page_asn: 'string', page_hostname: 'string', page_ip: 'string', page_path: 'string',