UNPKG

openai

Version:

The official TypeScript library for the OpenAI API

21 lines • 889 B
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details. import { APIResource } from "../../core/resource.mjs"; import { buildHeaders } from "../../internal/headers.mjs"; import { path } from "../../internal/utils/path.mjs"; function resolveResourceRequestOptions(options, buildOptions) { return Promise.resolve(options).then(buildOptions); } export class Content extends APIResource { /** * Download a skill zip bundle by its ID. */ retrieve(skillID, options) { return this._client.get(path `/skills/${skillID}/content`, resolveResourceRequestOptions(options, (options) => ({ ...options, headers: buildHeaders([{ Accept: 'application/binary' }, options?.headers]), __security: { bearerAuth: true }, __binaryResponse: true, }))); } } //# sourceMappingURL=content.mjs.map