cloudflare
Version:
The official TypeScript library for the Cloudflare API
65 lines • 2.76 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Indicators = exports.BaseIndicators = void 0;
const tslib_1 = require("../../../../internal/tslib.js");
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../../core/resource.js");
const AggregateAPI = tslib_1.__importStar(require("./aggregate.js"));
const aggregate_1 = require("./aggregate.js");
const TypesAPI = tslib_1.__importStar(require("./types.js"));
const types_1 = require("./types.js");
const ByDatasetAPI = tslib_1.__importStar(require("./by-dataset/by-dataset.js"));
const by_dataset_1 = require("./by-dataset/by-dataset.js");
const path_1 = require("../../../../internal/utils/path.js");
var BaseIndicators = /* @__PURE__ */ (() => {
class BaseIndicators extends resource_1.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((0, path_1.path) `/accounts/${account_id}/cloudforce-one/events/indicators`, {
query,
...options,
});
}
}
BaseIndicators._key = Object.freeze([
'cloudforceOne',
'threatEvents',
'indicators',
]);
return BaseIndicators;
})();
exports.BaseIndicators = BaseIndicators;
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_1.Aggregate;
Indicators.BaseAggregate = aggregate_1.BaseAggregate;
Indicators.Types = types_1.Types;
Indicators.BaseTypes = types_1.BaseTypes;
Indicators.ByDataset = by_dataset_1.ByDataset;
Indicators.BaseByDataset = by_dataset_1.BaseByDataset;
return Indicators;
})();
exports.Indicators = Indicators;
//# sourceMappingURL=indicators.js.map