UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

46 lines • 1.76 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 BaseLogos = /* @__PURE__ */ (() => { class BaseLogos extends APIResource { /** * Create a new saved brand protection logo query for visual similarity matching */ create(params, options) { const { account_id, ...body } = params; return this._client.post(path `/accounts/${account_id}/cloudforce-one/v2/brand-protection/logo/queries`, { body, ...options, }); } /** * Delete a saved brand protection logo query. Returns 404 if the query ID doesn't * exist. */ delete(queryID, params, options) { const { account_id } = params; return this._client.delete(path `/accounts/${account_id}/cloudforce-one/v2/brand-protection/logo/queries/${queryID}`, options); } /** * Get all saved brand protection logo queries for an account. Optionally specify * id to get a single query. Set download=true to include base64-encoded image * data. */ get(params, options) { const { account_id, ...query } = params; return this._client.get(path `/accounts/${account_id}/cloudforce-one/v2/brand-protection/logo/queries`, { query, ...options, }); } } BaseLogos._key = Object.freeze([ 'brandProtection', 'v2', 'logos', ]); return BaseLogos; })(); export class Logos extends BaseLogos { } //# sourceMappingURL=logos.mjs.map