Files
jinyeandQwen-Coder ab33974509 feat(external-context): Add daemon memory deletion (#11337)
Add an opt-in workspace-bound deletion profile with exact target reads,
full-text and scope verification, single-shot deletion, and absence checks.
Preserve full record identifiers and cover approval and failure boundaries.

Co-authored-by: Qwen-Coder <[email protected]>
2026-09-08 09:30:06 +00:00

58 lines
1.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Mem0 External Context bounded delete dialect v1",
"type": "object",
"additionalProperties": false,
"required": ["deleteDialectVersion", "id", "auth", "record"],
"properties": {
"deleteDialectVersion": {
"const": 1
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-z0-9]+(?:[a-z0-9.-]*[a-z0-9])?$"
},
"auth": {
"enum": ["authorization-token", "authorization-bearer", "x-api-key"]
},
"record": {
"type": "object",
"additionalProperties": false,
"required": [
"pathPrefix",
"pathSuffix",
"idField",
"contentField",
"notFound"
],
"properties": {
"pathPrefix": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"pattern": "^/",
"allOf": [
{
"pattern": "/$"
}
]
},
"pathSuffix": {
"enum": ["", "/"]
},
"idField": {
"enum": ["id", "memory_id"]
},
"contentField": {
"enum": ["memory", "content", "text"]
},
"notFound": {
"enum": ["http-404", "null-200"]
}
}
}
}
}