Files
boc/landvex/node_modules/openai/resources/skills/versions/versions.js
T
Bernt 6989a98d75 feat: Passwordless cross-device authentication
- Arkitektur: docs/auth/passwordless-architecture.md
- Backend: iom/quixzoom-auth-service/ (FastAPI + Redis)
- Webb: quixzoom-market-pages/se/login/ (QR-kod + polling)
- App: iom/quixzoom-app/src/features/auth/ (push + deep links)

Flöde: QR-kod → app-godkännande → webb-inloggad
2026-07-07 07:11:50 +00:00

56 lines
2.1 KiB
JavaScript

"use strict";
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Versions = void 0;
const tslib_1 = require("../../../internal/tslib.js");
const resource_1 = require("../../../core/resource.js");
const ContentAPI = tslib_1.__importStar(require("./content.js"));
const content_1 = require("./content.js");
const pagination_1 = require("../../../core/pagination.js");
const uploads_1 = require("../../../internal/uploads.js");
const path_1 = require("../../../internal/utils/path.js");
class Versions extends resource_1.APIResource {
constructor() {
super(...arguments);
this.content = new ContentAPI.Content(this._client);
}
/**
* Create a new immutable skill version.
*/
create(skillID, body = {}, options) {
return this._client.post((0, path_1.path) `/skills/${skillID}/versions`, (0, uploads_1.maybeMultipartFormRequestOptions)({ body, ...options, __security: { bearerAuth: true } }, this._client));
}
/**
* Get a specific skill version.
*/
retrieve(version, params, options) {
const { skill_id } = params;
return this._client.get((0, path_1.path) `/skills/${skill_id}/versions/${version}`, {
...options,
__security: { bearerAuth: true },
});
}
/**
* List skill versions for a skill.
*/
list(skillID, query = {}, options) {
return this._client.getAPIList((0, path_1.path) `/skills/${skillID}/versions`, (pagination_1.CursorPage), {
query,
...options,
__security: { bearerAuth: true },
});
}
/**
* Delete a skill version.
*/
delete(version, params, options) {
const { skill_id } = params;
return this._client.delete((0, path_1.path) `/skills/${skill_id}/versions/${version}`, {
...options,
__security: { bearerAuth: true },
});
}
}
exports.Versions = Versions;
Versions.Content = content_1.Content;
//# sourceMappingURL=versions.js.map