diff --git a/src/shared/schemas/memory.ts b/src/shared/schemas/memory.ts index 3bb54758fc..75503e1101 100644 --- a/src/shared/schemas/memory.ts +++ b/src/shared/schemas/memory.ts @@ -138,10 +138,5 @@ export const RetrievePreviewResultSchema = z.object({ }); export type MemorySettingsExtended = z.infer; -export type MemoryUpdatePut = z.infer; -export type RetrievePreview = z.infer; -export type MemoryReindex = z.infer; -export type MemorySummarize = z.infer; -export type EmbeddingProviderListings = z.infer; export type MemoryEngineStatus = z.infer; export type RetrievePreviewResult = z.infer; diff --git a/tests/unit/memory-schemas-roundtrip.test.ts b/tests/unit/memory-schemas-roundtrip.test.ts index b7d3f5f6ac..a0276400b8 100644 --- a/tests/unit/memory-schemas-roundtrip.test.ts +++ b/tests/unit/memory-schemas-roundtrip.test.ts @@ -66,6 +66,9 @@ test("MemorySettingsExtendedSchema: rejects invalid embeddingSource value", () = test("MemoryUpdatePutSchema: accepts valid partial update (content only)", () => { const result = MemoryUpdatePutSchema.safeParse({ content: "updated content" }); assert.equal(result.success, true, "Should accept partial update with only content"); + if (result.success) { + assert.equal(result.data.content, "updated content"); + } }); test("MemoryUpdatePutSchema: rejects extra field (strict)", () => {