UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

31 lines 1.18 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.Logos = void 0; const resource_1 = require("../../resource.js"); class Logos extends resource_1.APIResource { /** * Return new saved logo queries created from image files */ create(params, options) { const { account_id, match_type, tag, threshold, ...body } = params; return this._client.post(`/accounts/${account_id}/brand-protection/logos`, { query: { match_type, tag, threshold }, body, ...options, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, }); } /** * Return a success message after deleting saved logo queries by ID */ delete(logoId, params, options) { const { account_id } = params; return this._client.delete(`/accounts/${account_id}/brand-protection/logos/${logoId}`, { ...options, headers: { Accept: '*/*', ...options?.headers }, }); } } exports.Logos = Logos; //# sourceMappingURL=logos.js.map