UNPKG

recallrai

Version:

Official Node.js SDK for RecallrAI - Revolutionary contextual memory system that enables AI assistants to form meaningful connections between conversations, just like human memory.

18 lines (17 loc) 723 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthenticationError = void 0; const base_1 = require("./base"); /** * Raised when there is an authentication issue with the API key. * * This exception is typically raised when the API key is invalid, * has been revoked, or doesn't have the necessary permissions. */ class AuthenticationError extends base_1.RecallrAIError { constructor(message = 'Invalid API key or authentication failed', code = 'authentication_error', httpStatus = 401, details) { super(message, code, httpStatus, details); Object.setPrototypeOf(this, AuthenticationError.prototype); } } exports.AuthenticationError = AuthenticationError;