@translated/lara
Version:
Official Lara SDK for JavaScript and Node.js
38 lines (37 loc) • 1.08 kB
TypeScript
/**
* Represents an access key for authenticating with the Lara API.
*/
export declare class AccessKey {
/** The access key ID. */
readonly id: string;
/** The access key secret. */
readonly secret: string;
/**
* Creates a new AccessKey instance.
* @param id - The access key ID.
* @param secret - The access key secret.
*/
constructor(id: string, secret: string);
}
/**
* @deprecated Use AccessKey instead.
*/
export declare class Credentials extends AccessKey {
get accessKeyId(): string;
get accessKeySecret(): string;
}
/**
* Represents an authentication token for authenticating with the Lara API.
*/
export declare class AuthToken {
/** The authentication token. */
readonly token: string;
/** The refresh token used to obtain a new authentication token. */
readonly refreshToken: string;
/**
* Creates a new AuthToken instance.
* @param token - The authentication token.
* @param refreshToken - The refresh token.
*/
constructor(token: string, refreshToken: string);
}