{ "lexicon": 1, "id": "sh.weaver.domain.resolveDocument", "defs": { "main": { "type": "query", "description": "Resolve a document by path within a publication. Returns re-hydrated content for weaver-backed documents.", "parameters": { "type": "params", "required": [ "publication", "path" ], "properties": { "path": { "type": "string", "description": "URL path within the publication (e.g., /posts/my-first-post)." }, "publication": { "type": "string", "description": "AT-URI of the publication.", "format": "at-uri" } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": [ "document" ], "properties": { "document": { "type": "ref", "ref": "sh.weaver.domain.defs#documentView" } } } }, "errors": [ { "name": "PublicationNotFound" }, { "name": "DocumentNotFound" } ] } } }