All checks were successful
ci/woodpecker/push/api Pipeline was successful
Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
25 lines
608 B
TypeScript
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;
|
|
}
|