Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/shared/schemas/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,5 @@ export const RetrievePreviewResultSchema = z.object({
});

export type MemorySettingsExtended = z.infer<typeof MemorySettingsExtendedSchema>;
export type MemoryUpdatePut = z.infer<typeof MemoryUpdatePutSchema>;
export type RetrievePreview = z.infer<typeof RetrievePreviewSchema>;
export type MemoryReindex = z.infer<typeof MemoryReindexSchema>;
export type MemorySummarize = z.infer<typeof MemorySummarizeSchema>;
export type EmbeddingProviderListings = z.infer<typeof EmbeddingProviderListingSchema>;
export type MemoryEngineStatus = z.infer<typeof MemoryEngineStatusSchema>;
export type RetrievePreviewResult = z.infer<typeof RetrievePreviewResultSchema>;
3 changes: 3 additions & 0 deletions tests/unit/memory-schemas-roundtrip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)", () => {
Expand Down
Loading