UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

59 lines • 2.4 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; import * as AggregateAPI from "./aggregate.mjs"; import { Aggregate, BaseAggregate } from "./aggregate.mjs"; import * as TypesAPI from "./types.mjs"; import { BaseTypes, Types } from "./types.mjs"; import * as ByDatasetAPI from "./by-dataset/by-dataset.mjs"; import { BaseByDataset, ByDataset, } from "./by-dataset/by-dataset.mjs"; import { path } from "../../../../internal/utils/path.mjs"; export var BaseIndicators = /* @__PURE__ */ (() => { class BaseIndicators extends APIResource { /** * Retrieves indicators across specified datasets, ordered by createdAt descending * then UUID, dataset ID, and shard ID ascending. Use the standalone datasetIds * value 'all'/'\*' for legacy all-datasets behavior, 'analytics' for * isAnalytics=true datasets, or 'operational' for isAnalytics=false datasets. If * no datasetIds are provided, uses the default dataset. * * @example * ```ts * const indicators = * await client.cloudforceOne.threatEvents.indicators.list({ * account_id: 'account_id', * }); * ``` */ list(params, options) { const { account_id, ...query } = params; return this._client.get(path `/accounts/${account_id}/cloudforce-one/events/indicators`, { query, ...options, }); } } BaseIndicators._key = Object.freeze([ 'cloudforceOne', 'threatEvents', 'indicators', ]); return BaseIndicators; })(); export var Indicators = /* @__PURE__ */ (() => { class Indicators extends BaseIndicators { constructor() { super(...arguments); this.aggregate = new AggregateAPI.Aggregate(this._client); this.types = new TypesAPI.Types(this._client); this.byDataset = new ByDatasetAPI.ByDataset(this._client); } } Indicators.Aggregate = Aggregate; Indicators.BaseAggregate = BaseAggregate; Indicators.Types = Types; Indicators.BaseTypes = BaseTypes; Indicators.ByDataset = ByDataset; Indicators.BaseByDataset = BaseByDataset; return Indicators; })(); //# sourceMappingURL=indicators.mjs.map