cloudflare
Version:
The official TypeScript library for the Cloudflare API
79 lines • 2.92 kB
text/typescript
import { APIResource } from "../../core/resource.mjs";
import { APIPromise } from "../../core/api-promise.mjs";
import { RequestOptions } from "../../internal/request-options.mjs";
export declare class BaseAutoOriginTLSKex extends APIResource {
static readonly _key: readonly ['ssl', 'autoOriginTLSKex'];
/**
* Enable or disable Auto-Origin TLS KEX selection for the zone by sending
* `{"enabled": true}` or `{"enabled": false}`. When enabled, Cloudflare runs a
* periodic scan of the zone's origins to determine the preferred key-exchange
* algorithm and writes that preference to the edge so it is sent first in the TLS
* ClientHello to the origin.
*
* @example
* ```ts
* const response = await client.ssl.autoOriginTLSKex.edit({
* zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
* enabled: true,
* });
* ```
*/
edit(params: AutoOriginTLSKexEditParams, options?: RequestOptions): APIPromise<AutoOriginTLSKexEditResponse>;
/**
* When enabled, Cloudflare automatically selects the preferred TLS key-exchange
* algorithm to use when establishing the TLS connection to the zone's origin,
* picking from the algorithms permitted by the zone's
* `origin_tls_compliance_modes` setting. When disabled, the default key-exchange
* ordering is used.
*
* @example
* ```ts
* const autoOriginTLSKex =
* await client.ssl.autoOriginTLSKex.get({
* zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
get(params: AutoOriginTLSKexGetParams, options?: RequestOptions): APIPromise<AutoOriginTLSKexGetResponse>;
}
export declare class AutoOriginTLSKex extends BaseAutoOriginTLSKex {
}
export interface AutoOriginTLSKexEditResponse {
id: string;
/**
* Whether Auto-Origin TLS KEX selection is enabled for the zone.
*/
enabled: boolean;
/**
* Last time this setting was modified.
*/
modified_on: string;
}
export interface AutoOriginTLSKexGetResponse {
id: string;
/**
* Whether Auto-Origin TLS KEX selection is enabled for the zone.
*/
enabled: boolean;
/**
* Last time this setting was modified.
*/
modified_on: string;
}
export interface AutoOriginTLSKexEditParams {
/**
* Path param
*/
zone_id: string;
/**
* Body param: Controls enablement of Auto-Origin TLS KEX selection for the zone.
*/
enabled: boolean;
}
export interface AutoOriginTLSKexGetParams {
zone_id: string;
}
export declare namespace AutoOriginTLSKex {
export { type AutoOriginTLSKexEditResponse as AutoOriginTLSKexEditResponse, type AutoOriginTLSKexGetResponse as AutoOriginTLSKexGetResponse, type AutoOriginTLSKexEditParams as AutoOriginTLSKexEditParams, type AutoOriginTLSKexGetParams as AutoOriginTLSKexGetParams, };
}
//# sourceMappingURL=auto-origin-tls-kex.d.mts.map