cloudflare
Version:
The official TypeScript library for the Cloudflare API
24 lines • 905 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../resource.mjs";
import { isRequestOptions } from "../../../core.mjs";
export class Summary extends APIResource {
botClass(query = {}, options) {
if (isRequestOptions(query)) {
return this.botClass({}, query);
}
return this._client.get('/radar/leaked_credential_checks/summary/bot_class', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
compromised(query = {}, options) {
if (isRequestOptions(query)) {
return this.compromised({}, query);
}
return this._client.get('/radar/leaked_credential_checks/summary/compromised', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
//# sourceMappingURL=summary.mjs.map