UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

44 lines • 1.48 kB
import { APIResource } from "../../../core/resource.mjs"; import { APIPromise } from "../../../core/api-promise.mjs"; import { RequestOptions } from "../../../internal/request-options.mjs"; export declare class BaseCountries extends APIResource { static readonly _key: readonly ['cloudforceOne', 'threatEvents', 'countries']; /** * Lists countries referenced in Cloudforce One threat intelligence data. * * @example * ```ts * const countries = * await client.cloudforceOne.threatEvents.countries.list({ * account_id: 'account_id', * }); * ``` */ list(params: CountryListParams, options?: RequestOptions): APIPromise<CountryListResponse>; } export declare class Countries extends BaseCountries { } export type CountryListResponse = Array<CountryListResponse.CountryListResponseItem>; export declare namespace CountryListResponse { interface CountryListResponseItem { result: Array<CountryListResponseItem.Result>; success: string; } namespace CountryListResponseItem { interface Result { alpha2: string; alpha3: string; name: string; } } } export interface CountryListParams { /** * Account ID. */ account_id: string; } export declare namespace Countries { export { type CountryListResponse as CountryListResponse, type CountryListParams as CountryListParams }; } //# sourceMappingURL=countries.d.mts.map