UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

72 lines • 3 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; import * as BotClassAPI from "./bot-class.mjs"; import { BaseBotClass, BotClass } from "./bot-class.mjs"; import * as BrowserFamilyAPI from "./browser-family.mjs"; import { BaseBrowserFamily, BrowserFamily, } from "./browser-family.mjs"; import * as DeviceTypeAPI from "./device-type.mjs"; import { BaseDeviceType, DeviceType } from "./device-type.mjs"; import * as HTTPMethodAPI from "./http-method.mjs"; import { BaseHTTPMethod, HTTPMethod } from "./http-method.mjs"; import * as HTTPProtocolAPI from "./http-protocol.mjs"; import { BaseHTTPProtocol, HTTPProtocol, } from "./http-protocol.mjs"; import * as IPVersionAPI from "./ip-version.mjs"; import { BaseIPVersion, IPVersion } from "./ip-version.mjs"; import * as OSAPI from "./os.mjs"; import { BaseOS, OS } from "./os.mjs"; import * as TLSVersionAPI from "./tls-version.mjs"; import { BaseTLSVersion, TLSVersion } from "./tls-version.mjs"; export var BaseAses = /* @__PURE__ */ (() => { class BaseAses extends APIResource { /** * Retrieves the top autonomous systems by HTTP requests. * * @example * ```ts * const ase = await client.radar.http.ases.get(); * ``` */ get(query = {}, options) { return this._client.get('/radar/http/top/ases', { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseAses._key = Object.freeze([ 'radar', 'http', 'ases', ]); return BaseAses; })(); export var Ases = /* @__PURE__ */ (() => { class Ases extends BaseAses { constructor() { super(...arguments); this.botClass = new BotClassAPI.BotClass(this._client); this.deviceType = new DeviceTypeAPI.DeviceType(this._client); this.httpProtocol = new HTTPProtocolAPI.HTTPProtocol(this._client); this.httpMethod = new HTTPMethodAPI.HTTPMethod(this._client); this.ipVersion = new IPVersionAPI.IPVersion(this._client); this.os = new OSAPI.OS(this._client); this.tlsVersion = new TLSVersionAPI.TLSVersion(this._client); this.browserFamily = new BrowserFamilyAPI.BrowserFamily(this._client); } } Ases.BotClass = BotClass; Ases.BaseBotClass = BaseBotClass; Ases.DeviceType = DeviceType; Ases.BaseDeviceType = BaseDeviceType; Ases.HTTPProtocol = HTTPProtocol; Ases.BaseHTTPProtocol = BaseHTTPProtocol; Ases.HTTPMethod = HTTPMethod; Ases.BaseHTTPMethod = BaseHTTPMethod; Ases.IPVersion = IPVersion; Ases.BaseIPVersion = BaseIPVersion; Ases.OS = OS; Ases.BaseOS = BaseOS; Ases.TLSVersion = TLSVersion; Ases.BaseTLSVersion = BaseTLSVersion; Ases.BrowserFamily = BrowserFamily; Ases.BaseBrowserFamily = BaseBrowserFamily; return Ases; })(); //# sourceMappingURL=ases.mjs.map