Files
stack/apps/api/src/personalities/entities/personality.entity.ts
Jason Woltje 78b71a0ecc
All checks were successful
ci/woodpecker/push/api Pipeline was successful
feat(api): implement personalities CRUD API (#537)
Co-authored-by: Jason Woltje <jason@diversecanvas.com>
Co-committed-by: Jason Woltje <jason@diversecanvas.com>
2026-02-27 10:42:50 +00:00

25 lines
608 B
TypeScript

import type { FormalityLevel } from "@prisma/client";
/**
* Personality response entity
* Maps Prisma Personality fields to the frontend API contract.
*
* Field mapping (Prisma -> API):
* systemPrompt -> systemPromptTemplate
* isEnabled -> isActive
* (tone, formalityLevel are identical in both)
*/
export interface PersonalityResponse {
id: string;
workspaceId: string;
name: string;
description: string | null;
tone: string;
formalityLevel: FormalityLevel;
systemPromptTemplate: string;
isDefault: boolean;
isActive: boolean;
createdAt: Date;
updatedAt: Date;
}