cloudflare
Version:
The official TypeScript library for the Cloudflare API
53 lines • 1.75 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 BaseDomainHistoryResource extends APIResource {
static readonly _key: readonly ['intel', 'domainHistory'];
/**
* Gets historical security threat and content categories currently and previously
* assigned to a domain.
*
* @example
* ```ts
* const domainHistories =
* await client.intel.domainHistory.get({
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
get(params: DomainHistoryGetParams, options?: RequestOptions): APIPromise<DomainHistoryGetResponse | null>;
}
export declare class DomainHistoryResource extends BaseDomainHistoryResource {
}
export interface DomainHistory {
categorizations?: Array<DomainHistory.Categorization>;
domain?: string;
}
export declare namespace DomainHistory {
interface Categorization {
categories?: Array<Categorization.Category>;
end?: string;
start?: string;
}
namespace Categorization {
interface Category {
id?: number;
name?: string;
}
}
}
export type DomainHistoryGetResponse = Array<DomainHistory>;
export interface DomainHistoryGetParams {
/**
* Path param: Identifier.
*/
account_id: string;
/**
* Query param
*/
domain?: string;
}
export declare namespace DomainHistoryResource {
export { type DomainHistory as DomainHistory, type DomainHistoryGetResponse as DomainHistoryGetResponse, type DomainHistoryGetParams as DomainHistoryGetParams, };
}
//# sourceMappingURL=domain-history.d.mts.map