UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

36 lines • 1.23 kB
import { APIResource } from "../../../../core/resource.js"; import { APIPromise } from "../../../../core/api-promise.js"; import { RequestOptions } from "../../../../internal/request-options.js"; export declare class BaseContent extends APIResource { static readonly _key: readonly ['cloudforceOne', 'threatSignals', 'articles', 'content']; /** * Retrieves the stored body of a Threat Signals article as plain text or HTML. * * @example * ```ts * const content = * await client.cloudforceOne.threatSignals.articles.content.get( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 'account_id' }, * ); * ``` */ get(articleID: string, params: ContentGetParams, options?: RequestOptions): APIPromise<string>; } export declare class Content extends BaseContent { } export type ContentGetResponse = string; export interface ContentGetParams { /** * Path param */ account_id: string; /** * Query param */ format?: 'text' | 'html'; } export declare namespace Content { export { type ContentGetResponse as ContentGetResponse, type ContentGetParams as ContentGetParams }; } //# sourceMappingURL=content.d.ts.map