mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-28 11:54:42 +00:00
refactor(db): strictly type PiSessionEntryData in prisma-json-types and clean up casts
This commit is contained in:
@@ -3,10 +3,10 @@ export {}
|
||||
declare global {
|
||||
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||
namespace PrismaJson {
|
||||
// ----------------------------------------------------------------------
|
||||
// Agent Session Entry
|
||||
// ----------------------------------------------------------------------
|
||||
export type PiSessionEntryData = Record<string, unknown>
|
||||
export type PiSessionEntryData = Omit<
|
||||
import('@earendil-works/pi-agent-core').SessionTreeEntry,
|
||||
'id' | 'type' | 'parentId' | 'timestamp'
|
||||
>
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// User Agent Settings
|
||||
|
||||
Reference in New Issue
Block a user