mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
chore: remove unused memory schema aliases (#5403)
Integrated into release/v3.8.42
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -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)", () => {
|
||||
|
||||
Reference in New Issue
Block a user