UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

48 lines 2.72 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as OriginPostQuantumEncryptionAPI from 'cloudflare/resources/origin-post-quantum-encryption'; export declare class OriginPostQuantumEncryption extends APIResource { /** * Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when * connecting to your origin. Preferred instructs Cloudflare to opportunistically * send a Post-Quantum keyshare in the first message to the origin (for fastest * connections when the origin supports and prefers PQ), supported means that PQ * algorithms are advertised but only used when requested by the origin, and off * means that PQ algorithms are not advertised */ update(params: OriginPostQuantumEncryptionUpdateParams, options?: Core.RequestOptions): Core.APIPromise<OriginPostQuantumEncryptionUpdateResponse>; /** * Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when * connecting to your origin. Preferred instructs Cloudflare to opportunistically * send a Post-Quantum keyshare in the first message to the origin (for fastest * connections when the origin supports and prefers PQ), supported means that PQ * algorithms are advertised but only used when requested by the origin, and off * means that PQ algorithms are not advertised */ get(params: OriginPostQuantumEncryptionGetParams, options?: Core.RequestOptions): Core.APIPromise<OriginPostQuantumEncryptionGetResponse>; } export type OriginPostQuantumEncryptionUpdateResponse = unknown | string | null; export type OriginPostQuantumEncryptionGetResponse = unknown | string | null; export interface OriginPostQuantumEncryptionUpdateParams { /** * Path param: Identifier */ zone_id: string; /** * Body param: Value of the Origin Post Quantum Encryption Setting. */ value: 'preferred' | 'supported' | 'off'; } export interface OriginPostQuantumEncryptionGetParams { /** * Identifier */ zone_id: string; } export declare namespace OriginPostQuantumEncryption { export import OriginPostQuantumEncryptionUpdateResponse = OriginPostQuantumEncryptionAPI.OriginPostQuantumEncryptionUpdateResponse; export import OriginPostQuantumEncryptionGetResponse = OriginPostQuantumEncryptionAPI.OriginPostQuantumEncryptionGetResponse; export import OriginPostQuantumEncryptionUpdateParams = OriginPostQuantumEncryptionAPI.OriginPostQuantumEncryptionUpdateParams; export import OriginPostQuantumEncryptionGetParams = OriginPostQuantumEncryptionAPI.OriginPostQuantumEncryptionGetParams; } //# sourceMappingURL=origin-post-quantum-encryption.d.ts.map