UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

32 lines • 1.15 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 BaseMatches = /* @__PURE__ */ (() => { class BaseMatches extends APIResource { /** * Return matches as CSV for string queries based on ID */ download(params, options) { const { account_id, ...query } = params; return this._client.get(path `/accounts/${account_id}/brand-protection/matches/download`, { query, ...options, }); } /** * Return matches for string queries based on ID */ get(params, options) { const { account_id, ...query } = params; return this._client.get(path `/accounts/${account_id}/brand-protection/matches`, { query, ...options }); } } BaseMatches._key = Object.freeze([ 'brandProtection', 'matches', ]); return BaseMatches; })(); export class Matches extends BaseMatches { } //# sourceMappingURL=matches.mjs.map