// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as ScansAPI from 'cloudflare/resources/url-scanner/scans';
export class URLScanner extends APIResource {
    constructor() {
        super(...arguments);
        this.scans = new ScansAPI.Scans(this._client);
    }
    scan(accountId, query = {}, options) {
        if (isRequestOptions(query)) {
            return this.scan(accountId, {}, query);
        }
        return this._client.get(`/accounts/${accountId}/urlscanner/scan`, { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (URLScanner) {
    URLScanner.Scans = ScansAPI.Scans;
})(URLScanner || (URLScanner = {}));
//# sourceMappingURL=url-scanner.mjs.map