UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

38 lines • 1.24 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 BaseLogs = /* @__PURE__ */ (() => { class BaseLogs extends APIResource { /** * Retrieves a list of certificate logs. * * @example * ```ts * const logs = await client.radar.ct.logs.list(); * ``` */ list(query = {}, options) { return this._client.get('/radar/ct/logs', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the requested certificate log information. * * @example * ```ts * const log = await client.radar.ct.logs.get('argon2024'); * ``` */ get(logSlug, query = {}, options) { return this._client.get(path `/radar/ct/logs/${logSlug}`, { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseLogs._key = Object.freeze([ 'radar', 'ct', 'logs', ]); return BaseLogs; })(); export class Logs extends BaseLogs { } //# sourceMappingURL=logs.mjs.map