UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

27 lines 1.06 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../resource.mjs"; export class Logos extends 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 }, }); } } //# sourceMappingURL=logos.mjs.map