6989a98d75
- 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
51 lines
1.8 KiB
JavaScript
51 lines
1.8 KiB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
import { APIResource } from "../../../core/resource.mjs";
|
|
import * as ContentAPI from "./content.mjs";
|
|
import { Content } from "./content.mjs";
|
|
import { CursorPage } from "../../../core/pagination.mjs";
|
|
import { maybeMultipartFormRequestOptions } from "../../../internal/uploads.mjs";
|
|
import { path } from "../../../internal/utils/path.mjs";
|
|
export class Versions extends 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(path `/skills/${skillID}/versions`, 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(path `/skills/${skill_id}/versions/${version}`, {
|
|
...options,
|
|
__security: { bearerAuth: true },
|
|
});
|
|
}
|
|
/**
|
|
* List skill versions for a skill.
|
|
*/
|
|
list(skillID, query = {}, options) {
|
|
return this._client.getAPIList(path `/skills/${skillID}/versions`, (CursorPage), {
|
|
query,
|
|
...options,
|
|
__security: { bearerAuth: true },
|
|
});
|
|
}
|
|
/**
|
|
* Delete a skill version.
|
|
*/
|
|
delete(version, params, options) {
|
|
const { skill_id } = params;
|
|
return this._client.delete(path `/skills/${skill_id}/versions/${version}`, {
|
|
...options,
|
|
__security: { bearerAuth: true },
|
|
});
|
|
}
|
|
}
|
|
Versions.Content = Content;
|
|
//# sourceMappingURL=versions.mjs.map
|