cloudflare
Version:
The official TypeScript library for the Cloudflare API
78 lines • 3.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ases = exports.BaseAses = void 0;
const tslib_1 = require("../../../../internal/tslib.js");
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../../core/resource.js");
const BotClassAPI = tslib_1.__importStar(require("./bot-class.js"));
const bot_class_1 = require("./bot-class.js");
const BrowserFamilyAPI = tslib_1.__importStar(require("./browser-family.js"));
const browser_family_1 = require("./browser-family.js");
const DeviceTypeAPI = tslib_1.__importStar(require("./device-type.js"));
const device_type_1 = require("./device-type.js");
const HTTPMethodAPI = tslib_1.__importStar(require("./http-method.js"));
const http_method_1 = require("./http-method.js");
const HTTPProtocolAPI = tslib_1.__importStar(require("./http-protocol.js"));
const http_protocol_1 = require("./http-protocol.js");
const IPVersionAPI = tslib_1.__importStar(require("./ip-version.js"));
const ip_version_1 = require("./ip-version.js");
const OSAPI = tslib_1.__importStar(require("./os.js"));
const os_1 = require("./os.js");
const TLSVersionAPI = tslib_1.__importStar(require("./tls-version.js"));
const tls_version_1 = require("./tls-version.js");
var BaseAses = /* @__PURE__ */ (() => {
class BaseAses extends resource_1.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;
})();
exports.BaseAses = BaseAses;
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 = bot_class_1.BotClass;
Ases.BaseBotClass = bot_class_1.BaseBotClass;
Ases.DeviceType = device_type_1.DeviceType;
Ases.BaseDeviceType = device_type_1.BaseDeviceType;
Ases.HTTPProtocol = http_protocol_1.HTTPProtocol;
Ases.BaseHTTPProtocol = http_protocol_1.BaseHTTPProtocol;
Ases.HTTPMethod = http_method_1.HTTPMethod;
Ases.BaseHTTPMethod = http_method_1.BaseHTTPMethod;
Ases.IPVersion = ip_version_1.IPVersion;
Ases.BaseIPVersion = ip_version_1.BaseIPVersion;
Ases.OS = os_1.OS;
Ases.BaseOS = os_1.BaseOS;
Ases.TLSVersion = tls_version_1.TLSVersion;
Ases.BaseTLSVersion = tls_version_1.BaseTLSVersion;
Ases.BrowserFamily = browser_family_1.BrowserFamily;
Ases.BaseBrowserFamily = browser_family_1.BaseBrowserFamily;
return Ases;
})();
exports.Ases = Ases;
//# sourceMappingURL=ases.js.map