import { APIResource } from "../../../../core/resource.mjs"; import * as EventsAPI from "./events.mjs"; import { BaseEvents, EventGetParams, EventGetResponse, Events } from "./events.mjs"; import * as HealthAPI from "./health.mjs"; import { BaseHealth, Health } from "./health.mjs"; import { APIPromise } from "../../../../core/api-promise.mjs"; import { RequestOptions } from "../../../../internal/request-options.mjs"; export declare class BaseDatasets extends APIResource { static readonly _key: readonly ['cloudforceOne', 'threatEvents', 'datasets']; /** * Creates a new threat event dataset in Cloudforce One for organizing related * threat events. * * @example * ```ts * const dataset = * await client.cloudforceOne.threatEvents.datasets.create({ * account_id: 'account_id', * isPublic: true, * name: 'x', * }); * ``` */ create(params: DatasetCreateParams, options?: RequestOptions): APIPromise; /** * Lists all threat event datasets configured in Cloudforce One. * * @example * ```ts * const datasets = * await client.cloudforceOne.threatEvents.datasets.list({ * account_id: 'account_id', * }); * ``` */ list(params: DatasetListParams, options?: RequestOptions): APIPromise; /** * Soft-deletes a dataset given a datasetId. * * @example * ```ts * const dataset = * await client.cloudforceOne.threatEvents.datasets.delete( * 'dataset_id', * { account_id: 'account_id' }, * ); * ``` */ delete(datasetID: string, params: DatasetDeleteParams, options?: RequestOptions): APIPromise; /** * Partially updates a threat event dataset in Cloudforce One, modifying specific * fields without replacing the entire dataset configuration. * * @example * ```ts * const response = * await client.cloudforceOne.threatEvents.datasets.edit( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { * account_id: 'account_id', * isPublic: true, * name: 'x', * }, * ); * ``` */ edit(datasetID: string, params: DatasetEditParams, options?: RequestOptions): APIPromise; /** * Retrieves details for a specific threat event dataset. * * @example * ```ts * const dataset = * await client.cloudforceOne.threatEvents.datasets.get( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 'account_id' }, * ); * ``` */ get(datasetID: string, params: DatasetGetParams, options?: RequestOptions): APIPromise; /** * Retrieves the raw data associated with an event. Searches across all shards in * the dataset. * * @example * ```ts * const response = * await client.cloudforceOne.threatEvents.datasets.raw( * 'event_id', * { account_id: 'account_id', dataset_id: 'dataset_id' }, * ); * ``` */ raw(eventID: string, params: DatasetRawParams, options?: RequestOptions): APIPromise; } export declare class Datasets extends BaseDatasets { health: HealthAPI.Health; events: EventsAPI.Events; } export interface DatasetCreateResponse { isAnalytics: boolean; isPublic: boolean; name: string; uuid: string; } export type DatasetListResponse = Array; export declare namespace DatasetListResponse { interface DatasetListResponseItem { /** * Effective indicator mutation capability after account/dataset authorization and * dataset storage capability are applied. API Gateway method permissions are * separate and must also allow the requested operation. */ indicatorWriteMode: 'read_only' | 'create_only' | 'full'; isAnalytics: boolean; isPublic: boolean; name: string; uuid: string; deletedAt?: string; } } export interface DatasetDeleteResponse { name: string; uuid: string; } export interface DatasetEditResponse { isAnalytics: boolean; isPublic: boolean; name: string; uuid: string; } export interface DatasetGetResponse { isAnalytics: boolean; isPublic: boolean; name: string; uuid: string; } export interface DatasetRawResponse { id: number; accountId: number; created: string; data: string; source: string; tlp: string; } export interface DatasetCreateParams { /** * Path param: Account ID. */ account_id: string; /** * Body param: If true, then anyone can search the dataset. If false, then its * limited to the account. */ isPublic: boolean; /** * Body param: Used to describe the dataset within the account context. */ name: string; } export interface DatasetListParams { /** * Path param: Account ID. */ account_id: string; /** * Query param: When true, include soft-deleted datasets in the response. Each item * includes a `deletedAt` field (ISO 8601 or null). Default: false. */ includeDeleted?: boolean; } export interface DatasetDeleteParams { /** * Account ID. */ account_id: string; } export interface DatasetEditParams { /** * Path param: Account ID. */ account_id: string; /** * Body param: If true, then anyone can search the dataset. If false, then its * limited to the account. */ isPublic: boolean; /** * Body param: Used to describe the dataset within the account context. */ name: string; } export interface DatasetGetParams { /** * Account ID. */ account_id: string; } export interface DatasetRawParams { /** * Account ID. */ account_id: string; /** * Dataset ID. */ dataset_id: string; } export declare namespace Datasets { export { type DatasetCreateResponse as DatasetCreateResponse, type DatasetListResponse as DatasetListResponse, type DatasetDeleteResponse as DatasetDeleteResponse, type DatasetEditResponse as DatasetEditResponse, type DatasetGetResponse as DatasetGetResponse, type DatasetRawResponse as DatasetRawResponse, type DatasetCreateParams as DatasetCreateParams, type DatasetListParams as DatasetListParams, type DatasetDeleteParams as DatasetDeleteParams, type DatasetEditParams as DatasetEditParams, type DatasetGetParams as DatasetGetParams, type DatasetRawParams as DatasetRawParams, }; export { Health as Health, BaseHealth as BaseHealth }; export { Events as Events, BaseEvents as BaseEvents, type EventGetResponse as EventGetResponse, type EventGetParams as EventGetParams, }; } //# sourceMappingURL=datasets.d.mts.map