cloudflare
Version:
The official TypeScript library for the Cloudflare API
35 lines • 1.22 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
import { path } from "../../../internal/utils/path.mjs";
export var BaseIndicators = /* @__PURE__ */ (() => {
class BaseIndicators extends APIResource {
/**
* Lists indicators of compromise extracted from the account's Threat Signals
* articles.
*
* @example
* ```ts
* const indicators =
* await client.cloudforceOne.threatSignals.indicators.list({
* account_id: 'account_id',
* });
* ```
*/
list(params, options) {
const { account_id, ...query } = params;
return this._client.get(path `/accounts/${account_id}/cloudforce-one/v2/threat-signals/indicators`, {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
BaseIndicators._key = Object.freeze([
'cloudforceOne',
'threatSignals',
'indicators',
]);
return BaseIndicators;
})();
export class Indicators extends BaseIndicators {
}
//# sourceMappingURL=indicators.mjs.map