cloudflare
Version:
The official TypeScript library for the Cloudflare API
35 lines • 1.25 kB
text/typescript
import { APIResource } from "../../../core/resource.mjs";
import { APIPromise } from "../../../core/api-promise.mjs";
import { RequestOptions } from "../../../internal/request-options.mjs";
export declare class BaseGraphql extends APIResource {
static readonly _key: readonly ['cloudforceOne', 'threatEvents', 'graphql'];
/**
* Execute GraphQL aggregations over threat events. Supports multi-dimensional
* group-bys, optional date range filtering, and multi-dataset aggregation.
*
* @example
* ```ts
* const graphql =
* await client.cloudforceOne.threatEvents.graphql.create({
* account_id: 'account_id',
* });
* ```
*/
create(params: GraphqlCreateParams, options?: RequestOptions): APIPromise<GraphqlCreateResponse>;
}
export declare class Graphql extends BaseGraphql {
}
export interface GraphqlCreateResponse {
data?: unknown | null;
errors?: Array<unknown> | null;
}
export interface GraphqlCreateParams {
/**
* Account ID.
*/
account_id: string;
}
export declare namespace Graphql {
export { type GraphqlCreateResponse as GraphqlCreateResponse, type GraphqlCreateParams as GraphqlCreateParams, };
}
//# sourceMappingURL=graphql.d.mts.map