UNPKG

@translated/lara

Version:

Official Lara SDK for JavaScript and Node.js

46 lines (45 loc) 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthToken = exports.Credentials = exports.AccessKey = void 0; /** * Represents an access key for authenticating with the Lara API. */ class AccessKey { /** * Creates a new AccessKey instance. * @param id - The access key ID. * @param secret - The access key secret. */ constructor(id, secret) { this.id = id; this.secret = secret; } } exports.AccessKey = AccessKey; /** * @deprecated Use AccessKey instead. */ class Credentials extends AccessKey { get accessKeyId() { return this.id; } get accessKeySecret() { return this.secret; } } exports.Credentials = Credentials; /** * Represents an authentication token for authenticating with the Lara API. */ class AuthToken { /** * Creates a new AuthToken instance. * @param token - The authentication token. * @param refreshToken - The refresh token. */ constructor(token, refreshToken) { this.token = token; this.refreshToken = refreshToken; } } exports.AuthToken = AuthToken;