UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

38 lines • 1.57 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseBulks = /* @__PURE__ */ (() => { class BaseBulks extends APIResource { /** * Returns security details and statistics about multiple domains in a single * request. * * **Behavior change — domain ranking is becoming opt-in.** This endpoint * previously included domain ranking data in every response and accepted a * `skip_ranking=true` query parameter to opt out. That parameter is being * deprecated and ranking will no longer be returned by default. Callers that want * ranking data must pass `include_ranking=true`. The `skip_ranking` parameter will * be silently ignored once the change ships. * * @example * ```ts * const bulks = await client.intel.domains.bulks.get({ * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * }); * ``` */ get(params, options) { const { account_id, ...query } = params; return this._client.get(path `/accounts/${account_id}/intel/domain/bulk`, { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseBulks._key = Object.freeze([ 'intel', 'domains', 'bulks', ]); return BaseBulks; })(); export class Bulks extends BaseBulks { } //# sourceMappingURL=bulks.mjs.map