cloudflare
Version:
The official TypeScript library for the Cloudflare API
35 lines • 1.24 kB
TypeScript
import { APIResource } from "../../../core/resource.js";
import { APIPromise } from "../../../core/api-promise.js";
import { RequestOptions } from "../../../internal/request-options.js";
export declare class BaseContext extends APIResource {
static readonly _key: readonly ['securityCenter', 'insights', 'context'];
/**
* Returns the full context payload for an insight. This endpoint is used for
* insights with large payloads that are not included inline in the list response.
*
* @example
* ```ts
* const context =
* await client.securityCenter.insights.context.get(
* 'issue_id',
* { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
* );
* ```
*/
get(issueID: string, params: ContextGetParams, options?: RequestOptions): APIPromise<ContextGetResponse>;
}
export declare class Context extends BaseContext {
}
export type ContextGetResponse = {
[key: string]: unknown;
};
export interface ContextGetParams {
/**
* Identifier.
*/
account_id: string;
}
export declare namespace Context {
export { type ContextGetResponse as ContextGetResponse, type ContextGetParams as ContextGetParams };
}
//# sourceMappingURL=context.d.ts.map