a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(tangled): pull latest Tangled lexicons

Mary 03af6f81 461c5d2a

+2270 -24
+5
.changeset/witty-drinks-sleep.md
··· 1 + --- 2 + '@atcute/tangled': patch 3 + --- 4 + 5 + pull latest Tangled lexicons
+1 -1
packages/definitions/tangled/lexicons/README.md
··· 3 3 this directory contains lexicon documents pulled from the following sources: 4 4 5 5 - https://tangled.org/tangled.org/core.git 6 - - commit: 0f171c231a40368c5e0d8d1a9465b3fd8fa04d12 6 + - commit: 163733560fc9d85baaa0facbba531c1bab78eb20
+8 -3
packages/definitions/tangled/lexicons/sh/tangled/actor/profile.json
··· 62 62 }, 63 63 "pinnedRepositories": { 64 64 "type": "array", 65 - "description": "Any ATURI, it is up to appviews to validate these fields.", 65 + "description": "Pinned repositories. Values are repo DIDs for repos that have them, or AT-URIs for legacy repos.", 66 66 "minLength": 0, 67 67 "maxLength": 6, 68 68 "items": { 69 - "type": "string", 70 - "format": "at-uri" 69 + "type": "string" 71 70 } 72 71 }, 73 72 "pronouns": { 74 73 "type": "string", 75 74 "description": "Preferred gender pronouns.", 76 75 "maxLength": 40 76 + }, 77 + "preferredHandle": { 78 + "type": "string", 79 + "description": "A handle the user prefers to be displayed as.", 80 + "format": "handle", 81 + "maxLength": 253 77 82 } 78 83 } 79 84 }
+5 -1
packages/definitions/tangled/lexicons/sh/tangled/feed/star.json
··· 9 9 "key": "tid", 10 10 "record": { 11 11 "type": "object", 12 - "required": ["subject", "createdAt"], 12 + "required": ["createdAt"], 13 13 "properties": { 14 14 "subject": { 15 15 "type": "string", 16 16 "format": "at-uri" 17 + }, 18 + "subjectDid": { 19 + "type": "string", 20 + "format": "did" 17 21 }, 18 22 "createdAt": { 19 23 "type": "string",
+7 -2
packages/definitions/tangled/lexicons/sh/tangled/git/refUpdate.json
··· 8 8 "key": "tid", 9 9 "record": { 10 10 "type": "object", 11 - "required": ["ref", "committerDid", "repoDid", "repoName", "oldSha", "newSha", "meta"], 11 + "required": ["ref", "committerDid", "repoName", "oldSha", "newSha", "meta"], 12 12 "properties": { 13 13 "ref": { 14 14 "type": "string", ··· 21 21 "description": "did of the user that pushed this ref", 22 22 "format": "did" 23 23 }, 24 + "ownerDid": { 25 + "type": "string", 26 + "description": "did of the owner of the repo", 27 + "format": "did" 28 + }, 24 29 "repoDid": { 25 30 "type": "string", 26 - "description": "did of the owner of the repo", 31 + "description": "DID of the repo itself", 27 32 "format": "did" 28 33 }, 29 34 "repoName": {
+64
packages/definitions/tangled/lexicons/sh/tangled/git/temp/analyzeMerge.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.analyzeMerge", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Check if a merge is possible between two branches", 8 + "parameters": { 9 + "type": "params", 10 + "required": ["repo", "patch", "branch"], 11 + "properties": { 12 + "repo": { 13 + "type": "string", 14 + "format": "at-uri", 15 + "description": "AT-URI of the repository" 16 + }, 17 + "patch": { 18 + "type": "string", 19 + "description": "Patch or pull request to check for merge conflicts" 20 + }, 21 + "branch": { 22 + "type": "string", 23 + "description": "Target branch to merge into" 24 + } 25 + } 26 + }, 27 + "output": { 28 + "encoding": "application/json", 29 + "schema": { 30 + "type": "object", 31 + "required": ["is_conflicted"], 32 + "properties": { 33 + "is_conflicted": { 34 + "type": "boolean", 35 + "description": "Whether the merge has conflicts" 36 + }, 37 + "conflicts": { 38 + "type": "array", 39 + "description": "List of files with merge conflicts", 40 + "items": { 41 + "type": "ref", 42 + "ref": "#conflictInfo" 43 + } 44 + } 45 + } 46 + } 47 + } 48 + }, 49 + "conflictInfo": { 50 + "type": "object", 51 + "required": ["filename", "reason"], 52 + "properties": { 53 + "filename": { 54 + "type": "string", 55 + "description": "Name of the conflicted file" 56 + }, 57 + "reason": { 58 + "type": "string", 59 + "description": "Reason for the conflict" 60 + } 61 + } 62 + } 63 + } 64 + }
+133
packages/definitions/tangled/lexicons/sh/tangled/git/temp/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.defs", 4 + "defs": { 5 + "blob": { 6 + "type": "object", 7 + "description": "blob metadata. This object doesn't include the blob content", 8 + "required": ["name", "mode", "size", "lastCommit"], 9 + "properties": { 10 + "name": { 11 + "type": "string", 12 + "description": "The file name" 13 + }, 14 + "mode": { 15 + "type": "string" 16 + }, 17 + "size": { 18 + "type": "integer", 19 + "description": "File size in bytes" 20 + }, 21 + "lastCommit": { 22 + "type": "ref", 23 + "ref": "#commit" 24 + }, 25 + "submodule": { 26 + "type": "ref", 27 + "ref": "#submodule", 28 + "description": "Submodule information if path is a submodule" 29 + } 30 + } 31 + }, 32 + "branch": { 33 + "type": "object", 34 + "required": ["name", "commit"], 35 + "properties": { 36 + "name": { 37 + "type": "string", 38 + "description": "branch name" 39 + }, 40 + "commit": { 41 + "type": "ref", 42 + "ref": "#commit", 43 + "description": "hydrated commit object" 44 + } 45 + } 46 + }, 47 + "tag": { 48 + "type": "object", 49 + "required": ["name", "tagger", "target"], 50 + "properties": { 51 + "name": { 52 + "type": "string", 53 + "description": "tag name" 54 + }, 55 + "tagger": { 56 + "type": "ref", 57 + "ref": "#signature" 58 + }, 59 + "message": { 60 + "type": "string" 61 + }, 62 + "target": { 63 + "type": "unknown" 64 + } 65 + } 66 + }, 67 + "commit": { 68 + "type": "object", 69 + "required": ["hash", "author", "committer", "message", "tree"], 70 + "properties": { 71 + "hash": { 72 + "type": "ref", 73 + "ref": "#hash" 74 + }, 75 + "author": { 76 + "type": "ref", 77 + "ref": "#signature" 78 + }, 79 + "committer": { 80 + "type": "ref", 81 + "ref": "#signature" 82 + }, 83 + "message": { 84 + "type": "string" 85 + }, 86 + "tree": { 87 + "type": "ref", 88 + "ref": "#hash" 89 + } 90 + } 91 + }, 92 + "hash": { 93 + "type": "string" 94 + }, 95 + "signature": { 96 + "type": "object", 97 + "required": ["name", "email", "when"], 98 + "properties": { 99 + "name": { 100 + "type": "string", 101 + "description": "Person name" 102 + }, 103 + "email": { 104 + "type": "string", 105 + "description": "Person email" 106 + }, 107 + "when": { 108 + "type": "string", 109 + "format": "datetime", 110 + "description": "Timestamp of the signature" 111 + } 112 + } 113 + }, 114 + "submodule": { 115 + "type": "object", 116 + "required": ["name", "url"], 117 + "properties": { 118 + "name": { 119 + "type": "string", 120 + "description": "Submodule name" 121 + }, 122 + "url": { 123 + "type": "string", 124 + "description": "Submodule repository URL" 125 + }, 126 + "branch": { 127 + "type": "string", 128 + "description": "Branch to track in the submodule" 129 + } 130 + } 131 + } 132 + } 133 + }
+56
packages/definitions/tangled/lexicons/sh/tangled/git/temp/getArchive.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getArchive", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo", "ref"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "ref": { 17 + "type": "string", 18 + "description": "Git reference (branch, tag, or commit SHA)" 19 + }, 20 + "format": { 21 + "type": "string", 22 + "description": "Archive format", 23 + "enum": ["tar", "zip", "tar.gz", "tar.bz2", "tar.xz"], 24 + "default": "tar.gz" 25 + }, 26 + "prefix": { 27 + "type": "string", 28 + "description": "Prefix for files in the archive" 29 + } 30 + } 31 + }, 32 + "output": { 33 + "encoding": "*/*", 34 + "description": "Binary archive data" 35 + }, 36 + "errors": [ 37 + { 38 + "name": "RepoNotFound", 39 + "description": "Repository not found or access denied" 40 + }, 41 + { 42 + "name": "RefNotFound", 43 + "description": "Git reference not found" 44 + }, 45 + { 46 + "name": "InvalidRequest", 47 + "description": "Invalid request parameters" 48 + }, 49 + { 50 + "name": "ArchiveError", 51 + "description": "Failed to create archive" 52 + } 53 + ] 54 + } 55 + } 56 + }
+47
packages/definitions/tangled/lexicons/sh/tangled/git/temp/getBlob.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getBlob", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo", "path"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "ref": { 17 + "type": "string", 18 + "description": "Git reference (branch, tag, or commit SHA)", 19 + "default": "HEAD" 20 + }, 21 + "path": { 22 + "type": "string", 23 + "description": "Path within the repository tree" 24 + } 25 + } 26 + }, 27 + "output": { 28 + "encoding": "*/*", 29 + "description": "raw blob served in octet-stream" 30 + }, 31 + "errors": [ 32 + { 33 + "name": "RepoNotFound", 34 + "description": "Repository not found or access denied" 35 + }, 36 + { 37 + "name": "BlobNotFound", 38 + "description": "Blob not found" 39 + }, 40 + { 41 + "name": "InvalidRequest", 42 + "description": "Invalid request parameters" 43 + } 44 + ] 45 + } 46 + } 47 + }
+68
packages/definitions/tangled/lexicons/sh/tangled/git/temp/getBranch.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getBranch", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo", "name"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "name": { 17 + "type": "string", 18 + "description": "Branch name to get information for" 19 + } 20 + } 21 + }, 22 + "output": { 23 + "encoding": "application/json", 24 + "schema": { 25 + "type": "object", 26 + "required": ["name", "hash", "when"], 27 + "properties": { 28 + "name": { 29 + "type": "string", 30 + "description": "Branch name" 31 + }, 32 + "hash": { 33 + "type": "string", 34 + "description": "Latest commit hash on this branch" 35 + }, 36 + "when": { 37 + "type": "string", 38 + "format": "datetime", 39 + "description": "Timestamp of latest commit" 40 + }, 41 + "message": { 42 + "type": "string", 43 + "description": "Latest commit message" 44 + }, 45 + "author": { 46 + "type": "ref", 47 + "ref": "sh.tangled.git.temp.defs#signature" 48 + } 49 + } 50 + } 51 + }, 52 + "errors": [ 53 + { 54 + "name": "RepoNotFound", 55 + "description": "Repository not found or access denied" 56 + }, 57 + { 58 + "name": "BranchNotFound", 59 + "description": "Branch not found" 60 + }, 61 + { 62 + "name": "InvalidRequest", 63 + "description": "Invalid request parameters" 64 + } 65 + ] 66 + } 67 + } 68 + }
+46
packages/definitions/tangled/lexicons/sh/tangled/git/temp/getCommit.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getCommit", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "resolve commit from given ref", 8 + "parameters": { 9 + "type": "params", 10 + "required": ["repo", "ref"], 11 + "properties": { 12 + "repo": { 13 + "type": "string", 14 + "format": "at-uri", 15 + "description": "AT-URI of the repository" 16 + }, 17 + "ref": { 18 + "type": "string", 19 + "description": "reference name to resolve" 20 + } 21 + } 22 + }, 23 + "output": { 24 + "encoding": "application/json", 25 + "schema": { 26 + "type": "ref", 27 + "ref": "sh.tangled.git.temp.defs#commit" 28 + } 29 + }, 30 + "errors": [ 31 + { 32 + "name": "RepoNotFound", 33 + "description": "Repository not found or access denied" 34 + }, 35 + { 36 + "name": "CommitNotFound", 37 + "description": "Commit not found" 38 + }, 39 + { 40 + "name": "InvalidRequest", 41 + "description": "Invalid request parameters" 42 + } 43 + ] 44 + } 45 + } 46 + }
+50
packages/definitions/tangled/lexicons/sh/tangled/git/temp/getDiff.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getDiff", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo", "rev1", "rev2"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "rev1": { 17 + "type": "string", 18 + "description": "First revision (commit, branch, or tag)" 19 + }, 20 + "rev2": { 21 + "type": "string", 22 + "description": "Second revision (commit, branch, or tag)" 23 + } 24 + } 25 + }, 26 + "output": { 27 + "encoding": "*/*", 28 + "description": "Compare output in application/json" 29 + }, 30 + "errors": [ 31 + { 32 + "name": "RepoNotFound", 33 + "description": "Repository not found or access denied" 34 + }, 35 + { 36 + "name": "RevisionNotFound", 37 + "description": "One or both revisions not found" 38 + }, 39 + { 40 + "name": "InvalidRequest", 41 + "description": "Invalid request parameters" 42 + }, 43 + { 44 + "name": "CompareError", 45 + "description": "Failed to compare revisions" 46 + } 47 + ] 48 + } 49 + } 50 + }
+51
packages/definitions/tangled/lexicons/sh/tangled/git/temp/getEntity.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getEntity", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "get metadata of blob by ref and path", 8 + "parameters": { 9 + "type": "params", 10 + "required": ["repo", "path"], 11 + "properties": { 12 + "repo": { 13 + "type": "string", 14 + "format": "at-uri", 15 + "description": "AT-URI of the repository" 16 + }, 17 + "ref": { 18 + "type": "string", 19 + "description": "Git reference (branch, tag, or commit SHA)", 20 + "default": "HEAD" 21 + }, 22 + "path": { 23 + "type": "string", 24 + "description": "path of the entity" 25 + } 26 + } 27 + }, 28 + "output": { 29 + "encoding": "application/json", 30 + "schema": { 31 + "type": "ref", 32 + "ref": "sh.tangled.git.temp.defs#blob" 33 + } 34 + }, 35 + "errors": [ 36 + { 37 + "name": "RepoNotFound", 38 + "description": "Repository not found or access denied" 39 + }, 40 + { 41 + "name": "BlobNotFound", 42 + "description": "Blob not found" 43 + }, 44 + { 45 + "name": "InvalidRequest", 46 + "description": "Invalid request parameters" 47 + } 48 + ] 49 + } 50 + } 51 + }
+37
packages/definitions/tangled/lexicons/sh/tangled/git/temp/getHead.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getHead", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + } 16 + } 17 + }, 18 + "output": { 19 + "encoding": "application/json", 20 + "schema": { 21 + "type": "ref", 22 + "ref": "sh.tangled.git.temp.defs#branch" 23 + } 24 + }, 25 + "errors": [ 26 + { 27 + "name": "RepoNotFound", 28 + "description": "Repository not found or access denied" 29 + }, 30 + { 31 + "name": "InvalidRequest", 32 + "description": "Invalid request parameters" 33 + } 34 + ] 35 + } 36 + } 37 + }
+41
packages/definitions/tangled/lexicons/sh/tangled/git/temp/getTag.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getTag", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo", "tag"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "tag": { 17 + "type": "string", 18 + "description": "Name of tag, such as v1.3.0" 19 + } 20 + } 21 + }, 22 + "output": { 23 + "encoding": "*/*" 24 + }, 25 + "errors": [ 26 + { 27 + "name": "RepoNotFound", 28 + "description": "Repository not found or access denied" 29 + }, 30 + { 31 + "name": "TagNotFound", 32 + "description": "Tag not found" 33 + }, 34 + { 35 + "name": "InvalidRequest", 36 + "description": "Invalid request parameters" 37 + } 38 + ] 39 + } 40 + } 41 + }
+162
packages/definitions/tangled/lexicons/sh/tangled/git/temp/getTree.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getTree", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo", "ref"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "ref": { 17 + "type": "string", 18 + "description": "Git reference (branch, tag, or commit SHA)" 19 + }, 20 + "path": { 21 + "type": "string", 22 + "description": "Path within the repository tree", 23 + "default": "" 24 + } 25 + } 26 + }, 27 + "output": { 28 + "encoding": "application/json", 29 + "schema": { 30 + "type": "object", 31 + "required": ["ref", "files"], 32 + "properties": { 33 + "ref": { 34 + "type": "string", 35 + "description": "The git reference used" 36 + }, 37 + "parent": { 38 + "type": "string", 39 + "description": "The parent path in the tree" 40 + }, 41 + "dotdot": { 42 + "type": "string", 43 + "description": "Parent directory path" 44 + }, 45 + "readme": { 46 + "type": "ref", 47 + "ref": "#readme", 48 + "description": "Readme for this file tree" 49 + }, 50 + "lastCommit": { 51 + "type": "ref", 52 + "ref": "#lastCommit" 53 + }, 54 + "files": { 55 + "type": "array", 56 + "items": { 57 + "type": "ref", 58 + "ref": "#treeEntry" 59 + } 60 + } 61 + } 62 + } 63 + }, 64 + "errors": [ 65 + { 66 + "name": "RepoNotFound", 67 + "description": "Repository not found or access denied" 68 + }, 69 + { 70 + "name": "RefNotFound", 71 + "description": "Git reference not found" 72 + }, 73 + { 74 + "name": "PathNotFound", 75 + "description": "Path not found in repository tree" 76 + }, 77 + { 78 + "name": "InvalidRequest", 79 + "description": "Invalid request parameters" 80 + } 81 + ] 82 + }, 83 + "readme": { 84 + "type": "object", 85 + "required": ["filename", "contents"], 86 + "properties": { 87 + "filename": { 88 + "type": "string", 89 + "description": "Name of the readme file" 90 + }, 91 + "contents": { 92 + "type": "string", 93 + "description": "Contents of the readme file" 94 + } 95 + } 96 + }, 97 + "treeEntry": { 98 + "type": "object", 99 + "required": ["name", "mode", "size"], 100 + "properties": { 101 + "name": { 102 + "type": "string", 103 + "description": "Relative file or directory name" 104 + }, 105 + "mode": { 106 + "type": "string", 107 + "description": "File mode" 108 + }, 109 + "size": { 110 + "type": "integer", 111 + "description": "File size in bytes" 112 + }, 113 + "last_commit": { 114 + "type": "ref", 115 + "ref": "#lastCommit" 116 + } 117 + } 118 + }, 119 + "lastCommit": { 120 + "type": "object", 121 + "required": ["hash", "message", "when"], 122 + "properties": { 123 + "hash": { 124 + "type": "string", 125 + "description": "Commit hash" 126 + }, 127 + "message": { 128 + "type": "string", 129 + "description": "Commit message" 130 + }, 131 + "author": { 132 + "type": "ref", 133 + "ref": "#signature" 134 + }, 135 + "when": { 136 + "type": "string", 137 + "format": "datetime", 138 + "description": "Commit timestamp" 139 + } 140 + } 141 + }, 142 + "signature": { 143 + "type": "object", 144 + "required": ["name", "email", "when"], 145 + "properties": { 146 + "name": { 147 + "type": "string", 148 + "description": "Author name" 149 + }, 150 + "email": { 151 + "type": "string", 152 + "description": "Author email" 153 + }, 154 + "when": { 155 + "type": "string", 156 + "format": "datetime", 157 + "description": "Author timestamp" 158 + } 159 + } 160 + } 161 + } 162 + }
+44
packages/definitions/tangled/lexicons/sh/tangled/git/temp/listBranches.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.listBranches", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "limit": { 17 + "type": "integer", 18 + "description": "Maximum number of branches to return", 19 + "minimum": 1, 20 + "maximum": 100, 21 + "default": 50 22 + }, 23 + "cursor": { 24 + "type": "string", 25 + "description": "Pagination cursor" 26 + } 27 + } 28 + }, 29 + "output": { 30 + "encoding": "*/*" 31 + }, 32 + "errors": [ 33 + { 34 + "name": "RepoNotFound", 35 + "description": "Repository not found or access denied" 36 + }, 37 + { 38 + "name": "InvalidRequest", 39 + "description": "Invalid request parameters" 40 + } 41 + ] 42 + } 43 + } 44 + }
+56
packages/definitions/tangled/lexicons/sh/tangled/git/temp/listCommits.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.listCommits", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "ref": { 17 + "type": "string", 18 + "description": "Git reference (branch, tag, or commit SHA)" 19 + }, 20 + "limit": { 21 + "type": "integer", 22 + "description": "Maximum number of commits to return", 23 + "minimum": 1, 24 + "maximum": 100, 25 + "default": 50 26 + }, 27 + "cursor": { 28 + "type": "string", 29 + "description": "Pagination cursor (commit SHA)" 30 + } 31 + } 32 + }, 33 + "output": { 34 + "encoding": "*/*" 35 + }, 36 + "errors": [ 37 + { 38 + "name": "RepoNotFound", 39 + "description": "Repository not found or access denied" 40 + }, 41 + { 42 + "name": "RefNotFound", 43 + "description": "Git reference not found" 44 + }, 45 + { 46 + "name": "PathNotFound", 47 + "description": "Path not found in repository" 48 + }, 49 + { 50 + "name": "InvalidRequest", 51 + "description": "Invalid request parameters" 52 + } 53 + ] 54 + } 55 + } 56 + }
+100
packages/definitions/tangled/lexicons/sh/tangled/git/temp/listLanguages.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.listLanguages", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "ref": { 17 + "type": "string", 18 + "description": "Git reference (branch, tag, or commit SHA)", 19 + "default": "HEAD" 20 + } 21 + } 22 + }, 23 + "output": { 24 + "encoding": "application/json", 25 + "schema": { 26 + "type": "object", 27 + "required": ["ref", "languages"], 28 + "properties": { 29 + "ref": { 30 + "type": "string", 31 + "description": "The git reference used" 32 + }, 33 + "languages": { 34 + "type": "array", 35 + "items": { 36 + "type": "ref", 37 + "ref": "#language" 38 + } 39 + }, 40 + "totalSize": { 41 + "type": "integer", 42 + "description": "Total size of all analyzed files in bytes" 43 + }, 44 + "totalFiles": { 45 + "type": "integer", 46 + "description": "Total number of files analyzed" 47 + } 48 + } 49 + } 50 + }, 51 + "errors": [ 52 + { 53 + "name": "RepoNotFound", 54 + "description": "Repository not found or access denied" 55 + }, 56 + { 57 + "name": "RefNotFound", 58 + "description": "Git reference not found" 59 + }, 60 + { 61 + "name": "InvalidRequest", 62 + "description": "Invalid request parameters" 63 + } 64 + ] 65 + }, 66 + "language": { 67 + "type": "object", 68 + "required": ["name", "size", "percentage"], 69 + "properties": { 70 + "name": { 71 + "type": "string", 72 + "description": "Programming language name" 73 + }, 74 + "size": { 75 + "type": "integer", 76 + "description": "Total size of files in this language (bytes)" 77 + }, 78 + "percentage": { 79 + "type": "integer", 80 + "description": "Percentage of total codebase (0-100)" 81 + }, 82 + "fileCount": { 83 + "type": "integer", 84 + "description": "Number of files in this language" 85 + }, 86 + "color": { 87 + "type": "string", 88 + "description": "Hex color code for this language" 89 + }, 90 + "extensions": { 91 + "type": "array", 92 + "items": { 93 + "type": "string" 94 + }, 95 + "description": "File extensions associated with this language" 96 + } 97 + } 98 + } 99 + } 100 + }
+44
packages/definitions/tangled/lexicons/sh/tangled/git/temp/listTags.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.listTags", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "at-uri", 14 + "description": "AT-URI of the repository" 15 + }, 16 + "limit": { 17 + "type": "integer", 18 + "description": "Maximum number of tags to return", 19 + "minimum": 1, 20 + "maximum": 100, 21 + "default": 50 22 + }, 23 + "cursor": { 24 + "type": "string", 25 + "description": "Pagination cursor" 26 + } 27 + } 28 + }, 29 + "output": { 30 + "encoding": "*/*" 31 + }, 32 + "errors": [ 33 + { 34 + "name": "RepoNotFound", 35 + "description": "Repository not found or access denied" 36 + }, 37 + { 38 + "name": "InvalidRequest", 39 + "description": "Invalid request parameters" 40 + } 41 + ] 42 + } 43 + } 44 + }
+83
packages/definitions/tangled/lexicons/sh/tangled/knot/subscribeRepos.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.knot.subscribeRepos", 4 + "defs": { 5 + "main": { 6 + "type": "subscription", 7 + "description": "Repository event stream, aka Firehose endpoint. Outputs repo commits with diff data, and identity update events, for all repositories on the current server. See the atproto specifications for details around stream sequencing, repo versioning, CAR diff format, and more. Public and does not require auth; implemented by PDS and Relay.", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "cursor": { 12 + "type": "integer", 13 + "description": "The last known event seq number to backfill from." 14 + } 15 + } 16 + }, 17 + "message": { 18 + "schema": { 19 + "type": "union", 20 + "refs": ["#identity", "sh.tangled.git.refUpdate"] 21 + } 22 + }, 23 + "errors": [ 24 + { 25 + "name": "FutureCursor" 26 + }, 27 + { 28 + "name": "ConsumerTooSlow", 29 + "description": "If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection." 30 + } 31 + ] 32 + }, 33 + "identity": { 34 + "type": "object", 35 + "required": ["seq", "did", "time"], 36 + "properties": { 37 + "seq": { 38 + "type": "integer", 39 + "description": "The stream sequence number of this message." 40 + }, 41 + "did": { 42 + "type": "string", 43 + "format": "did", 44 + "description": "Repository DID identifier" 45 + }, 46 + "time": { 47 + "type": "string", 48 + "format": "datetime" 49 + } 50 + } 51 + }, 52 + "gitSync1": { 53 + "type": "object", 54 + "required": ["seq", "did"], 55 + "properties": { 56 + "seq": { 57 + "type": "integer", 58 + "description": "The stream sequence number of this message." 59 + }, 60 + "did": { 61 + "type": "string", 62 + "format": "did", 63 + "description": "Repository DID identifier" 64 + } 65 + } 66 + }, 67 + "gitSync2": { 68 + "type": "object", 69 + "required": ["seq", "repo"], 70 + "properties": { 71 + "seq": { 72 + "type": "integer", 73 + "description": "The stream sequence number of this message." 74 + }, 75 + "repo": { 76 + "type": "string", 77 + "format": "at-uri", 78 + "description": "Repository AT-URI identifier" 79 + } 80 + } 81 + } 82 + } 83 + }
+6 -1
packages/definitions/tangled/lexicons/sh/tangled/pipeline.json
··· 53 53 }, 54 54 "triggerRepo": { 55 55 "type": "object", 56 - "required": ["knot", "did", "repo", "defaultBranch"], 56 + "required": ["knot", "did", "defaultBranch"], 57 57 "properties": { 58 58 "knot": { 59 59 "type": "string" 60 60 }, 61 61 "did": { 62 62 "type": "string", 63 + "format": "did" 64 + }, 65 + "repoDid": { 66 + "type": "string", 67 + "description": "DID of the repo itself", 63 68 "format": "did" 64 69 }, 65 70 "repo": {
+5
packages/definitions/tangled/lexicons/sh/tangled/repo.json
··· 56 56 "format": "at-uri" 57 57 } 58 58 }, 59 + "repoDid": { 60 + "type": "string", 61 + "format": "did", 62 + "description": "DID of the repo itself, if assigned" 63 + }, 59 64 "createdAt": { 60 65 "type": "string", 61 66 "format": "datetime"
+5 -1
packages/definitions/tangled/lexicons/sh/tangled/repo/artifact.json
··· 9 9 "key": "tid", 10 10 "record": { 11 11 "type": "object", 12 - "required": ["name", "repo", "tag", "createdAt", "artifact"], 12 + "required": ["name", "tag", "createdAt", "artifact"], 13 13 "properties": { 14 14 "name": { 15 15 "type": "string", ··· 19 19 "type": "string", 20 20 "format": "at-uri", 21 21 "description": "repo that this artifact is being uploaded to" 22 + }, 23 + "repoDid": { 24 + "type": "string", 25 + "format": "did" 22 26 }, 23 27 "tag": { 24 28 "type": "bytes",
+5 -1
packages/definitions/tangled/lexicons/sh/tangled/repo/collaborator.json
··· 9 9 "key": "tid", 10 10 "record": { 11 11 "type": "object", 12 - "required": ["subject", "repo", "createdAt"], 12 + "required": ["subject", "createdAt"], 13 13 "properties": { 14 14 "subject": { 15 15 "type": "string", ··· 19 19 "type": "string", 20 20 "description": "repo to add this user to", 21 21 "format": "at-uri" 22 + }, 23 + "repoDid": { 24 + "type": "string", 25 + "format": "did" 22 26 }, 23 27 "createdAt": { 24 28 "type": "string",
+22 -1
packages/definitions/tangled/lexicons/sh/tangled/repo/create.json
··· 9 9 "encoding": "application/json", 10 10 "schema": { 11 11 "type": "object", 12 - "required": ["rkey"], 12 + "required": ["rkey", "name"], 13 13 "properties": { 14 14 "rkey": { 15 15 "type": "string", 16 16 "description": "Rkey of the repository record" 17 + }, 18 + "name": { 19 + "type": "string", 20 + "description": "Name of the repository" 17 21 }, 18 22 "defaultBranch": { 19 23 "type": "string", ··· 22 26 "source": { 23 27 "type": "string", 24 28 "description": "A source URL to clone from, populate this when forking or importing a repository." 29 + }, 30 + "repoDid": { 31 + "type": "string", 32 + "format": "did", 33 + "description": "Optional user-provided did:web to use as the repo identity instead of minting a did:plc." 34 + } 35 + } 36 + } 37 + }, 38 + "output": { 39 + "encoding": "application/json", 40 + "schema": { 41 + "type": "object", 42 + "properties": { 43 + "repoDid": { 44 + "type": "string", 45 + "format": "did" 25 46 } 26 47 } 27 48 }
+5 -1
packages/definitions/tangled/lexicons/sh/tangled/repo/issue.json
··· 9 9 "key": "tid", 10 10 "record": { 11 11 "type": "object", 12 - "required": ["repo", "title", "createdAt"], 12 + "required": ["title", "createdAt"], 13 13 "properties": { 14 14 "repo": { 15 15 "type": "string", 16 16 "format": "at-uri" 17 + }, 18 + "repoDid": { 19 + "type": "string", 20 + "format": "did" 17 21 }, 18 22 "title": { 19 23 "type": "string"
+9 -1
packages/definitions/tangled/lexicons/sh/tangled/repo/pull.json
··· 57 57 }, 58 58 "target": { 59 59 "type": "object", 60 - "required": ["repo", "branch"], 60 + "required": ["branch"], 61 61 "properties": { 62 62 "repo": { 63 63 "type": "string", 64 64 "format": "at-uri" 65 + }, 66 + "repoDid": { 67 + "type": "string", 68 + "format": "did" 65 69 }, 66 70 "branch": { 67 71 "type": "string" ··· 83 87 "repo": { 84 88 "type": "string", 85 89 "format": "at-uri" 90 + }, 91 + "repoDid": { 92 + "type": "string", 93 + "format": "did" 86 94 } 87 95 } 88 96 }
+33
packages/definitions/tangled/lexicons/sh/tangled/sync/requestCrawl.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.sync.requestCrawl", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Request a service to persistently crawl hosted repos. Does not require auth.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["hostname"], 13 + "properties": { 14 + "hostname": { 15 + "type": "string", 16 + "description": "Hostname of the current service (eg, Knot) that is requesting to be crawled." 17 + }, 18 + "ensureRepo": { 19 + "type": "string", 20 + "format": "at-uri", 21 + "description": "specific repository to ensure crawling" 22 + } 23 + } 24 + } 25 + }, 26 + "errors": [ 27 + { 28 + "name": "HostBanned" 29 + } 30 + ] 31 + } 32 + } 33 + }
+17
packages/definitions/tangled/lib/lexicons/index.ts
··· 2 2 export * as ShTangledFeedReaction from './types/sh/tangled/feed/reaction.ts'; 3 3 export * as ShTangledFeedStar from './types/sh/tangled/feed/star.ts'; 4 4 export * as ShTangledGitRefUpdate from './types/sh/tangled/git/refUpdate.ts'; 5 + export * as ShTangledGitTempAnalyzeMerge from './types/sh/tangled/git/temp/analyzeMerge.ts'; 6 + export * as ShTangledGitTempDefs from './types/sh/tangled/git/temp/defs.ts'; 7 + export * as ShTangledGitTempGetArchive from './types/sh/tangled/git/temp/getArchive.ts'; 8 + export * as ShTangledGitTempGetBlob from './types/sh/tangled/git/temp/getBlob.ts'; 9 + export * as ShTangledGitTempGetBranch from './types/sh/tangled/git/temp/getBranch.ts'; 10 + export * as ShTangledGitTempGetCommit from './types/sh/tangled/git/temp/getCommit.ts'; 11 + export * as ShTangledGitTempGetDiff from './types/sh/tangled/git/temp/getDiff.ts'; 12 + export * as ShTangledGitTempGetEntity from './types/sh/tangled/git/temp/getEntity.ts'; 13 + export * as ShTangledGitTempGetHead from './types/sh/tangled/git/temp/getHead.ts'; 14 + export * as ShTangledGitTempGetTag from './types/sh/tangled/git/temp/getTag.ts'; 15 + export * as ShTangledGitTempGetTree from './types/sh/tangled/git/temp/getTree.ts'; 16 + export * as ShTangledGitTempListBranches from './types/sh/tangled/git/temp/listBranches.ts'; 17 + export * as ShTangledGitTempListCommits from './types/sh/tangled/git/temp/listCommits.ts'; 18 + export * as ShTangledGitTempListLanguages from './types/sh/tangled/git/temp/listLanguages.ts'; 19 + export * as ShTangledGitTempListTags from './types/sh/tangled/git/temp/listTags.ts'; 5 20 export * as ShTangledGraphFollow from './types/sh/tangled/graph/follow.ts'; 6 21 export * as ShTangledKnot from './types/sh/tangled/knot.ts'; 7 22 export * as ShTangledKnotListKeys from './types/sh/tangled/knot/listKeys.ts'; 8 23 export * as ShTangledKnotMember from './types/sh/tangled/knot/member.ts'; 24 + export * as ShTangledKnotSubscribeRepos from './types/sh/tangled/knot/subscribeRepos.ts'; 9 25 export * as ShTangledKnotVersion from './types/sh/tangled/knot/version.ts'; 10 26 export * as ShTangledLabelDefinition from './types/sh/tangled/label/definition.ts'; 11 27 export * as ShTangledLabelOp from './types/sh/tangled/label/op.ts'; ··· 55 71 export * as ShTangledSpindle from './types/sh/tangled/spindle.ts'; 56 72 export * as ShTangledSpindleMember from './types/sh/tangled/spindle/member.ts'; 57 73 export * as ShTangledString from './types/sh/tangled/string.ts'; 74 + export * as ShTangledSyncRequestCrawl from './types/sh/tangled/sync/requestCrawl.ts';
+9 -2
packages/definitions/tangled/lib/lexicons/types/sh/tangled/actor/profile.ts
··· 48 48 ]), 49 49 ), 50 50 /** 51 - * Any ATURI, it is up to appviews to validate these fields. 51 + * Pinned repositories. Values are repo DIDs for repos that have them, or AT-URIs for legacy repos. 52 52 * @minLength 0 53 53 * @maxLength 6 54 54 */ 55 55 pinnedRepositories: /*#__PURE__*/ v.optional( 56 - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), [ 56 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string()), [ 57 57 /*#__PURE__*/ v.arrayLength(0, 6), 58 58 ]), 59 + ), 60 + /** 61 + * A handle the user prefers to be displayed as. 62 + * @maxLength 253 63 + */ 64 + preferredHandle: /*#__PURE__*/ v.optional( 65 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.handleString(), [/*#__PURE__*/ v.stringLength(0, 253)]), 59 66 ), 60 67 /** 61 68 * Preferred gender pronouns.
+2 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/feed/star.ts
··· 7 7 /*#__PURE__*/ v.object({ 8 8 $type: /*#__PURE__*/ v.literal('sh.tangled.feed.star'), 9 9 createdAt: /*#__PURE__*/ v.datetimeString(), 10 - subject: /*#__PURE__*/ v.resourceUriString(), 10 + subject: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 11 + subjectDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 11 12 }), 12 13 ); 13 14
+6 -2
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/refUpdate.ts
··· 50 50 */ 51 51 oldSha: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(40, 40)]), 52 52 /** 53 + * did of the owner of the repo 54 + */ 55 + ownerDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 56 + /** 53 57 * Ref being updated 54 58 * @maxLength 2560 55 59 * @maxGraphemes 256 ··· 59 63 /*#__PURE__*/ v.stringGraphemes(0, 256), 60 64 ]), 61 65 /** 62 - * did of the owner of the repo 66 + * DID of the repo itself 63 67 */ 64 - repoDid: /*#__PURE__*/ v.didString(), 68 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 65 69 /** 66 70 * name of the repo 67 71 */
+66
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/analyzeMerge.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _conflictInfoSchema = /*#__PURE__*/ v.object({ 6 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.analyzeMerge#conflictInfo')), 7 + /** 8 + * Name of the conflicted file 9 + */ 10 + filename: /*#__PURE__*/ v.string(), 11 + /** 12 + * Reason for the conflict 13 + */ 14 + reason: /*#__PURE__*/ v.string(), 15 + }); 16 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.analyzeMerge', { 17 + params: /*#__PURE__*/ v.object({ 18 + /** 19 + * Target branch to merge into 20 + */ 21 + branch: /*#__PURE__*/ v.string(), 22 + /** 23 + * Patch or pull request to check for merge conflicts 24 + */ 25 + patch: /*#__PURE__*/ v.string(), 26 + /** 27 + * AT-URI of the repository 28 + */ 29 + repo: /*#__PURE__*/ v.resourceUriString(), 30 + }), 31 + output: { 32 + type: 'lex', 33 + schema: /*#__PURE__*/ v.object({ 34 + /** 35 + * List of files with merge conflicts 36 + */ 37 + get conflicts() { 38 + return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(conflictInfoSchema)); 39 + }, 40 + /** 41 + * Whether the merge has conflicts 42 + */ 43 + is_conflicted: /*#__PURE__*/ v.boolean(), 44 + }), 45 + }, 46 + }); 47 + 48 + type conflictInfo$schematype = typeof _conflictInfoSchema; 49 + type main$schematype = typeof _mainSchema; 50 + 51 + export interface conflictInfoSchema extends conflictInfo$schematype {} 52 + export interface mainSchema extends main$schematype {} 53 + 54 + export const conflictInfoSchema = _conflictInfoSchema as conflictInfoSchema; 55 + export const mainSchema = _mainSchema as mainSchema; 56 + 57 + export interface ConflictInfo extends v.InferInput<typeof conflictInfoSchema> {} 58 + 59 + export interface $params extends v.InferInput<mainSchema['params']> {} 60 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 61 + 62 + declare module '@atcute/lexicons/ambient' { 63 + interface XRPCQueries { 64 + 'sh.tangled.git.temp.analyzeMerge': mainSchema; 65 + } 66 + }
+128
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/defs.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + 4 + const _blobSchema = /*#__PURE__*/ v.object({ 5 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.defs#blob')), 6 + get lastCommit() { 7 + return commitSchema; 8 + }, 9 + mode: /*#__PURE__*/ v.string(), 10 + /** 11 + * The file name 12 + */ 13 + name: /*#__PURE__*/ v.string(), 14 + /** 15 + * File size in bytes 16 + */ 17 + size: /*#__PURE__*/ v.integer(), 18 + /** 19 + * Submodule information if path is a submodule 20 + */ 21 + get submodule() { 22 + return /*#__PURE__*/ v.optional(submoduleSchema); 23 + }, 24 + }); 25 + const _branchSchema = /*#__PURE__*/ v.object({ 26 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.defs#branch')), 27 + /** 28 + * hydrated commit object 29 + */ 30 + get commit() { 31 + return commitSchema; 32 + }, 33 + /** 34 + * branch name 35 + */ 36 + name: /*#__PURE__*/ v.string(), 37 + }); 38 + const _commitSchema = /*#__PURE__*/ v.object({ 39 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.defs#commit')), 40 + get author() { 41 + return signatureSchema; 42 + }, 43 + get committer() { 44 + return signatureSchema; 45 + }, 46 + get hash() { 47 + return hashSchema; 48 + }, 49 + message: /*#__PURE__*/ v.string(), 50 + get tree() { 51 + return hashSchema; 52 + }, 53 + }); 54 + const _hashSchema = /*#__PURE__*/ v.string(); 55 + const _signatureSchema = /*#__PURE__*/ v.object({ 56 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.defs#signature')), 57 + /** 58 + * Person email 59 + */ 60 + email: /*#__PURE__*/ v.string(), 61 + /** 62 + * Person name 63 + */ 64 + name: /*#__PURE__*/ v.string(), 65 + /** 66 + * Timestamp of the signature 67 + */ 68 + when: /*#__PURE__*/ v.datetimeString(), 69 + }); 70 + const _submoduleSchema = /*#__PURE__*/ v.object({ 71 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.defs#submodule')), 72 + /** 73 + * Branch to track in the submodule 74 + */ 75 + branch: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 76 + /** 77 + * Submodule name 78 + */ 79 + name: /*#__PURE__*/ v.string(), 80 + /** 81 + * Submodule repository URL 82 + */ 83 + url: /*#__PURE__*/ v.string(), 84 + }); 85 + const _tagSchema = /*#__PURE__*/ v.object({ 86 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.defs#tag')), 87 + message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 88 + /** 89 + * tag name 90 + */ 91 + name: /*#__PURE__*/ v.string(), 92 + get tagger() { 93 + return signatureSchema; 94 + }, 95 + target: /*#__PURE__*/ v.unknown(), 96 + }); 97 + 98 + type blob$schematype = typeof _blobSchema; 99 + type branch$schematype = typeof _branchSchema; 100 + type commit$schematype = typeof _commitSchema; 101 + type hash$schematype = typeof _hashSchema; 102 + type signature$schematype = typeof _signatureSchema; 103 + type submodule$schematype = typeof _submoduleSchema; 104 + type tag$schematype = typeof _tagSchema; 105 + 106 + export interface blobSchema extends blob$schematype {} 107 + export interface branchSchema extends branch$schematype {} 108 + export interface commitSchema extends commit$schematype {} 109 + export interface hashSchema extends hash$schematype {} 110 + export interface signatureSchema extends signature$schematype {} 111 + export interface submoduleSchema extends submodule$schematype {} 112 + export interface tagSchema extends tag$schematype {} 113 + 114 + export const blobSchema = _blobSchema as blobSchema; 115 + export const branchSchema = _branchSchema as branchSchema; 116 + export const commitSchema = _commitSchema as commitSchema; 117 + export const hashSchema = _hashSchema as hashSchema; 118 + export const signatureSchema = _signatureSchema as signatureSchema; 119 + export const submoduleSchema = _submoduleSchema as submoduleSchema; 120 + export const tagSchema = _tagSchema as tagSchema; 121 + 122 + export interface Blob extends v.InferInput<typeof blobSchema> {} 123 + export interface Branch extends v.InferInput<typeof branchSchema> {} 124 + export interface Commit extends v.InferInput<typeof commitSchema> {} 125 + export type Hash = v.InferInput<typeof hashSchema>; 126 + export interface Signature extends v.InferInput<typeof signatureSchema> {} 127 + export interface Submodule extends v.InferInput<typeof submoduleSchema> {} 128 + export interface Tag extends v.InferInput<typeof tagSchema> {}
+46
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/getArchive.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getArchive', { 6 + params: /*#__PURE__*/ v.object({ 7 + /** 8 + * Archive format 9 + * @default "tar.gz" 10 + */ 11 + format: /*#__PURE__*/ v.optional( 12 + /*#__PURE__*/ v.literalEnum(['tar', 'tar.bz2', 'tar.gz', 'tar.xz', 'zip']), 13 + 'tar.gz', 14 + ), 15 + /** 16 + * Prefix for files in the archive 17 + */ 18 + prefix: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 + /** 20 + * Git reference (branch, tag, or commit SHA) 21 + */ 22 + ref: /*#__PURE__*/ v.string(), 23 + /** 24 + * AT-URI of the repository 25 + */ 26 + repo: /*#__PURE__*/ v.resourceUriString(), 27 + }), 28 + output: { 29 + type: 'blob', 30 + }, 31 + }); 32 + 33 + type main$schematype = typeof _mainSchema; 34 + 35 + export interface mainSchema extends main$schematype {} 36 + 37 + export const mainSchema = _mainSchema as mainSchema; 38 + 39 + export interface $params extends v.InferInput<mainSchema['params']> {} 40 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 41 + 42 + declare module '@atcute/lexicons/ambient' { 43 + interface XRPCQueries { 44 + 'sh.tangled.git.temp.getArchive': mainSchema; 45 + } 46 + }
+39
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/getBlob.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getBlob', { 6 + params: /*#__PURE__*/ v.object({ 7 + /** 8 + * Path within the repository tree 9 + */ 10 + path: /*#__PURE__*/ v.string(), 11 + /** 12 + * Git reference (branch, tag, or commit SHA) 13 + * @default "HEAD" 14 + */ 15 + ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), 'HEAD'), 16 + /** 17 + * AT-URI of the repository 18 + */ 19 + repo: /*#__PURE__*/ v.resourceUriString(), 20 + }), 21 + output: { 22 + type: 'blob', 23 + }, 24 + }); 25 + 26 + type main$schematype = typeof _mainSchema; 27 + 28 + export interface mainSchema extends main$schematype {} 29 + 30 + export const mainSchema = _mainSchema as mainSchema; 31 + 32 + export interface $params extends v.InferInput<mainSchema['params']> {} 33 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 34 + 35 + declare module '@atcute/lexicons/ambient' { 36 + interface XRPCQueries { 37 + 'sh.tangled.git.temp.getBlob': mainSchema; 38 + } 39 + }
+57
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/getBranch.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ShTangledGitTempDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getBranch', { 8 + params: /*#__PURE__*/ v.object({ 9 + /** 10 + * Branch name to get information for 11 + */ 12 + name: /*#__PURE__*/ v.string(), 13 + /** 14 + * AT-URI of the repository 15 + */ 16 + repo: /*#__PURE__*/ v.resourceUriString(), 17 + }), 18 + output: { 19 + type: 'lex', 20 + schema: /*#__PURE__*/ v.object({ 21 + get author() { 22 + return /*#__PURE__*/ v.optional(ShTangledGitTempDefs.signatureSchema); 23 + }, 24 + /** 25 + * Latest commit hash on this branch 26 + */ 27 + hash: /*#__PURE__*/ v.string(), 28 + /** 29 + * Latest commit message 30 + */ 31 + message: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 32 + /** 33 + * Branch name 34 + */ 35 + name: /*#__PURE__*/ v.string(), 36 + /** 37 + * Timestamp of latest commit 38 + */ 39 + when: /*#__PURE__*/ v.datetimeString(), 40 + }), 41 + }, 42 + }); 43 + 44 + type main$schematype = typeof _mainSchema; 45 + 46 + export interface mainSchema extends main$schematype {} 47 + 48 + export const mainSchema = _mainSchema as mainSchema; 49 + 50 + export interface $params extends v.InferInput<mainSchema['params']> {} 51 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 52 + 53 + declare module '@atcute/lexicons/ambient' { 54 + interface XRPCQueries { 55 + 'sh.tangled.git.temp.getBranch': mainSchema; 56 + } 57 + }
+39
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/getCommit.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ShTangledGitTempDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getCommit', { 8 + params: /*#__PURE__*/ v.object({ 9 + /** 10 + * reference name to resolve 11 + */ 12 + ref: /*#__PURE__*/ v.string(), 13 + /** 14 + * AT-URI of the repository 15 + */ 16 + repo: /*#__PURE__*/ v.resourceUriString(), 17 + }), 18 + output: { 19 + type: 'lex', 20 + get schema() { 21 + return ShTangledGitTempDefs.commitSchema; 22 + }, 23 + }, 24 + }); 25 + 26 + type main$schematype = typeof _mainSchema; 27 + 28 + export interface mainSchema extends main$schematype {} 29 + 30 + export const mainSchema = _mainSchema as mainSchema; 31 + 32 + export interface $params extends v.InferInput<mainSchema['params']> {} 33 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 34 + 35 + declare module '@atcute/lexicons/ambient' { 36 + interface XRPCQueries { 37 + 'sh.tangled.git.temp.getCommit': mainSchema; 38 + } 39 + }
+38
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/getDiff.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getDiff', { 6 + params: /*#__PURE__*/ v.object({ 7 + /** 8 + * AT-URI of the repository 9 + */ 10 + repo: /*#__PURE__*/ v.resourceUriString(), 11 + /** 12 + * First revision (commit, branch, or tag) 13 + */ 14 + rev1: /*#__PURE__*/ v.string(), 15 + /** 16 + * Second revision (commit, branch, or tag) 17 + */ 18 + rev2: /*#__PURE__*/ v.string(), 19 + }), 20 + output: { 21 + type: 'blob', 22 + }, 23 + }); 24 + 25 + type main$schematype = typeof _mainSchema; 26 + 27 + export interface mainSchema extends main$schematype {} 28 + 29 + export const mainSchema = _mainSchema as mainSchema; 30 + 31 + export interface $params extends v.InferInput<mainSchema['params']> {} 32 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 33 + 34 + declare module '@atcute/lexicons/ambient' { 35 + interface XRPCQueries { 36 + 'sh.tangled.git.temp.getDiff': mainSchema; 37 + } 38 + }
+44
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/getEntity.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ShTangledGitTempDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getEntity', { 8 + params: /*#__PURE__*/ v.object({ 9 + /** 10 + * path of the entity 11 + */ 12 + path: /*#__PURE__*/ v.string(), 13 + /** 14 + * Git reference (branch, tag, or commit SHA) 15 + * @default "HEAD" 16 + */ 17 + ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), 'HEAD'), 18 + /** 19 + * AT-URI of the repository 20 + */ 21 + repo: /*#__PURE__*/ v.resourceUriString(), 22 + }), 23 + output: { 24 + type: 'lex', 25 + get schema() { 26 + return ShTangledGitTempDefs.blobSchema; 27 + }, 28 + }, 29 + }); 30 + 31 + type main$schematype = typeof _mainSchema; 32 + 33 + export interface mainSchema extends main$schematype {} 34 + 35 + export const mainSchema = _mainSchema as mainSchema; 36 + 37 + export interface $params extends v.InferInput<mainSchema['params']> {} 38 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 39 + 40 + declare module '@atcute/lexicons/ambient' { 41 + interface XRPCQueries { 42 + 'sh.tangled.git.temp.getEntity': mainSchema; 43 + } 44 + }
+35
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/getHead.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ShTangledGitTempDefs from './defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getHead', { 8 + params: /*#__PURE__*/ v.object({ 9 + /** 10 + * AT-URI of the repository 11 + */ 12 + repo: /*#__PURE__*/ v.resourceUriString(), 13 + }), 14 + output: { 15 + type: 'lex', 16 + get schema() { 17 + return ShTangledGitTempDefs.branchSchema; 18 + }, 19 + }, 20 + }); 21 + 22 + type main$schematype = typeof _mainSchema; 23 + 24 + export interface mainSchema extends main$schematype {} 25 + 26 + export const mainSchema = _mainSchema as mainSchema; 27 + 28 + export interface $params extends v.InferInput<mainSchema['params']> {} 29 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 30 + 31 + declare module '@atcute/lexicons/ambient' { 32 + interface XRPCQueries { 33 + 'sh.tangled.git.temp.getHead': mainSchema; 34 + } 35 + }
+34
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/getTag.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getTag', { 6 + params: /*#__PURE__*/ v.object({ 7 + /** 8 + * AT-URI of the repository 9 + */ 10 + repo: /*#__PURE__*/ v.resourceUriString(), 11 + /** 12 + * Name of tag, such as v1.3.0 13 + */ 14 + tag: /*#__PURE__*/ v.string(), 15 + }), 16 + output: { 17 + type: 'blob', 18 + }, 19 + }); 20 + 21 + type main$schematype = typeof _mainSchema; 22 + 23 + export interface mainSchema extends main$schematype {} 24 + 25 + export const mainSchema = _mainSchema as mainSchema; 26 + 27 + export interface $params extends v.InferInput<mainSchema['params']> {} 28 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 29 + 30 + declare module '@atcute/lexicons/ambient' { 31 + interface XRPCQueries { 32 + 'sh.tangled.git.temp.getTag': mainSchema; 33 + } 34 + }
+144
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/getTree.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _lastCommitSchema = /*#__PURE__*/ v.object({ 6 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.getTree#lastCommit')), 7 + get author() { 8 + return /*#__PURE__*/ v.optional(signatureSchema); 9 + }, 10 + /** 11 + * Commit hash 12 + */ 13 + hash: /*#__PURE__*/ v.string(), 14 + /** 15 + * Commit message 16 + */ 17 + message: /*#__PURE__*/ v.string(), 18 + /** 19 + * Commit timestamp 20 + */ 21 + when: /*#__PURE__*/ v.datetimeString(), 22 + }); 23 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.getTree', { 24 + params: /*#__PURE__*/ v.object({ 25 + /** 26 + * Path within the repository tree 27 + * @default "" 28 + */ 29 + path: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), ''), 30 + /** 31 + * Git reference (branch, tag, or commit SHA) 32 + */ 33 + ref: /*#__PURE__*/ v.string(), 34 + /** 35 + * AT-URI of the repository 36 + */ 37 + repo: /*#__PURE__*/ v.resourceUriString(), 38 + }), 39 + output: { 40 + type: 'lex', 41 + schema: /*#__PURE__*/ v.object({ 42 + /** 43 + * Parent directory path 44 + */ 45 + dotdot: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 46 + get files() { 47 + return /*#__PURE__*/ v.array(treeEntrySchema); 48 + }, 49 + get lastCommit() { 50 + return /*#__PURE__*/ v.optional(lastCommitSchema); 51 + }, 52 + /** 53 + * The parent path in the tree 54 + */ 55 + parent: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 56 + /** 57 + * Readme for this file tree 58 + */ 59 + get readme() { 60 + return /*#__PURE__*/ v.optional(readmeSchema); 61 + }, 62 + /** 63 + * The git reference used 64 + */ 65 + ref: /*#__PURE__*/ v.string(), 66 + }), 67 + }, 68 + }); 69 + const _readmeSchema = /*#__PURE__*/ v.object({ 70 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.getTree#readme')), 71 + /** 72 + * Contents of the readme file 73 + */ 74 + contents: /*#__PURE__*/ v.string(), 75 + /** 76 + * Name of the readme file 77 + */ 78 + filename: /*#__PURE__*/ v.string(), 79 + }); 80 + const _signatureSchema = /*#__PURE__*/ v.object({ 81 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.getTree#signature')), 82 + /** 83 + * Author email 84 + */ 85 + email: /*#__PURE__*/ v.string(), 86 + /** 87 + * Author name 88 + */ 89 + name: /*#__PURE__*/ v.string(), 90 + /** 91 + * Author timestamp 92 + */ 93 + when: /*#__PURE__*/ v.datetimeString(), 94 + }); 95 + const _treeEntrySchema = /*#__PURE__*/ v.object({ 96 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.getTree#treeEntry')), 97 + get last_commit() { 98 + return /*#__PURE__*/ v.optional(lastCommitSchema); 99 + }, 100 + /** 101 + * File mode 102 + */ 103 + mode: /*#__PURE__*/ v.string(), 104 + /** 105 + * Relative file or directory name 106 + */ 107 + name: /*#__PURE__*/ v.string(), 108 + /** 109 + * File size in bytes 110 + */ 111 + size: /*#__PURE__*/ v.integer(), 112 + }); 113 + 114 + type lastCommit$schematype = typeof _lastCommitSchema; 115 + type main$schematype = typeof _mainSchema; 116 + type readme$schematype = typeof _readmeSchema; 117 + type signature$schematype = typeof _signatureSchema; 118 + type treeEntry$schematype = typeof _treeEntrySchema; 119 + 120 + export interface lastCommitSchema extends lastCommit$schematype {} 121 + export interface mainSchema extends main$schematype {} 122 + export interface readmeSchema extends readme$schematype {} 123 + export interface signatureSchema extends signature$schematype {} 124 + export interface treeEntrySchema extends treeEntry$schematype {} 125 + 126 + export const lastCommitSchema = _lastCommitSchema as lastCommitSchema; 127 + export const mainSchema = _mainSchema as mainSchema; 128 + export const readmeSchema = _readmeSchema as readmeSchema; 129 + export const signatureSchema = _signatureSchema as signatureSchema; 130 + export const treeEntrySchema = _treeEntrySchema as treeEntrySchema; 131 + 132 + export interface LastCommit extends v.InferInput<typeof lastCommitSchema> {} 133 + export interface Readme extends v.InferInput<typeof readmeSchema> {} 134 + export interface Signature extends v.InferInput<typeof signatureSchema> {} 135 + export interface TreeEntry extends v.InferInput<typeof treeEntrySchema> {} 136 + 137 + export interface $params extends v.InferInput<mainSchema['params']> {} 138 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 139 + 140 + declare module '@atcute/lexicons/ambient' { 141 + interface XRPCQueries { 142 + 'sh.tangled.git.temp.getTree': mainSchema; 143 + } 144 + }
+44
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/listBranches.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.listBranches', { 6 + params: /*#__PURE__*/ v.object({ 7 + /** 8 + * Pagination cursor 9 + */ 10 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 + /** 12 + * Maximum number of branches to return 13 + * @minimum 1 14 + * @maximum 100 15 + * @default 50 16 + */ 17 + limit: /*#__PURE__*/ v.optional( 18 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 19 + 50, 20 + ), 21 + /** 22 + * AT-URI of the repository 23 + */ 24 + repo: /*#__PURE__*/ v.resourceUriString(), 25 + }), 26 + output: { 27 + type: 'blob', 28 + }, 29 + }); 30 + 31 + type main$schematype = typeof _mainSchema; 32 + 33 + export interface mainSchema extends main$schematype {} 34 + 35 + export const mainSchema = _mainSchema as mainSchema; 36 + 37 + export interface $params extends v.InferInput<mainSchema['params']> {} 38 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 39 + 40 + declare module '@atcute/lexicons/ambient' { 41 + interface XRPCQueries { 42 + 'sh.tangled.git.temp.listBranches': mainSchema; 43 + } 44 + }
+48
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/listCommits.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.listCommits', { 6 + params: /*#__PURE__*/ v.object({ 7 + /** 8 + * Pagination cursor (commit SHA) 9 + */ 10 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 + /** 12 + * Maximum number of commits to return 13 + * @minimum 1 14 + * @maximum 100 15 + * @default 50 16 + */ 17 + limit: /*#__PURE__*/ v.optional( 18 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 19 + 50, 20 + ), 21 + /** 22 + * Git reference (branch, tag, or commit SHA) 23 + */ 24 + ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 25 + /** 26 + * AT-URI of the repository 27 + */ 28 + repo: /*#__PURE__*/ v.resourceUriString(), 29 + }), 30 + output: { 31 + type: 'blob', 32 + }, 33 + }); 34 + 35 + type main$schematype = typeof _mainSchema; 36 + 37 + export interface mainSchema extends main$schematype {} 38 + 39 + export const mainSchema = _mainSchema as mainSchema; 40 + 41 + export interface $params extends v.InferInput<mainSchema['params']> {} 42 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 43 + 44 + declare module '@atcute/lexicons/ambient' { 45 + interface XRPCQueries { 46 + 'sh.tangled.git.temp.listCommits': mainSchema; 47 + } 48 + }
+84
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/listLanguages.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _languageSchema = /*#__PURE__*/ v.object({ 6 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.git.temp.listLanguages#language')), 7 + /** 8 + * Hex color code for this language 9 + */ 10 + color: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 + /** 12 + * File extensions associated with this language 13 + */ 14 + extensions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 15 + /** 16 + * Number of files in this language 17 + */ 18 + fileCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 19 + /** 20 + * Programming language name 21 + */ 22 + name: /*#__PURE__*/ v.string(), 23 + /** 24 + * Percentage of total codebase (0-100) 25 + */ 26 + percentage: /*#__PURE__*/ v.integer(), 27 + /** 28 + * Total size of files in this language (bytes) 29 + */ 30 + size: /*#__PURE__*/ v.integer(), 31 + }); 32 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.listLanguages', { 33 + params: /*#__PURE__*/ v.object({ 34 + /** 35 + * Git reference (branch, tag, or commit SHA) 36 + * @default "HEAD" 37 + */ 38 + ref: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string(), 'HEAD'), 39 + /** 40 + * AT-URI of the repository 41 + */ 42 + repo: /*#__PURE__*/ v.resourceUriString(), 43 + }), 44 + output: { 45 + type: 'lex', 46 + schema: /*#__PURE__*/ v.object({ 47 + get languages() { 48 + return /*#__PURE__*/ v.array(languageSchema); 49 + }, 50 + /** 51 + * The git reference used 52 + */ 53 + ref: /*#__PURE__*/ v.string(), 54 + /** 55 + * Total number of files analyzed 56 + */ 57 + totalFiles: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 58 + /** 59 + * Total size of all analyzed files in bytes 60 + */ 61 + totalSize: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 62 + }), 63 + }, 64 + }); 65 + 66 + type language$schematype = typeof _languageSchema; 67 + type main$schematype = typeof _mainSchema; 68 + 69 + export interface languageSchema extends language$schematype {} 70 + export interface mainSchema extends main$schematype {} 71 + 72 + export const languageSchema = _languageSchema as languageSchema; 73 + export const mainSchema = _mainSchema as mainSchema; 74 + 75 + export interface Language extends v.InferInput<typeof languageSchema> {} 76 + 77 + export interface $params extends v.InferInput<mainSchema['params']> {} 78 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 79 + 80 + declare module '@atcute/lexicons/ambient' { 81 + interface XRPCQueries { 82 + 'sh.tangled.git.temp.listLanguages': mainSchema; 83 + } 84 + }
+44
packages/definitions/tangled/lib/lexicons/types/sh/tangled/git/temp/listTags.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.query('sh.tangled.git.temp.listTags', { 6 + params: /*#__PURE__*/ v.object({ 7 + /** 8 + * Pagination cursor 9 + */ 10 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 + /** 12 + * Maximum number of tags to return 13 + * @minimum 1 14 + * @maximum 100 15 + * @default 50 16 + */ 17 + limit: /*#__PURE__*/ v.optional( 18 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 19 + 50, 20 + ), 21 + /** 22 + * AT-URI of the repository 23 + */ 24 + repo: /*#__PURE__*/ v.resourceUriString(), 25 + }), 26 + output: { 27 + type: 'blob', 28 + }, 29 + }); 30 + 31 + type main$schematype = typeof _mainSchema; 32 + 33 + export interface mainSchema extends main$schematype {} 34 + 35 + export const mainSchema = _mainSchema as mainSchema; 36 + 37 + export interface $params extends v.InferInput<mainSchema['params']> {} 38 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 39 + 40 + declare module '@atcute/lexicons/ambient' { 41 + interface XRPCQueries { 42 + 'sh.tangled.git.temp.listTags': mainSchema; 43 + } 44 + }
+79
packages/definitions/tangled/lib/lexicons/types/sh/tangled/knot/subscribeRepos.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as ShTangledGitRefUpdate from '../git/refUpdate.ts'; 6 + 7 + const _gitSync1Schema = /*#__PURE__*/ v.object({ 8 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.knot.subscribeRepos#gitSync1')), 9 + /** 10 + * Repository DID identifier 11 + */ 12 + did: /*#__PURE__*/ v.didString(), 13 + /** 14 + * The stream sequence number of this message. 15 + */ 16 + seq: /*#__PURE__*/ v.integer(), 17 + }); 18 + const _gitSync2Schema = /*#__PURE__*/ v.object({ 19 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.knot.subscribeRepos#gitSync2')), 20 + /** 21 + * Repository AT-URI identifier 22 + */ 23 + repo: /*#__PURE__*/ v.resourceUriString(), 24 + /** 25 + * The stream sequence number of this message. 26 + */ 27 + seq: /*#__PURE__*/ v.integer(), 28 + }); 29 + const _identitySchema = /*#__PURE__*/ v.object({ 30 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.knot.subscribeRepos#identity')), 31 + /** 32 + * Repository DID identifier 33 + */ 34 + did: /*#__PURE__*/ v.didString(), 35 + /** 36 + * The stream sequence number of this message. 37 + */ 38 + seq: /*#__PURE__*/ v.integer(), 39 + time: /*#__PURE__*/ v.datetimeString(), 40 + }); 41 + const _mainSchema = /*#__PURE__*/ v.subscription('sh.tangled.knot.subscribeRepos', { 42 + params: /*#__PURE__*/ v.object({ 43 + /** 44 + * The last known event seq number to backfill from. 45 + */ 46 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 47 + }), 48 + get message() { 49 + return /*#__PURE__*/ v.variant([ShTangledGitRefUpdate.mainSchema, identitySchema]); 50 + }, 51 + }); 52 + 53 + type gitSync1$schematype = typeof _gitSync1Schema; 54 + type gitSync2$schematype = typeof _gitSync2Schema; 55 + type identity$schematype = typeof _identitySchema; 56 + type main$schematype = typeof _mainSchema; 57 + 58 + export interface gitSync1Schema extends gitSync1$schematype {} 59 + export interface gitSync2Schema extends gitSync2$schematype {} 60 + export interface identitySchema extends identity$schematype {} 61 + export interface mainSchema extends main$schematype {} 62 + 63 + export const gitSync1Schema = _gitSync1Schema as gitSync1Schema; 64 + export const gitSync2Schema = _gitSync2Schema as gitSync2Schema; 65 + export const identitySchema = _identitySchema as identitySchema; 66 + export const mainSchema = _mainSchema as mainSchema; 67 + 68 + export interface GitSync1 extends v.InferInput<typeof gitSync1Schema> {} 69 + export interface GitSync2 extends v.InferInput<typeof gitSync2Schema> {} 70 + export interface Identity extends v.InferInput<typeof identitySchema> {} 71 + 72 + export interface $params extends v.InferInput<mainSchema['params']> {} 73 + export type $message = v.InferInput<mainSchema['message']>; 74 + 75 + declare module '@atcute/lexicons/ambient' { 76 + interface XRPCSubscriptions { 77 + 'sh.tangled.knot.subscribeRepos': mainSchema; 78 + } 79 + }
+5 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/pipeline.ts
··· 77 77 defaultBranch: /*#__PURE__*/ v.string(), 78 78 did: /*#__PURE__*/ v.didString(), 79 79 knot: /*#__PURE__*/ v.string(), 80 - repo: /*#__PURE__*/ v.string(), 80 + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 81 + /** 82 + * DID of the repo itself 83 + */ 84 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 81 85 }); 82 86 const _workflowSchema = /*#__PURE__*/ v.object({ 83 87 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.pipeline#workflow')),
+4
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo.ts
··· 27 27 */ 28 28 name: /*#__PURE__*/ v.string(), 29 29 /** 30 + * DID of the repo itself, if assigned 31 + */ 32 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 33 + /** 30 34 * source of the repo 31 35 */ 32 36 source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
+2 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/artifact.ts
··· 23 23 /** 24 24 * repo that this artifact is being uploaded to 25 25 */ 26 - repo: /*#__PURE__*/ v.resourceUriString(), 26 + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 27 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 27 28 /** 28 29 * hash of the tag object that this artifact is attached to (only annotated tags are supported) 29 30 * @minLength 20
+2 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/collaborator.ts
··· 10 10 /** 11 11 * repo to add this user to 12 12 */ 13 - repo: /*#__PURE__*/ v.resourceUriString(), 13 + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 14 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 14 15 subject: /*#__PURE__*/ v.didString(), 15 16 }), 16 17 );
+15 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/create.ts
··· 12 12 */ 13 13 defaultBranch: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 14 /** 15 + * Name of the repository 16 + */ 17 + name: /*#__PURE__*/ v.string(), 18 + /** 19 + * Optional user-provided did:web to use as the repo identity instead of minting a did:plc. 20 + */ 21 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 22 + /** 15 23 * Rkey of the repository record 16 24 */ 17 25 rkey: /*#__PURE__*/ v.string(), ··· 21 29 source: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 22 30 }), 23 31 }, 24 - output: null, 32 + output: { 33 + type: 'lex', 34 + schema: /*#__PURE__*/ v.object({ 35 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 36 + }), 37 + }, 25 38 }); 26 39 27 40 type main$schematype = typeof _mainSchema; ··· 32 45 33 46 export interface $params {} 34 47 export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 48 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 35 49 36 50 declare module '@atcute/lexicons/ambient' { 37 51 interface XRPCProcedures {
+2 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/issue.ts
··· 10 10 createdAt: /*#__PURE__*/ v.datetimeString(), 11 11 mentions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.didString())), 12 12 references: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString())), 13 - repo: /*#__PURE__*/ v.resourceUriString(), 13 + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 14 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 14 15 title: /*#__PURE__*/ v.string(), 15 16 }), 16 17 );
+3 -1
packages/definitions/tangled/lib/lexicons/types/sh/tangled/repo/pull.ts
··· 33 33 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#source')), 34 34 branch: /*#__PURE__*/ v.string(), 35 35 repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 36 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 36 37 /** 37 38 * @minLength 40 38 39 * @maxLength 40 ··· 42 43 const _targetSchema = /*#__PURE__*/ v.object({ 43 44 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('sh.tangled.repo.pull#target')), 44 45 branch: /*#__PURE__*/ v.string(), 45 - repo: /*#__PURE__*/ v.resourceUriString(), 46 + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 47 + repoDid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 46 48 }); 47 49 48 50 type main$schematype = typeof _mainSchema;
+36
packages/definitions/tangled/lib/lexicons/types/sh/tangled/sync/requestCrawl.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.procedure('sh.tangled.sync.requestCrawl', { 6 + params: null, 7 + input: { 8 + type: 'lex', 9 + schema: /*#__PURE__*/ v.object({ 10 + /** 11 + * specific repository to ensure crawling 12 + */ 13 + ensureRepo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), 14 + /** 15 + * Hostname of the current service (eg, Knot) that is requesting to be crawled. 16 + */ 17 + hostname: /*#__PURE__*/ v.string(), 18 + }), 19 + }, 20 + output: null, 21 + }); 22 + 23 + type main$schematype = typeof _mainSchema; 24 + 25 + export interface mainSchema extends main$schematype {} 26 + 27 + export const mainSchema = _mainSchema as mainSchema; 28 + 29 + export interface $params {} 30 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 31 + 32 + declare module '@atcute/lexicons/ambient' { 33 + interface XRPCProcedures { 34 + 'sh.tangled.sync.requestCrawl': mainSchema; 35 + } 36 + }