UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

27 lines • 1.03 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../core/resource.mjs"; import { path } from "../../internal/utils/path.mjs"; export var BaseAnalyze = /* @__PURE__ */ (() => { class BaseAnalyze extends APIResource { /** * Returns the set of hostnames, the signature algorithm, and the expiration date * of the certificate. * * @example * ```ts * const analyze = await client.ssl.analyze.create({ * zone_id: '023e105f4ecef8ad9ca31a8372d0c353', * }); * ``` */ create(params, options) { const { zone_id, ...body } = params; return this._client.post(path `/zones/${zone_id}/ssl/analyze`, { body, ...options })._thenUnwrap((obj) => obj.result); } } BaseAnalyze._key = Object.freeze(['ssl', 'analyze']); return BaseAnalyze; })(); export class Analyze extends BaseAnalyze { } //# sourceMappingURL=analyze.mjs.map