Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ "lexicon": 1, "id": "org.tangled.temp.git.getTree", "defs": { "main": { "type": "query", "parameters": { "type": "params", "required": ["repo"], "properties": { "repo": { "type": "string", "format": "did", "description": "DID of the repository" }, "ref": { "type": "string", "description": "Git revision (branch, tag, or commit id)", "default": "HEAD" }, "path": { "type": "string", "description": "Path within the repository tree", "default": "" } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": [ "entries" ], "properties": { "entries": { "type": "array", "items": { "type": "ref", "ref": "#treeEntry" } }, "lastCommit": { "type": "ref", "ref": "sh.tangled.git.temp.defs#commit" } } } }, "errors": [ { "name": "RepoNotFound", "description": "Repository not found or access denied" }, { "name": "RefNotFound", "description": "Git reference not found" }, { "name": "PathNotFound", "description": "Path not found in repository tree" }, { "name": "InvalidRequest", "description": "Invalid request parameters" } ] }, "treeEntry": { "type": "object", "required": [ "name", "mode", "size" ], "properties": { "name": { "type": "string", "description": "Relative file or directory name" }, "mode": { "type": "string", "description": "File mode", "enum": ["0040000", "0100644", "0100664", "0100755", "0120000", "0160000"] }, "size": { "type": "integer", "description": "File size in bytes" }, "lastCommit": { "type": "ref", "ref": "sh.tangled.git.temp.defs#commit" } } } }}