sourcegraph.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Repository
compareCommits
repository.compareCommits
Compare two commits and list file diffs
Risk: read
Output
repository full type
repository full type
getCommitDetails
repository.getCommitDetails
Get details for a commit, branch, or tag
Risk: read
Output
repository full type
repository full type
getFileContents
repository.getFileContents
Fetch file contents on the default branch (HEAD)
Risk: read
Output
repository full type
repository full type
list
repository.list
List repositories on the Sourcegraph instance
Risk: read
Output
repositories full type
repositories full type
listFiles
repository.listFiles
List files and directories in a repository path
Risk: read
Output
repository full type
repository full type
listLanguages
repository.listLanguages
List languages used in a repository
Risk: read
Output
repository full type
repository full type
Site
checkSettingsEditPermission
site.checkSettingsEditPermission
Check whether the viewer can edit site settings through the GraphQL API
Risk: read
site full type
site full type
currentUser full type
currentUser full type
User
getCurrent
user.getCurrent
Retrieve the currently authenticated Sourcegraph user
Risk: read
currentUser full type
currentUser full type