Skip to content

Commit 12c441f

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: OpenAPI spec update via Stainless API (#142)
1 parent 04e0a53 commit 12c441f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/resources/url-scanner/url-scanner.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ export interface URLScannerScanParams {
8383
*/
8484
account_scans?: boolean;
8585

86+
/**
87+
* Filter scans by Autonomous System Number (ASN) of _any_ request made by the
88+
* webpage.
89+
*/
90+
asn?: string;
91+
8692
/**
8793
* Filter scans requested before date (inclusive).
8894
*/
@@ -103,6 +109,11 @@ export interface URLScannerScanParams {
103109
*/
104110
ip?: string;
105111

112+
/**
113+
* Filter scans by malicious verdict.
114+
*/
115+
is_malicious?: boolean;
116+
106117
/**
107118
* Limit the number of objects in the response.
108119
*/
@@ -113,6 +124,11 @@ export interface URLScannerScanParams {
113124
*/
114125
next_cursor?: string;
115126

127+
/**
128+
* Filter scans by main page Autonomous System Number (ASN).
129+
*/
130+
page_asn?: string;
131+
116132
/**
117133
* Filter scans by main page hostname .
118134
*/

tests/api-resources/url-scanner/url-scanner.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ describe('resource urlScanner', () => {
3838
'string',
3939
{
4040
account_scans: true,
41+
asn: '13335',
4142
date_end: '2019-12-27T18:11:19.117Z',
4243
date_start: '2019-12-27T18:11:19.117Z',
4344
hostname: 'example.com',
4445
ip: '1.1.1.1',
46+
is_malicious: true,
4547
limit: 100,
4648
next_cursor: 'string',
49+
page_asn: 'string',
4750
page_hostname: 'string',
4851
page_ip: 'string',
4952
page_path: 'string',

0 commit comments

Comments
 (0)