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.
74 lines (73 loc) • 1.54 kB
TypeScript
/**
* Represents a user in the RecallrAI system.
*/
export declare class UserModel {
/**
* Unique identifier for the user
*/
userId: string;
/**
* Custom metadata for the user
*/
metadata: Record<string, any>;
/**
* When the user was created
*/
createdAt: Date;
/**
* When the user was last active
*/
lastActiveAt: Date;
/**
* Creates a new UserModel instance
*
* @param data - User data
*/
constructor(data: {
userId: string;
metadata: Record<string, any>;
createdAt: Date;
lastActiveAt: Date;
});
/**
* Create a UserModel instance from an API response
*
* @param data - API response data
* @returns A UserModel instance
*/
static fromApiResponse(data: any): UserModel;
}
/**
* Represents a paginated list of users.
*/
export declare class UserList {
/**
* List of users
*/
users: UserModel[];
/**
* Total number of users
*/
total: number;
/**
* Whether there are more users to fetch
*/
hasMore: boolean;
/**
* Creates a new UserList instance
*
* @param data - User list data
*/
constructor(data: {
users: UserModel[];
total: number;
hasMore: boolean;
});
/**
* Create a UserList instance from an API response
*
* @param data - API response data
* @returns A UserList instance
*/
static fromApiResponse(data: any): UserList;
}