{ "lexicon": 1, "id": "sh.tangled.repo.archive", "defs": { "main": { "type": "query", "parameters": { "type": "params", "required": ["repo", "ref"], "properties": { "repo": { "type": "string", "description": "Repository identifier in format 'did:plc:.../repoName'" }, "ref": { "type": "string", "description": "Git reference (branch, tag, or commit SHA)" }, "format": { "type": "string", "description": "Archive format", "enum": ["tar", "zip", "tar.gz", "tar.bz2", "tar.xz"], "default": "tar.gz" }, "prefix": { "type": "string", "description": "Prefix for files in the archive" } } }, "output": { "encoding": "*/*", "description": "Binary archive data" }, "errors": [ { "name": "RepoNotFound", "description": "Repository not found or access denied" }, { "name": "RefNotFound", "description": "Git reference not found" }, { "name": "InvalidRequest", "description": "Invalid request parameters" }, { "name": "ArchiveError", "description": "Failed to create archive" } ] } } }