// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
export class Summary extends APIResource {
    arc(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.arc({}, query);
        }
        return this._client.get('/radar/email/security/summary/arc', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    dkim(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.dkim({}, query);
        }
        return this._client.get('/radar/email/security/summary/dkim', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    dmarc(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.dmarc({}, query);
        }
        return this._client.get('/radar/email/security/summary/dmarc', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    malicious(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.malicious({}, query);
        }
        return this._client.get('/radar/email/security/summary/malicious', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    spam(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.spam({}, query);
        }
        return this._client.get('/radar/email/security/summary/spam', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    spf(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.spf({}, query);
        }
        return this._client.get('/radar/email/security/summary/spf', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    spoof(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.spoof({}, query);
        }
        return this._client.get('/radar/email/security/summary/spoof', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
    threatCategory(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.threatCategory({}, query);
        }
        return this._client.get('/radar/email/security/summary/threat_category', {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    tlsVersion(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.tlsVersion({}, query);
        }
        return this._client.get('/radar/email/security/summary/tls_version', {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
(function (Summary) {
})(Summary || (Summary = {}));
//# sourceMappingURL=summary.mjs.map