UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

31 lines • 1.32 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 BaseSkillOutputs = /* @__PURE__ */ (() => { class BaseSkillOutputs extends APIResource { /** * Retrieves the stored output of a skill for a Threat Signals article. * * @example * ```ts * const skillOutput = * await client.cloudforceOne.threatSignals.articles.skillOutputs.get( * 'skill_id', * { * account_id: 'account_id', * article_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * }, * ); * ``` */ get(skillID, params, options) { const { account_id, article_id } = params; return this._client.get(path `/accounts/${account_id}/cloudforce-one/v2/threat-signals/articles/${article_id}/skills/${skillID}/output`, options)._thenUnwrap((obj) => obj.result); } } BaseSkillOutputs._key = Object.freeze(['cloudforceOne', 'threatSignals', 'articles', 'skillOutputs']); return BaseSkillOutputs; })(); export class SkillOutputs extends BaseSkillOutputs { } //# sourceMappingURL=skill-outputs.mjs.map