User Settings will enable User to enter a Persona, or a description of the User, to be included in the system prompt. This helps calibrate the agent to better assist the User, and work with the User in ways that work best for each individual User of the system.
27 lines
600 B
TypeScript
27 lines
600 B
TypeScript
// src/interfaces/user.ts
|
|
// Copyright (C) 2026 Rob Colbert <rob.colbert@openplatform.us>
|
|
// Licensed under the Apache License, Version 2.0
|
|
|
|
import { HydratedDocument } from "mongoose";
|
|
import { GadgetId } from "../lib/gadget-id.ts";
|
|
|
|
export interface IUserFlags {
|
|
isEmailVerified: boolean;
|
|
isAdmin: boolean;
|
|
isTest: boolean;
|
|
isBanned: boolean;
|
|
}
|
|
|
|
export interface IUser {
|
|
_id: GadgetId;
|
|
email: string;
|
|
email_lc: string;
|
|
passwordSalt?: string;
|
|
password?: string;
|
|
displayName: string;
|
|
flags: IUserFlags;
|
|
persona?: string;
|
|
}
|
|
|
|
export type UserDocument = HydratedDocument<IUser>;
|