UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

60 lines 1.88 kB
import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; import { type Response } from "../../_shims/index.js"; export declare class LOADocuments extends APIResource { /** * Submit LOA document (pdf format) under the account. */ create(params: LOADocumentCreateParams, options?: Core.RequestOptions): Core.APIPromise<LOADocumentCreateResponse>; /** * Download specified LOA document under the account. */ get(loaDocumentId: string | null, params: LOADocumentGetParams, options?: Core.RequestOptions): Core.APIPromise<Response>; } export interface LOADocumentCreateResponse { /** * Identifier for the uploaded LOA document. */ id?: string | null; /** * Identifier of a Cloudflare account. */ account_id?: string; created?: string; /** * Name of LOA document. Max file size 10MB, and supported filetype is pdf. */ filename?: string; /** * File size of the uploaded LOA document. */ size_bytes?: number; /** * Whether the LOA has been verified by Cloudflare staff. */ verified?: boolean; /** * Timestamp of the moment the LOA was marked as validated. */ verified_at?: string | null; } export interface LOADocumentCreateParams { /** * Path param: Identifier of a Cloudflare account. */ account_id: string; /** * Body param: LOA document to upload. */ loa_document: string; } export interface LOADocumentGetParams { /** * Identifier of a Cloudflare account. */ account_id: string; } export declare namespace LOADocuments { export { type LOADocumentCreateResponse as LOADocumentCreateResponse, type LOADocumentCreateParams as LOADocumentCreateParams, type LOADocumentGetParams as LOADocumentGetParams, }; } //# sourceMappingURL=loa-documents.d.ts.map