From d086bcbe8fb6414417148073dd8f3083947fbc08 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 30 Sep 2024 05:06:09 +0000 Subject: [PATCH] feat(api): add dom and har initialisms --- api.md | 14 +++++++------- src/resources/url-scanner/dom.ts | 10 +++++----- src/resources/url-scanner/har.ts | 16 ++++++++-------- src/resources/url-scanner/index.ts | 6 +++--- src/resources/url-scanner/scans.ts | 18 +++++++++--------- src/resources/url-scanner/url-scanner.ts | 18 +++++++++--------- 6 files changed, 41 insertions(+), 41 deletions(-) diff --git a/api.md b/api.md index 5c3b2997a9..7a170c4a4f 100644 --- a/api.md +++ b/api.md @@ -5447,35 +5447,35 @@ Types: - ScanCreateResponse - ScanListResponse - ScanGetResponse -- ScanHarResponse +- ScanHARResponse Methods: - client.urlScanner.scans.create(accountId, { ...params }) -> ScanCreateResponse - client.urlScanner.scans.list(accountId, { ...params }) -> ScanListResponse - client.urlScanner.scans.get(accountId, scanId, { ...params }) -> ScanGetResponse -- client.urlScanner.scans.har(accountId, scanId) -> ScanHarResponse +- client.urlScanner.scans.har(accountId, scanId) -> ScanHARResponse - client.urlScanner.scans.screenshot(accountId, scanId, { ...params }) -> Response -## Dom +## DOM Types: -- DomGetResponse +- DOMGetResponse Methods: - client.urlScanner.dom.get(accountId, scanId) -> string -## Har +## HAR Types: -- HarGetResponse +- HARGetResponse Methods: -- client.urlScanner.har.get(accountId, scanId) -> HarGetResponse +- client.urlScanner.har.get(accountId, scanId) -> HARGetResponse ## Result diff --git a/src/resources/url-scanner/dom.ts b/src/resources/url-scanner/dom.ts index 0143cc837d..f97aaade53 100644 --- a/src/resources/url-scanner/dom.ts +++ b/src/resources/url-scanner/dom.ts @@ -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. @@ -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; } diff --git a/src/resources/url-scanner/har.ts b/src/resources/url-scanner/har.ts index d8cec85927..351508273a 100644 --- a/src/resources/url-scanner/har.ts +++ b/src/resources/url-scanner/har.ts @@ -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 { + get(accountId: string, scanId: string, options?: Core.RequestOptions): Core.APIPromise { 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; @@ -148,6 +148,6 @@ export namespace HarGetResponse { } } -export namespace Har { - export import HarGetResponse = HarAPI.HarGetResponse; +export namespace HAR { + export import HARGetResponse = HARAPI.HARGetResponse; } diff --git a/src/resources/url-scanner/index.ts b/src/resources/url-scanner/index.ts index 43fe14f718..836fe95ff0 100644 --- a/src/resources/url-scanner/index.ts +++ b/src/resources/url-scanner/index.ts @@ -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, diff --git a/src/resources/url-scanner/scans.ts b/src/resources/url-scanner/scans.ts index 64675b2a28..54c4e9134d 100644 --- a/src/resources/url-scanner/scans.ts +++ b/src/resources/url-scanner/scans.ts @@ -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 { + har(accountId: string, scanId: string, options?: Core.RequestOptions): Core.APIPromise { return ( this._client.get(`/accounts/${accountId}/urlscanner/scan/${scanId}/har`, options) as Core.APIPromise<{ - result: ScanHarResponse; + result: ScanHARResponse; }> )._thenUnwrap((obj) => obj.result); } @@ -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; @@ -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; diff --git a/src/resources/url-scanner/url-scanner.ts b/src/resources/url-scanner/url-scanner.ts index 56202a470b..5fb8d2fcbf 100644 --- a/src/resources/url-scanner/url-scanner.ts +++ b/src/resources/url-scanner/url-scanner.ts @@ -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'; @@ -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); } @@ -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;