cloudflare
Version:
The official TypeScript library for the Cloudflare API
86 lines • 3.47 kB
TypeScript
import { APIResource } from "../../core/resource.js";
import { APIPromise } from "../../core/api-promise.js";
import { RequestOptions } from "../../internal/request-options.js";
export declare class BaseOriginPostQuantumEncryption extends APIResource {
static readonly _key: readonly ['originPostQuantumEncryption'];
/**
* 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.
*
* @deprecated
*/
update(params: OriginPostQuantumEncryptionUpdateParams, options?: RequestOptions): 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.
*
* @deprecated
*/
get(params: OriginPostQuantumEncryptionGetParams, options?: RequestOptions): APIPromise<OriginPostQuantumEncryptionGetResponse>;
}
export declare class OriginPostQuantumEncryption extends BaseOriginPostQuantumEncryption {
}
export interface OriginPostQuantumEncryptionUpdateResponse {
/**
* The identifier of the caching setting.
*/
id: 'origin_pqe';
/**
* Whether the setting is editable.
*/
editable: boolean;
/**
* Value of the Origin Post Quantum Encryption Setting.
*/
value: 'preferred' | 'supported' | 'off';
/**
* Last time this setting was modified.
*/
modified_on?: string | null;
}
export interface OriginPostQuantumEncryptionGetResponse {
/**
* The identifier of the caching setting.
*/
id: 'origin_pqe';
/**
* Whether the setting is editable.
*/
editable: boolean;
/**
* Value of the Origin Post Quantum Encryption Setting.
*/
value: 'preferred' | 'supported' | 'off';
/**
* Last time this setting was modified.
*/
modified_on?: 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 { type OriginPostQuantumEncryptionUpdateResponse as OriginPostQuantumEncryptionUpdateResponse, type OriginPostQuantumEncryptionGetResponse as OriginPostQuantumEncryptionGetResponse, type OriginPostQuantumEncryptionUpdateParams as OriginPostQuantumEncryptionUpdateParams, type OriginPostQuantumEncryptionGetParams as OriginPostQuantumEncryptionGetParams, };
}
//# sourceMappingURL=origin-post-quantum-encryption.d.ts.map