openai
Version:
The official TypeScript library for the OpenAI API
15 lines • 683 B
JavaScript
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
import { APIResource } from "../../core/resource.mjs";
import { path } from "../../internal/utils/path.mjs";
function resolveResourceRequestOptions(options, buildOptions) {
return Promise.resolve(options).then(buildOptions);
}
export class Alerts extends APIResource {
/**
* Get a safety alert belonging to the authenticated API project.
*/
retrieve(id, options) {
return this._client.get(path `/safety/alerts/${id}`, resolveResourceRequestOptions(options, (options) => ({ ...options, __security: { bearerAuth: true } })));
}
}
//# sourceMappingURL=alerts.mjs.map