Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5447,35 +5447,35 @@ Types:
- <code><a href="./src/resources/url-scanner/scans.ts">ScanCreateResponse</a></code>
- <code><a href="./src/resources/url-scanner/scans.ts">ScanListResponse</a></code>
- <code><a href="./src/resources/url-scanner/scans.ts">ScanGetResponse</a></code>
- <code><a href="./src/resources/url-scanner/scans.ts">ScanHarResponse</a></code>
- <code><a href="./src/resources/url-scanner/scans.ts">ScanHARResponse</a></code>

Methods:

- <code title="post /accounts/{accountId}/urlscanner/scan">client.urlScanner.scans.<a href="./src/resources/url-scanner/scans.ts">create</a>(accountId, { ...params }) -> ScanCreateResponse</code>
- <code title="get /accounts/{accountId}/urlscanner/scan">client.urlScanner.scans.<a href="./src/resources/url-scanner/scans.ts">list</a>(accountId, { ...params }) -> ScanListResponse</code>
- <code title="get /accounts/{accountId}/urlscanner/scan/{scanId}">client.urlScanner.scans.<a href="./src/resources/url-scanner/scans.ts">get</a>(accountId, scanId, { ...params }) -> ScanGetResponse</code>
- <code title="get /accounts/{accountId}/urlscanner/scan/{scanId}/har">client.urlScanner.scans.<a href="./src/resources/url-scanner/scans.ts">har</a>(accountId, scanId) -> ScanHarResponse</code>
- <code title="get /accounts/{accountId}/urlscanner/scan/{scanId}/har">client.urlScanner.scans.<a href="./src/resources/url-scanner/scans.ts">har</a>(accountId, scanId) -> ScanHARResponse</code>
- <code title="get /accounts/{accountId}/urlscanner/scan/{scanId}/screenshot">client.urlScanner.scans.<a href="./src/resources/url-scanner/scans.ts">screenshot</a>(accountId, scanId, { ...params }) -> Response</code>

## Dom
## DOM

Types:

- <code><a href="./src/resources/url-scanner/dom.ts">DomGetResponse</a></code>
- <code><a href="./src/resources/url-scanner/dom.ts">DOMGetResponse</a></code>

Methods:

- <code title="get /accounts/{accountId}/urlscanner/v2/dom/{scanId}">client.urlScanner.dom.<a href="./src/resources/url-scanner/dom.ts">get</a>(accountId, scanId) -> string</code>

## Har
## HAR

Types:

- <code><a href="./src/resources/url-scanner/har.ts">HarGetResponse</a></code>
- <code><a href="./src/resources/url-scanner/har.ts">HARGetResponse</a></code>

Methods:

- <code title="get /accounts/{accountId}/urlscanner/v2/har/{scanId}">client.urlScanner.har.<a href="./src/resources/url-scanner/har.ts">get</a>(accountId, scanId) -> HarGetResponse</code>
- <code title="get /accounts/{accountId}/urlscanner/v2/har/{scanId}">client.urlScanner.har.<a href="./src/resources/url-scanner/har.ts">get</a>(accountId, scanId) -> HARGetResponse</code>

## Result

Expand Down
10 changes: 5 additions & 5 deletions src/resources/url-scanner/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as DomAPI from './dom';
import * as DOMAPI from './dom';

export class Dom extends APIResource {
export class DOM extends APIResource {
/**
* Returns a plain text response, with the scan's DOM content as rendered by
* Chrome.
Expand All @@ -20,8 +20,8 @@ export class Dom extends APIResource {
/**
* HTML of webpage
*/
export type DomGetResponse = string;
export type DOMGetResponse = string;

export namespace Dom {
export import DomGetResponse = DomAPI.DomGetResponse;
export namespace DOM {
export import DOMGetResponse = DOMAPI.DOMGetResponse;
}
16 changes: 8 additions & 8 deletions src/resources/url-scanner/har.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as HarAPI from './har';
import * as HARAPI from './har';

export class Har extends APIResource {
export class HAR extends APIResource {
/**
* Get a URL scan's HAR file. See HAR spec at
* http://www.softwareishard.com/blog/har-12-spec/.
*/
get(accountId: string, scanId: string, options?: Core.RequestOptions): Core.APIPromise<HarGetResponse> {
get(accountId: string, scanId: string, options?: Core.RequestOptions): Core.APIPromise<HARGetResponse> {
return this._client.get(`/accounts/${accountId}/urlscanner/v2/har/${scanId}`, options);
}
}

export interface HarGetResponse {
log: HarGetResponse.Log;
export interface HARGetResponse {
log: HARGetResponse.Log;
}

export namespace HarGetResponse {
export namespace HARGetResponse {
export interface Log {
creator: Log.Creator;

Expand Down Expand Up @@ -148,6 +148,6 @@ export namespace HarGetResponse {
}
}

export namespace Har {
export import HarGetResponse = HarAPI.HarGetResponse;
export namespace HAR {
export import HARGetResponse = HARAPI.HARGetResponse;
}
6 changes: 3 additions & 3 deletions src/resources/url-scanner/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export { DomGetResponse, Dom } from './dom';
export { HarGetResponse, Har } from './har';
export { DOMGetResponse, DOM } from './dom';
export { HARGetResponse, HAR } from './har';
export { ResponseGetResponse, Responses } from './responses';
export { ResultGetResponse, Result } from './result';
export {
ScanCreateResponse,
ScanListResponse,
ScanGetResponse,
ScanHarResponse,
ScanHARResponse,
ScanCreateParams,
ScanListParams,
ScanGetParams,
Expand Down
18 changes: 9 additions & 9 deletions src/resources/url-scanner/scans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ export class Scans extends APIResource {
* Get a URL scan's HAR file. See HAR spec at
* http://www.softwareishard.com/blog/har-12-spec/.
*/
har(accountId: string, scanId: string, options?: Core.RequestOptions): Core.APIPromise<ScanHarResponse> {
har(accountId: string, scanId: string, options?: Core.RequestOptions): Core.APIPromise<ScanHARResponse> {
return (
this._client.get(`/accounts/${accountId}/urlscanner/scan/${scanId}/har`, options) as Core.APIPromise<{
result: ScanHarResponse;
result: ScanHARResponse;
}>
)._thenUnwrap((obj) => obj.result);
}
Expand Down Expand Up @@ -733,16 +733,16 @@ export namespace ScanGetResponse {
}
}

export interface ScanHarResponse {
har: ScanHarResponse.Har;
export interface ScanHARResponse {
har: ScanHARResponse.HAR;
}

export namespace ScanHarResponse {
export interface Har {
log: Har.Log;
export namespace ScanHARResponse {
export interface HAR {
log: HAR.Log;
}

export namespace Har {
export namespace HAR {
export interface Log {
creator: Log.Creator;

Expand Down Expand Up @@ -1007,7 +1007,7 @@ export namespace Scans {
export import ScanCreateResponse = ScansAPI.ScanCreateResponse;
export import ScanListResponse = ScansAPI.ScanListResponse;
export import ScanGetResponse = ScansAPI.ScanGetResponse;
export import ScanHarResponse = ScansAPI.ScanHarResponse;
export import ScanHARResponse = ScansAPI.ScanHARResponse;
export import ScanCreateParams = ScansAPI.ScanCreateParams;
export import ScanListParams = ScansAPI.ScanListParams;
export import ScanGetParams = ScansAPI.ScanGetParams;
Expand Down
18 changes: 9 additions & 9 deletions src/resources/url-scanner/url-scanner.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '../../resource';
import * as DomAPI from './dom';
import * as HarAPI from './har';
import * as DOMAPI from './dom';
import * as HARAPI from './har';
import * as ResponsesAPI from './responses';
import * as ResultAPI from './result';
import * as ScansAPI from './scans';
Expand All @@ -11,8 +11,8 @@ import * as ScreenshotAPI from './screenshot';
export class URLScanner extends APIResource {
responses: ResponsesAPI.Responses = new ResponsesAPI.Responses(this._client);
scans: ScansAPI.Scans = new ScansAPI.Scans(this._client);
dom: DomAPI.Dom = new DomAPI.Dom(this._client);
har: HarAPI.Har = new HarAPI.Har(this._client);
dom: DOMAPI.DOM = new DOMAPI.DOM(this._client);
har: HARAPI.HAR = new HARAPI.HAR(this._client);
result: ResultAPI.Result = new ResultAPI.Result(this._client);
screenshot: ScreenshotAPI.Screenshot = new ScreenshotAPI.Screenshot(this._client);
}
Expand Down Expand Up @@ -60,15 +60,15 @@ export namespace URLScanner {
export import ScanCreateResponse = ScansAPI.ScanCreateResponse;
export import ScanListResponse = ScansAPI.ScanListResponse;
export import ScanGetResponse = ScansAPI.ScanGetResponse;
export import ScanHarResponse = ScansAPI.ScanHarResponse;
export import ScanHARResponse = ScansAPI.ScanHARResponse;
export import ScanCreateParams = ScansAPI.ScanCreateParams;
export import ScanListParams = ScansAPI.ScanListParams;
export import ScanGetParams = ScansAPI.ScanGetParams;
export import ScanScreenshotParams = ScansAPI.ScanScreenshotParams;
export import Dom = DomAPI.Dom;
export import DomGetResponse = DomAPI.DomGetResponse;
export import Har = HarAPI.Har;
export import HarGetResponse = HarAPI.HarGetResponse;
export import DOM = DOMAPI.DOM;
export import DOMGetResponse = DOMAPI.DOMGetResponse;
export import HAR = HARAPI.HAR;
export import HARGetResponse = HARAPI.HARGetResponse;
export import Result = ResultAPI.Result;
export import ResultGetResponse = ResultAPI.ResultGetResponse;
export import Screenshot = ScreenshotAPI.Screenshot;
Expand Down