cloudflare
Version:
The official TypeScript library for the Cloudflare API
29 lines • 1.15 kB
JavaScript
// 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 {
/**
* Get paginated list of domain matches for one or more brand protection queries.
* When multiple query_ids are provided (comma-separated), matches are deduplicated
* across queries and each match includes a match_details array with per-match
* query metadata and individual dismissed state.
*/
get(params, options) {
const { account_id, ...query } = params;
return this._client.get(path `/accounts/${account_id}/cloudforce-one/v2/brand-protection/domain/matches`, {
query,
...options,
});
}
}
BaseMatches._key = Object.freeze([
'brandProtection',
'v2',
'matches',
]);
return BaseMatches;
})();
export class Matches extends BaseMatches {
}
//# sourceMappingURL=matches.mjs.map