{"openapi":"3.1.0","servers":[{"url":"."}],"info":{"title":"forges-proxy","version":"0.1.0-alpha.5","x-forges-version":"0.4.1","x-forges-wire":1,"description":"A self-hosted HTTP caching proxy and credential broker for [`forges`](https://forges.link). It holds forge tokens, caches public reads at the CDN, and exposes a single HTTP API across all configured forges.\n\nThis is a public, read-only instance: it routes no write or account verbs, nor reads that need elevated access.\n\n## Calling a verb\n\n`GET /{forge}/{instance}/{verb}?args=<json array>` calls a read verb, and `POST` with `{ \"args\": [...] }` calls a write verb. `args` is a JSON array of positional arguments matching the `ForgeProvider` method signature, validated against the operation schema. Use `null` to skip an optional positional argument. Binary values are encoded as `{ \"$bytes\": \"<base64>\" }` and dates as `{ \"$date\": \"<ISO 8601>\" }`.\n\nListing endpoints return a single page (`{ items, cursor }`). Pass `cursor` back in the options argument to fetch the next page.\n\n## From TypeScript\n\n[`@forges-proxy/client`](https://npmx.dev/package/@forges-proxy/client) turns this proxy back into `forges` providers, so code written against `forges` works unchanged.\n\n[Source and documentation](https://github.com/serhalp/forges-proxy)"},"components":{"schemas":{"Actor":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"login":{"type":"string"},"id":{"type":"string","description":"Forge-native account id: the numeric id on GitHub (`databaseId` in its GraphQL API, not the node id), GitLab, Forgejo, Gitea and Gitee, the UUID on Bitbucket, the identity id on Azure DevOps and the DID on Tangled."},"name":{"type":"string"},"avatarUrl":{"type":"string"},"url":{"type":"string"},"typeRaw":{"type":"string","description":"Forge-reported account type, retained verbatim for callers that classify further."},"isBotHint":{"type":"boolean","description":"Hint derived from forge metadata that the actor is automation. Callers own the classification policy."},"app":{"type":"object","properties":{"slug":{"type":"string"},"id":{"type":"string"}},"required":["slug"],"description":"The app behind a bot account, where the forge ties one to it (GitHub Apps' `slug[bot]` users)."}},"required":["forge","id","instance","isBotHint","login"],"description":"An account: a user, an organisation or a bot.","x-forges-type":"Actor"},"AddCollaboratorResult":{"type":"object","properties":{"status":{"type":"string","enum":["invited","added"],"description":"`'invited'` when the account has to accept an invitation before it has the role, `'added'` when it has the role now, including an account that already had access."}},"required":["status"],"description":"What `repos.addCollaborator()` did.","x-forges-type":"AddCollaboratorResult"},"AlertSupport":{"type":"object","properties":{"dependency":{"$ref":"#/components/schemas/Support"},"code_scanning":{"$ref":"#/components/schemas/Support"},"secret":{"$ref":"#/components/schemas/Support"},"advisory":{"$ref":"#/components/schemas/Support"}},"required":["dependency","code_scanning","secret","advisory"],"description":"Support per security alert kind.","x-forges-type":"AlertSupport"},"AuthKind":{"type":"string","enum":["token","basic","app","app_password","oauth","anonymous"],"description":"The credential types that a provider can accept.","x-forges-type":"AuthKind"},"AuthorAssociation":{"type":"string","enum":["owner","member","collaborator","contributor","first_time_contributor","first_timer","none","unknown"],"description":"How the author of a thread or comment relates to its repository:\n\n- `owner` owns the repository.\n- `member` belongs to the organisation that owns it.\n- `collaborator` was invited to collaborate on it.\n- `contributor` has committed to it before.\n- `first_time_contributor` has not committed to it before.\n- `first_timer` has not committed to any repository on the forge before.\n- `none` has none of these, or is a placeholder for an unclaimed account.\n- `unknown` is an association with no normalised value; `authorAssociationRaw` names it.","x-forges-type":"AuthorAssociation"},"BaseOptions":{"type":"object","properties":{},"description":"Options accepted by every operation that sends requests; the other options types extend it.","x-forges-type":"BaseOptions"},"Branch":{"type":"object","properties":{"name":{"type":"string"},"sha":{"type":"string","description":"The commit that the branch points at."},"isDefault":{"type":"boolean"},"isProtected":{"type":"boolean"},"url":{"type":"string"},"raw":{}},"required":["name","sha"],"description":"A branch of a repository.","x-forges-type":"Branch"},"BranchRules":{"type":"object","properties":{"branch":{"type":"string"},"requiredChecks":{"type":"array","items":{"$ref":"#/components/schemas/RequiredCheck"},"description":"The checks that have to pass, empty when the branch names none."},"requiresAllChecks":{"type":"boolean","description":"True when the whole pipeline has to pass, as GitLab's \"Pipelines must succeed\" asks, whatever `requiredChecks` names."},"requiredApprovals":{"type":"number","description":"The approvals a pull request needs, absent when the credential can't read any rule that sets them."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The rules the credential couldn't read. With one here, the result can ask for less than the forge does."},"raw":{}},"required":["branch","requiredChecks"],"description":"What a branch asks of a pull request before it can merge, as `repos.branchRules()` reads it.","x-forges-type":"BranchRules"},"BulkNotificationOptions":{"type":"object","properties":{"repo":{"$ref":"#/components/schemas/RepoRef","description":"Limit to one repository."},"before":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Only notifications updated before this time."}},"description":"Options for `markAllRead()` and `markAllDone()`.","x-forges-type":"BulkNotificationOptions"},"ChangedFile":{"type":"object","properties":{"path":{"type":"string"},"previousPath":{"type":"string","description":"Path before a rename or copy."},"status":{"$ref":"#/components/schemas/FileStatus"},"statusRaw":{"type":"string"},"additions":{"type":"number"},"deletions":{"type":"number"},"patch":{"type":"string","description":"Unified diff for the file, where the forge returns one inline."},"sha":{"type":"string","description":"Blob sha after the change."},"isBinary":{"type":"boolean","description":"The file is binary, so it has no patch."}},"required":["path","status"],"description":"A file that a commit or pull request changed.","x-forges-type":"ChangedFile"},"Check":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/CheckRef"},"name":{"type":"string"},"state":{"$ref":"#/components/schemas/CheckState"},"stateRaw":{"type":"string","description":"Forge-native status, for example `in_progress` or `running`."},"conclusionRaw":{"type":"string","description":"Forge-native conclusion, where the forge reports one apart from the status."},"url":{"type":"string"},"startedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"completedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"run":{"$ref":"#/components/schemas/CiRunRef","description":"The CI run the check is a job of, where the forge's own CI created it."},"raw":{}},"required":["ref","name","state","stateRaw"],"description":"One check on a commit: a check run, a commit status, a job or a policy evaluation.","x-forges-type":"Check"},"CheckRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"repo":{"$ref":"#/components/schemas/RepoRef"},"id":{"type":"string"},"type":{"type":"string","enum":["check_run","status","job","policy"],"description":"What the id addresses: a check run, a commit status, a CI job, or a branch policy evaluation."},"app":{"type":"string","description":"Slug of the app that created the check run, where the forge reports one, such as `github-actions`."}},"required":["forge","id","instance","repo","type"],"description":"One check run, commit status or CI job.","x-forges-type":"CheckRef"},"CheckReportInput":{"type":"object","properties":{"name":{"type":"string","description":"Status context or check run name."},"state":{"type":"string","enum":["pending","success","failure","neutral"],"description":"`neutral` covers skipped and informational results, which neither pass nor fail."},"description":{"type":"string","description":"A short description of the state."},"url":{"type":"string","description":"Where a person goes to see the detail."},"externalId":{"type":"string","description":"The caller's own id for the check, where the forge stores one."}},"required":["name","state"],"description":"What `checks.report` writes: a commit status everywhere, a check run on GitHub under app auth.","x-forges-type":"CheckReportInput"},"CheckState":{"type":"string","enum":["pending","success","failure","neutral","unknown"],"description":"`neutral` covers skipped and informational results, which neither pass nor fail.","x-forges-type":"CheckState"},"ChecksSummary":{"type":"object","properties":{"state":{"type":"string","enum":["pending","success","failure","unknown"]},"stateRaw":{"type":"string"},"total":{"type":"number","description":"Absent when the forge reports only a combined state."},"failed":{"type":"number"},"url":{"type":"string"}},"required":["state"],"description":"Combined state of the checks on a pull request's head commit. `failure` when any check failed, else `pending` while any runs, else `success`.","x-forges-type":"ChecksSummary"},"CiJob":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/CiJobRef"},"name":{"type":"string"},"state":{"$ref":"#/components/schemas/CheckState"},"stateRaw":{"type":"string"},"stage":{"type":"string","description":"Stage or group the job belongs to, where the forge has one."},"url":{"type":"string"},"startedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"completedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"raw":{}},"required":["ref","name","state","stateRaw"],"description":"One job of a CI run.","x-forges-type":"CiJob"},"CiJobRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"repo":{"$ref":"#/components/schemas/RepoRef"},"id":{"type":"string"},"run":{"$ref":"#/components/schemas/CiRunRef"}},"required":["forge","id","instance","repo"],"description":"One job inside a run. `run` is absent when the job was addressed on its own.","x-forges-type":"CiJobRef"},"CiRun":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/CiRunRef"},"name":{"type":"string"},"state":{"$ref":"#/components/schemas/CheckState"},"stateRaw":{"type":"string"},"number":{"type":"string","description":"Per-repo run number, where the forge has one."},"eventRaw":{"type":"string","description":"What triggered the run, as the forge names it."},"branch":{"type":"string"},"sha":{"type":"string","description":"The commit that the run ran on."},"url":{"type":"string"},"actor":{"$ref":"#/components/schemas/Actor"},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"startedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"completedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"raw":{}},"required":["ref","name","state","stateRaw"],"description":"A CI run, such as a workflow run or a pipeline.","x-forges-type":"CiRun"},"CiRunQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"branch":{"type":"string"},"state":{"type":"string","enum":["pending","success","failure","neutral"],"description":"Normalised state; forges that filter on their own names translate it."}},"description":"Filters for `ci.runs()`.","x-forges-type":"CiRunQuery"},"CiRunRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"repo":{"$ref":"#/components/schemas/RepoRef"},"id":{"type":"string"}},"required":["forge","id","instance","repo"],"description":"A CI run: a workflow run, a pipeline, or a build.","x-forges-type":"CiRunRef"},"CloseOptions":{"type":"object","properties":{"reason":{"type":"string","enum":["completed","not_planned","duplicate"],"description":"Mapped to the forge's own reason where it has one; forges without close reasons close the thread without one."},"reasonRaw":{"type":"string","description":"Forge-native reason, sent as is; takes precedence over `reason`."}},"description":"Options for `threads.close()`.","x-forges-type":"CloseOptions"},"CodeFragment":{"type":"object","properties":{"text":{"type":"string"},"line":{"type":"number","description":"The line the excerpt starts on, where the forge reports it."}},"required":["text"],"description":"An excerpt of a file that matched a code search.","x-forges-type":"CodeFragment"},"CodeMatch":{"type":"object","properties":{"repo":{"$ref":"#/components/schemas/RepoRef"},"path":{"type":"string"},"ref":{"type":"string","description":"The branch, tag or sha the forge searched, where it reports one."},"fragments":{"type":"array","items":{"$ref":"#/components/schemas/CodeFragment"},"description":"The excerpts of the file that matched."},"url":{"type":"string"},"raw":{}},"required":["repo","path","fragments"],"description":"A file that a code search found. A file whose excerpts span two pages comes back on both.","x-forges-type":"CodeMatch"},"CodeSearchQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"text":{"type":"string","description":"Free text, matched against the contents of files."},"queryRaw":{"type":"string","description":"Forge-native query syntax; see {@link ThreadSearchQuery.queryRaw}."},"repo":{"$ref":"#/components/schemas/RepoRef","description":"Limit to one repository."},"owner":{"type":"string","description":"Limit to one account or namespace."}},"description":"A search for code.","x-forges-type":"CodeSearchQuery"},"Collaborator":{"type":"object","properties":{"actor":{"$ref":"#/components/schemas/Actor"},"role":{"$ref":"#/components/schemas/RepoRole"},"roleRaw":{"type":"string","description":"Forge-native role name, for example `maintainer` or `reporter`."},"permissions":{"$ref":"#/components/schemas/RepoPermissions","description":"What the role allows."},"raw":{}},"required":["actor","role"],"description":"An account with a role on a repository.","x-forges-type":"Collaborator"},"Comment":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/ResolvedCommentRef"},"body":{"type":"string"},"author":{"$ref":"#/components/schemas/Actor"},"authorAssociation":{"$ref":"#/components/schemas/AuthorAssociation","description":"How the author relates to the repository, where the forge reports it."},"authorAssociationRaw":{"type":"string","description":"Forge-native association the normalised `authorAssociation` was derived from."},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"updatedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"url":{"type":"string"},"reactions":{"$ref":"#/components/schemas/ReactionSummary"},"thread":{"type":"object","properties":{"id":{"type":"string"},"resolved":{"type":"boolean"}},"required":["id","resolved"],"description":"The resolvable conversation the comment belongs to, where the forge has one; `resolveReviewThread()` takes its id."},"raw":{}},"required":["ref","body"],"description":"A comment on a thread.","x-forges-type":"Comment"},"CommentRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"thread":{"$ref":"#/components/schemas/ThreadRef"},"id":{"type":"string","description":"Forge-native comment id; an AT-URI on Tangled."}},"required":["forge","id","instance","thread"],"description":"Reference to a comment on a thread.","x-forges-type":"CommentRef"},"Commit":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/CommitRef"},"sha":{"type":"string","description":"The full sha."},"message":{"type":"string"},"author":{"$ref":"#/components/schemas/CommitSignature","description":"Who wrote the change."},"committer":{"$ref":"#/components/schemas/CommitSignature","description":"Who recorded the change."},"parents":{"type":"array","items":{"type":"string"}},"url":{"type":"string"},"stats":{"type":"object","properties":{"additions":{"type":"number"},"deletions":{"type":"number"},"total":{"type":"number"}},"required":["additions","deletions"]},"files":{"type":"array","items":{"$ref":"#/components/schemas/ChangedFile"},"description":"Present on `commits.get`; absent from listings."},"raw":{}},"required":["ref","sha","message","parents"],"description":"A commit.","x-forges-type":"Commit"},"CommitComment":{"type":"object","properties":{"body":{"type":"string"},"author":{"$ref":"#/components/schemas/Actor"},"authorAssociation":{"$ref":"#/components/schemas/AuthorAssociation","description":"How the author relates to the repository, where the forge reports it."},"authorAssociationRaw":{"type":"string","description":"Forge-native association the normalised `authorAssociation` was derived from."},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"updatedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"url":{"type":"string"},"reactions":{"$ref":"#/components/schemas/ReactionSummary"},"raw":{},"ref":{"$ref":"#/components/schemas/CommitCommentRef"}},"required":["body","ref"],"description":"A comment on a commit.","x-forges-type":"CommitComment"},"CommitCommentRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"commit":{"$ref":"#/components/schemas/CommitRef"},"id":{"type":"string","description":"Forge-native comment id."}},"required":["commit","forge","id","instance"],"description":"Reference to a comment on a commit.","x-forges-type":"CommitCommentRef"},"CommitFilesInput":{"type":"object","properties":{"branch":{"type":"string","description":"The branch to commit to."},"message":{"type":"string","description":"The commit message."},"changes":{"type":"array","items":{"$ref":"#/components/schemas/FileChange"},"description":"The files to write or delete. A file that exists is overwritten."},"expectedHead":{"type":"string","description":"The sha that the branch must point at. When the branch has moved, the commit rejects with `BranchMovedError`."},"createFrom":{"type":"string","description":"Creates `branch` from this branch, tag or sha. The branch must not exist yet."},"author":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}},"required":["name","email"],"description":"Who wrote the change. Defaults to the account of the credential. Some forges record it as the committer too."}},"required":["branch","message","changes"],"description":"The commit that `contents.commitFiles()` makes.","x-forges-type":"CommitFilesInput"},"CommitQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"ref":{"type":"string","description":"Branch, tag or sha to walk back from."},"since":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Only commits at or after this time."},"until":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Only commits at or before this time."},"path":{"type":"string","description":"Only commits touching this path."},"author":{"type":"string","description":"Login or email, as the forge matches it."}},"description":"Filters for `commits.list()`.","x-forges-type":"CommitQuery"},"CommitRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"repo":{"$ref":"#/components/schemas/RepoRef"},"sha":{"type":"string","description":"The full sha of the commit."}},"required":["forge","instance","repo","sha"],"description":"A commit addressed by its full sha.","x-forges-type":"CommitRef"},"CommitSearchQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"text":{"type":"string","description":"Free text, matched against the commit message."},"queryRaw":{"type":"string","description":"Forge-native query syntax; see {@link ThreadSearchQuery.queryRaw}."},"repo":{"$ref":"#/components/schemas/RepoRef","description":"Limit to one repository."},"author":{"type":"string","description":"Commits whose author is this login."},"committer":{"type":"string","description":"Commits whose committer is this login."},"since":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Authored or committed at or after."},"until":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Authored or committed at or before."},"sort":{"type":"string","enum":["author_date","committer_date"],"description":"Defaults to the forge's relevance order."},"direction":{"type":"string","enum":["asc","desc"],"default":"desc"}},"description":"A search for commits.","x-forges-type":"CommitSearchQuery"},"CommitSignature":{"type":"object","properties":{"actor":{"$ref":"#/components/schemas/Actor","description":"The account, where the forge can match it."},"name":{"type":"string"},"email":{"type":"string"},"date":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"When the commit was authored or committed."}},"description":"Git authorship, with the forge account behind it where the forge matched one.","x-forges-type":"CommitSignature"},"CompareOptions":{"type":"object","properties":{"commitLimit":{"type":"number","description":"The most commits to return. The comparison keeps the newest ones. Where the forge can't send fewer, the provider drops the rest. `aheadBy` still counts every commit where the forge reports the count."},"files":{"type":"boolean","description":"Whether to read the changed files. With `false`, `files` is empty and the commits carry no files.","default":true}},"description":"Options for `contents.compare()`.","x-forges-type":"CompareOptions"},"Comparison":{"type":"object","properties":{"base":{"type":"string","description":"The revision that the comparison starts from."},"head":{"type":"string","description":"The revision that the comparison ends at."},"aheadBy":{"type":"number","description":"The number of commits that `head` has and `base` lacks."},"behindBy":{"type":"number","description":"The number of commits that `base` has and `head` lacks."},"commits":{"type":"array","items":{"$ref":"#/components/schemas/Commit"},"description":"The commits between the two revisions, newest first. Forges that cap the list leave out the oldest."},"files":{"type":"array","items":{"$ref":"#/components/schemas/ChangedFile"}},"mergeBaseSha":{"type":"string","description":"The merge base, where the forge reports it."},"raw":{}},"required":["base","head","commits","files"],"description":"The difference between two revisions.","x-forges-type":"Comparison"},"Contributor":{"type":"object","properties":{"actor":{"$ref":"#/components/schemas/Actor","description":"The account, where the forge links the author to one."},"name":{"type":"string","description":"The git author name, where the forge reports one."},"email":{"type":"string","description":"The git author email, where the forge reports one."},"contributions":{"type":"number","description":"Commits attributed to the contributor, as the forge counts them."},"raw":{}},"required":["contributions"],"description":"A commit author on a repository, as `repos.contributors()` reads it.","x-forges-type":"Contributor"},"ContributorQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"includeUnlinked":{"type":"boolean","description":"Includes contributors the forge has not linked to an account, as GitHub's `anon=1` does. GitHub links only the first 500 author emails of a repository to accounts, and reports the rest with a `name` and an `email` but no `actor`. GitLab and Gitee link no accounts, so all of theirs are already unlinked: `true` changes nothing there, while `false` warns, since it asks for a list neither forge can report.","default":false}},"description":"Filters for `repos.contributors()`.","x-forges-type":"ContributorQuery"},"ContributorStats":{"type":"object","properties":{"actor":{"$ref":"#/components/schemas/Actor","description":"The account, where the forge links the commits to one."},"commits":{"type":"number","description":"Commits by the contributor across all weeks."},"weeks":{"type":"array","items":{"$ref":"#/components/schemas/ContributorWeek"},"description":"One entry per week, oldest first."},"raw":{}},"required":["commits","weeks"],"description":"A contributor's commit activity over time, as `repos.contributorStats()` reads it.","x-forges-type":"ContributorStats"},"ContributorWeek":{"type":"object","properties":{"week":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Start of the week."},"additions":{"type":"number","description":"Lines added."},"deletions":{"type":"number","description":"Lines deleted."},"commits":{"type":"number","description":"Commits that week."}},"required":["week","additions","deletions","commits"],"description":"One week of a contributor's commit activity.","x-forges-type":"ContributorWeek"},"Cursor":{"type":"object","properties":{"nextUrl":{"type":"string","description":"Absolute URL of the next page, from a `Link` header or the body, on the requested origin."},"etag":{"type":"string","description":"The `etag` of a first page, sent as `If-None-Match` when the cursor has neither `nextUrl` nor `token`."},"token":{"type":"string","description":"Opaque forge-native cursor, for example a GraphQL `endCursor`."}},"description":"Opaque-ish resumption token. Fields are optional because forges differ in what they support; callers should persist the whole object and hand it back.","x-forges-type":"Cursor"},"EventAction":{"type":"string","enum":["opened","closed","reopened","merged","edited","created","deleted","submitted","labelled","unlabelled","assigned","unassigned","review_requested","synchronised","ready_for_review","converted_to_draft","published","renamed","transferred","archived","unarchived","added","removed","typed","untyped","other"],"description":"What happened, independent of `kind`, so \"anything that closed\" is `action === 'closed'` whatever the subject.","x-forges-type":"EventAction"},"EventDetail":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"comment"},"comment":{"anyOf":[{"$ref":"#/components/schemas/CommentRef"},{"$ref":"#/components/schemas/CommitCommentRef"}]},"body":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"review_comment"},"comment":{"$ref":"#/components/schemas/CommentRef"},"body":{"type":"string"},"path":{"type":"string"},"line":{"type":"number"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"review"},"state":{"$ref":"#/components/schemas/ReviewState"},"stateRaw":{"type":"string"},"body":{"type":"string"},"review":{"$ref":"#/components/schemas/ReviewRef"}},"required":["type","state"]},{"type":"object","properties":{"type":{"type":"string","const":"state_change"},"state":{"$ref":"#/components/schemas/ThreadState"},"draft":{"type":"boolean"},"reason":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"label"},"label":{"type":"string"}},"required":["type","label"]},{"type":"object","properties":{"type":{"type":"string","const":"assignment"},"assignee":{"$ref":"#/components/schemas/Actor"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"push"},"ref":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"commitCount":{"type":"number"},"forced":{"type":"boolean"},"commits":{"type":"array","items":{"$ref":"#/components/schemas/PushCommit"}}},"required":["type","ref","forced","commits"]},{"type":"object","properties":{"type":{"type":"string","const":"ref"},"ref":{"type":"string"},"refType":{"type":"string"}},"required":["type","ref","refType"]},{"type":"object","properties":{"type":{"type":"string","const":"repo_renamed"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","from","to"]},{"type":"object","properties":{"type":{"type":"string","const":"repo_transferred"},"fromOwner":{"type":"string"},"toOwner":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"repo_archived"},"archived":{"type":"boolean"}},"required":["type","archived"]},{"type":"object","properties":{"type":{"type":"string","const":"installation"},"actionRaw":{"type":"string"},"installationId":{"type":"string"},"added":{"type":"array","items":{"$ref":"#/components/schemas/RepoRef"}},"removed":{"type":"array","items":{"$ref":"#/components/schemas/RepoRef"}}},"required":["type","actionRaw","added","removed"]},{"type":"object","properties":{"type":{"type":"string","const":"membership"},"actionRaw":{"type":"string"},"member":{"$ref":"#/components/schemas/Actor"}},"required":["type","actionRaw"]},{"type":"object","properties":{"type":{"type":"string","const":"release"},"release":{"$ref":"#/components/schemas/ReleaseRef"},"tag":{"type":"string"},"name":{"type":"string"},"body":{"type":"string"},"isPrerelease":{"type":"boolean"},"isDraft":{"type":"boolean"},"url":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"fork"},"fork":{"$ref":"#/components/schemas/RepoRef"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"wiki"},"title":{"type":"string"},"url":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"issue_type"},"issueType":{"$ref":"#/components/schemas/IssueType"}},"required":["type","issueType"]},{"type":"object","properties":{"type":{"type":"string","const":"repo_visibility"},"isPublic":{"type":"boolean"}},"required":["type","isPublic"]},{"type":"object","properties":{"type":{"type":"string","const":"referenced"},"from":{"anyOf":[{"$ref":"#/components/schemas/ThreadRef"},{"$ref":"#/components/schemas/CommitRef"}]},"fromRepo":{"$ref":"#/components/schemas/RepoRef"},"text":{"type":"string"}},"required":["type"]}],"description":"Typed detail for an event. Discriminated by `type`.","x-forges-type":"EventDetail"},"EventFeedOptions":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"force":{"type":"boolean","description":"Read the first page even when the forge asked to wait longer between reads, as GitHub does with `X-Poll-Interval`. Without it, such a read returns a `throttled` page.","default":false}},"description":"Options for `repos.events()` and `users.events()`.","x-forges-type":"EventFeedOptions"},"EventKind":{"type":"string","enum":["comment","review","review_comment","commit","label","state_change","assignment","mention","referenced","reaction","push","ref","repo","installation","membership","release","star","fork","wiki","issue_type","other"],"description":"What an event is about.","x-forges-type":"EventKind"},"FileChange":{"type":"object","properties":{"path":{"type":"string","description":"The path from the repository root."},"content":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$bytes":{"type":"string","contentEncoding":"base64"}},"required":["$bytes"],"additionalProperties":false,"description":"Bytes, as `{ \"$bytes\": \"<base64>\" }`."},{"type":"null"}],"description":"The new contents, with a string written as UTF-8, or `null` to delete the file."}},"required":["path","content"],"description":"A file that `contents.commitFiles()` writes or deletes.","x-forges-type":"FileChange"},"FileContent":{"anyOf":[{"type":"object","properties":{"encoding":{"type":"string","const":"utf-8"},"content":{"type":"string"},"path":{"type":"string","description":"The path from the repository root."},"sha":{"type":"string","description":"Blob sha, where the forge reports one."},"size":{"type":"number"},"url":{"type":"string","description":"Web page for the file at this ref, where the forge has one."}},"required":["content","encoding","path"]},{"type":"object","properties":{"encoding":{"type":"string","const":"binary"},"content":{"type":"object","properties":{"$bytes":{"type":"string","contentEncoding":"base64"}},"required":["$bytes"],"additionalProperties":false,"description":"Bytes, as `{ \"$bytes\": \"<base64>\" }`."},"path":{"type":"string","description":"The path from the repository root."},"sha":{"type":"string","description":"Blob sha, where the forge reports one."},"size":{"type":"number"},"url":{"type":"string","description":"Web page for the file at this ref, where the forge has one."}},"required":["content","encoding","path"]}],"description":"A file's contents. Narrow on `encoding` to get text or bytes.","x-forges-type":"FileContent"},"FileOptions":{"type":"object","properties":{"ref":{"type":"string","description":"Branch, tag or sha. Defaults to the repository's default branch."},"as":{"type":"string","enum":["text","binary"],"description":"`'text'` decodes as UTF-8 and rejects with {@link ContentNotTextError} when the bytes are not text.","default":"binary"},"metadata":{"type":"boolean","description":"`false` reads the content alone, through a cheaper endpoint where the forge has one, so the result may lack `sha` and `url`.","default":true}},"description":"Options for `contents.getFile()`.","x-forges-type":"FileOptions"},"FileStatus":{"type":"string","enum":["added","modified","removed","renamed","copied","changed"],"description":"How a commit or pull request changed a file.","x-forges-type":"FileStatus"},"ForgeCapabilities":{"type":"object","properties":{"version":{"type":"string","description":"Instance version the capabilities were computed for, when known."},"experimental":{"type":"boolean","const":true,"description":"The forge's API as a whole is unstable, so the provider can change with it."},"sources":{"type":"object","properties":{"stream":{"$ref":"#/components/schemas/Support","description":"Support for `sources.stream()`, a long-lived push stream; see {@link SourcesApi}."}},"required":["stream"]},"repos":{"type":"object","properties":{"get":{"$ref":"#/components/schemas/Support","description":"Support for `repos.get()`."},"list":{"$ref":"#/components/schemas/Support","description":"Support for `repos.list()`."},"byOwner":{"$ref":"#/components/schemas/Support","description":"Support for `repos.byOwner()`."},"labels":{"$ref":"#/components/schemas/Support","description":"Support for `repos.labels()`."},"createLabel":{"$ref":"#/components/schemas/Support","description":"Support for `repos.createLabel()`."},"milestones":{"$ref":"#/components/schemas/Support","description":"Support for `repos.milestones()`."},"issueTypes":{"$ref":"#/components/schemas/Support","description":"Support for `repos.issueTypes()`."},"collaborators":{"$ref":"#/components/schemas/Support","description":"Support for `repos.collaborators()`."},"contributors":{"$ref":"#/components/schemas/Support","description":"Support for `repos.contributors()`."},"contributorStats":{"$ref":"#/components/schemas/Support","description":"Support for `repos.contributorStats()`."},"templates":{"$ref":"#/components/schemas/Support","description":"Support for `repos.templates()`."},"permissionFor":{"$ref":"#/components/schemas/Support","description":"Support for `repos.permissionFor()`."},"branchRules":{"$ref":"#/components/schemas/Support","description":"Support for `repos.branchRules()`."},"addCollaborator":{"$ref":"#/components/schemas/Support","description":"Support for `repos.addCollaborator()`."},"assignableUsers":{"$ref":"#/components/schemas/Support","description":"Support for `repos.assignableUsers()`."},"reviewerCandidates":{"$ref":"#/components/schemas/Support","description":"Support for `repos.reviewerCandidates()`."},"events":{"$ref":"#/components/schemas/Support","description":"Support for `repos.events()`."}},"required":["get","list","byOwner","labels","createLabel","milestones","issueTypes","collaborators","contributors","contributorStats","templates","permissionFor","branchRules","addCollaborator","assignableUsers","reviewerCandidates","events"]},"users":{"type":"object","properties":{"get":{"$ref":"#/components/schemas/Support","description":"Support for `users.get()`."},"me":{"$ref":"#/components/schemas/Support","description":"Support for `users.me()`."},"sponsorable":{"$ref":"#/components/schemas/Support","description":"Support for `users.sponsorable()`."},"sponsorableMany":{"$ref":"#/components/schemas/Support","description":"Support for `users.sponsorableMany()`."},"events":{"$ref":"#/components/schemas/Support","description":"Support for `users.events()`."},"block":{"$ref":"#/components/schemas/Support","description":"Support for `users.block()`."},"unblock":{"$ref":"#/components/schemas/Support","description":"Support for `users.unblock()`."}},"required":["get","me","sponsorable","sponsorableMany","events","block","unblock"]},"orgs":{"type":"object","properties":{"teams":{"$ref":"#/components/schemas/Support","description":"Support for `orgs.teams()`."},"teamMembers":{"$ref":"#/components/schemas/Support","description":"Support for `orgs.teamMembers()`."},"block":{"$ref":"#/components/schemas/Support","description":"Support for `orgs.block()`."},"unblock":{"$ref":"#/components/schemas/Support","description":"Support for `orgs.unblock()`."}},"required":["teams","teamMembers","block","unblock"],"description":"An organisation's teams and their members, where the forge has teams, and the accounts it blocks."},"threads":{"type":"object","properties":{"get":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.get()`, per thread kind."},"list":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.list()`, per thread kind."},"getMany":{"$ref":"#/components/schemas/Support","description":"Support for `threads.getMany()`."},"closingIssues":{"$ref":"#/components/schemas/Support","description":"Support for `threads.closingIssues()`."},"closingPullRequests":{"$ref":"#/components/schemas/Support","description":"Support for `threads.closingPullRequests()`."},"events":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.events()`, per thread kind."},"comments":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.comments()`, per thread kind."},"getComment":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.getComment()`, per thread kind."},"createComment":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.createComment()`, per thread kind."},"updateComment":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.updateComment()`, per thread kind."},"deleteComment":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.deleteComment()`, per thread kind."},"hideComment":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.hideComment()`, per thread kind."},"unhideComment":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.unhideComment()`, per thread kind."},"reactions":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.reactions()`, per thread kind."},"react":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.react()`, per thread kind."},"unreact":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.unreact()`, per thread kind."},"create":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.create()`, per thread kind."},"update":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.update()`, per thread kind."},"close":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.close()`, per thread kind."},"reopen":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.reopen()`, per thread kind."},"lock":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.lock()`, per thread kind."},"unlock":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.unlock()`, per thread kind."},"setLabels":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.setLabels()`, per thread kind."},"addLabels":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.addLabels()`, per thread kind."},"removeLabels":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.removeLabels()`, per thread kind."},"setMilestone":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.setMilestone()`, per thread kind."},"setIssueType":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.setIssueType()`, per thread kind."},"setAssignees":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.setAssignees()`, per thread kind."},"requestReview":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.requestReview()`, per thread kind."},"merge":{"$ref":"#/components/schemas/Support","description":"Support for `threads.merge()`."},"updateBranch":{"$ref":"#/components/schemas/Support","description":"Support for `threads.updateBranch()`."},"transfer":{"$ref":"#/components/schemas/Support","description":"Support for `threads.transfer()`."},"markDuplicate":{"$ref":"#/components/schemas/Support","description":"Support for `threads.markDuplicate()`."},"subscription":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.subscription()`, per thread kind."},"subscribe":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.subscribe()`, per thread kind."},"unsubscribe":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.unsubscribe()`, per thread kind."},"checks":{"$ref":"#/components/schemas/PerKind","description":"Support for `threads.checks()` and `Thread.checks`, per thread kind."},"files":{"$ref":"#/components/schemas/Support","description":"Support for `threads.files()`."},"commits":{"$ref":"#/components/schemas/Support","description":"Support for `threads.commits()`."},"reviews":{"$ref":"#/components/schemas/Support","description":"Support for `threads.reviews()`. `'emulated'` where reviews are synthesised from approvals or votes."},"getReview":{"$ref":"#/components/schemas/Support","description":"Support for `threads.getReview()`."},"createReview":{"$ref":"#/components/schemas/Support","description":"Support for `threads.createReview()`. Where reviews are emulated, it covers only the events the forge's approval endpoint can express."},"submitReview":{"$ref":"#/components/schemas/Support","description":"Support for `threads.submitReview()`."},"approve":{"$ref":"#/components/schemas/Support","description":"Support for `threads.approve()`."},"replyToReviewComment":{"$ref":"#/components/schemas/Support","description":"Support for `threads.replyToReviewComment()`."},"reviewThreads":{"$ref":"#/components/schemas/Support","description":"Support for `threads.reviewThreads()`. `'emulated'` where conversations are grouped from review comments."},"resolveReviewThread":{"$ref":"#/components/schemas/Support","description":"Support for `threads.resolveReviewThread()`."},"unresolveReviewThread":{"$ref":"#/components/schemas/Support","description":"Support for `threads.unresolveReviewThread()`."}},"required":["get","list","getMany","closingIssues","closingPullRequests","events","comments","getComment","createComment","updateComment","deleteComment","hideComment","unhideComment","reactions","react","unreact","create","update","close","reopen","lock","unlock","setLabels","addLabels","removeLabels","setMilestone","setIssueType","setAssignees","requestReview","merge","updateBranch","transfer","markDuplicate","subscription","subscribe","unsubscribe","checks","files","commits","reviews","getReview","createReview","submitReview","approve","replyToReviewComment","reviewThreads","resolveReviewThread","unresolveReviewThread"]},"notifications":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/Support","description":"Support for `notifications.list()`."},"markRead":{"$ref":"#/components/schemas/Support","description":"Support for `notifications.markRead()`."},"markDone":{"$ref":"#/components/schemas/Support","description":"Support for `notifications.markDone()`."},"unsubscribe":{"$ref":"#/components/schemas/Support","description":"Support for `notifications.unsubscribe()`."},"markAllRead":{"$ref":"#/components/schemas/Support","description":"Support for `notifications.markAllRead()`."},"markAllDone":{"$ref":"#/components/schemas/Support","description":"Support for `notifications.markAllDone()`."},"unreadCount":{"$ref":"#/components/schemas/Support","description":"Support for `notifications.unreadCount()`."}},"required":["list","markRead","markDone","unsubscribe","markAllRead","markAllDone","unreadCount"]},"installations":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/Support","description":"Support for `installations.list()`."},"get":{"$ref":"#/components/schemas/Support","description":"Support for `installations.get()`."},"token":{"$ref":"#/components/schemas/Support","description":"Support for `installations.token()`."},"repos":{"$ref":"#/components/schemas/Support","description":"Support for `installations.repos()`."},"provider":{"$ref":"#/components/schemas/Support","description":"Support for `installations.provider()`."},"providers":{"$ref":"#/components/schemas/Support","description":"Support for `installations.providers()`."}},"required":["list","get","token","repos","provider","providers"]},"checks":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/Support","description":"Support for `checks.list()`."},"get":{"$ref":"#/components/schemas/Support","description":"Support for `checks.get()`."},"report":{"$ref":"#/components/schemas/Support","description":"Support for `checks.report()`. It writes a commit status unless the credential can write check runs."},"rerun":{"$ref":"#/components/schemas/Support","description":"Support for `checks.rerun()`."}},"required":["list","get","report","rerun"]},"ci":{"type":"object","properties":{"runs":{"$ref":"#/components/schemas/Support","description":"Support for `ci.runs()`."},"getRun":{"$ref":"#/components/schemas/Support","description":"Support for `ci.getRun()`."},"jobs":{"$ref":"#/components/schemas/Support","description":"Support for `ci.jobs()`."},"getJob":{"$ref":"#/components/schemas/Support","description":"Support for `ci.getJob()`."},"log":{"$ref":"#/components/schemas/Support","description":"Support for `ci.log()`. `false` where job logs are not reachable over the API."},"rerunFailed":{"$ref":"#/components/schemas/Support","description":"Support for `ci.rerunFailed()`."}},"required":["runs","getRun","jobs","getJob","log","rerunFailed"]},"contents":{"type":"object","properties":{"getFile":{"$ref":"#/components/schemas/Support","description":"Support for `contents.getFile()`."},"tree":{"$ref":"#/components/schemas/Support","description":"Support for `contents.tree()`. `'emulated'` where recursion is walked level by level."},"branches":{"$ref":"#/components/schemas/Support","description":"Support for `contents.branches()`."},"tags":{"$ref":"#/components/schemas/Support","description":"Support for `contents.tags()`."},"resolveRef":{"$ref":"#/components/schemas/Support","description":"Support for `contents.resolveRef()`."},"compare":{"$ref":"#/components/schemas/Support","description":"Support for `contents.compare()`."},"commitFiles":{"$ref":"#/components/schemas/Support","description":"Support for `contents.commitFiles()`."}},"required":["getFile","tree","branches","tags","resolveRef","compare","commitFiles"]},"commits":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/Support","description":"Support for `commits.list()`."},"get":{"$ref":"#/components/schemas/Support","description":"Support for `commits.get()`."},"comments":{"$ref":"#/components/schemas/Support","description":"Support for `commits.comments()`."},"getComment":{"$ref":"#/components/schemas/Support","description":"Support for `commits.getComment()`."},"createComment":{"$ref":"#/components/schemas/Support","description":"Support for `commits.createComment()`."},"updateComment":{"$ref":"#/components/schemas/Support","description":"Support for `commits.updateComment()`."},"deleteComment":{"$ref":"#/components/schemas/Support","description":"Support for `commits.deleteComment()`."},"hideComment":{"$ref":"#/components/schemas/Support","description":"Support for `commits.hideComment()`."},"unhideComment":{"$ref":"#/components/schemas/Support","description":"Support for `commits.unhideComment()`."}},"required":["list","get","comments","getComment","createComment","updateComment","deleteComment","hideComment","unhideComment"]},"releases":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/Support","description":"Support for `releases.list()`."},"get":{"$ref":"#/components/schemas/Support","description":"Support for `releases.get()`."},"latest":{"$ref":"#/components/schemas/Support","description":"Support for `releases.latest()`."},"getByTag":{"$ref":"#/components/schemas/Support","description":"Support for `releases.getByTag()`."},"downloadAsset":{"$ref":"#/components/schemas/Support","description":"Support for `releases.downloadAsset()`."},"create":{"$ref":"#/components/schemas/Support","description":"Support for `releases.create()`."},"update":{"$ref":"#/components/schemas/Support","description":"Support for `releases.update()`."}},"required":["list","get","latest","getByTag","downloadAsset","create","update"]},"webhooks":{"type":"object","properties":{"verify":{"$ref":"#/components/schemas/Support","description":"Support for `webhooks.verify()`."},"ingest":{"$ref":"#/components/schemas/Support","description":"Support for `webhooks.ingest()`."},"list":{"$ref":"#/components/schemas/Support","description":"Support for `webhooks.list()`."},"create":{"$ref":"#/components/schemas/Support","description":"Support for `webhooks.create()`."},"update":{"$ref":"#/components/schemas/Support","description":"Support for `webhooks.update()`."},"delete":{"$ref":"#/components/schemas/Support","description":"Support for `webhooks.delete()`."},"rotateSecret":{"$ref":"#/components/schemas/Support","description":"Support for `webhooks.rotateSecret()`."},"deliveries":{"$ref":"#/components/schemas/Support","description":"Support for `webhooks.deliveries()`."},"redeliver":{"$ref":"#/components/schemas/Support","description":"Support for `webhooks.redeliver()`."}},"required":["verify","ingest","list","create","update","delete","rotateSecret","deliveries","redeliver"],"description":"Receiving deliveries and managing registered webhooks."},"search":{"type":"object","properties":{"threads":{"$ref":"#/components/schemas/Support","description":"Support for `search.threads()`."},"repos":{"$ref":"#/components/schemas/Support","description":"Support for `search.repos()`."},"commits":{"$ref":"#/components/schemas/Support","description":"Support for `search.commits()`."},"code":{"$ref":"#/components/schemas/Support","description":"Support for `search.code()`."}},"required":["threads","repos","commits","code"]},"securityAlerts":{"type":"object","properties":{"list":{"$ref":"#/components/schemas/AlertSupport","description":"Support for `securityAlerts.list()`, per alert kind."}},"required":["list"]},"eventKinds":{"type":"string","enum":["native","heuristic"],"description":"`'heuristic'` when event kinds are inferred from free text (GitLab system notes) rather than reported by the forge, so `kind` may be `'other'` or wrong for unrecognised wording; `kindRaw` and `payload` stay exact."},"authKinds":{"type":"array","items":{"$ref":"#/components/schemas/AuthKind"},"description":"Auth types the provider accepts. The type this provider was created with is `ForgeProvider.authKind`."},"limits":{"$ref":"#/components/schemas/TextLimits","description":"Maximum text lengths the forge accepts."}},"required":["sources","repos","users","orgs","threads","notifications","installations","checks","ci","contents","commits","releases","webhooks","search","securityAlerts","eventKinds","authKinds"],"description":"What a provider supports, operation by operation. It is computed without a request, and `refreshCapabilities()` refines it with the instance version. Each verb has an entry at its path on the provider, and the [capability matrix](/reference/capability-matrix) lists them for every forge.","x-forges-type":"ForgeCapabilities"},"ForgeEvent":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"id":{"type":"string"},"kind":{"$ref":"#/components/schemas/EventKind"},"kindRaw":{"type":"string","description":"Forge-native event name the normalised `kind` was derived from."},"action":{"$ref":"#/components/schemas/EventAction","description":"Normalised verb; `other` when the forge's wording has no equivalent."},"actionRaw":{"type":"string","description":"Forge-native verb `action` was derived from."},"summary":{"type":"string","description":"Single line describing the event, suitable for a list row."},"occurredAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"When the event happened, from the forge's own timestamp unless `undated` is set."},"undated":{"type":"boolean","description":"Whether the forge reported no time for the event. `occurredAt` is then the time the event reached `forges` (or Jetstream, for a Tangled subscription), or the Unix epoch for an entry of a thread's timeline."},"actor":{"$ref":"#/components/schemas/Actor"},"repo":{"$ref":"#/components/schemas/RepoRef"},"thread":{"$ref":"#/components/schemas/ThreadRef"},"commit":{"$ref":"#/components/schemas/CommitRef","description":"The commit the event concerns, such as the commit of a commit comment."},"threadSnapshot":{"$ref":"#/components/schemas/ThreadSnapshot","description":"What the event's source says about `thread`, as of when the forge built the payload."},"isPublic":{"type":"boolean","description":"Whether anyone can see the event, where the forge says so. `false` covers private and internal repositories alike."},"detail":{"$ref":"#/components/schemas/EventDetail","description":"The details that belong to the kind of event."},"installationId":{"type":"string","description":"App installation the delivery belongs to, for app webhooks."},"source":{"$ref":"#/components/schemas/SourceKind","description":"Delivery mechanism the event arrived through."},"payload":{"description":"Unnormalised forge payload, retained for fidelity."}},"required":["action","forge","id","instance","kind","occurredAt","payload","source","summary"],"description":"An event on a forge, such as a comment, a state change or a push.","x-forges-type":"ForgeEvent"},"ForgeInstance":{"type":"string","description":"Host of a single forge deployment, for example `github.com` or `codeberg.org`.","x-forges-type":"ForgeInstance"},"ForgeKind":{"anyOf":[{"$ref":"#/components/schemas/KnownForgeKind"},{"type":"string"}],"description":"Identifier of a forge implementation. Unknown forges are permitted so that third-party providers can be registered without a core release.","x-forges-type":"ForgeKind"},"ForgeWarning":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/ForgeWarningCode","description":"Stable machine-readable code."},"message":{"type":"string","description":"A description of the problem, for a person."},"subject":{"type":"string","description":"Key or URI of the item the warning concerns, when it concerns one."},"cause":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"},"status":{"type":"number"}},"required":["name","message"]}},"required":["code","message"],"description":"A non-fatal problem encountered while producing a result.","x-forges-type":"ForgeWarning"},"ForgeWarningCode":{"type":"string","description":"The warning codes providers emit; providers may add codes in a minor release.","x-forges-type":"ForgeWarningCode"},"GetManyResult":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"ref":{"$ref":"#/components/schemas/ThreadRef"},"thread":{"$ref":"#/components/schemas/Thread"}},"required":["ok","ref","thread"]},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"ref":{"$ref":"#/components/schemas/ThreadRef"},"warning":{"$ref":"#/components/schemas/ForgeWarning"}},"required":["ok","ref","warning"]}],"description":"One `threads.getMany()` entry, in input order; narrow on `ok`.","x-forges-type":"GetManyResult"},"Installation":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"id":{"type":"string"},"account":{"$ref":"#/components/schemas/Actor"},"targetTypeRaw":{"type":"string","description":"Forge-native target type, for example `Organization` or `User`."},"repositorySelectionRaw":{"type":"string","description":"Forge-native repository selection, for example `all` or `selected`."},"raw":{}},"required":["forge","id","instance"],"description":"An app installation on an account, with its own credential scope.","x-forges-type":"Installation"},"InstallationToken":{"type":"object","properties":{"token":{"type":"string"},"expiresAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"permissions":{"type":"object","additionalProperties":{"type":"string"}},"repositorySelection":{"type":"string","description":"Whether the token reaches all repositories or only selected ones."}},"required":["token","expiresAt","permissions"],"description":"A short-lived token that acts as one app installation.","x-forges-type":"InstallationToken"},"IssueType":{"type":"object","properties":{"id":{"type":"string","description":"Forge-native id: a node id on GitHub, the name on Azure DevOps."},"name":{"type":"string"},"description":{"type":"string"},"colour":{"type":"string","description":"The forge's own colour, a name such as `red` on GitHub."},"enabled":{"type":"boolean","description":"Whether issues can be given the type."},"raw":{}},"required":["id","name"],"description":"A kind of issue, such as a bug or a feature, from the set its repository offers.","x-forges-type":"IssueType"},"KnownForgeKind":{"type":"string","enum":["github","gitlab","bitbucket","forgejo","gitea","tangled","gitee","azure-devops","cursor-origin","pushin","cloudflare-artifacts","sourcehut","entire","gitbucket","gitcafe","upstream"],"description":"The forges this package ships providers for.","x-forges-type":"KnownForgeKind"},"Label":{"type":"object","properties":{"name":{"type":"string"},"colour":{"type":"string","description":"The colour as hex digits, without a leading `#`."},"description":{"type":"string"}},"required":["name"],"description":"A label that a repository defines.","x-forges-type":"Label"},"LabelInput":{"type":"object","properties":{"name":{"type":"string"},"colour":{"type":"string","description":"Six-digit hex, without the leading `#`."},"description":{"type":"string"}},"required":["name"],"description":"What a label is created or updated with.","x-forges-type":"LabelInput"},"ListOptions":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"since":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Only items updated at or after this time."}},"description":"Options for listings that can start from a point in time: events, comments, reactions.","x-forges-type":"ListOptions"},"LockOptions":{"type":"object","properties":{"reason":{"type":"string","enum":["off_topic","too_heated","resolved","spam"],"description":"Forges without lock reasons lock the conversation without one."}},"description":"Options for `threads.lock()`.","x-forges-type":"LockOptions"},"MergeCommitDefaults":{"type":"object","properties":{"title":{"type":"string","enum":["pull_request_title","commit_or_pull_request_title","merge_message"],"description":"The pull request title, the commit's own title when there's just one, or the classic `Merge pull request #1 from acme/fix`."},"titleRaw":{"type":"string","description":"The forge's own value, which stays set when `title` is a value this library doesn't know."},"message":{"type":"string","enum":["pull_request_body","pull_request_title","commit_messages","blank"],"description":"The pull request body or title, its commit messages, or nothing at all."},"messageRaw":{"type":"string","description":"The forge's own value, which stays set when `message` is a value this library doesn't know."},"template":{"type":"string","description":"A template for the whole message, with placeholders such as GitLab's `%{title}`. Absent while the forge sticks to its built-in one."}},"description":"Where the default title and message of a merge or squash commit come from.","x-forges-type":"MergeCommitDefaults"},"MergeMethod":{"type":"string","enum":["merge","squash","rebase","rebase_merge","fast_forward_only"],"description":"How a pull request is merged.","x-forges-type":"MergeMethod"},"MergeOptions":{"type":"object","properties":{"method":{"$ref":"#/components/schemas/MergeMethod","description":"Defaults to the repository's only allowed method."},"sha":{"type":"string","description":"Expected head sha; the merge is refused if the branch has moved."},"title":{"type":"string","description":"Merge commit title. Where the forge takes a single message, it goes above `message`, separated by a blank line."},"message":{"type":"string","description":"Merge commit body, where the forge takes one. Where the forge takes a single message and `title` is unset, this is the whole message."},"whenChecksPass":{"type":"boolean","description":"Queue the merge until required checks pass, where the forge supports it."}},"description":"Options for `threads.merge()`.","x-forges-type":"MergeOptions"},"MergeResult":{"type":"object","properties":{"status":{"type":"string","enum":["merged","queued"],"description":"`'merged'` once the pull request has merged. `'queued'` when the forge merges it later: with `whenChecksPass`, or where it completes the merge in the background (Azure DevOps, and Bitbucket when the merge outlasts its timeout)."},"sha":{"type":"string","description":"The commit that the merge made on the base branch, where the response reports it."},"raw":{"description":"Unnormalised forge payload, retained for fidelity. Absent where the merge response has no body."}},"required":["status"],"description":"What `threads.merge()` resolves with.","x-forges-type":"MergeResult"},"Milestone":{"type":"object","properties":{"id":{"type":"string","description":"Forge-native milestone id, as `threads.setMilestone` takes it."},"title":{"type":"string"},"state":{"type":"string","enum":["open","closed"]},"description":{"type":"string"},"dueOn":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"url":{"type":"string"},"raw":{}},"required":["id","title","state"],"description":"A milestone that groups threads.","x-forges-type":"Milestone"},"MilestoneListOptions":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"state":{"type":"string","enum":["open","closed","all"],"default":"open"}},"description":"Options for `repos.milestones()`.","x-forges-type":"MilestoneListOptions"},"Notification":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/NotificationRef"},"subject":{"$ref":"#/components/schemas/NotificationSubject"},"reason":{"$ref":"#/components/schemas/NotificationReason","description":"Why the account got the notification."},"reasonRaw":{"type":"string","description":"Forge-native reason string. Absent when the forge reports no reason at all."},"subjectTypeRaw":{"type":"string","description":"Forge-native subject type, for example `PullRequest`, `Release` or `followed`."},"unread":{"type":"boolean"},"title":{"type":"string"},"subjectState":{"$ref":"#/components/schemas/ThreadState","description":"State of a thread subject as reported by the notification payload."},"subjectStateRaw":{"type":"string"},"updatedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"lastReadAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"url":{"type":"string"},"latestComment":{"anyOf":[{"$ref":"#/components/schemas/ResolvedCommentRef"},{"$ref":"#/components/schemas/CommitCommentRef"}],"description":"The latest comment on a thread or commit subject, where the forge links it. Read it with `threads.getComment()` or `commits.getComment()`. Absent when the latest activity is not a comment on the subject, such as a review comment."},"raw":{"description":"Unnormalised forge payload, retained for fidelity."}},"required":["ref","subject","reason","unread","title","subjectState","updatedAt"],"description":"A notification of the authenticated account.","x-forges-type":"Notification"},"NotificationListOptions":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"since":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Only items updated at or after this time."},"all":{"type":"boolean","description":"Include notifications already marked read.","default":false},"force":{"type":"boolean","description":"Read the first page even when the forge asked to wait longer between reads, as GitHub does with `X-Poll-Interval`. Without it, such a read returns a `throttled` page.","default":false}},"description":"Options for `notifications.list()`.","x-forges-type":"NotificationListOptions"},"NotificationReason":{"type":"string","enum":["access_requested","approval_requested","assigned","author","ci_activity","comment","followed","invitation","manual","mention","merge_blocked","review_requested","review_submitted","security_alert","starred","state_change","subscribed","team_mention","unknown"],"description":"Why a notification was delivered. `'unknown'` covers forges that report no reason and native reasons with no normalised equivalent; `reasonRaw` keeps the original.","x-forges-type":"NotificationReason"},"NotificationRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"id":{"type":"string","description":"Forge-native notification identifier, used for read/done/unsubscribe writes."}},"required":["forge","id","instance"],"description":"Reference to a notification. Distinct from {@link ThreadRef}: a notification is a per-user delivery record whose lifetime and identity are independent of the thread it points at.","x-forges-type":"NotificationRef"},"NotificationSubject":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"thread"},"thread":{"$ref":"#/components/schemas/ThreadRef"}},"required":["type","thread"]},{"type":"object","properties":{"type":{"type":"string","const":"commit"},"commit":{"$ref":"#/components/schemas/CommitRef"}},"required":["type","commit"]},{"type":"object","properties":{"type":{"type":"string","const":"repo"},"repo":{"$ref":"#/components/schemas/RepoRef"}},"required":["type","repo"]},{"type":"object","properties":{"type":{"type":"string","const":"actor"},"actor":{"$ref":"#/components/schemas/Actor"}},"required":["type","actor"]},{"type":"object","properties":{"type":{"type":"string","const":"release"},"release":{"$ref":"#/components/schemas/ReleaseRef"}},"required":["type","release"]},{"type":"object","properties":{"type":{"type":"string","const":"security_alert"},"alert":{"$ref":"#/components/schemas/SecurityAlertRef"}},"required":["type","alert"]},{"type":"object","properties":{"type":{"type":"string","const":"other"},"typeRaw":{"type":"string"},"repo":{"$ref":"#/components/schemas/RepoRef"},"id":{"type":"string"},"url":{"type":"string"}},"required":["type","typeRaw"]}],"description":"What a notification is about. Not every notification concerns a thread.","x-forges-type":"NotificationSubject"},"NotificationWriteOptions":{"type":"object","properties":{"thread":{"$ref":"#/components/schemas/ThreadRef","description":"The thread the notification points at, when the caller already holds it. Providers that would otherwise look it up skip that request."}},"description":"Options for changing one notification.","x-forges-type":"NotificationWriteOptions"},"OwnerRepoQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"visibility":{"anyOf":[{"$ref":"#/components/schemas/RepoVisibility"},{"type":"string","const":"all"}],"description":"Only repositories with this visibility."},"subgroups":{"type":"boolean","description":"Includes the repositories of nested groups, on forges that have them (GitLab).","default":false},"sort":{"type":"string","enum":["created","updated","pushed","name"],"description":"Defaults to the forge's own order. Unsupported orders produce a `sort_unsupported` warning."},"direction":{"type":"string","enum":["asc","desc"],"description":"Defaults to the forge's own direction."}},"description":"Filters for `repos.byOwner()`.","x-forges-type":"OwnerRepoQuery"},"PageOfActor":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Actor"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfActor"},"PageOfBranch":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Branch"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfBranch"},"PageOfChangedFile":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ChangedFile"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfChangedFile"},"PageOfCheck":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Check"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfCheck"},"PageOfCiJob":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CiJob"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfCiJob"},"PageOfCiRun":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CiRun"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfCiRun"},"PageOfCodeMatch":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CodeMatch"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfCodeMatch"},"PageOfCollaborator":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Collaborator"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfCollaborator"},"PageOfComment":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfComment"},"PageOfCommit":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Commit"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfCommit"},"PageOfCommitComment":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CommitComment"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfCommitComment"},"PageOfContributor":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Contributor"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfContributor"},"PageOfForgeEvent":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ForgeEvent"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfForgeEvent"},"PageOfInstallation":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Installation"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfInstallation"},"PageOfLabel":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Label"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfLabel"},"PageOfMilestone":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Milestone"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfMilestone"},"PageOfNotification":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfNotification"},"PageOfReaction":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Reaction"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfReaction"},"PageOfRelease":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Release"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfRelease"},"PageOfRepo":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Repo"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfRepo"},"PageOfReview":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Review"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfReview"},"PageOfReviewThread":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ReviewThread"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfReviewThread"},"PageOfSecurityAlert":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SecurityAlert"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfSecurityAlert"},"PageOfTag":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfTag"},"PageOfTeam":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Team"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfTeam"},"PageOfThread":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Thread"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfThread"},"PageOfTreeEntry":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TreeEntry"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfTreeEntry"},"PageOfWebhook":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfWebhook"},"PageOfWebhookDeliveryRecord":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryRecord"}},"total":{"type":"number","description":"The forge's reported total for the whole listing, when it reports one. Absent when the forge reports no total, so an absent value is unknown and not zero."},"rateLimit":{"$ref":"#/components/schemas/RateLimit","description":"From the response headers of the request behind this page."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Absent when the listing is exhausted."},"etag":{"type":"string","description":"Validator of the first page, where the forge supports conditional requests. Pass it back as `cursor: { etag }` to read the first page again. Absent on later pages, and on listings that read more than one endpoint."},"notModified":{"type":"boolean","description":"True when the forge reported no change since `cursor.etag`. The page then has no items and no `cursor`."},"throttled":{"type":"boolean","description":"True when the provider sent no request, because the forge asked to wait longer between reads of this feed. The page has no items and a `feed_throttled` warning; read it again later, or pass `force: true`."},"nextPollAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"The earliest time the forge allows the first page to be read again, as GitHub sets with `X-Poll-Interval`. Until then, a read of the first page returns a `throttled` page unless it passes `force: true`."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"The non-fatal problems that came up while reading the page."}},"required":["items"],"description":"One page of a listing: its `items`, and the `cursor` to pass back for the next page. The cursor is absent on the last page.","x-forges-type":"PageOfWebhookDeliveryRecord"},"PageOptions":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."}},"description":"Options for listings that take no filters: releases, installations, labels.","x-forges-type":"PageOptions"},"PerKind":{"type":"object","properties":{"issue":{"$ref":"#/components/schemas/Support"},"pull_request":{"$ref":"#/components/schemas/Support"},"discussion":{"$ref":"#/components/schemas/Support"}},"required":["issue","pull_request","discussion"],"description":"Per-thread-kind support.","x-forges-type":"PerKind"},"PullBranches":{"type":"object","properties":{"head":{"type":"object","properties":{"ref":{"type":"string"},"sha":{"type":"string"},"repo":{"$ref":"#/components/schemas/RepoRef","description":"The repository that holds the head branch, which differs for a fork."}},"required":["ref"],"description":"`sha` is absent on forges where a pull is a patch rather than a branch (Tangled)."},"base":{"type":"object","properties":{"ref":{"type":"string"},"sha":{"type":"string"}},"required":["ref"]},"mergeCommitSha":{"type":"string","description":"The merge commit, once the pull request is merged."}},"required":["head","base"],"description":"The branches of a pull request.","x-forges-type":"PullBranches"},"PullStats":{"type":"object","properties":{"additions":{"type":"number","description":"Lines added."},"deletions":{"type":"number","description":"Lines removed."},"changedFileCount":{"type":"number","description":"Files changed."},"commitCount":{"type":"number","description":"Commits on the pull request."}},"description":"The size of a pull request's change. Each count is absent where the forge doesn't report it exactly.","x-forges-type":"PullStats"},"PushCommit":{"type":"object","properties":{"sha":{"type":"string"},"message":{"type":"string"},"author":{"type":"string"},"url":{"type":"string"}},"required":["sha"],"description":"A commit as a push delivery reports it.","x-forges-type":"PushCommit"},"RateLimit":{"type":"object","properties":{"limit":{"type":"number","description":"The size of the request budget."},"remaining":{"type":"number","description":"The number of requests left in the budget."},"resetAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"When `remaining` resets."},"resource":{"type":"string","description":"The name of the budget, where the forge has several and names them, such as GitHub's `core`, `search` or `graphql`, or GitLab's `throttle_authenticated_api`."}},"description":"Request budget the forge reported on the response, where it reports one.","x-forges-type":"RateLimit"},"Reaction":{"type":"object","properties":{"content":{"anyOf":[{"$ref":"#/components/schemas/ReactionContent"},{"type":"string","const":"other"}],"description":"`'other'` where the forge's name has no entry in {@link ReactionContent}."},"contentRaw":{"type":"string","description":"The forge's own name for the reaction, such as a GitLab award emoji or a Forgejo emoji."},"actor":{"$ref":"#/components/schemas/Actor"},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"raw":{}},"required":["content","contentRaw","actor"],"description":"One reaction left on a thread or a comment, as `threads.reactions()` lists them.","x-forges-type":"Reaction"},"ReactionContent":{"type":"string","enum":["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],"description":"The reactions every forge with reactions has in common, named as GitHub names them. A {@link Reaction} whose forge-native name has no entry here has `content: 'other'`, with the forge-native name in `contentRaw`.","x-forges-type":"ReactionContent"},"ReactionSummary":{"type":"object","properties":{"total":{"type":"number","description":"The number of reactions of every kind."},"counts":{"type":"object","properties":{"+1":{"type":"number"},"-1":{"type":"number"},"laugh":{"type":"number"},"confused":{"type":"number"},"heart":{"type":"number"},"hooray":{"type":"number"},"rocket":{"type":"number"},"eyes":{"type":"number"}},"description":"The number of reactions of each kind. A reaction with no {@link ReactionContent} entry has no key here."},"viewerReacted":{"type":"array","items":{"$ref":"#/components/schemas/ReactionContent"},"description":"Reactions the authenticated account has left. Absent when the forge does not report them."}},"required":["total","counts"],"description":"The reactions on a thread or comment, counted.","x-forges-type":"ReactionSummary"},"Release":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/ReleaseRef"},"name":{"type":"string"},"tag":{"type":"string"},"body":{"type":"string","description":"The release notes."},"isDraft":{"type":"boolean"},"isPrerelease":{"type":"boolean"},"immutable":{"type":"boolean","description":"The release is immutable: its tag and assets are locked. `true` where the forge supports immutable releases and this one is published as immutable (GitHub). The name, notes, prerelease and latest flags stay editable."},"author":{"$ref":"#/components/schemas/Actor"},"publishedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"url":{"type":"string"},"assets":{"type":"array","items":{"$ref":"#/components/schemas/ReleaseAsset"}},"raw":{}},"required":["ref","tag","isDraft","isPrerelease"],"description":"A release of a repository.","x-forges-type":"Release"},"ReleaseAsset":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/ReleaseAssetRef","description":"Absent where the forge publishes a download URL but nothing to address the asset by."},"name":{"type":"string"},"url":{"type":"string"},"size":{"type":"number"},"downloadCount":{"type":"number"},"contentType":{"type":"string","description":"The media type."}},"required":["name","url"],"description":"A file attached to a release.","x-forges-type":"ReleaseAsset"},"ReleaseAssetRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"repo":{"$ref":"#/components/schemas/RepoRef"},"release":{"$ref":"#/components/schemas/ReleaseRef"},"id":{"type":"string","description":"Forge-native asset id; the asset name, or the link id, on forges that have no asset id."}},"required":["forge","id","instance","release","repo"],"description":"A release asset, addressable for download with `releases.downloadAsset`.","x-forges-type":"ReleaseAssetRef"},"ReleaseInput":{"type":"object","properties":{"tag":{"type":"string","description":"The tag to release. The forge creates it from `target` when it does not exist yet."},"name":{"type":"string"},"body":{"type":"string","description":"The release notes."},"draft":{"type":"boolean","description":"Saves the release unpublished. `true` rejects with `UnsupportedOperationError` on a forge without drafts."},"prerelease":{"type":"boolean","description":"Marks the release as a prerelease. `true` rejects with `UnsupportedOperationError` on a forge without prereleases."},"target":{"type":"string","description":"The branch or commit sha to create the tag from when it does not exist yet. GitHub, Forgejo and Gitea default to the default branch; GitLab requires it for a new tag."}},"required":["tag"],"description":"The fields that `releases.create()` sets.","x-forges-type":"ReleaseInput"},"ReleaseRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"repo":{"$ref":"#/components/schemas/RepoRef"},"id":{"type":"string","description":"Forge-native release id; the tag name on forges that key releases by tag."},"tag":{"type":"string"}},"required":["forge","id","instance","repo"],"description":"A release, as a notification subject or event target.","x-forges-type":"ReleaseRef"},"ReleaseUpdate":{"type":"object","properties":{"tag":{"type":"string","description":"The tag to release. The forge creates it from `target` when it does not exist yet."},"name":{"type":"string"},"body":{"type":"string","description":"The release notes."},"draft":{"type":"boolean","description":"Saves the release unpublished. `true` rejects with `UnsupportedOperationError` on a forge without drafts."},"prerelease":{"type":"boolean","description":"Marks the release as a prerelease. `true` rejects with `UnsupportedOperationError` on a forge without prereleases."},"target":{"type":"string","description":"The branch or commit sha to create the tag from when it does not exist yet. GitHub, Forgejo and Gitea default to the default branch; GitLab requires it for a new tag."}},"description":"The fields that `releases.update()` changes. Fields left out stay as they are.","x-forges-type":"ReleaseUpdate"},"Repo":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/RepoRef"},"displayName":{"type":"string","description":"The repository's name where `ref.name` is an identifier rather than the name (a Tangled record key)."},"description":{"type":"string"},"defaultBranch":{"type":"string"},"visibility":{"$ref":"#/components/schemas/RepoVisibility","description":"Who can see the repository."},"visibilityRaw":{"type":"string"},"isFork":{"type":"boolean"},"isArchived":{"type":"boolean","description":"The repository is archived and read-only."},"parent":{"$ref":"#/components/schemas/RepoRef","description":"The repository that this one was forked from."},"topics":{"type":"array","items":{"type":"string"},"description":"Topics, also called tags, that describe the repository."},"url":{"type":"string"},"cloneUrls":{"type":"object","properties":{"https":{"type":"string"},"ssh":{"type":"string"}},"description":"Git remotes. Tangled maps the hosting knot to its SSH host."},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"updatedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"pushedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Last push, where the listing endpoint reports it."},"openIssueCount":{"type":"number","description":"Open issues only, never combined with pull requests. Absent where the forge reports only the combined count (GitHub)."},"openPullCount":{"type":"number","description":"The number of open pull requests, where the forge reports it."},"owner":{"$ref":"#/components/schemas/Actor","description":"The account or organisation that owns the repository, where the forge reports one."},"language":{"type":"string","description":"Primary language, as the forge detects it."},"homepage":{"type":"string","description":"Project website, apart from the repository's own `url`."},"licence":{"type":"string","description":"SPDX identifier of the licence the forge detects, for example `MIT`. SPDX identifiers are case-insensitive, and GitLab reports them in lower case, such as `mit`."},"stars":{"type":"number"},"forks":{"type":"number"},"watchers":{"type":"number","description":"Accounts watching the repository's activity, apart from stars."},"permissions":{"$ref":"#/components/schemas/RepoPermissions","description":"What the authenticated account may do."},"mergeMethods":{"type":"array","items":{"$ref":"#/components/schemas/MergeMethod"},"description":"Merge methods the repository allows, where the forge reports them. Empty means the forge reported none."},"defaultMergeMethod":{"$ref":"#/components/schemas/MergeMethod","description":"The repository's default merge method, where the forge reports one. On GitLab, a project that squashes by default reports `squash`, not its base method."},"deleteBranchOnMerge":{"type":"boolean","description":"The repository's setting for deleting the head branch after a merge, where the forge reports it. Forgejo and Gitea before 1.25 apply it only in their web UI, so `merge()` keeps the branch there. On GitLab it seeds merge requests when they are opened."},"mergeCommit":{"type":"object","properties":{"merge":{"$ref":"#/components/schemas/MergeCommitDefaults"},"squash":{"$ref":"#/components/schemas/MergeCommitDefaults"}},"description":"Default text of a merge commit (`merge`) and a squashed one (`squash`) as `MergeCommitDefaults`, where the forge reports it."},"features":{"$ref":"#/components/schemas/RepoFeatures"},"raw":{}},"required":["ref","visibility","isFork","isArchived","topics"],"description":"A repository as every forge reports it. Fields that not every forge has, such as `openPullCount`, are optional.","x-forges-type":"Repo"},"RepoAffiliation":{"type":"string","enum":["owner","collaborator","organisation_member"],"description":"How the account is attached to the repositories it lists.","x-forges-type":"RepoAffiliation"},"RepoFeatures":{"type":"object","properties":{"issues":{"type":"boolean"},"pullRequests":{"type":"boolean"},"discussions":{"type":"boolean"},"wiki":{"type":"boolean"},"projects":{"type":"boolean"},"releases":{"type":"boolean"}},"required":["issues","pullRequests","discussions","wiki","projects","releases"],"description":"Which subjects a repository has switched on, where the forge makes them per repository.","x-forges-type":"RepoFeatures"},"RepoGetOptions":{"type":"object","properties":{"licence":{"type":"boolean","description":"Includes the repository's licence in `Repo.licence`. GitLab reports it only on request, because detecting it scans the repository; other forges ignore this option."}},"description":"Options for `repos.get()`.","x-forges-type":"RepoGetOptions"},"RepoPermissions":{"type":"object","properties":{"admin":{"type":"boolean","description":"Full administrative access."},"maintain":{"type":"boolean","description":"Manage the repository without access to sensitive or destructive settings."},"push":{"type":"boolean"},"triage":{"type":"boolean","description":"Manage issues and pull requests without write access."},"pull":{"type":"boolean","description":"Read and clone the repository."}},"required":["admin","maintain","push","triage","pull"],"description":"The authenticated account's access to a repository.","x-forges-type":"RepoPermissions"},"RepoQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"affiliation":{"type":"array","items":{"$ref":"#/components/schemas/RepoAffiliation"},"description":"Defaults to every affiliation the forge lists. Unsupported values produce a `filter_unsupported` warning."},"visibility":{"anyOf":[{"$ref":"#/components/schemas/RepoVisibility"},{"type":"string","const":"all"}],"description":"Only repositories with this visibility."},"sort":{"type":"string","enum":["created","updated","pushed","name"],"description":"Defaults to the forge's own order. Unsupported orders produce a `sort_unsupported` warning."},"direction":{"type":"string","enum":["asc","desc"],"description":"Defaults to the forge's own direction."}},"description":"Filters for `repos.list()`.","x-forges-type":"RepoQuery"},"RepoRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"owner":{"type":"string","description":"Full namespace path. On forges with nested groups (GitLab) this contains slashes, for example `acme/platform`; `name` never does."},"name":{"type":"string","description":"Repository name. Empty for namespace-scoped refs."},"kind":{"type":"string","enum":["repo","namespace"],"description":"`'namespace'` for an organisation, group, workspace or project, and for subjects that belong to one rather than to a repository (GitLab epics). Absent means a repository. {@link namespaceRef} builds a namespace ref."},"externalId":{"type":"string","description":"Stable forge-native identifier that survives renames and transfers: a GitHub, Forgejo or Gitea numeric id, a GitLab project or group id, a Bitbucket UUID or a Tangled repo DID. {@link repoKey} prefers it over `owner` and `name`."},"ownerHandle":{"type":"string","description":"The owner's handle, where the forge identifies accounts by DID but addresses them by handle in its web URLs (Tangled). The `owner` stays the DID, so that a repository is found the same way whichever is known."}},"required":["forge","instance","name","owner"],"description":"Addresses a repository by its forge, instance, owner and name.","x-forges-type":"RepoRef"},"RepoRole":{"type":"string","enum":["admin","maintain","write","triage","read","none"],"description":"A collaborator's role, highest first. `'none'` is an explicit absence of access.","x-forges-type":"RepoRole"},"RepoSearchQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"text":{"type":"string"},"queryRaw":{"type":"string","description":"Forge-native query syntax; see {@link ThreadSearchQuery.queryRaw}."},"owner":{"type":"string","description":"Limit to one account or namespace."},"language":{"type":"string","description":"The main language of the repository."},"sort":{"type":"string","enum":["created","updated","stars","relevance"],"description":"Defaults to the forge's relevance order."},"direction":{"type":"string","enum":["asc","desc"],"default":"desc"}},"description":"A search for repositories.","x-forges-type":"RepoSearchQuery"},"RepoTemplate":{"type":"object","properties":{"kind":{"type":"string","enum":["issue","pull_request"],"description":"What the template opens."},"name":{"type":"string","description":"The name of the template, where the forge's API parses one, or its file name."},"path":{"type":"string","description":"The file the template lives in. Not available on GitLab."},"format":{"type":"string","enum":["markdown","form"],"description":"`'form'` for a form written in YAML, `'markdown'` for the rest."},"body":{"type":"string","description":"The template as the repository stores it: Markdown with any front matter, or the YAML of a form."},"title":{"type":"string","description":"The title a new thread starts with, where the forge parses one."},"about":{"type":"string","description":"What the template is for, where the forge parses it."},"labels":{"type":"array","items":{"type":"string"},"description":"Labels a new thread gets, where the forge parses them."},"fields":{"type":"array","items":{"$ref":"#/components/schemas/RepoTemplateField"},"description":"The fields of a form, where the forge parses them."},"source":{"$ref":"#/components/schemas/RepoRef","description":"Where the template comes from when the forge falls back to another repository, like GitHub's `.github`."},"raw":{}},"required":["kind","name","format","body"],"description":"An issue or pull request template of a repository, as `repos.templates()` reads it.","x-forges-type":"RepoTemplate"},"RepoTemplateField":{"type":"object","properties":{"type":{"type":"string","description":"The kind of input, such as `'input'`, `'textarea'`, `'dropdown'`, `'checkboxes'` or `'markdown'`."},"id":{"type":"string"},"attributes":{"type":"object","additionalProperties":{},"description":"The field's label, description, options and default value, as the form declares them."},"validations":{"type":"object","additionalProperties":{},"description":"Whether the field is required, and other checks the form declares."}},"required":["type","attributes"],"description":"One field of an issue form, as the forge parses it.","x-forges-type":"RepoTemplateField"},"RepoTemplateOptions":{"type":"object","properties":{"kind":{"type":"string","enum":["issue","pull_request"],"description":"Only templates for this kind of thread. Defaults to both."}},"description":"Options for `repos.templates()`.","x-forges-type":"RepoTemplateOptions"},"RepoVisibility":{"type":"string","enum":["public","private","internal"],"description":"Who can see a repository.","x-forges-type":"RepoVisibility"},"RequiredCheck":{"type":"object","properties":{"name":{"type":"string","description":"The name of the check run or the context of the commit status. On Forgejo and Gitea it can be a glob, such as `ci / **`."},"appId":{"type":"string","description":"The id of the app that has to report the check, where the rule names one, such as `15368` for GitHub Actions."}},"required":["name"],"description":"A check that has to pass before a pull request can merge into a branch.","x-forges-type":"RequiredCheck"},"ResolvedCommentRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"thread":{"$ref":"#/components/schemas/ResolvedThreadRef"},"id":{"type":"string","description":"Forge-native comment id; an AT-URI on Tangled."}},"required":["forge","id","instance","thread"],"description":"A comment ref whose thread is resolved, and which can therefore be keyed. Every comment read from a forge carries one.","x-forges-type":"ResolvedCommentRef"},"ResolvedReviewRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"thread":{"$ref":"#/components/schemas/ResolvedThreadRef"},"id":{"type":"string","description":"Forge-native review id; a synthesised `approval:<login>` where the forge has approvals but no review objects."}},"required":["forge","id","instance","thread"],"description":"A review ref whose thread is resolved. Every review read from a forge carries one.","x-forges-type":"ResolvedReviewRef"},"ResolvedThreadRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"repo":{"$ref":"#/components/schemas/RepoRef"},"kind":{"$ref":"#/components/schemas/ThreadKind"},"typeRaw":{"type":"string","description":"Forge-native subject type, for example `PullRequest` or `MergeRequest`."},"number":{"type":"string","description":"Per-repo thread number."},"displayNumber":{"type":"string","description":"Human-facing per-repo number, when it differs from `number`. Tangled identifies threads by AT-URI but shows numbers in its UI and webhooks."},"externalId":{"type":"string","description":"Globally unique forge-native identifier, where one exists: a GitHub `node_id`, a GitLab global id, or an atproto record URI."}},"required":["forge","instance","kind","number","repo"],"description":"A thread ref whose number is known, and which can therefore be keyed and fetched. Every thread, comment and review read from a forge carries one.","x-forges-type":"ResolvedThreadRef"},"Review":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/ResolvedReviewRef"},"author":{"$ref":"#/components/schemas/Actor"},"state":{"$ref":"#/components/schemas/ReviewState"},"stateRaw":{"type":"string"},"body":{"type":"string"},"submittedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"comments":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/ReviewComment"}},{"type":"boolean","const":false}],"description":"Inline comments submitted with the review. `false` where the forge has approvals but no review objects to hang comments on."},"url":{"type":"string"},"raw":{}},"required":["ref","state","comments"],"description":"A review of a pull request.","x-forges-type":"Review"},"ReviewComment":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/ResolvedCommentRef"},"body":{"type":"string"},"author":{"$ref":"#/components/schemas/Actor"},"path":{"type":"string"},"line":{"type":"number","description":"Line in the file the comment is anchored to, in the side it is anchored to."},"side":{"type":"string","enum":["left","right"],"description":"`'left'` is the base of the diff, `'right'` the head."},"inReplyTo":{"type":"string","description":"Forge-native id of the comment this one replies to."},"thread":{"type":"object","properties":{"id":{"type":"string"},"resolved":{"type":"boolean"}},"required":["id","resolved"],"description":"The resolvable conversation the comment belongs to, where the forge has one."},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"url":{"type":"string"},"raw":{}},"required":["body"],"description":"A comment left on a line of the diff as part of a review.","x-forges-type":"ReviewComment"},"ReviewCommentInput":{"type":"object","properties":{"path":{"type":"string"},"line":{"type":"number","description":"Line in the diff, in `side`."},"side":{"type":"string","enum":["left","right"]},"startLine":{"type":"number","description":"First line of a multi-line comment."},"body":{"type":"string"}},"required":["path","body"],"description":"An inline comment to send with a review.","x-forges-type":"ReviewCommentInput"},"ReviewEvent":{"type":"string","enum":["approve","request_changes","comment"],"description":"What a review does when it is submitted. Omitted creates a pending review where the forge has them.","x-forges-type":"ReviewEvent"},"ReviewInput":{"type":"object","properties":{"event":{"$ref":"#/components/schemas/ReviewEvent","description":"Omitted creates a pending review, where the forge has them; submit it with `submitReview`."},"body":{"type":"string"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/ReviewCommentInput"},"description":"Inline comments to send with the review."}},"description":"What `threads.createReview()` needs.","x-forges-type":"ReviewInput"},"ReviewRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"thread":{"$ref":"#/components/schemas/ThreadRef"},"id":{"type":"string","description":"Forge-native review id; a synthesised `approval:<login>` where the forge has approvals but no review objects."}},"required":["forge","id","instance","thread"],"description":"Reference to a review on a pull request.","x-forges-type":"ReviewRef"},"ReviewState":{"type":"string","enum":["approved","changes_requested","commented","pending","dismissed","unknown"],"description":"What a review or a reviewer says about a pull request. `unknown` is a state that the model does not name.","x-forges-type":"ReviewState"},"ReviewThread":{"type":"object","properties":{"id":{"type":"string","description":"Forge-native id; `resolveReviewThread()` takes it where the forge can resolve a conversation."},"resolved":{"type":"boolean"},"outdated":{"type":"boolean","description":"Whether the code under the conversation has changed since. Absent where the forge doesn't say."},"path":{"type":"string"},"line":{"type":"number","description":"Line the conversation is anchored to, in `side`; the last line of a multi-line conversation."},"startLine":{"type":"number","description":"First line of a multi-line conversation."},"side":{"type":"string","enum":["left","right"],"description":"`'left'` is the base of the diff, `'right'` the head."},"comments":{"type":"array","items":{"$ref":"#/components/schemas/ReviewComment"},"description":"The comments in the conversation, oldest first."},"raw":{}},"required":["id","resolved","comments"],"description":"A review conversation on a pull request: comments that are resolved together, usually on one line of the diff.","x-forges-type":"ReviewThread"},"ReviewThreadListOptions":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"state":{"type":"string","enum":["resolved","unresolved","all"],"description":"Only resolved or only unresolved conversations; `'all'` by default."}},"description":"Options for `threads.reviewThreads()`.","x-forges-type":"ReviewThreadListOptions"},"Reviewer":{"type":"object","properties":{"actor":{"$ref":"#/components/schemas/Actor"},"state":{"$ref":"#/components/schemas/ReviewState"},"stateRaw":{"type":"string"},"isTeam":{"type":"boolean","description":"True when the reviewer is a team rather than an account."},"requestedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"When the pending review was last requested. Absent where the forge doesn't report it; on GitHub, `threads.getMany()` reports it."}},"required":["actor","state"],"description":"A reviewer who was asked to review a pull request, and what they said.","x-forges-type":"Reviewer"},"SecurityAlert":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/SecurityAlertRef"},"kind":{"$ref":"#/components/schemas/SecurityAlertKind"},"kindRaw":{"type":"string"},"severity":{"$ref":"#/components/schemas/SecuritySeverity"},"severityRaw":{"type":"string"},"state":{"type":"string","enum":["open","fixed","dismissed","unknown"]},"stateRaw":{"type":"string"},"title":{"type":"string","description":"A short description of the problem."},"package":{"type":"object","properties":{"ecosystem":{"type":"string"},"name":{"type":"string"},"vulnerableRange":{"type":"string"},"fixedIn":{"type":"string"}},"required":["name"],"description":"`ecosystem` is absent where the forge reports only the package name."},"url":{"type":"string"},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"updatedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"dismissedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"raw":{}},"required":["ref","kind","kindRaw","severity","state","stateRaw","title"],"description":"A security alert on a repository.","x-forges-type":"SecurityAlert"},"SecurityAlertKind":{"type":"string","enum":["dependency","code_scanning","secret","advisory","other"],"description":"What an alert is about. `other` is a kind that the model does not name.","x-forges-type":"SecurityAlertKind"},"SecurityAlertListOptions":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"kind":{"type":"string","enum":["dependency","code_scanning","secret","advisory"],"description":"Omitted lists every kind the provider can read, one after another."},"state":{"type":"string","enum":["open","closed","all"],"description":"`'closed'` is fixed or dismissed.","default":"open"}},"description":"Filters for `securityAlerts.list()`.","x-forges-type":"SecurityAlertListOptions"},"SecurityAlertRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"repo":{"$ref":"#/components/schemas/RepoRef"},"id":{"type":"string","description":"Forge-native alert id. GitHub numbers each alert kind separately, so `kind` is needed to address one."},"kind":{"$ref":"#/components/schemas/SecurityAlertKind"},"severityRaw":{"type":"string"}},"required":["forge","id","instance","repo"],"description":"A security alert: a vulnerable dependency, a code scanning result, a leaked secret or an advisory.","x-forges-type":"SecurityAlertRef"},"SecuritySeverity":{"type":"string","enum":["critical","high","medium","low","unknown"],"description":"How severe an alert is. `unknown` is a level that the model does not name.","x-forges-type":"SecuritySeverity"},"SourceKind":{"type":"string","enum":["poll","webhook","stream"],"description":"How an event reached the caller.","x-forges-type":"SourceKind"},"SponsorableManyResult":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"login":{"type":"string"},"sponsorable":{"type":"boolean"}},"required":["ok","login","sponsorable"]},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"login":{"type":"string"},"warning":{"$ref":"#/components/schemas/ForgeWarning"}},"required":["ok","login","warning"]}],"description":"One `users.sponsorableMany()` entry, in input order; narrow on `ok`.","x-forges-type":"SponsorableManyResult"},"StreamOptions":{"type":"object","properties":{"cursor":{"type":"string","description":"Resume after this cursor, as yielded by an earlier {@link StreamItem}."}},"description":"Options for `sources.stream()`.","x-forges-type":"StreamOptions"},"SubscriptionState":{"type":"string","enum":["subscribed","ignored","none"],"description":"Whether the account gets notifications for a thread.","x-forges-type":"SubscriptionState"},"Support":{"anyOf":[{"type":"boolean"},{"type":"string","const":"emulated"},{"type":"string","const":"not_applicable"}],"description":"Capability flag. Every value other than `false` and `'not_applicable'` means the operation is available:\n\n- `true`: native.\n- `'emulated'`: composed from other calls, so it costs more requests or the result is approximate.\n- `false`: not available, for any reason.\n- `'not_applicable'`: the forge has no such operation, so there is nothing to implement.","x-forges-type":"Support"},"Tag":{"type":"object","properties":{"name":{"type":"string"},"sha":{"type":"string","description":"Commit the tag points at, after dereferencing an annotated tag where the forge does so."},"url":{"type":"string"},"raw":{}},"required":["name","sha"],"description":"A tag of a repository.","x-forges-type":"Tag"},"Team":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/TeamRef"},"name":{"type":"string"},"description":{"type":"string"},"permission":{"type":"string","description":"Forge-native repository permission the team grants, where the forge reports one."},"visibilityRaw":{"type":"string","description":"Forge-native privacy or visibility value, where the forge reports one: GitHub's `privacy` (`closed` or `secret`), or a GitLab subgroup's `visibility` (`public`, `internal` or `private`)."},"parent":{"$ref":"#/components/schemas/TeamRef","description":"The team's parent team, where the forge nests teams: a GitHub parent team, or the GitLab subgroup a nested subgroup belongs to."},"url":{"type":"string","description":"Web page of the team, where the forge has one."},"raw":{}},"required":["ref","name"],"description":"A team of an organisation, as `orgs.teams()` lists them. GitLab has no teams of its own, so a subgroup plays the role of one.","x-forges-type":"Team"},"TeamRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"org":{"$ref":"#/components/schemas/RepoRef","description":"The organisation, group or workspace the team belongs to."},"id":{"type":"string","description":"Forge-native team id. Where it is set, `orgs.teamMembers()` prefers it to `slug` on forges that address teams by id."},"slug":{"type":"string","description":"URL-safe identifier unique within the organisation. GitHub has a slug; on GitLab it is the subgroup's path below the group, such as `platform/web`; Forgejo and Gitea have none, so the team's name stands in."}},"required":["forge","instance","org","slug"],"description":"Reference to a team of an organisation. A team belongs to the organisation, not to a repository, so the ref carries the namespace ref of the organisation rather than a repository.","x-forges-type":"TeamRef"},"TextLimits":{"type":"object","properties":{"bodyLength":{"type":"number"},"commentLength":{"type":"number"},"labelLength":{"type":"number"}},"description":"Maximum lengths the forge accepts, in characters.","x-forges-type":"TextLimits"},"Thread":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/ResolvedThreadRef"},"kind":{"$ref":"#/components/schemas/ThreadKind"},"title":{"type":"string"},"body":{"type":"string"},"state":{"$ref":"#/components/schemas/ThreadState"},"stateRaw":{"type":"string","description":"Forge-native state string the normalised `state` was derived from."},"stateReason":{"type":"string","description":"Forge-native state qualifier, for example `completed` or `not_planned`."},"isDraft":{"type":"boolean"},"author":{"$ref":"#/components/schemas/Actor"},"authorAssociation":{"$ref":"#/components/schemas/AuthorAssociation","description":"How the author relates to the repository, where the forge reports it."},"authorAssociationRaw":{"type":"string","description":"Forge-native association the normalised `authorAssociation` was derived from."},"assignees":{"type":"array","items":{"$ref":"#/components/schemas/Actor"}},"reviewers":{"type":"array","items":{"$ref":"#/components/schemas/Reviewer"},"description":"Reviewers the thread read reports. Some forges report outstanding requests only, others each reviewer's verdict; `threads.reviews()` has every submitted review."},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"}},"url":{"type":"string"},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"updatedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"closedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"mergedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"When the pull request was merged, where the forge reports it."},"mergedBy":{"$ref":"#/components/schemas/Actor","description":"The account that merged the pull request, where the forge reports it."},"lastActivityAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Latest activity the forge reports for the thread."},"locked":{"type":"boolean"},"commentCount":{"type":"number"},"participants":{"type":"array","items":{"$ref":"#/components/schemas/Actor"},"description":"Everyone who authored or commented on the thread, where the forge reports them."},"subscription":{"$ref":"#/components/schemas/SubscriptionState","description":"The authenticated account's subscription, where the thread read already carries it."},"milestone":{"$ref":"#/components/schemas/Milestone"},"issueType":{"$ref":"#/components/schemas/IssueType","description":"Issues only, where the forge has issue types and the issue has one."},"reactions":{"$ref":"#/components/schemas/ReactionSummary"},"branches":{"$ref":"#/components/schemas/PullBranches","description":"Pull requests only."},"checks":{"$ref":"#/components/schemas/ChecksSummary","description":"Pull requests only."},"stats":{"$ref":"#/components/schemas/PullStats","description":"Pull requests only, where the forge reports counts with the pull request."},"stack":{"$ref":"#/components/schemas/ThreadStack","description":"Pull requests in a stack: a chain of dependent pull requests, each based on the one before."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/ForgeWarning"},"description":"Non-fatal problems hit while reading the thread, for example an unreachable record."},"raw":{"description":"Unnormalised forge payload, retained for fidelity."}},"required":["ref","kind","title","state","isDraft","assignees","reviewers","labels"],"description":"An issue, pull request or discussion.","x-forges-type":"Thread"},"ThreadInput":{"type":"object","properties":{"kind":{"type":"string","enum":["issue","pull_request","discussion"]},"title":{"type":"string"},"body":{"type":"string"},"labels":{"type":"array","items":{"type":"string"},"description":"Names of the labels to add."},"assignees":{"type":"array","items":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/Actor"}]},"description":"Logins, or actors where the forge needs ids."},"head":{"type":"string","description":"Pull requests: source branch, optionally `owner:branch` for forks."},"base":{"type":"string","description":"Pull requests: target branch."},"draft":{"type":"boolean","description":"Open the pull request as a draft."},"category":{"type":"string","description":"Discussions: category name or id."}},"required":["kind","title"],"description":"What `threads.create()` needs.","x-forges-type":"ThreadInput"},"ThreadKind":{"type":"string","enum":["issue","pull_request","discussion"],"description":"Kind of thread.","x-forges-type":"ThreadKind"},"ThreadQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"kind":{"type":"string","enum":["issue","pull_request","discussion"],"description":"Omitted lists every listable kind; forges that list kinds separately emit them one after another."},"state":{"type":"string","enum":["open","closed","merged","all"],"description":"`'closed'` includes merged pull requests; `'merged'` lists pull requests only, and lists nothing for another `kind`.","default":"open"},"labels":{"type":"array","items":{"type":"string"},"description":"Threads carrying every one of these labels."},"author":{"type":"string","description":"Author login."},"assignee":{"type":"string","description":"Assignee login."},"involves":{"type":"string","description":"Threads the login authored, is assigned, commented on or was mentioned in. A listing without this filter ignores it and warns with `filter_unsupported`, as for `mentions` and `milestone`."},"mentions":{"type":"string","description":"Threads the login was mentioned in."},"milestone":{"type":"string","description":"Milestone title, or `'none'` for threads with no milestone."},"since":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Updated at or after."},"createdAfter":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Created at or after."},"sort":{"type":"string","enum":["created","updated","comments"],"description":"Unsupported orders produce a warning and the forge's own order.","default":"created"},"direction":{"type":"string","enum":["asc","desc"],"default":"desc"}},"description":"Filters for `threads.list()`.","x-forges-type":"ThreadQuery"},"ThreadRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"repo":{"$ref":"#/components/schemas/RepoRef"},"kind":{"$ref":"#/components/schemas/ThreadKind"},"typeRaw":{"type":"string","description":"Forge-native subject type, for example `PullRequest` or `MergeRequest`."},"number":{"type":"string","description":"Per-repo thread number. Absent when the forge did not identify the thread; such a ref cannot be fetched or keyed until enriched."},"displayNumber":{"type":"string","description":"Human-facing per-repo number, when it differs from `number`. Tangled identifies threads by AT-URI but shows numbers in its UI and webhooks."},"externalId":{"type":"string","description":"Globally unique forge-native identifier, where one exists: a GitHub `node_id`, a GitLab global id, or an atproto record URI."}},"required":["forge","instance","kind","repo"],"description":"Reference to a thread. A thread `number` is unique only within its repo, so the repo is always carried alongside it.","x-forges-type":"ThreadRef"},"ThreadSearchQuery":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"text":{"type":"string","description":"Free text, matched against title and body."},"queryRaw":{"type":"string","description":"Forge-native query syntax, added to the query as is, for qualifiers the other fields don't cover. Forges whose search has no query syntax ignore it with a `filter_unsupported` warning."},"repo":{"$ref":"#/components/schemas/RepoRef","description":"Limit to one repository."},"owner":{"type":"string","description":"Limit to the repositories of one account or namespace; `repo` wins when both are set."},"kind":{"type":"string","enum":["issue","pull_request"]},"state":{"type":"string","enum":["open","closed","all"],"description":"Defaults to every state."},"author":{"type":"string"},"involves":{"type":"string","description":"Threads the login authored, is assigned, commented on or was mentioned in."},"assignee":{"type":"string"},"labels":{"type":"array","items":{"type":"string"},"description":"Threads carrying every one of these labels."},"since":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Updated at or after."},"sort":{"type":"string","enum":["created","updated","comments","relevance"],"description":"Defaults to the forge's relevance order."},"direction":{"type":"string","enum":["asc","desc"],"default":"desc"}},"description":"A structured search. Providers translate it into their own syntax; a field the forge cannot filter on becomes a `filter_unsupported` warning on the page rather than a filter applied client-side.","x-forges-type":"ThreadSearchQuery"},"ThreadSnapshot":{"type":"object","properties":{"title":{"type":"string"},"body":{"type":"string"},"state":{"type":"string","enum":["open","closed","merged"],"description":"Thread state. `'unknown'` is distinct from any real state and signals that the value was not present in the payload, so the caller may enrich it with `threads.get()`. Draft status is orthogonal; see `Thread.isDraft`."},"stateRaw":{"type":"string"},"stateReason":{"type":"string"},"isDraft":{"type":"boolean"},"author":{"$ref":"#/components/schemas/Actor"},"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"}},"issueType":{"$ref":"#/components/schemas/IssueType","description":"Absent both when the issue has no type and when the source doesn't report one."},"url":{"type":"string"},"branches":{"$ref":"#/components/schemas/PullBranches"},"stats":{"$ref":"#/components/schemas/PullStats"},"mergedBy":{"$ref":"#/components/schemas/Actor"}},"description":"Fields of a {@link Thread} that an event's source carries. A field is absent when the source does not report it; `labels: []` means the source listed no labels. `threads.get()` reads the rest.","x-forges-type":"ThreadSnapshot"},"ThreadStack":{"type":"object","properties":{"id":{"type":"string","description":"Forge-native stack id, where the forge names stacks."},"parent":{"$ref":"#/components/schemas/ResolvedThreadRef","description":"The pull request this one is stacked on. Absent for the root of the stack."}},"description":"Where a pull request sits in a stack of pull requests.","x-forges-type":"ThreadStack"},"ThreadState":{"type":"string","enum":["open","closed","merged","unknown"],"description":"Thread state. `'unknown'` is distinct from any real state and signals that the value was not present in the payload, so the caller may enrich it with `threads.get()`. Draft status is orthogonal; see `Thread.isDraft`.","x-forges-type":"ThreadState"},"ThreadUpdate":{"type":"object","properties":{"title":{"type":"string"},"body":{"type":"string"},"state":{"type":"string","enum":["open","closed"],"description":"Closes or reopens the thread. To give a reason, use `threads.close()`."},"labels":{"type":"array","items":{"type":"string"},"description":"Names of the labels to replace the current ones; `[]` clears them."},"assignees":{"type":"array","items":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/Actor"}]},"description":"Logins, or actors where the forge needs ids, to replace the assignees; `[]` clears them."}},"description":"The fields that `threads.update()` changes. Fields left out stay as they are.","x-forges-type":"ThreadUpdate"},"TreeEntry":{"type":"object","properties":{"path":{"type":"string","description":"Path from the repository root, without a leading slash."},"type":{"$ref":"#/components/schemas/TreeEntryType"},"sha":{"type":"string"},"size":{"type":"number","description":"The size in bytes, for a file."},"mode":{"type":"string","description":"POSIX mode as the forge reports it, for example `100644`."},"url":{"type":"string"}},"required":["path","type"],"description":"One entry of a repository tree.","x-forges-type":"TreeEntry"},"TreeEntryType":{"type":"string","enum":["file","directory","symlink","submodule"],"description":"What a tree entry is.","x-forges-type":"TreeEntryType"},"TreeOptions":{"type":"object","properties":{"perPage":{"type":"number","description":"How many items to ask for. The forge may return fewer."},"cursor":{"$ref":"#/components/schemas/Cursor","description":"Resume after the page that returned this cursor."},"ref":{"type":"string","description":"Branch, tag or sha. Defaults to the repository's default branch."},"path":{"type":"string","description":"Subdirectory to list; the root when omitted."},"recursive":{"type":"boolean","description":"Every descendant rather than one level. Unsupported on some forges, which then warn."}},"description":"Options for `contents.tree()`.","x-forges-type":"TreeOptions"},"UpdateBranchMethod":{"type":"string","enum":["merge","rebase"],"description":"How `threads.updateBranch()` brings the base branch into a pull request's head branch.","x-forges-type":"UpdateBranchMethod"},"UpdateBranchOptions":{"type":"object","properties":{"method":{"$ref":"#/components/schemas/UpdateBranchMethod","description":"Defaults to `'merge'`, or `'rebase'` where the forge can only rebase (GitLab)."},"sha":{"type":"string","description":"Expected head sha; the update is refused with `BranchMovedError` if the branch has moved."}},"description":"Options for `threads.updateBranch()`.","x-forges-type":"UpdateBranchOptions"},"UpdateBranchResult":{"type":"object","properties":{"status":{"type":"string","enum":["updated","queued"],"description":"`'updated'` once the head branch has the base in it. `'queued'` when the forge updates it in the background (GitHub, GitLab)."},"raw":{"description":"Unnormalised forge payload, retained for fidelity. Absent where the response has no body."}},"required":["status"],"description":"What `threads.updateBranch()` resolves with.","x-forges-type":"UpdateBranchResult"},"User":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"login":{"type":"string"},"id":{"type":"string","description":"Forge-native account id: the numeric id on GitHub (`databaseId` in its GraphQL API, not the node id), GitLab, Forgejo, Gitea and Gitee, the UUID on Bitbucket, the identity id on Azure DevOps and the DID on Tangled."},"name":{"type":"string"},"avatarUrl":{"type":"string"},"url":{"type":"string"},"typeRaw":{"type":"string","description":"Forge-reported account type, retained verbatim for callers that classify further."},"isBotHint":{"type":"boolean","description":"Hint derived from forge metadata that the actor is automation. Callers own the classification policy."},"app":{"type":"object","properties":{"slug":{"type":"string"},"id":{"type":"string"}},"required":["slug"],"description":"The app behind a bot account, where the forge ties one to it (GitHub Apps' `slug[bot]` users)."},"bio":{"type":"string"},"company":{"type":"string"},"location":{"type":"string"},"websiteUrl":{"type":"string"},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"followers":{"type":"number"},"following":{"type":"number"},"publicRepos":{"type":"number"},"raw":{}},"required":["forge","id","instance","isBotHint","login"],"description":"A user or organisation account, as `users.get()` reads it.","x-forges-type":"User"},"Webhook":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/WebhookRef"},"url":{"type":"string"},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventKind"},"description":"Normalised kinds the subscription covers, derived from `nativeEvents`."},"nativeEvents":{"type":"array","items":{"type":"string"},"description":"Forge-native event names exactly as the forge stores them."},"active":{"type":"boolean"},"contentType":{"type":"string","enum":["json","form"],"description":"`'json'` or `'form'` where the forge offers a choice."},"createdAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"updatedAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"secret":{"not":{},"description":"Never returned: no forge reads a webhook secret back."},"raw":{}},"required":["ref","url","events","nativeEvents","active"],"description":"A registered webhook. The secret is never readable, so it is never returned.","x-forges-type":"Webhook"},"WebhookDelivery":{"type":"object","properties":{"headers":{"anyOf":[{"type":"object"},{"type":"object","additionalProperties":{"type":"string"}}],"description":"The request headers, which carry the signature and the event name."},"body":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$bytes":{"type":"string","contentEncoding":"base64"}},"required":["$bytes"],"additionalProperties":false,"description":"Bytes, as `{ \"$bytes\": \"<base64>\" }`."}],"description":"Raw body exactly as received; signatures are computed over these bytes."},"secret":{"type":"string","description":"Overrides the provider-level `webhookSecret` for this delivery."}},"required":["headers","body"],"description":"A webhook delivery as received: its headers, its raw body and, optionally, the secret to verify it with.","x-forges-type":"WebhookDelivery"},"WebhookDeliveryRecord":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/WebhookDeliveryRef"},"event":{"type":"string","description":"Forge-native event name of the delivery."},"status":{"type":"number","description":"The HTTP status that the receiver answered with."},"ok":{"type":"boolean","description":"`true` when the forge considered the delivery successful."},"deliveredAt":{"type":"object","properties":{"$date":{"type":"string","format":"date-time"}},"required":["$date"],"additionalProperties":false,"description":"Date, as `{ \"$date\": \"<ISO 8601>\" }`."},"duration":{"type":"number","description":"Round trip in milliseconds, where the forge reports it."},"raw":{}},"required":["ref","event","status","ok"],"description":"One recorded delivery attempt.","x-forges-type":"WebhookDeliveryRecord"},"WebhookDeliveryRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"hook":{"$ref":"#/components/schemas/WebhookRef"},"id":{"type":"string"},"guid":{"type":"string","description":"Delivery guid, where the forge needs it to redeliver."}},"required":["forge","hook","id","instance"],"description":"Reference to one delivery of a webhook.","x-forges-type":"WebhookDeliveryRef"},"WebhookEventType":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/EventKind"},"action":{"$ref":"#/components/schemas/EventAction"}},"required":["kind"],"description":"A normalised event a provider can deliver, optionally narrowed to one action.","x-forges-type":"WebhookEventType"},"WebhookInput":{"type":"object","properties":{"url":{"type":"string"},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventKind"},"description":"Normalised kinds, translated to the forge's own event names."},"nativeEvents":{"type":"array","items":{"type":"string"},"description":"Forge-native event names, sent as given and merged with the translation of `events`."},"secret":{"type":"string","description":"The secret that signs the deliveries."},"contentType":{"type":"string","enum":["json","form"],"description":"How to encode the delivery body."},"active":{"type":"boolean","default":true}},"required":["url"],"description":"What `webhooks.create()` needs to register a hook.","x-forges-type":"WebhookInput"},"WebhookRef":{"type":"object","properties":{"forge":{"$ref":"#/components/schemas/ForgeKind"},"instance":{"$ref":"#/components/schemas/ForgeInstance","description":"The host of the instance, such as `github.com` or `git.example.com`."},"target":{"$ref":"#/components/schemas/RepoRef","description":"The repository or namespace that the hook is registered on."},"id":{"type":"string","description":"Forge-native hook id."}},"required":["forge","id","instance","target"],"description":"Reference to a registered webhook. `target` is the repository, or a namespace ref ( {@link namespaceRef} ) for an organisation or workspace hook.","x-forges-type":"WebhookRef"},"WebhookUpdate":{"type":"object","properties":{"url":{"type":"string"},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventKind"},"description":"Normalised kinds, translated to the forge's own event names."},"nativeEvents":{"type":"array","items":{"type":"string"},"description":"Forge-native event names, sent as given and merged with the translation of `events`."},"secret":{"type":"string","description":"The secret that signs the deliveries."},"contentType":{"type":"string","enum":["json","form"],"description":"How to encode the delivery body."},"active":{"type":"boolean","default":true}},"description":"A change to a registered webhook. Fields left out are left as they are.","x-forges-type":"WebhookUpdate"},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"],"additionalProperties":true,"description":"Serialized `ForgeError` class name, message, and metadata used by `discoverProviders()` to reconstruct the error."}},"required":["error"]}}},"tags":[{"name":"checks"},{"name":"ci"},{"name":"commits"},{"name":"contents"},{"name":"releases"},{"name":"repos"},{"name":"search"},{"name":"threads"},{"name":"users"},{"name":"sources"}],"paths":{"/{forge}/{instance}/checks.get":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"checks_get","tags":["checks"],"summary":"checks.get","description":"Reads one check. Rejects for a `CheckRef.type` the forge cannot read on its own.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/CheckRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Check"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/checks.list":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"checks_list","tags":["checks"],"summary":"checks.list","description":"Every check on a commit: check runs, commit statuses, jobs or policy evaluations.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, sha, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"sha","type":"string"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":2,"maxItems":3}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfCheck"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/ci.getJob":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"ci_getJob","tags":["ci"],"summary":"ci.getJob","description":"Reads one CI job. Where the forge has no endpoint for it (`capabilities.ci.getJob` is `'emulated'`), it lists the jobs\nof the ref's `run` page by page until the id matches, which costs a request for each page read, so the ref must\nname its run.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/CiJobRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiJob"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/ci.getRun":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"ci_getRun","tags":["ci"],"summary":"ci.getRun","description":"Reads one CI run.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/CiRunRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiRun"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/ci.jobs":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"ci_jobs","tags":["ci"],"summary":"ci.jobs","description":"Lists the jobs of a CI run.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/CiRunRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfCiJob"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/ci.log":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"ci_log","tags":["ci"],"summary":"ci.log","description":"The job's log as it arrives.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/CiJobRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/ci.runs":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"ci_runs","tags":["ci"],"summary":"ci.runs","description":"Lists the CI runs of a repository.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, query?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"query?","anyOf":[{"$ref":"#/components/schemas/CiRunQuery"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfCiRun"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/commits.comments":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"commits_comments","tags":["commits"],"summary":"commits.comments","description":"Lists the comments on a commit.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/CommitRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfCommitComment"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/commits.get":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"commits_get","tags":["commits"],"summary":"commits.get","description":"One commit, with its files and stats.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/CommitRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Commit"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/commits.getComment":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"commits_getComment","tags":["commits"],"summary":"commits.getComment","description":"Reads one comment on a commit. Where the forge has no endpoint for it (`capabilities.commits.getComment` is\n`'emulated'`), it lists the comments of the commit page by page until the id matches, which costs a request for\neach page read.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/CommitCommentRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommitComment"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/commits.list":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"commits_list","tags":["commits"],"summary":"commits.list","description":"Lists the commits that lead to `ref`, or to the default branch.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, query?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"query?","anyOf":[{"$ref":"#/components/schemas/CommitQuery"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfCommit"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/contents.branches":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"contents_branches","tags":["contents"],"summary":"contents.branches","description":"Lists the branches of a repository.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfBranch"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/contents.compare":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"contents_compare","tags":["contents"],"summary":"contents.compare","description":"Commits and files between two refs.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, base, head, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"base","type":"string"},{"title":"head","type":"string"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/CompareOptions"},{"type":"null"}]}],"minItems":3,"maxItems":4}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comparison"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/contents.getFile":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"contents_getFile","tags":["contents"],"summary":"contents.getFile","description":"One file's contents. Binary-safe: `content` is a `Uint8Array` unless the\nforge reports text and `as: 'text'` was asked for. Files past the forge's\ninline limit (1 MB on GitHub) are read from the raw or blob endpoint\ninstead of failing.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, path, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","description":"The repository to read from.","$ref":"#/components/schemas/RepoRef"},{"title":"path","description":"The path of the file from the repository root.","type":"string"},{"title":"options?","description":"The revision to read, and whether to decode the content as text.","anyOf":[{"$ref":"#/components/schemas/FileOptions"},{"type":"null"}]}],"minItems":2,"maxItems":3}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileContent"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/contents.resolveRef":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"contents_resolveRef","tags":["contents"],"summary":"contents.resolveRef","description":"Resolves a branch, tag or sha to a full commit sha; a full sha is returned as is.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"ref","type":"string"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":2,"maxItems":3}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"type":"string"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/contents.tags":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"contents_tags","tags":["contents"],"summary":"contents.tags","description":"Lists the tags of a repository.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfTag"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/contents.tree":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"contents_tree","tags":["contents"],"summary":"contents.tree","description":"One level, or every descendant with `recursive`. Truncated listings carry a `tree_truncated` warning.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/TreeOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfTreeEntry"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/releases.downloadAsset":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"releases_downloadAsset","tags":["releases"],"summary":"releases.downloadAsset","description":"Downloads a release asset, as a stream of its bytes, a `Uint8Array` with `as: 'binary'` or a string with\n`as: 'text'`. A redirect to a CDN host is followed without the `Authorization` header, which those hosts reject.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ReleaseAssetRef"},{"title":"options?","anyOf":[{"anyOf":[{"type":"object","properties":{"as":{"type":"string","description":"`'binary'` reads the whole asset into a `Uint8Array`, and `'text'` decodes it as UTF-8, rejecting with {@link ContentNotTextError} when the bytes are not text. `'stream'` returns the bytes as they arrive.","default":"stream","const":"stream"}}},{"type":"object","properties":{"as":{"type":"string","description":"`'binary'` reads the whole asset into a `Uint8Array`, and `'text'` decodes it as UTF-8, rejecting with {@link ContentNotTextError} when the bytes are not text. `'stream'` returns the bytes as they arrive.","default":"stream","const":"binary"}},"required":["as"]},{"type":"object","properties":{"as":{"type":"string","description":"`'binary'` reads the whole asset into a `Uint8Array`, and `'text'` decodes it as UTF-8, rejecting with {@link ContentNotTextError} when the bytes are not text. `'stream'` returns the bytes as they arrive.","default":"stream","const":"text"}},"required":["as"]}]},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"$bytes":{"type":"string","contentEncoding":"base64"}},"required":["$bytes"],"additionalProperties":false,"description":"Bytes, as `{ \"$bytes\": \"<base64>\" }`."},{"type":"string"}]}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/releases.get":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"releases_get","tags":["releases"],"summary":"releases.get","description":"Reads a release by its ref.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ReleaseRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/releases.getByTag":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"releases_getByTag","tags":["releases"],"summary":"releases.getByTag","description":"The release for a tag name.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, tag, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"tag","type":"string"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":2,"maxItems":3}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/releases.latest":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"releases_latest","tags":["releases"],"summary":"releases.latest","description":"The most recent published release that is not a draft or prerelease, if any.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"204":{"description":"No content."},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/releases.list":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"releases_list","tags":["releases"],"summary":"releases.list","description":"Lists the releases of a repository, including drafts and pre-releases where the credential can see them.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfRelease"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/repos.byOwner":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"repos_byOwner","tags":["repos"],"summary":"repos.byOwner","description":"The repositories of a user, organisation, group, workspace or project that the credential can see.","parameters":[{"name":"args","in":"query","required":true,"description":"`[owner, query?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"owner","description":"A namespace ref, such as `namespaceRef(provider, 'acme')`.","$ref":"#/components/schemas/RepoRef"},{"title":"query?","anyOf":[{"$ref":"#/components/schemas/OwnerRepoQuery"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfRepo"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/repos.contributors":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"repos_contributors","tags":["repos"],"summary":"repos.contributors","description":"Lists the commit authors of a repository with their commit counts, most commits first. Pass\n`includeUnlinked: true` to include the contributors the forge has not linked to an account.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/ContributorQuery"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfContributor"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/repos.contributorStats":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"repos_contributorStats","tags":["repos"],"summary":"repos.contributorStats","description":"Weekly commit activity of each contributor to a repository. Where the forge computes the statistics in the\nbackground, the provider waits for them, and throws a `ForgeApiError` with status `202` if they are still not ready.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContributorStats"}}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/repos.events":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"repos_events","tags":["repos"],"summary":"repos.events","description":"Lists the activity feed of a repository: pushes, new branches and tags, and changes to its threads and releases.\nEvents come in the order the forge added them to the feed, latest first, which can differ from `occurredAt`\nwhere the forge adds events late. Each event has `source: 'poll'`.\n\nWhere the forge supports conditional requests, the first page has an `etag`; pass it back as\n`cursor: { etag }` to read the first page again, which has `notModified: true` and no items when the feed is\nunchanged. Where the forge sets a minimum wait between reads, reading the first page again sooner sends no\nrequest and returns a `throttled` page with a `feed_throttled` warning, unless you pass `force: true`.\nIterating then yields nothing, and the warning lands in `warnings`.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/EventFeedOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfForgeEvent"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/repos.get":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"repos_get","tags":["repos"],"summary":"repos.get","description":"Reads a repository by its ref. Rejects with `NotFoundError` when it does not exist or the credential cannot see\nit.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/RepoGetOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Repo"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/repos.issueTypes":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"repos_issueTypes","tags":["repos"],"summary":"repos.issueTypes","description":"The issue types that issues in the repository can have. On GitHub, the enabled types of the account that owns it.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IssueType"}}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/repos.labels":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"repos_labels","tags":["repos"],"summary":"repos.labels","description":"Every label defined on the repository, whether or not a thread carries it.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfLabel"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/repos.milestones":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"repos_milestones","tags":["repos"],"summary":"repos.milestones","description":"Lists the milestones of a repository.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/MilestoneListOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfMilestone"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/repos.templates":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"repos_templates","tags":["repos"],"summary":"repos.templates","description":"The issue and pull request templates a repository offers, ready to fill in before `threads.create()`. On GitHub,\na repository without its own falls back to the owner's `.github` repository, same as the web UI.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/RepoTemplateOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RepoTemplate"}}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/search.code":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"search_code","tags":["search"],"summary":"search.code","description":"Searches the contents of files, where the forge indexes them.","parameters":[{"name":"args","in":"query","required":true,"description":"`[query]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"query","$ref":"#/components/schemas/CodeSearchQuery"}],"minItems":1,"maxItems":1}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfCodeMatch"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/search.commits":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"search_commits","tags":["search"],"summary":"search.commits","description":"Commits across repositories, where the forge indexes them.","parameters":[{"name":"args","in":"query","required":true,"description":"`[query]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"query","$ref":"#/components/schemas/CommitSearchQuery"}],"minItems":1,"maxItems":1}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfCommit"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/search.repos":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"search_repos","tags":["search"],"summary":"search.repos","description":"Searches repositories.","parameters":[{"name":"args","in":"query","required":true,"description":"`[query]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"query","$ref":"#/components/schemas/RepoSearchQuery"}],"minItems":1,"maxItems":1}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfRepo"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/search.threads":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"search_threads","tags":["search"],"summary":"search.threads","description":"Issues and pull requests across repositories. Fields the forge cannot\nfilter on come back as a `filter_unsupported` warning on the page.","parameters":[{"name":"args","in":"query","required":true,"description":"`[query]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"query","$ref":"#/components/schemas/ThreadSearchQuery"}],"minItems":1,"maxItems":1}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfThread"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.checks":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_checks","tags":["threads"],"summary":"threads.checks","description":"Every check on the pull's head, in one page; `warnings` names the sources that could not be read.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfCheck"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.closingIssues":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_closingIssues","tags":["threads"],"summary":"threads.closingIssues","description":"Lists the issues that a pull request closes when it merges, such as those its description names after `Fixes`.\nThey can be in other repositories. GitHub also lists the issues linked to the pull request by hand.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfThread"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.closingPullRequests":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_closingPullRequests","tags":["threads"],"summary":"threads.closingPullRequests","description":"Lists the pull requests that close an issue when they merge, whether they are open, closed or merged.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfThread"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.comments":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_comments","tags":["threads"],"summary":"threads.comments","description":"Conversation comments. Inline review comments are events, not comments.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/ListOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfComment"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.commits":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_commits","tags":["threads"],"summary":"threads.commits","description":"Commits on a pull request.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfCommit"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.events":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_events","tags":["threads"],"summary":"threads.events","description":"Lists the events on a thread, such as comments, label changes and state changes.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/ListOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfForgeEvent"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.files":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_files","tags":["threads"],"summary":"threads.files","description":"Files a pull request changes, with a per-file `patch` where the forge returns one.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfChangedFile"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.get":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_get","tags":["threads"],"summary":"threads.get","description":"Reads an issue, pull request or discussion by its ref. Rejects with `NotFoundError` when it does not exist or the\ncredential cannot see it.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Thread"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.getComment":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_getComment","tags":["threads"],"summary":"threads.getComment","description":"Reads one conversation comment, as `comments()` lists them, so not an inline review comment. Where the forge has\nno endpoint for it (`capabilities.threads.getComment` is `'emulated'`), it lists the comments of the thread page by page\nuntil the id matches, which costs a request for each page read.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/CommentRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.getMany":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_getMany","tags":["threads"],"summary":"threads.getMany","description":"Reads several threads, batched where the forge allows. Failures become per-item warnings, except a rate limit\n(`RateLimitedError`) or a rejected credential (`TokenRevokedError`), which reject the call.","parameters":[{"name":"args","in":"query","required":true,"description":"`[refs, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"refs","type":"array","items":{"$ref":"#/components/schemas/ThreadRef"}},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GetManyResult"}}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.getReview":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_getReview","tags":["threads"],"summary":"threads.getReview","description":"Reads one review by its ref. Where the forge has no endpoint for it (`capabilities.threads.getReview` is `'emulated'`),\nit lists the reviews of the pull request page by page until the id matches, which costs a request for each page\nread.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ReviewRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Review"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.list":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_list","tags":["threads"],"summary":"threads.list","description":"Lists the threads of a repository.","parameters":[{"name":"args","in":"query","required":true,"description":"`[repo, query?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"repo","$ref":"#/components/schemas/RepoRef"},{"title":"query?","anyOf":[{"$ref":"#/components/schemas/ThreadQuery"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfThread"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.reactions":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_reactions","tags":["threads"],"summary":"threads.reactions","description":"Reactions left on the thread or on one of its comments.","parameters":[{"name":"args","in":"query","required":true,"description":"`[target, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"target","anyOf":[{"$ref":"#/components/schemas/ThreadRef"},{"$ref":"#/components/schemas/CommentRef"}]},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/ListOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfReaction"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.reviews":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_reviews","tags":["threads"],"summary":"threads.reviews","description":"Reviews on a pull request. Forges with approvals but no review objects\n(GitLab approvals, Azure DevOps votes, Bitbucket participants) synthesise\none review per approver, with `comments: false`.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/PageOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfReview"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/threads.reviewThreads":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"threads_reviewThreads","tags":["threads"],"summary":"threads.reviewThreads","description":"Review conversations on a pull request with their comments; `state` keeps only the resolved or the unresolved ones.","parameters":[{"name":"args","in":"query","required":true,"description":"`[ref, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"ref","$ref":"#/components/schemas/ThreadRef"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/ReviewThreadListOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfReviewThread"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/users.events":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"users_events","tags":["users"],"summary":"users.events","description":"Lists what an account did across the repositories the credential can see, in the feed's order as for\n{@link ReposApi.events}, with the same conditional requests and throttling. Each event has `source: 'poll'`.","parameters":[{"name":"args","in":"query","required":true,"description":"`[login, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"login","type":"string"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/EventFeedOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageOfForgeEvent"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/users.get":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"users_get","tags":["users"],"summary":"users.get","description":"Reads an account by login, without needing a credential where the forge allows it.","parameters":[{"name":"args","in":"query","required":true,"description":"`[login, options?]`","content":{"application/json":{"schema":{"type":"array","prefixItems":[{"title":"login","type":"string"},{"title":"options?","anyOf":[{"$ref":"#/components/schemas/BaseOptions"},{"type":"null"}]}],"minItems":1,"maxItems":2}}}},{"name":"raw","in":"query","description":"Set to `1` to include each model's `raw` upstream forge payload (omitted by default).","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"Operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"default":{"description":"Serialized `ForgeError`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{forge}/{instance}/sources.stream":{"parameters":[{"name":"forge","in":"path","required":true,"schema":{"type":"string","enum":["github","bitbucket","cursor-origin","forgejo","gitcafe","gitea","gitee","gitlab","pushin","upstream"]}},{"name":"instance","in":"path","required":true,"description":"Forge instance hostname, e.g. `github.com`.","schema":{"type":"string","enum":["github.com","bitbucket.org","origin.cursor.com","codeberg.org","git.cafe","gitea.com","gitee.com","gitlab.com","pushin.eu","upstream.codes"]}}],"get":{"operationId":"sources_stream","tags":["sources"],"summary":"sources.stream","description":"Streams live forge events as Server-Sent Events. Each event's `id` is its cursor and `data` is a JSON-encoded `ForgeEvent`. Upstream errors emit an `error` event before closing. Serverless platforms terminate long-lived connections at their execution timeout; reconnect using the last cursor.","parameters":[{"name":"Last-Event-ID","in":"header","description":"Cursor to resume from (sent automatically by `EventSource` on reconnect).","schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Cursor to resume from when the `Last-Event-ID` header cannot be set.","schema":{"type":"string"}}],"responses":{"200":{"description":"Server-Sent Events stream.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"default":{"description":"Serialized `ForgeError` (e.g. `UnsupportedOperationError` when the forge does not support streaming).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}