cloudflare
Version:
The official TypeScript library for the Cloudflare API
40 lines • 1.74 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Miscategorizations = exports.BaseMiscategorizations = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../core/resource.js");
const path_1 = require("../../internal/utils/path.js");
var BaseMiscategorizations = /* @__PURE__ */ (() => {
class BaseMiscategorizations extends resource_1.APIResource {
/**
* Allows you to submit requests to change a domain’s category.
*
* Requests that include category `169` (New Domains) or category `177` (Newly
* Seen) in any of `content_adds`, `content_removes`, `security_adds`, or
* `security_removes` will be rejected with a `400 Bad Request`. These categories
* are automatically managed and fall off 30 days after they are applied.
*
* @example
* ```ts
* const miscategorization =
* await client.intel.miscategorizations.create({
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
create(params, options) {
const { account_id, ...body } = params;
return this._client.post((0, path_1.path) `/accounts/${account_id}/intel/miscategorization`, { body, ...options });
}
}
BaseMiscategorizations._key = Object.freeze([
'intel',
'miscategorizations',
]);
return BaseMiscategorizations;
})();
exports.BaseMiscategorizations = BaseMiscategorizations;
class Miscategorizations extends BaseMiscategorizations {
}
exports.Miscategorizations = Miscategorizations;
//# sourceMappingURL=miscategorizations.js.map