cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.35 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Matches = exports.BaseMatches = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../core/resource.js");
const path_1 = require("../../../internal/utils/path.js");
var BaseMatches = /* @__PURE__ */ (() => {
class BaseMatches extends resource_1.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((0, path_1.path) `/accounts/${account_id}/cloudforce-one/v2/brand-protection/domain/matches`, {
query,
...options,
});
}
}
BaseMatches._key = Object.freeze([
'brandProtection',
'v2',
'matches',
]);
return BaseMatches;
})();
exports.BaseMatches = BaseMatches;
class Matches extends BaseMatches {
}
exports.Matches = Matches;
//# sourceMappingURL=matches.js.map