{ "lexicon": 1, "id": "sh.tangled.repo.getDefaultBranch", "defs": { "main": { "type": "query", "parameters": { "type": "params", "required": ["repo"], "properties": { "repo": { "type": "string", "description": "Repository identifier in format 'did:plc:.../repoName'" } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": ["name", "hash", "when"], "properties": { "name": { "type": "string", "description": "Default branch name" }, "hash": { "type": "string", "description": "Latest commit hash on default branch" }, "shortHash": { "type": "string", "description": "Short commit hash" }, "when": { "type": "string", "format": "datetime", "description": "Timestamp of latest commit" }, "message": { "type": "string", "description": "Latest commit message" }, "author": { "type": "ref", "ref": "#signature" } } } }, "errors": [ { "name": "RepoNotFound", "description": "Repository not found or access denied" }, { "name": "InvalidRequest", "description": "Invalid request parameters" } ] }, "signature": { "type": "object", "required": ["name", "email", "when"], "properties": { "name": { "type": "string", "description": "Author name" }, "email": { "type": "string", "description": "Author email" }, "when": { "type": "string", "format": "datetime", "description": "Author timestamp" } } } } }