Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 18, 2024
1 parent 97583f0 commit d10cd88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions url_scanner/urlscanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ type URLScannerScanParams struct {
DateEnd param.Field[time.Time] `query:"date_end" format:"date-time"`
// Filter scans requested after date (inclusive).
DateStart param.Field[time.Time] `query:"date_start" format:"date-time"`
// Filter scans by hash of any html/js/css request made by the webpage.
Hash param.Field[string] `query:"hash"`
// Filter scans by hostname of _any_ request made by the webpage.
Hostname param.Field[string] `query:"hostname"`
// Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
Expand Down
1 change: 1 addition & 0 deletions url_scanner/urlscanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func TestURLScannerScanWithOptionalParams(t *testing.T) {
ASN: cloudflare.F("13335"),
DateEnd: cloudflare.F(time.Now()),
DateStart: cloudflare.F(time.Now()),
Hash: cloudflare.F("string"),
Hostname: cloudflare.F("example.com"),
IP: cloudflare.F("1.1.1.1"),
IsMalicious: cloudflare.F(true),
Expand Down

0 comments on commit d10cd88

Please sign in to comment.