Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 12, 2024
1 parent 04e0a53 commit 12c441f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/resources/url-scanner/url-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/
Expand All @@ -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.
*/
Expand All @@ -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 .
*/
Expand Down
3 changes: 3 additions & 0 deletions tests/api-resources/url-scanner/url-scanner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 12c441f

Please sign in to comment.