# RepositoryApi

All URIs are relative to */api/v1*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**acceptRepoTransfer**](#acceptrepotransfer) | **POST** /repos/{owner}/{repo}/transfer/accept | Accept a repo transfer|
|[**actionRun**](#actionrun) | **GET** /repos/{owner}/{repo}/actions/runs/{run_id} | Get an action run|
|[**createCurrentUserRepo**](#createcurrentuserrepo) | **POST** /user/repos | Create a repository|
|[**createFork**](#createfork) | **POST** /repos/{owner}/{repo}/forks | Fork a repository|
|[**createRepoVariable**](#createrepovariable) | **POST** /repos/{owner}/{repo}/actions/variables/{variablename} | Create a repo-level variable|
|[**deleteRepoSecret**](#deletereposecret) | **DELETE** /repos/{owner}/{repo}/actions/secrets/{secretname} | Delete a secret in a repository|
|[**deleteRepoVariable**](#deleterepovariable) | **DELETE** /repos/{owner}/{repo}/actions/variables/{variablename} | Delete a repo-level variable|
|[**dispatchWorkflow**](#dispatchworkflow) | **POST** /repos/{owner}/{repo}/actions/workflows/{workflowname}/dispatches | Dispatches a workflow|
|[**generateRepo**](#generaterepo) | **POST** /repos/{template_owner}/{template_repo}/generate | Create a repository using a template|
|[**getAnnotatedTag**](#getannotatedtag) | **GET** /repos/{owner}/{repo}/git/tags/{sha} | Gets the tag object of an annotated tag (not lightweight tags)|
|[**getBlob**](#getblob) | **GET** /repos/{owner}/{repo}/git/blobs/{sha} | Gets the blob of a repository.|
|[**getBlobs**](#getblobs) | **GET** /repos/{owner}/{repo}/git/blobs | Gets multiplbe blobs of a repository.|
|[**getRepoVariable**](#getrepovariable) | **GET** /repos/{owner}/{repo}/actions/variables/{variablename} | Get a repo-level variable|
|[**getRepoVariablesList**](#getrepovariableslist) | **GET** /repos/{owner}/{repo}/actions/variables | Get repo-level variables list|
|[**getTree**](#gettree) | **GET** /repos/{owner}/{repo}/git/trees/{sha} | Gets the tree of a repository.|
|[**listActionRuns**](#listactionruns) | **GET** /repos/{owner}/{repo}/actions/runs | List a repository\&#39;s action runs|
|[**listActionTasks**](#listactiontasks) | **GET** /repos/{owner}/{repo}/actions/tasks | List a repository\&#39;s action tasks|
|[**listForks**](#listforks) | **GET** /repos/{owner}/{repo}/forks | List a repository\&#39;s forks|
|[**rejectRepoTransfer**](#rejectrepotransfer) | **POST** /repos/{owner}/{repo}/transfer/reject | Reject a repo transfer|
|[**repoAddCollaborator**](#repoaddcollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add a collaborator to a repository|
|[**repoAddFlag**](#repoaddflag) | **PUT** /repos/{owner}/{repo}/flags/{flag} | Add a flag to a repository|
|[**repoAddPushMirror**](#repoaddpushmirror) | **POST** /repos/{owner}/{repo}/push_mirrors | add a push mirror to the repository|
|[**repoAddTeam**](#repoaddteam) | **PUT** /repos/{owner}/{repo}/teams/{team} | Add a team to a repository|
|[**repoAddTopic**](#repoaddtopic) | **PUT** /repos/{owner}/{repo}/topics/{topic} | Add a topic to a repository|
|[**repoApplyDiffPatch**](#repoapplydiffpatch) | **POST** /repos/{owner}/{repo}/diffpatch | Apply diff patch to repository|
|[**repoCancelScheduledAutoMerge**](#repocancelscheduledautomerge) | **DELETE** /repos/{owner}/{repo}/pulls/{index}/merge | Cancel the scheduled auto merge for the given pull request|
|[**repoChangeFiles**](#repochangefiles) | **POST** /repos/{owner}/{repo}/contents | Modify multiple files in a repository|
|[**repoCheckCollaborator**](#repocheckcollaborator) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator} | Check if a user is a collaborator of a repository|
|[**repoCheckFlag**](#repocheckflag) | **GET** /repos/{owner}/{repo}/flags/{flag} | Check if a repository has a given flag|
|[**repoCheckTeam**](#repocheckteam) | **GET** /repos/{owner}/{repo}/teams/{team} | Check if a team is assigned to a repository|
|[**repoCompareDiff**](#repocomparediff) | **GET** /repos/{owner}/{repo}/compare/{basehead} | Get commit comparison information|
|[**repoCreateBranch**](#repocreatebranch) | **POST** /repos/{owner}/{repo}/branches | Create a branch|
|[**repoCreateBranchProtection**](#repocreatebranchprotection) | **POST** /repos/{owner}/{repo}/branch_protections | Create a branch protections for a repository|
|[**repoCreateFile**](#repocreatefile) | **POST** /repos/{owner}/{repo}/contents/{filepath} | Create a file in a repository|
|[**repoCreateHook**](#repocreatehook) | **POST** /repos/{owner}/{repo}/hooks | Create a hook|
|[**repoCreateKey**](#repocreatekey) | **POST** /repos/{owner}/{repo}/keys | Add a key to a repository|
|[**repoCreatePullRequest**](#repocreatepullrequest) | **POST** /repos/{owner}/{repo}/pulls | Create a pull request|
|[**repoCreatePullReview**](#repocreatepullreview) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews | Create a review to an pull request|
|[**repoCreatePullReviewComment**](#repocreatepullreviewcomment) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments | Add a new comment to a pull request review|
|[**repoCreatePullReviewRequests**](#repocreatepullreviewrequests) | **POST** /repos/{owner}/{repo}/pulls/{index}/requested_reviewers | create review requests for a pull request|
|[**repoCreateRelease**](#repocreaterelease) | **POST** /repos/{owner}/{repo}/releases | Create a release|
|[**repoCreateReleaseAttachment**](#repocreatereleaseattachment) | **POST** /repos/{owner}/{repo}/releases/{id}/assets | Create a release attachment|
|[**repoCreateStatus**](#repocreatestatus) | **POST** /repos/{owner}/{repo}/statuses/{sha} | Create a commit status|
|[**repoCreateTag**](#repocreatetag) | **POST** /repos/{owner}/{repo}/tags | Create a new git tag in a repository|
|[**repoCreateTagProtection**](#repocreatetagprotection) | **POST** /repos/{owner}/{repo}/tag_protections | Create a tag protections for a repository|
|[**repoCreateWikiPage**](#repocreatewikipage) | **POST** /repos/{owner}/{repo}/wiki/new | Create a wiki page|
|[**repoDelete**](#repodelete) | **DELETE** /repos/{owner}/{repo} | Delete a repository|
|[**repoDeleteAllFlags**](#repodeleteallflags) | **DELETE** /repos/{owner}/{repo}/flags | Remove all flags from a repository|
|[**repoDeleteAvatar**](#repodeleteavatar) | **DELETE** /repos/{owner}/{repo}/avatar | Delete avatar|
|[**repoDeleteBranch**](#repodeletebranch) | **DELETE** /repos/{owner}/{repo}/branches/{branch} | Delete a specific branch from a repository|
|[**repoDeleteBranchProtection**](#repodeletebranchprotection) | **DELETE** /repos/{owner}/{repo}/branch_protections/{name} | Delete a specific branch protection for the repository|
|[**repoDeleteCollaborator**](#repodeletecollaborator) | **DELETE** /repos/{owner}/{repo}/collaborators/{collaborator} | Delete a collaborator from a repository|
|[**repoDeleteFile**](#repodeletefile) | **DELETE** /repos/{owner}/{repo}/contents/{filepath} | Delete a file in a repository|
|[**repoDeleteFlag**](#repodeleteflag) | **DELETE** /repos/{owner}/{repo}/flags/{flag} | Remove a flag from a repository|
|[**repoDeleteGitHook**](#repodeletegithook) | **DELETE** /repos/{owner}/{repo}/hooks/git/{id} | Delete a Git hook in a repository|
|[**repoDeleteHook**](#repodeletehook) | **DELETE** /repos/{owner}/{repo}/hooks/{id} | Delete a hook in a repository|
|[**repoDeleteKey**](#repodeletekey) | **DELETE** /repos/{owner}/{repo}/keys/{id} | Delete a key from a repository|
|[**repoDeletePullReview**](#repodeletepullreview) | **DELETE** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Delete a specific review from a pull request|
|[**repoDeletePullReviewComment**](#repodeletepullreviewcomment) | **DELETE** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments/{comment} | Delete a pull review comment|
|[**repoDeletePullReviewRequests**](#repodeletepullreviewrequests) | **DELETE** /repos/{owner}/{repo}/pulls/{index}/requested_reviewers | cancel review requests for a pull request|
|[**repoDeletePushMirror**](#repodeletepushmirror) | **DELETE** /repos/{owner}/{repo}/push_mirrors/{name} | deletes a push mirror from a repository by remoteName|
|[**repoDeleteRelease**](#repodeleterelease) | **DELETE** /repos/{owner}/{repo}/releases/{id} | Delete a release|
|[**repoDeleteReleaseAttachment**](#repodeletereleaseattachment) | **DELETE** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Delete a release attachment|
|[**repoDeleteReleaseByTag**](#repodeletereleasebytag) | **DELETE** /repos/{owner}/{repo}/releases/tags/{tag} | Delete a release by tag name|
|[**repoDeleteTag**](#repodeletetag) | **DELETE** /repos/{owner}/{repo}/tags/{tag} | Delete a repository\&#39;s tag by name|
|[**repoDeleteTagProtection**](#repodeletetagprotection) | **DELETE** /repos/{owner}/{repo}/tag_protections/{id} | Delete a specific tag protection for the repository|
|[**repoDeleteTeam**](#repodeleteteam) | **DELETE** /repos/{owner}/{repo}/teams/{team} | Delete a team from a repository|
|[**repoDeleteTopic**](#repodeletetopic) | **DELETE** /repos/{owner}/{repo}/topics/{topic} | Delete a topic from a repository|
|[**repoDeleteWikiPage**](#repodeletewikipage) | **DELETE** /repos/{owner}/{repo}/wiki/page/{pageName} | Delete a wiki page|
|[**repoDismissPullReview**](#repodismisspullreview) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/dismissals | Dismiss a review for a pull request|
|[**repoDownloadCommitDiffOrPatch**](#repodownloadcommitdifforpatch) | **GET** /repos/{owner}/{repo}/git/commits/{sha}.{diffType} | Get a commit\&#39;s diff or patch|
|[**repoDownloadPullDiffOrPatch**](#repodownloadpulldifforpatch) | **GET** /repos/{owner}/{repo}/pulls/{index}.{diffType} | Get a pull request diff or patch|
|[**repoEdit**](#repoedit) | **PATCH** /repos/{owner}/{repo} | Edit a repository\&#39;s properties. Only fields that are set will be changed.|
|[**repoEditBranchProtection**](#repoeditbranchprotection) | **PATCH** /repos/{owner}/{repo}/branch_protections/{name} | Edit a branch protections for a repository. Only fields that are set will be changed|
|[**repoEditGitHook**](#repoeditgithook) | **PATCH** /repos/{owner}/{repo}/hooks/git/{id} | Edit a Git hook in a repository|
|[**repoEditHook**](#repoedithook) | **PATCH** /repos/{owner}/{repo}/hooks/{id} | Edit a hook in a repository|
|[**repoEditPullRequest**](#repoeditpullrequest) | **PATCH** /repos/{owner}/{repo}/pulls/{index} | Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.|
|[**repoEditRelease**](#repoeditrelease) | **PATCH** /repos/{owner}/{repo}/releases/{id} | Update a release|
|[**repoEditReleaseAttachment**](#repoeditreleaseattachment) | **PATCH** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Edit a release attachment|
|[**repoEditTagProtection**](#repoedittagprotection) | **PATCH** /repos/{owner}/{repo}/tag_protections/{id} | Edit a tag protections for a repository. Only fields that are set will be changed|
|[**repoEditWikiPage**](#repoeditwikipage) | **PATCH** /repos/{owner}/{repo}/wiki/page/{pageName} | Edit a wiki page|
|[**repoGet**](#repoget) | **GET** /repos/{owner}/{repo} | Get a repository|
|[**repoGetAllCommits**](#repogetallcommits) | **GET** /repos/{owner}/{repo}/commits | Get a list of all commits from a repository|
|[**repoGetArchive**](#repogetarchive) | **GET** /repos/{owner}/{repo}/archive/{archive} | Get an archive of a repository|
|[**repoGetAssignees**](#repogetassignees) | **GET** /repos/{owner}/{repo}/assignees | Return all users that have write access and can be assigned to issues|
|[**repoGetBranch**](#repogetbranch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Retrieve a specific branch from a repository, including its effective branch protection|
|[**repoGetBranchProtection**](#repogetbranchprotection) | **GET** /repos/{owner}/{repo}/branch_protections/{name} | Get a specific branch protection for the repository|
|[**repoGetByID**](#repogetbyid) | **GET** /repositories/{id} | Get a repository by id|
|[**repoGetCombinedStatusByRef**](#repogetcombinedstatusbyref) | **GET** /repos/{owner}/{repo}/commits/{ref}/status | Get a commit\&#39;s combined status, by branch/tag/commit reference|
|[**repoGetCommitPullRequest**](#repogetcommitpullrequest) | **GET** /repos/{owner}/{repo}/commits/{sha}/pull | Get the pull request of the commit|
|[**repoGetContents**](#repogetcontents) | **GET** /repos/{owner}/{repo}/contents/{filepath} | Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir|
|[**repoGetContentsList**](#repogetcontentslist) | **GET** /repos/{owner}/{repo}/contents | Gets the metadata of all the entries of the root dir|
|[**repoGetEditorConfig**](#repogeteditorconfig) | **GET** /repos/{owner}/{repo}/editorconfig/{filepath} | Get the EditorConfig definitions of a file in a repository|
|[**repoGetGitHook**](#repogetgithook) | **GET** /repos/{owner}/{repo}/hooks/git/{id} | Get a Git hook|
|[**repoGetHook**](#repogethook) | **GET** /repos/{owner}/{repo}/hooks/{id} | Get a hook|
|[**repoGetIssueConfig**](#repogetissueconfig) | **GET** /repos/{owner}/{repo}/issue_config | Returns the issue config for a repo|
|[**repoGetIssueTemplates**](#repogetissuetemplates) | **GET** /repos/{owner}/{repo}/issue_templates | Get available issue templates for a repository|
|[**repoGetKey**](#repogetkey) | **GET** /repos/{owner}/{repo}/keys/{id} | Get a repository\&#39;s key by id|
|[**repoGetLanguages**](#repogetlanguages) | **GET** /repos/{owner}/{repo}/languages | Get languages and number of bytes of code written|
|[**repoGetLatestRelease**](#repogetlatestrelease) | **GET** /repos/{owner}/{repo}/releases/latest | Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at|
|[**repoGetNote**](#repogetnote) | **GET** /repos/{owner}/{repo}/git/notes/{sha} | Get a note corresponding to a single commit from a repository|
|[**repoGetPullRequest**](#repogetpullrequest) | **GET** /repos/{owner}/{repo}/pulls/{index} | Get a pull request|
|[**repoGetPullRequestByBaseHead**](#repogetpullrequestbybasehead) | **GET** /repos/{owner}/{repo}/pulls/{base}/{head} | Get a pull request by base and head|
|[**repoGetPullRequestCommits**](#repogetpullrequestcommits) | **GET** /repos/{owner}/{repo}/pulls/{index}/commits | Get commits for a pull request|
|[**repoGetPullRequestFiles**](#repogetpullrequestfiles) | **GET** /repos/{owner}/{repo}/pulls/{index}/files | Get changed files for a pull request|
|[**repoGetPullReview**](#repogetpullreview) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Get a specific review for a pull request|
|[**repoGetPullReviewComment**](#repogetpullreviewcomment) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments/{comment} | Get a pull review comment|
|[**repoGetPullReviewComments**](#repogetpullreviewcomments) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments | Get a specific review for a pull request|
|[**repoGetPushMirrorByRemoteName**](#repogetpushmirrorbyremotename) | **GET** /repos/{owner}/{repo}/push_mirrors/{name} | Get push mirror of the repository by remoteName|
|[**repoGetRawFile**](#repogetrawfile) | **GET** /repos/{owner}/{repo}/raw/{filepath} | Get a file from a repository|
|[**repoGetRawFileOrLFS**](#repogetrawfileorlfs) | **GET** /repos/{owner}/{repo}/media/{filepath} | Get a file or it\&#39;s LFS object from a repository|
|[**repoGetRelease**](#repogetrelease) | **GET** /repos/{owner}/{repo}/releases/{id} | Get a release|
|[**repoGetReleaseAttachment**](#repogetreleaseattachment) | **GET** /repos/{owner}/{repo}/releases/{id}/assets/{attachment_id} | Get a release attachment|
|[**repoGetReleaseByTag**](#repogetreleasebytag) | **GET** /repos/{owner}/{repo}/releases/tags/{tag} | Get a release by tag name|
|[**repoGetRepoPermissions**](#repogetrepopermissions) | **GET** /repos/{owner}/{repo}/collaborators/{collaborator}/permission | Get repository permissions for a user|
|[**repoGetReviewers**](#repogetreviewers) | **GET** /repos/{owner}/{repo}/reviewers | Return all users that can be requested to review in this repo|
|[**repoGetRunnerRegistrationToken**](#repogetrunnerregistrationtoken) | **GET** /repos/{owner}/{repo}/actions/runners/registration-token | Get a repository\&#39;s actions runner registration token|
|[**repoGetSingleCommit**](#repogetsinglecommit) | **GET** /repos/{owner}/{repo}/git/commits/{sha} | Get a single commit from a repository|
|[**repoGetTag**](#repogettag) | **GET** /repos/{owner}/{repo}/tags/{tag} | Get the tag of a repository by tag name|
|[**repoGetTagProtection**](#repogettagprotection) | **GET** /repos/{owner}/{repo}/tag_protections/{id} | Get a specific tag protection for the repository|
|[**repoGetWikiPage**](#repogetwikipage) | **GET** /repos/{owner}/{repo}/wiki/page/{pageName} | Get a wiki page|
|[**repoGetWikiPageRevisions**](#repogetwikipagerevisions) | **GET** /repos/{owner}/{repo}/wiki/revisions/{pageName} | Get revisions of a wiki page|
|[**repoGetWikiPages**](#repogetwikipages) | **GET** /repos/{owner}/{repo}/wiki/pages | Get all wiki pages|
|[**repoListActionsSecrets**](#repolistactionssecrets) | **GET** /repos/{owner}/{repo}/actions/secrets | List an repo\&#39;s actions secrets|
|[**repoListActivityFeeds**](#repolistactivityfeeds) | **GET** /repos/{owner}/{repo}/activities/feeds | List a repository\&#39;s activity feeds|
|[**repoListAllGitRefs**](#repolistallgitrefs) | **GET** /repos/{owner}/{repo}/git/refs | Get specified ref or filtered repository\&#39;s refs|
|[**repoListBranchProtection**](#repolistbranchprotection) | **GET** /repos/{owner}/{repo}/branch_protections | List branch protections for a repository|
|[**repoListBranches**](#repolistbranches) | **GET** /repos/{owner}/{repo}/branches | List a repository\&#39;s branches|
|[**repoListCollaborators**](#repolistcollaborators) | **GET** /repos/{owner}/{repo}/collaborators | List a repository\&#39;s collaborators|
|[**repoListFlags**](#repolistflags) | **GET** /repos/{owner}/{repo}/flags | List a repository\&#39;s flags|
|[**repoListGitHooks**](#repolistgithooks) | **GET** /repos/{owner}/{repo}/hooks/git | List the Git hooks in a repository|
|[**repoListGitRefs**](#repolistgitrefs) | **GET** /repos/{owner}/{repo}/git/refs/{ref} | Get specified ref or filtered repository\&#39;s refs|
|[**repoListHooks**](#repolisthooks) | **GET** /repos/{owner}/{repo}/hooks | List the hooks in a repository|
|[**repoListKeys**](#repolistkeys) | **GET** /repos/{owner}/{repo}/keys | List a repository\&#39;s keys|
|[**repoListPinnedIssues**](#repolistpinnedissues) | **GET** /repos/{owner}/{repo}/issues/pinned | List a repo\&#39;s pinned issues|
|[**repoListPinnedPullRequests**](#repolistpinnedpullrequests) | **GET** /repos/{owner}/{repo}/pulls/pinned | List a repo\&#39;s pinned pull requests|
|[**repoListPullRequests**](#repolistpullrequests) | **GET** /repos/{owner}/{repo}/pulls | List a repo\&#39;s pull requests. If a pull request is selected but fails to be retrieved for any reason, it will be a null value in the list of results.|
|[**repoListPullReviews**](#repolistpullreviews) | **GET** /repos/{owner}/{repo}/pulls/{index}/reviews | List all reviews for a pull request|
|[**repoListPushMirrors**](#repolistpushmirrors) | **GET** /repos/{owner}/{repo}/push_mirrors | Get all push mirrors of the repository|
|[**repoListReleaseAttachments**](#repolistreleaseattachments) | **GET** /repos/{owner}/{repo}/releases/{id}/assets | List release\&#39;s attachments|
|[**repoListReleases**](#repolistreleases) | **GET** /repos/{owner}/{repo}/releases | List a repo\&#39;s releases|
|[**repoListStargazers**](#repoliststargazers) | **GET** /repos/{owner}/{repo}/stargazers | List a repo\&#39;s stargazers|
|[**repoListStatuses**](#repoliststatuses) | **GET** /repos/{owner}/{repo}/statuses/{sha} | Get a commit\&#39;s statuses|
|[**repoListStatusesByRef**](#repoliststatusesbyref) | **GET** /repos/{owner}/{repo}/commits/{ref}/statuses | Get a commit\&#39;s statuses, by branch/tag/commit reference|
|[**repoListSubscribers**](#repolistsubscribers) | **GET** /repos/{owner}/{repo}/subscribers | List a repo\&#39;s watchers|
|[**repoListTagProtection**](#repolisttagprotection) | **GET** /repos/{owner}/{repo}/tag_protections | List tag protections for a repository|
|[**repoListTags**](#repolisttags) | **GET** /repos/{owner}/{repo}/tags | List a repository\&#39;s tags|
|[**repoListTeams**](#repolistteams) | **GET** /repos/{owner}/{repo}/teams | List a repository\&#39;s teams|
|[**repoListTopics**](#repolisttopics) | **GET** /repos/{owner}/{repo}/topics | Get list of topics that a repository has|
|[**repoMergePullRequest**](#repomergepullrequest) | **POST** /repos/{owner}/{repo}/pulls/{index}/merge | Merge a pull request|
|[**repoMigrate**](#repomigrate) | **POST** /repos/migrate | Migrate a remote git repository|
|[**repoMirrorSync**](#repomirrorsync) | **POST** /repos/{owner}/{repo}/mirror-sync | Sync a mirrored repository|
|[**repoNewPinAllowed**](#reponewpinallowed) | **GET** /repos/{owner}/{repo}/new_pin_allowed | Returns if new Issue Pins are allowed|
|[**repoPullRequestIsMerged**](#repopullrequestismerged) | **GET** /repos/{owner}/{repo}/pulls/{index}/merge | Check if a pull request has been merged|
|[**repoPushMirrorSync**](#repopushmirrorsync) | **POST** /repos/{owner}/{repo}/push_mirrors-sync | Sync all push mirrored repository|
|[**repoRemoveNote**](#reporemovenote) | **DELETE** /repos/{owner}/{repo}/git/notes/{sha} | Removes a note corresponding to a single commit from a repository|
|[**repoReplaceAllFlags**](#reporeplaceallflags) | **PUT** /repos/{owner}/{repo}/flags | Replace all flags of a repository|
|[**repoSearch**](#reposearch) | **GET** /repos/search | Search for repositories|
|[**repoSearchRunJobs**](#reposearchrunjobs) | **GET** /repos/{owner}/{repo}/actions/runners/jobs | Search for repository\&#39;s action jobs according filter conditions|
|[**repoSetNote**](#reposetnote) | **POST** /repos/{owner}/{repo}/git/notes/{sha} | Set a note corresponding to a single commit from a repository|
|[**repoSigningKey**](#reposigningkey) | **GET** /repos/{owner}/{repo}/signing-key.gpg | Get signing-key.gpg for given repository|
|[**repoSubmitPullReview**](#reposubmitpullreview) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id} | Submit a pending review to an pull request|
|[**repoSyncForkBranch**](#reposyncforkbranch) | **POST** /repos/{owner}/{repo}/sync_fork/{branch} | Syncs a fork branch with the base branch|
|[**repoSyncForkBranchInfo**](#reposyncforkbranchinfo) | **GET** /repos/{owner}/{repo}/sync_fork/{branch} | Gets information about syncing a fork branch with the base branch|
|[**repoSyncForkDefault**](#reposyncforkdefault) | **POST** /repos/{owner}/{repo}/sync_fork | Syncs the default branch of a fork with the base branch|
|[**repoSyncForkDefaultInfo**](#reposyncforkdefaultinfo) | **GET** /repos/{owner}/{repo}/sync_fork | Gets information about syncing the fork default branch with the base branch|
|[**repoTestHook**](#repotesthook) | **POST** /repos/{owner}/{repo}/hooks/{id}/tests | Test a push webhook|
|[**repoTrackedTimes**](#repotrackedtimes) | **GET** /repos/{owner}/{repo}/times | List a repo\&#39;s tracked times|
|[**repoTransfer**](#repotransfer) | **POST** /repos/{owner}/{repo}/transfer | Transfer a repo ownership|
|[**repoUnDismissPullReview**](#repoundismisspullreview) | **POST** /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/undismissals | Cancel to dismiss a review for a pull request|
|[**repoUpdateAvatar**](#repoupdateavatar) | **POST** /repos/{owner}/{repo}/avatar | Update avatar|
|[**repoUpdateBranch**](#repoupdatebranch) | **PATCH** /repos/{owner}/{repo}/branches/{branch} | Update a branch|
|[**repoUpdateFile**](#repoupdatefile) | **PUT** /repos/{owner}/{repo}/contents/{filepath} | Update a file in a repository|
|[**repoUpdatePullRequest**](#repoupdatepullrequest) | **POST** /repos/{owner}/{repo}/pulls/{index}/update | Merge PR\&#39;s baseBranch into headBranch|
|[**repoUpdateTopics**](#repoupdatetopics) | **PUT** /repos/{owner}/{repo}/topics | Replace list of topics for a repository|
|[**repoValidateIssueConfig**](#repovalidateissueconfig) | **GET** /repos/{owner}/{repo}/issue_config/validate | Returns the validation information for a issue config|
|[**topicSearch**](#topicsearch) | **GET** /topics/search | search topics via keyword|
|[**updateRepoSecret**](#updatereposecret) | **PUT** /repos/{owner}/{repo}/actions/secrets/{secretname} | Create or Update a secret value in a repository|
|[**updateRepoVariable**](#updaterepovariable) | **PUT** /repos/{owner}/{repo}/actions/variables/{variablename} | Update a repo-level variable|
|[**userCurrentCheckSubscription**](#usercurrentchecksubscription) | **GET** /repos/{owner}/{repo}/subscription | Check if the current user is watching a repo|
|[**userCurrentDeleteSubscription**](#usercurrentdeletesubscription) | **DELETE** /repos/{owner}/{repo}/subscription | Unwatch a repo|
|[**userCurrentPutSubscription**](#usercurrentputsubscription) | **PUT** /repos/{owner}/{repo}/subscription | Watch a repo|
|[**userTrackedTimes**](#usertrackedtimes) | **GET** /repos/{owner}/{repo}/times/{user} | List a user\&#39;s tracked times in a repo|

# **acceptRepoTransfer**
> Repository acceptRepoTransfer()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo to transfer (default to undefined)
let repo: string; //name of the repo to transfer (default to undefined)

const { status, data } = await apiInstance.acceptRepoTransfer(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo to transfer | defaults to undefined|
| **repo** | [**string**] | name of the repo to transfer | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**202** | Repository |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **actionRun**
> ActionRun actionRun()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let runId: number; //id of the action run (default to undefined)

const { status, data } = await apiInstance.actionRun(
    owner,
    repo,
    runId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **runId** | [**number**] | id of the action run | defaults to undefined|


### Return type

**ActionRun**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActionRun |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **createCurrentUserRepo**
> Repository createCurrentUserRepo()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateRepoOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let body: CreateRepoOption; // (optional)

const { status, data } = await apiInstance.createCurrentUserRepo(
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateRepoOption**|  | |


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Repository |  -  |
|**400** | APIError is error format response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**409** | The repository with the same name already exists. |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **createFork**
> Repository createFork()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateForkOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo to fork (default to undefined)
let repo: string; //name of the repo to fork (default to undefined)
let body: CreateForkOption; // (optional)

const { status, data } = await apiInstance.createFork(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateForkOption**|  | |
| **owner** | [**string**] | owner of the repo to fork | defaults to undefined|
| **repo** | [**string**] | name of the repo to fork | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**202** | Repository |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | The repository with the same name already exists. |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **createRepoVariable**
> createRepoVariable()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateVariableOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //name of the owner (default to undefined)
let repo: string; //name of the repository (default to undefined)
let variablename: string; //name of the variable (default to undefined)
let body: CreateVariableOption; // (optional)

const { status, data } = await apiInstance.createRepoVariable(
    owner,
    repo,
    variablename,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateVariableOption**|  | |
| **owner** | [**string**] | name of the owner | defaults to undefined|
| **repo** | [**string**] | name of the repository | defaults to undefined|
| **variablename** | [**string**] | name of the variable | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when creating a repo-level variable |  -  |
|**204** | response when creating a repo-level variable |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **deleteRepoSecret**
> deleteRepoSecret()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repository (default to undefined)
let repo: string; //name of the repository (default to undefined)
let secretname: string; //name of the secret (default to undefined)

const { status, data } = await apiInstance.deleteRepoSecret(
    owner,
    repo,
    secretname
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repository | defaults to undefined|
| **repo** | [**string**] | name of the repository | defaults to undefined|
| **secretname** | [**string**] | name of the secret | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | delete one secret of the organization |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **deleteRepoVariable**
> ActionVariable deleteRepoVariable()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //name of the owner (default to undefined)
let repo: string; //name of the repository (default to undefined)
let variablename: string; //name of the variable (default to undefined)

const { status, data } = await apiInstance.deleteRepoVariable(
    owner,
    repo,
    variablename
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | name of the owner | defaults to undefined|
| **repo** | [**string**] | name of the repository | defaults to undefined|
| **variablename** | [**string**] | name of the variable | defaults to undefined|


### Return type

**ActionVariable**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActionVariable |  -  |
|**201** | response when deleting a variable |  -  |
|**204** | response when deleting a variable |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **dispatchWorkflow**
> DispatchWorkflowRun dispatchWorkflow()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    DispatchWorkflowOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let workflowname: string; //name of the workflow (default to undefined)
let body: DispatchWorkflowOption; // (optional)

const { status, data } = await apiInstance.dispatchWorkflow(
    owner,
    repo,
    workflowname,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **DispatchWorkflowOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **workflowname** | [**string**] | name of the workflow | defaults to undefined|


### Return type

**DispatchWorkflowRun**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | DispatchWorkflowRun is a Workflow Run after dispatching |  -  |
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **generateRepo**
> Repository generateRepo()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    GenerateRepoOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let templateOwner: string; //name of the template repository owner (default to undefined)
let templateRepo: string; //name of the template repository (default to undefined)
let body: GenerateRepoOption; // (optional)

const { status, data } = await apiInstance.generateRepo(
    templateOwner,
    templateRepo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **GenerateRepoOption**|  | |
| **templateOwner** | [**string**] | name of the template repository owner | defaults to undefined|
| **templateRepo** | [**string**] | name of the template repository | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Repository |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | The repository with the same name already exists. |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getAnnotatedTag**
> AnnotatedTag getAnnotatedTag()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. (default to undefined)

const { status, data } = await apiInstance.getAnnotatedTag(
    owner,
    repo,
    sha
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags. | defaults to undefined|


### Return type

**AnnotatedTag**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | AnnotatedTag |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getBlob**
> GitBlob getBlob()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //sha of the blob to retrieve (default to undefined)

const { status, data } = await apiInstance.getBlob(
    owner,
    repo,
    sha
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | sha of the blob to retrieve | defaults to undefined|


### Return type

**GitBlob**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | GitBlob |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getBlobs**
> Array<GitBlob> getBlobs()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let shas: string; //a comma separated list of blob-sha (mind the overall URL-length limit of ~2,083 chars) (default to undefined)

const { status, data } = await apiInstance.getBlobs(
    owner,
    repo,
    shas
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **shas** | [**string**] | a comma separated list of blob-sha (mind the overall URL-length limit of ~2,083 chars) | defaults to undefined|


### Return type

**Array<GitBlob>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | GitBlobList |  -  |
|**400** | APIError is error format response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getRepoVariable**
> ActionVariable getRepoVariable()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //name of the owner (default to undefined)
let repo: string; //name of the repository (default to undefined)
let variablename: string; //name of the variable (default to undefined)

const { status, data } = await apiInstance.getRepoVariable(
    owner,
    repo,
    variablename
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | name of the owner | defaults to undefined|
| **repo** | [**string**] | name of the repository | defaults to undefined|
| **variablename** | [**string**] | name of the variable | defaults to undefined|


### Return type

**ActionVariable**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActionVariable |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getRepoVariablesList**
> Array<ActionVariable> getRepoVariablesList()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //name of the owner (default to undefined)
let repo: string; //name of the repository (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.getRepoVariablesList(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | name of the owner | defaults to undefined|
| **repo** | [**string**] | name of the repository | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<ActionVariable>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | VariableList |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **getTree**
> GitTreeResponse getTree()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //sha of the commit (default to undefined)
let recursive: boolean; //show all directories and files (optional) (default to undefined)
let page: number; //page number; the \'truncated\' field in the response will be true if there are still more items after this page, false if the last page (optional) (default to undefined)
let perPage: number; //number of items per page (optional) (default to undefined)

const { status, data } = await apiInstance.getTree(
    owner,
    repo,
    sha,
    recursive,
    page,
    perPage
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | sha of the commit | defaults to undefined|
| **recursive** | [**boolean**] | show all directories and files | (optional) defaults to undefined|
| **page** | [**number**] | page number; the \&#39;truncated\&#39; field in the response will be true if there are still more items after this page, false if the last page | (optional) defaults to undefined|
| **perPage** | [**number**] | number of items per page | (optional) defaults to undefined|


### Return type

**GitTreeResponse**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | GitTreeResponse |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **listActionRuns**
> ListActionRunResponse listActionRuns()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results, default maximum page size is 50 (optional) (default to undefined)
let event: Array<string>; //Returns workflow run triggered by the specified events. For example, `push`, `pull_request` or `workflow_dispatch`. (optional) (default to undefined)
let status: Array<'unknown' | 'waiting' | 'running' | 'success' | 'failure' | 'cancelled' | 'skipped' | 'blocked'>; //Returns workflow runs with the check run status or conclusion that is specified. For example, a conclusion can be success or a status can be in_progress. Only Forgejo Actions can set a status of waiting, pending, or requested.  (optional) (default to undefined)
let runNumber: number; //Returns the workflow run associated with the run number.  (optional) (default to undefined)
let headSha: string; //Only returns workflow runs that are associated with the specified head_sha. (optional) (default to undefined)

const { status, data } = await apiInstance.listActionRuns(
    owner,
    repo,
    page,
    limit,
    event,
    status,
    runNumber,
    headSha
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results, default maximum page size is 50 | (optional) defaults to undefined|
| **event** | **Array&lt;string&gt;** | Returns workflow run triggered by the specified events. For example, &#x60;push&#x60;, &#x60;pull_request&#x60; or &#x60;workflow_dispatch&#x60;. | (optional) defaults to undefined|
| **status** | **Array<&#39;unknown&#39; &#124; &#39;waiting&#39; &#124; &#39;running&#39; &#124; &#39;success&#39; &#124; &#39;failure&#39; &#124; &#39;cancelled&#39; &#124; &#39;skipped&#39; &#124; &#39;blocked&#39;>** | Returns workflow runs with the check run status or conclusion that is specified. For example, a conclusion can be success or a status can be in_progress. Only Forgejo Actions can set a status of waiting, pending, or requested.  | (optional) defaults to undefined|
| **runNumber** | [**number**] | Returns the workflow run associated with the run number.  | (optional) defaults to undefined|
| **headSha** | [**string**] | Only returns workflow runs that are associated with the specified head_sha. | (optional) defaults to undefined|


### Return type

**ListActionRunResponse**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActionRunList |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **listActionTasks**
> ActionTaskResponse listActionTasks()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results, default maximum page size is 50 (optional) (default to undefined)

const { status, data } = await apiInstance.listActionTasks(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results, default maximum page size is 50 | (optional) defaults to undefined|


### Return type

**ActionTaskResponse**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TasksList |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | APIConflict is a conflict empty response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **listForks**
> Array<Repository> listForks()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.listForks(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Repository>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepositoryList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **rejectRepoTransfer**
> Repository rejectRepoTransfer()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo to transfer (default to undefined)
let repo: string; //name of the repo to transfer (default to undefined)

const { status, data } = await apiInstance.rejectRepoTransfer(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo to transfer | defaults to undefined|
| **repo** | [**string**] | name of the repo to transfer | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Repository |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoAddCollaborator**
> repoAddCollaborator()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    AddCollaboratorOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let collaborator: string; //username of the collaborator to add (default to undefined)
let body: AddCollaboratorOption; // (optional)

const { status, data } = await apiInstance.repoAddCollaborator(
    owner,
    repo,
    collaborator,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **AddCollaboratorOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **collaborator** | [**string**] | username of the collaborator to add | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoAddFlag**
> repoAddFlag()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let flag: string; //name of the flag (default to undefined)

const { status, data } = await apiInstance.repoAddFlag(
    owner,
    repo,
    flag
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **flag** | [**string**] | name of the flag | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoAddPushMirror**
> PushMirror repoAddPushMirror()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreatePushMirrorOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreatePushMirrorOption; // (optional)

const { status, data } = await apiInstance.repoAddPushMirror(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreatePushMirrorOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**PushMirror**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PushMirror |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoAddTeam**
> repoAddTeam()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let team: string; //team name (default to undefined)

const { status, data } = await apiInstance.repoAddTeam(
    owner,
    repo,
    team
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **team** | [**string**] | team name | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**405** | APIError is error format response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoAddTopic**
> repoAddTopic()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let topic: string; //name of the topic to add (default to undefined)

const { status, data } = await apiInstance.repoAddTopic(
    owner,
    repo,
    topic
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **topic** | [**string**] | name of the topic to add | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIInvalidTopicsError is error format response to invalid topics |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoApplyDiffPatch**
> FileResponse repoApplyDiffPatch(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    UpdateFileOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: UpdateFileOptions; //

const { status, data } = await apiInstance.repoApplyDiffPatch(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **UpdateFileOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**FileResponse**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | FileResponse |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCancelScheduledAutoMerge**
> repoCancelScheduledAutoMerge()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request to merge (default to undefined)

const { status, data } = await apiInstance.repoCancelScheduledAutoMerge(
    owner,
    repo,
    index
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request to merge | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoChangeFiles**
> FilesResponse repoChangeFiles(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    ChangeFilesOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: ChangeFilesOptions; //

const { status, data } = await apiInstance.repoChangeFiles(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **ChangeFilesOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**FilesResponse**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | FilesResponse |  -  |
|**403** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | APIConflict is a conflict empty response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIError is error format response |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCheckCollaborator**
> repoCheckCollaborator()

If the user is a collaborator, return 204. If the user is not a collaborator, return 404.

### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let collaborator: string; //username of the collaborator (default to undefined)

const { status, data } = await apiInstance.repoCheckCollaborator(
    owner,
    repo,
    collaborator
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **collaborator** | [**string**] | username of the collaborator | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCheckFlag**
> repoCheckFlag()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let flag: string; //name of the flag (default to undefined)

const { status, data } = await apiInstance.repoCheckFlag(
    owner,
    repo,
    flag
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **flag** | [**string**] | name of the flag | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCheckTeam**
> Team repoCheckTeam()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let team: string; //team name (default to undefined)

const { status, data } = await apiInstance.repoCheckTeam(
    owner,
    repo,
    team
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **team** | [**string**] | team name | defaults to undefined|


### Return type

**Team**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Team |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**405** | APIError is error format response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCompareDiff**
> Compare repoCompareDiff()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let basehead: string; //compare two branches or commits (default to undefined)

const { status, data } = await apiInstance.repoCompareDiff(
    owner,
    repo,
    basehead
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **basehead** | [**string**] | compare two branches or commits | defaults to undefined|


### Return type

**Compare**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** |  |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateBranch**
> Branch repoCreateBranch()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateBranchRepoOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreateBranchRepoOption; // (optional)

const { status, data } = await apiInstance.repoCreateBranch(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateBranchRepoOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Branch**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Branch |  -  |
|**403** | The branch is archived or a mirror. |  -  |
|**404** | The old branch does not exist. |  -  |
|**409** | The branch with the same name already exists. |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateBranchProtection**
> BranchProtection repoCreateBranchProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateBranchProtectionOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreateBranchProtectionOption; // (optional)

const { status, data } = await apiInstance.repoCreateBranchProtection(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateBranchProtectionOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**BranchProtection**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | BranchProtection |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateFile**
> FileResponse repoCreateFile(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateFileOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let filepath: string; //path of the file to create (default to undefined)
let body: CreateFileOptions; //

const { status, data } = await apiInstance.repoCreateFile(
    owner,
    repo,
    filepath,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateFileOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **filepath** | [**string**] | path of the file to create | defaults to undefined|


### Return type

**FileResponse**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | FileResponse |  -  |
|**403** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | APIConflict is a conflict empty response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIError is error format response |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateHook**
> Hook repoCreateHook()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateHookOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreateHookOption; // (optional)

const { status, data } = await apiInstance.repoCreateHook(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateHookOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Hook**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Hook |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateKey**
> DeployKey repoCreateKey()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateKeyOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreateKeyOption; // (optional)

const { status, data } = await apiInstance.repoCreateKey(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateKeyOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**DeployKey**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | DeployKey |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreatePullRequest**
> PullRequest repoCreatePullRequest()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreatePullRequestOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreatePullRequestOption; // (optional)

const { status, data } = await apiInstance.repoCreatePullRequest(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreatePullRequestOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**PullRequest**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | PullRequest |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | APIError is error format response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreatePullReview**
> PullReview repoCreatePullReview(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreatePullReviewOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let body: CreatePullReviewOptions; //

const { status, data } = await apiInstance.repoCreatePullReview(
    owner,
    repo,
    index,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreatePullReviewOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|


### Return type

**PullReview**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullReview |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreatePullReviewComment**
> PullReviewComment repoCreatePullReviewComment(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let id: number; //id of the review (default to undefined)
let body: CreatePullReviewComment; //

const { status, data } = await apiInstance.repoCreatePullReviewComment(
    owner,
    repo,
    index,
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreatePullReviewComment**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **id** | [**number**] | id of the review | defaults to undefined|


### Return type

**PullReviewComment**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullComment |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreatePullReviewRequests**
> Array<PullReview> repoCreatePullReviewRequests(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    PullReviewRequestOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let body: PullReviewRequestOptions; //

const { status, data } = await apiInstance.repoCreatePullReviewRequests(
    owner,
    repo,
    index,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **PullReviewRequestOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|


### Return type

**Array<PullReview>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | PullReviewList |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateRelease**
> Release repoCreateRelease()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateReleaseOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreateReleaseOption; // (optional)

const { status, data } = await apiInstance.repoCreateRelease(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateReleaseOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Release**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Release |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | APIError is error format response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateReleaseAttachment**
> Attachment repoCreateReleaseAttachment()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the release (default to undefined)
let name: string; //name of the attachment (optional) (default to undefined)
let attachment: File; //attachment to upload (this parameter is incompatible with `external_url`) (optional) (default to undefined)
let externalUrl: string; //url to external asset (this parameter is incompatible with `attachment`) (optional) (default to undefined)

const { status, data } = await apiInstance.repoCreateReleaseAttachment(
    owner,
    repo,
    id,
    name,
    attachment,
    externalUrl
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the release | defaults to undefined|
| **name** | [**string**] | name of the attachment | (optional) defaults to undefined|
| **attachment** | [**File**] | attachment to upload (this parameter is incompatible with &#x60;external_url&#x60;) | (optional) defaults to undefined|
| **externalUrl** | [**string**] | url to external asset (this parameter is incompatible with &#x60;attachment&#x60;) | (optional) defaults to undefined|


### Return type

**Attachment**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: multipart/form-data, application/octet-stream
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Attachment |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateStatus**
> CommitStatus repoCreateStatus()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateStatusOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //sha of the commit (default to undefined)
let body: CreateStatusOption; // (optional)

const { status, data } = await apiInstance.repoCreateStatus(
    owner,
    repo,
    sha,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateStatusOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | sha of the commit | defaults to undefined|


### Return type

**CommitStatus**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | CommitStatus |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateTag**
> Tag repoCreateTag()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateTagOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreateTagOption; // (optional)

const { status, data } = await apiInstance.repoCreateTag(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateTagOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Tag**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Tag |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**405** | APIEmpty is an empty response |  -  |
|**409** | APIConflict is a conflict empty response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateTagProtection**
> TagProtection repoCreateTagProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateTagProtectionOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreateTagProtectionOption; // (optional)

const { status, data } = await apiInstance.repoCreateTagProtection(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateTagProtectionOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**TagProtection**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | TagProtection |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoCreateWikiPage**
> WikiPage repoCreateWikiPage()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateWikiPageOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: CreateWikiPageOptions; // (optional)

const { status, data } = await apiInstance.repoCreateWikiPage(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateWikiPageOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**WikiPage**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | WikiPage |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDelete**
> repoDelete()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo to delete (default to undefined)
let repo: string; //name of the repo to delete (default to undefined)

const { status, data } = await apiInstance.repoDelete(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo to delete | defaults to undefined|
| **repo** | [**string**] | name of the repo to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteAllFlags**
> repoDeleteAllFlags()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoDeleteAllFlags(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteAvatar**
> repoDeleteAvatar()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoDeleteAvatar(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteBranch**
> repoDeleteBranch()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let branch: string; //branch to delete (default to undefined)

const { status, data } = await apiInstance.repoDeleteBranch(
    owner,
    repo,
    branch
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **branch** | [**string**] | branch to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteBranchProtection**
> repoDeleteBranchProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let name: string; //name of protected branch (default to undefined)

const { status, data } = await apiInstance.repoDeleteBranchProtection(
    owner,
    repo,
    name
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **name** | [**string**] | name of protected branch | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteCollaborator**
> repoDeleteCollaborator()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let collaborator: string; //username of the collaborator to delete (default to undefined)

const { status, data } = await apiInstance.repoDeleteCollaborator(
    owner,
    repo,
    collaborator
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **collaborator** | [**string**] | username of the collaborator to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteFile**
> FileDeleteResponse repoDeleteFile(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    DeleteFileOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let filepath: string; //path of the file to delete (default to undefined)
let body: DeleteFileOptions; //

const { status, data } = await apiInstance.repoDeleteFile(
    owner,
    repo,
    filepath,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **DeleteFileOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **filepath** | [**string**] | path of the file to delete | defaults to undefined|


### Return type

**FileDeleteResponse**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | FileDeleteResponse |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIError is error format response |  -  |
|**404** | APIError is error format response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteFlag**
> repoDeleteFlag()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let flag: string; //name of the flag (default to undefined)

const { status, data } = await apiInstance.repoDeleteFlag(
    owner,
    repo,
    flag
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **flag** | [**string**] | name of the flag | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteGitHook**
> repoDeleteGitHook()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: string; //id of the hook to get (default to undefined)

const { status, data } = await apiInstance.repoDeleteGitHook(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**string**] | id of the hook to get | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteHook**
> repoDeleteHook()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the hook to delete (default to undefined)

const { status, data } = await apiInstance.repoDeleteHook(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the hook to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteKey**
> repoDeleteKey()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the key to delete (default to undefined)

const { status, data } = await apiInstance.repoDeleteKey(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the key to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeletePullReview**
> repoDeletePullReview()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let id: number; //id of the review (default to undefined)

const { status, data } = await apiInstance.repoDeletePullReview(
    owner,
    repo,
    index,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **id** | [**number**] | id of the review | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeletePullReviewComment**
> repoDeletePullReviewComment()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let id: number; //id of the review (default to undefined)
let comment: number; //id of the comment (default to undefined)

const { status, data } = await apiInstance.repoDeletePullReviewComment(
    owner,
    repo,
    index,
    id,
    comment
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **id** | [**number**] | id of the review | defaults to undefined|
| **comment** | [**number**] | id of the comment | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeletePullReviewRequests**
> repoDeletePullReviewRequests(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    PullReviewRequestOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let body: PullReviewRequestOptions; //

const { status, data } = await apiInstance.repoDeletePullReviewRequests(
    owner,
    repo,
    index,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **PullReviewRequestOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeletePushMirror**
> repoDeletePushMirror()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let name: string; //remote name of the pushMirror (default to undefined)

const { status, data } = await apiInstance.repoDeletePushMirror(
    owner,
    repo,
    name
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **name** | [**string**] | remote name of the pushMirror | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteRelease**
> repoDeleteRelease()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the release to delete (default to undefined)

const { status, data } = await apiInstance.repoDeleteRelease(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the release to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteReleaseAttachment**
> repoDeleteReleaseAttachment()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the release (default to undefined)
let attachmentId: number; //id of the attachment to delete (default to undefined)

const { status, data } = await apiInstance.repoDeleteReleaseAttachment(
    owner,
    repo,
    id,
    attachmentId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the release | defaults to undefined|
| **attachmentId** | [**number**] | id of the attachment to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteReleaseByTag**
> repoDeleteReleaseByTag()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let tag: string; //tag name of the release to delete (default to undefined)

const { status, data } = await apiInstance.repoDeleteReleaseByTag(
    owner,
    repo,
    tag
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **tag** | [**string**] | tag name of the release to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteTag**
> repoDeleteTag()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let tag: string; //name of tag to delete (default to undefined)

const { status, data } = await apiInstance.repoDeleteTag(
    owner,
    repo,
    tag
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **tag** | [**string**] | name of tag to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**405** | APIEmpty is an empty response |  -  |
|**409** | APIConflict is a conflict empty response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteTagProtection**
> repoDeleteTagProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of protected tag (default to undefined)

const { status, data } = await apiInstance.repoDeleteTagProtection(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of protected tag | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteTeam**
> repoDeleteTeam()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let team: string; //team name (default to undefined)

const { status, data } = await apiInstance.repoDeleteTeam(
    owner,
    repo,
    team
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **team** | [**string**] | team name | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**405** | APIError is error format response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteTopic**
> repoDeleteTopic()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let topic: string; //name of the topic to delete (default to undefined)

const { status, data } = await apiInstance.repoDeleteTopic(
    owner,
    repo,
    topic
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **topic** | [**string**] | name of the topic to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIInvalidTopicsError is error format response to invalid topics |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDeleteWikiPage**
> repoDeleteWikiPage()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let pageName: string; //name of the page (default to undefined)

const { status, data } = await apiInstance.repoDeleteWikiPage(
    owner,
    repo,
    pageName
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **pageName** | [**string**] | name of the page | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDismissPullReview**
> PullReview repoDismissPullReview(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    DismissPullReviewOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let id: number; //id of the review (default to undefined)
let body: DismissPullReviewOptions; //

const { status, data } = await apiInstance.repoDismissPullReview(
    owner,
    repo,
    index,
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **DismissPullReviewOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **id** | [**number**] | id of the review | defaults to undefined|


### Return type

**PullReview**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullReview |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDownloadCommitDiffOrPatch**
> string repoDownloadCommitDiffOrPatch()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //SHA of the commit to get (default to undefined)
let diffType: 'diff' | 'patch'; //whether the output is diff or patch (default to undefined)

const { status, data } = await apiInstance.repoDownloadCommitDiffOrPatch(
    owner,
    repo,
    sha,
    diffType
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | SHA of the commit to get | defaults to undefined|
| **diffType** | [**&#39;diff&#39; | &#39;patch&#39;**]**Array<&#39;diff&#39; &#124; &#39;patch&#39;>** | whether the output is diff or patch | defaults to undefined|


### Return type

**string**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | APIString is a string response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoDownloadPullDiffOrPatch**
> string repoDownloadPullDiffOrPatch()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request to get (default to undefined)
let diffType: 'diff' | 'patch'; //whether the output is diff or patch (default to undefined)
let binary: boolean; //whether to include binary file changes. if true, the diff is applicable with `git apply` (optional) (default to undefined)

const { status, data } = await apiInstance.repoDownloadPullDiffOrPatch(
    owner,
    repo,
    index,
    diffType,
    binary
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request to get | defaults to undefined|
| **diffType** | [**&#39;diff&#39; | &#39;patch&#39;**]**Array<&#39;diff&#39; &#124; &#39;patch&#39;>** | whether the output is diff or patch | defaults to undefined|
| **binary** | [**boolean**] | whether to include binary file changes. if true, the diff is applicable with &#x60;git apply&#x60; | (optional) defaults to undefined|


### Return type

**string**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | APIString is a string response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoEdit**
> Repository repoEdit()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    EditRepoOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo to edit (default to undefined)
let repo: string; //name of the repo to edit (default to undefined)
let body: EditRepoOption; //Properties of a repo that you can edit (optional)

const { status, data } = await apiInstance.repoEdit(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditRepoOption**| Properties of a repo that you can edit | |
| **owner** | [**string**] | owner of the repo to edit | defaults to undefined|
| **repo** | [**string**] | name of the repo to edit | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Repository |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoEditBranchProtection**
> BranchProtection repoEditBranchProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    EditBranchProtectionOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let name: string; //name of protected branch (default to undefined)
let body: EditBranchProtectionOption; // (optional)

const { status, data } = await apiInstance.repoEditBranchProtection(
    owner,
    repo,
    name,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditBranchProtectionOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **name** | [**string**] | name of protected branch | defaults to undefined|


### Return type

**BranchProtection**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | BranchProtection |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoEditGitHook**
> GitHook repoEditGitHook()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    EditGitHookOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: string; //id of the hook to get (default to undefined)
let body: EditGitHookOption; // (optional)

const { status, data } = await apiInstance.repoEditGitHook(
    owner,
    repo,
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditGitHookOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**string**] | id of the hook to get | defaults to undefined|


### Return type

**GitHook**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | GitHook |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoEditHook**
> Hook repoEditHook()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    EditHookOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //index of the hook (default to undefined)
let body: EditHookOption; // (optional)

const { status, data } = await apiInstance.repoEditHook(
    owner,
    repo,
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditHookOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | index of the hook | defaults to undefined|


### Return type

**Hook**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Hook |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoEditPullRequest**
> PullRequest repoEditPullRequest()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    EditPullRequestOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request to edit (default to undefined)
let body: EditPullRequestOption; // (optional)

const { status, data } = await apiInstance.repoEditPullRequest(
    owner,
    repo,
    index,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditPullRequestOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request to edit | defaults to undefined|


### Return type

**PullRequest**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | PullRequest |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | APIError is error format response |  -  |
|**412** | APIError is error format response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoEditRelease**
> Release repoEditRelease()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    EditReleaseOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the release to edit (default to undefined)
let body: EditReleaseOption; // (optional)

const { status, data } = await apiInstance.repoEditRelease(
    owner,
    repo,
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditReleaseOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the release to edit | defaults to undefined|


### Return type

**Release**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Release |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoEditReleaseAttachment**
> Attachment repoEditReleaseAttachment()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    EditAttachmentOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the release (default to undefined)
let attachmentId: number; //id of the attachment to edit (default to undefined)
let body: EditAttachmentOptions; // (optional)

const { status, data } = await apiInstance.repoEditReleaseAttachment(
    owner,
    repo,
    id,
    attachmentId,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditAttachmentOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the release | defaults to undefined|
| **attachmentId** | [**number**] | id of the attachment to edit | defaults to undefined|


### Return type

**Attachment**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Attachment |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoEditTagProtection**
> TagProtection repoEditTagProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    EditTagProtectionOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of protected tag (default to undefined)
let body: EditTagProtectionOption; // (optional)

const { status, data } = await apiInstance.repoEditTagProtection(
    owner,
    repo,
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditTagProtectionOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of protected tag | defaults to undefined|


### Return type

**TagProtection**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TagProtection |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoEditWikiPage**
> WikiPage repoEditWikiPage()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateWikiPageOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let pageName: string; //name of the page (default to undefined)
let body: CreateWikiPageOptions; // (optional)

const { status, data } = await apiInstance.repoEditWikiPage(
    owner,
    repo,
    pageName,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateWikiPageOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **pageName** | [**string**] | name of the page | defaults to undefined|


### Return type

**WikiPage**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | WikiPage |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGet**
> Repository repoGet()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoGet(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Repository |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetAllCommits**
> Array<Commit> repoGetAllCommits()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //SHA or branch to start listing commits from (usually \'master\') (optional) (default to undefined)
let path: string; //filepath of a file/dir (optional) (default to undefined)
let stat: boolean; //include diff stats for every commit (disable for speedup, default \'true\') (optional) (default to undefined)
let verification: boolean; //include verification for every commit (disable for speedup, default \'true\') (optional) (default to undefined)
let files: boolean; //include a list of affected files for every commit (disable for speedup, default \'true\') (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (ignored if used with \'path\') (optional) (default to undefined)
let not: string; //commits that match the given specifier will not be listed. (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetAllCommits(
    owner,
    repo,
    sha,
    path,
    stat,
    verification,
    files,
    page,
    limit,
    not
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | SHA or branch to start listing commits from (usually \&#39;master\&#39;) | (optional) defaults to undefined|
| **path** | [**string**] | filepath of a file/dir | (optional) defaults to undefined|
| **stat** | [**boolean**] | include diff stats for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|
| **verification** | [**boolean**] | include verification for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|
| **files** | [**boolean**] | include a list of affected files for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results (ignored if used with \&#39;path\&#39;) | (optional) defaults to undefined|
| **not** | [**string**] | commits that match the given specifier will not be listed. | (optional) defaults to undefined|


### Return type

**Array<Commit>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | CommitList |  * X-HasMore - True if there is another page <br>  * X-PageCount - Total number of pages <br>  * X-PerPage - Commits per page <br>  * X-Total - Total commit count <br>  * X-Page - The current page <br>  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | EmptyRepository |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetArchive**
> repoGetArchive()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let archive: string; //the git reference for download with attached archive format (e.g. master.zip) (default to undefined)

const { status, data } = await apiInstance.repoGetArchive(
    owner,
    repo,
    archive
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **archive** | [**string**] | the git reference for download with attached archive format (e.g. master.zip) | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/octet-stream, application/zip, application/gzip


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | success |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetAssignees**
> Array<User> repoGetAssignees()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoGetAssignees(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<User>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | UserList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetBranch**
> Branch repoGetBranch()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let branch: string; //branch to get (default to undefined)

const { status, data } = await apiInstance.repoGetBranch(
    owner,
    repo,
    branch
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **branch** | [**string**] | branch to get | defaults to undefined|


### Return type

**Branch**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Branch |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetBranchProtection**
> BranchProtection repoGetBranchProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let name: string; //name of protected branch (default to undefined)

const { status, data } = await apiInstance.repoGetBranchProtection(
    owner,
    repo,
    name
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **name** | [**string**] | name of protected branch | defaults to undefined|


### Return type

**BranchProtection**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | BranchProtection |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetByID**
> Repository repoGetByID()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let id: number; //id of the repo to get (default to undefined)

const { status, data } = await apiInstance.repoGetByID(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the repo to get | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Repository |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetCombinedStatusByRef**
> CombinedStatus repoGetCombinedStatusByRef()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let ref: string; //name of branch/tag/commit (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetCombinedStatusByRef(
    owner,
    repo,
    ref,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **ref** | [**string**] | name of branch/tag/commit | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**CombinedStatus**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | CombinedStatus |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetCommitPullRequest**
> PullRequest repoGetCommitPullRequest()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //SHA of the commit to get (default to undefined)

const { status, data } = await apiInstance.repoGetCommitPullRequest(
    owner,
    repo,
    sha
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | SHA of the commit to get | defaults to undefined|


### Return type

**PullRequest**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullRequest |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetContents**
> ContentsResponse repoGetContents()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let filepath: string; //path of the dir, file, symlink or submodule in the repo (default to undefined)
let ref: string; //The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetContents(
    owner,
    repo,
    filepath,
    ref
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **filepath** | [**string**] | path of the dir, file, symlink or submodule in the repo | defaults to undefined|
| **ref** | [**string**] | The name of the commit/branch/tag. Default the repository’s default branch (usually master) | (optional) defaults to undefined|


### Return type

**ContentsResponse**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ContentsResponse |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetContentsList**
> Array<ContentsResponse> repoGetContentsList()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let ref: string; //The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetContentsList(
    owner,
    repo,
    ref
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **ref** | [**string**] | The name of the commit/branch/tag. Default the repository’s default branch (usually master) | (optional) defaults to undefined|


### Return type

**Array<ContentsResponse>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ContentsListResponse |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetEditorConfig**
> repoGetEditorConfig()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let filepath: string; //filepath of file to get (default to undefined)
let ref: string; //The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetEditorConfig(
    owner,
    repo,
    filepath,
    ref
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **filepath** | [**string**] | filepath of file to get | defaults to undefined|
| **ref** | [**string**] | The name of the commit/branch/tag. Default the repository’s default branch (usually master) | (optional) defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | success |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetGitHook**
> GitHook repoGetGitHook()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: string; //id of the hook to get (default to undefined)

const { status, data } = await apiInstance.repoGetGitHook(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**string**] | id of the hook to get | defaults to undefined|


### Return type

**GitHook**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | GitHook |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetHook**
> Hook repoGetHook()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the hook to get (default to undefined)

const { status, data } = await apiInstance.repoGetHook(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the hook to get | defaults to undefined|


### Return type

**Hook**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Hook |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetIssueConfig**
> IssueConfig repoGetIssueConfig()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoGetIssueConfig(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**IssueConfig**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepoIssueConfig |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetIssueTemplates**
> Array<IssueTemplate> repoGetIssueTemplates()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoGetIssueTemplates(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<IssueTemplate>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | IssueTemplates |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetKey**
> DeployKey repoGetKey()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the key to get (default to undefined)

const { status, data } = await apiInstance.repoGetKey(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the key to get | defaults to undefined|


### Return type

**DeployKey**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | DeployKey |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetLanguages**
> { [key: string]: number; } repoGetLanguages()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoGetLanguages(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**{ [key: string]: number; }**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | LanguageStatistics |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetLatestRelease**
> Release repoGetLatestRelease()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoGetLatestRelease(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Release**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Release |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetNote**
> Note repoGetNote()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //a git ref or commit sha (default to undefined)
let verification: boolean; //include verification for every commit (disable for speedup, default \'true\') (optional) (default to undefined)
let files: boolean; //include a list of affected files for every commit (disable for speedup, default \'true\') (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetNote(
    owner,
    repo,
    sha,
    verification,
    files
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | a git ref or commit sha | defaults to undefined|
| **verification** | [**boolean**] | include verification for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|
| **files** | [**boolean**] | include a list of affected files for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|


### Return type

**Note**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Note |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetPullRequest**
> PullRequest repoGetPullRequest()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request to get (default to undefined)

const { status, data } = await apiInstance.repoGetPullRequest(
    owner,
    repo,
    index
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request to get | defaults to undefined|


### Return type

**PullRequest**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullRequest |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetPullRequestByBaseHead**
> PullRequest repoGetPullRequestByBaseHead()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let base: string; //base of the pull request to get (default to undefined)
let head: string; //head of the pull request to get (default to undefined)

const { status, data } = await apiInstance.repoGetPullRequestByBaseHead(
    owner,
    repo,
    base,
    head
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **base** | [**string**] | base of the pull request to get | defaults to undefined|
| **head** | [**string**] | head of the pull request to get | defaults to undefined|


### Return type

**PullRequest**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullRequest |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetPullRequestCommits**
> Array<Commit> repoGetPullRequestCommits()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request to get (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)
let verification: boolean; //include verification for every commit (disable for speedup, default \'true\') (optional) (default to undefined)
let files: boolean; //include a list of affected files for every commit (disable for speedup, default \'true\') (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetPullRequestCommits(
    owner,
    repo,
    index,
    page,
    limit,
    verification,
    files
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request to get | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|
| **verification** | [**boolean**] | include verification for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|
| **files** | [**boolean**] | include a list of affected files for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|


### Return type

**Array<Commit>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | CommitList |  * X-HasMore - True if there is another page <br>  * X-PageCount - Total number of pages <br>  * X-PerPage - Commits per page <br>  * X-Total - Total commit count <br>  * X-Page - The current page <br>  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetPullRequestFiles**
> Array<ChangedFile> repoGetPullRequestFiles()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request to get (default to undefined)
let skipTo: string; //skip to given file (optional) (default to undefined)
let whitespace: 'ignore-all' | 'ignore-change' | 'ignore-eol' | 'show-all'; //whitespace behavior (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetPullRequestFiles(
    owner,
    repo,
    index,
    skipTo,
    whitespace,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request to get | defaults to undefined|
| **skipTo** | [**string**] | skip to given file | (optional) defaults to undefined|
| **whitespace** | [**&#39;ignore-all&#39; | &#39;ignore-change&#39; | &#39;ignore-eol&#39; | &#39;show-all&#39;**]**Array<&#39;ignore-all&#39; &#124; &#39;ignore-change&#39; &#124; &#39;ignore-eol&#39; &#124; &#39;show-all&#39;>** | whitespace behavior | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<ChangedFile>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ChangedFileList |  * X-HasMore - True if there is another page <br>  * X-PageCount - Total number of pages <br>  * X-PerPage - Commits per page <br>  * X-Total-Count - Total commit count <br>  * X-Page - The current page <br>  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetPullReview**
> PullReview repoGetPullReview()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let id: number; //id of the review (default to undefined)

const { status, data } = await apiInstance.repoGetPullReview(
    owner,
    repo,
    index,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **id** | [**number**] | id of the review | defaults to undefined|


### Return type

**PullReview**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullReview |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetPullReviewComment**
> PullReviewComment repoGetPullReviewComment()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let id: number; //id of the review (default to undefined)
let comment: number; //id of the comment (default to undefined)

const { status, data } = await apiInstance.repoGetPullReviewComment(
    owner,
    repo,
    index,
    id,
    comment
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **id** | [**number**] | id of the review | defaults to undefined|
| **comment** | [**number**] | id of the comment | defaults to undefined|


### Return type

**PullReviewComment**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullComment |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetPullReviewComments**
> Array<PullReviewComment> repoGetPullReviewComments()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let id: number; //id of the review (default to undefined)

const { status, data } = await apiInstance.repoGetPullReviewComments(
    owner,
    repo,
    index,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **id** | [**number**] | id of the review | defaults to undefined|


### Return type

**Array<PullReviewComment>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullCommentList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetPushMirrorByRemoteName**
> PushMirror repoGetPushMirrorByRemoteName()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let name: string; //remote name of push mirror (default to undefined)

const { status, data } = await apiInstance.repoGetPushMirrorByRemoteName(
    owner,
    repo,
    name
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **name** | [**string**] | remote name of push mirror | defaults to undefined|


### Return type

**PushMirror**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PushMirror |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetRawFile**
> File repoGetRawFile()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let filepath: string; //filepath of the file to get (default to undefined)
let ref: string; //The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetRawFile(
    owner,
    repo,
    filepath,
    ref
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **filepath** | [**string**] | filepath of the file to get | defaults to undefined|
| **ref** | [**string**] | The name of the commit/branch/tag. Default the repository’s default branch (usually master) | (optional) defaults to undefined|


### Return type

**File**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/octet-stream


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Returns raw file content. |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetRawFileOrLFS**
> File repoGetRawFileOrLFS()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let filepath: string; //filepath of the file to get (default to undefined)
let ref: string; //The name of the commit/branch/tag. Default the repository’s default branch (usually master) (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetRawFileOrLFS(
    owner,
    repo,
    filepath,
    ref
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **filepath** | [**string**] | filepath of the file to get | defaults to undefined|
| **ref** | [**string**] | The name of the commit/branch/tag. Default the repository’s default branch (usually master) | (optional) defaults to undefined|


### Return type

**File**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/octet-stream


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Returns raw file content. |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetRelease**
> Release repoGetRelease()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the release to get (default to undefined)

const { status, data } = await apiInstance.repoGetRelease(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the release to get | defaults to undefined|


### Return type

**Release**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Release |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetReleaseAttachment**
> Attachment repoGetReleaseAttachment()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the release (default to undefined)
let attachmentId: number; //id of the attachment to get (default to undefined)

const { status, data } = await apiInstance.repoGetReleaseAttachment(
    owner,
    repo,
    id,
    attachmentId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the release | defaults to undefined|
| **attachmentId** | [**number**] | id of the attachment to get | defaults to undefined|


### Return type

**Attachment**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Attachment |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetReleaseByTag**
> Release repoGetReleaseByTag()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let tag: string; //tag name of the release to get (default to undefined)

const { status, data } = await apiInstance.repoGetReleaseByTag(
    owner,
    repo,
    tag
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **tag** | [**string**] | tag name of the release to get | defaults to undefined|


### Return type

**Release**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Release |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetRepoPermissions**
> RepoCollaboratorPermission repoGetRepoPermissions()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let collaborator: string; //username of the collaborator (default to undefined)

const { status, data } = await apiInstance.repoGetRepoPermissions(
    owner,
    repo,
    collaborator
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **collaborator** | [**string**] | username of the collaborator | defaults to undefined|


### Return type

**RepoCollaboratorPermission**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepoCollaboratorPermission |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetReviewers**
> Array<User> repoGetReviewers()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoGetReviewers(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<User>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | UserList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetRunnerRegistrationToken**
> repoGetRunnerRegistrationToken()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoGetRunnerRegistrationToken(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RegistrationToken is a string used to register a runner with a server |  * token -  <br>  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetSingleCommit**
> Commit repoGetSingleCommit()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //a git ref or commit sha (default to undefined)
let stat: boolean; //include diff stats for every commit (disable for speedup, default \'true\') (optional) (default to undefined)
let verification: boolean; //include verification for every commit (disable for speedup, default \'true\') (optional) (default to undefined)
let files: boolean; //include a list of affected files for every commit (disable for speedup, default \'true\') (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetSingleCommit(
    owner,
    repo,
    sha,
    stat,
    verification,
    files
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | a git ref or commit sha | defaults to undefined|
| **stat** | [**boolean**] | include diff stats for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|
| **verification** | [**boolean**] | include verification for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|
| **files** | [**boolean**] | include a list of affected files for every commit (disable for speedup, default \&#39;true\&#39;) | (optional) defaults to undefined|


### Return type

**Commit**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Commit |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetTag**
> Tag repoGetTag()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let tag: string; //name of tag (default to undefined)

const { status, data } = await apiInstance.repoGetTag(
    owner,
    repo,
    tag
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **tag** | [**string**] | name of tag | defaults to undefined|


### Return type

**Tag**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Tag |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetTagProtection**
> TagProtection repoGetTagProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the tag protect to get (default to undefined)

const { status, data } = await apiInstance.repoGetTagProtection(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the tag protect to get | defaults to undefined|


### Return type

**TagProtection**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TagProtection |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetWikiPage**
> WikiPage repoGetWikiPage()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let pageName: string; //name of the page (default to undefined)

const { status, data } = await apiInstance.repoGetWikiPage(
    owner,
    repo,
    pageName
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **pageName** | [**string**] | name of the page | defaults to undefined|


### Return type

**WikiPage**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | WikiPage |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetWikiPageRevisions**
> WikiCommitList repoGetWikiPageRevisions()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let pageName: string; //name of the page (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetWikiPageRevisions(
    owner,
    repo,
    pageName,
    page
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **pageName** | [**string**] | name of the page | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|


### Return type

**WikiCommitList**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | WikiCommitList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoGetWikiPages**
> Array<WikiPageMetaData> repoGetWikiPages()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoGetWikiPages(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<WikiPageMetaData>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | WikiPageList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListActionsSecrets**
> Array<Secret> repoListActionsSecrets()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repository (default to undefined)
let repo: string; //name of the repository (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListActionsSecrets(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repository | defaults to undefined|
| **repo** | [**string**] | name of the repository | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Secret>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | SecretList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListActivityFeeds**
> Array<Activity> repoListActivityFeeds()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let date: string; //the date of the activities to be found (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListActivityFeeds(
    owner,
    repo,
    date,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **date** | [**string**] | the date of the activities to be found | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Activity>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActivityFeedsList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListAllGitRefs**
> Array<Reference> repoListAllGitRefs()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoListAllGitRefs(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<Reference>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ReferenceList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListBranchProtection**
> Array<BranchProtection> repoListBranchProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoListBranchProtection(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<BranchProtection>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | BranchProtectionList |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListBranches**
> Array<Branch> repoListBranches()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListBranches(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Branch>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | BranchList |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListCollaborators**
> Array<User> repoListCollaborators()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListCollaborators(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<User>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | UserList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListFlags**
> Array<string> repoListFlags()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoListFlags(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<string>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | StringSlice |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListGitHooks**
> Array<GitHook> repoListGitHooks()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoListGitHooks(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<GitHook>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | GitHookList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListGitRefs**
> Array<Reference> repoListGitRefs()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let ref: string; //part or full name of the ref (default to undefined)

const { status, data } = await apiInstance.repoListGitRefs(
    owner,
    repo,
    ref
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **ref** | [**string**] | part or full name of the ref | defaults to undefined|


### Return type

**Array<Reference>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ReferenceList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListHooks**
> Array<Hook> repoListHooks()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListHooks(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Hook>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | HookList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListKeys**
> Array<DeployKey> repoListKeys()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let keyId: number; //the key_id to search for (optional) (default to undefined)
let fingerprint: string; //fingerprint of the key (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListKeys(
    owner,
    repo,
    keyId,
    fingerprint,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **keyId** | [**number**] | the key_id to search for | (optional) defaults to undefined|
| **fingerprint** | [**string**] | fingerprint of the key | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<DeployKey>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | DeployKeyList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListPinnedIssues**
> Array<Issue> repoListPinnedIssues()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoListPinnedIssues(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<Issue>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | IssueList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListPinnedPullRequests**
> Array<PullRequest> repoListPinnedPullRequests()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoListPinnedPullRequests(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<PullRequest>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullRequestList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListPullRequests**
> Array<PullRequest> repoListPullRequests()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //Owner of the repo (default to undefined)
let repo: string; //Name of the repo (default to undefined)
let state: 'open' | 'closed' | 'all'; //State of pull request (optional) (default to 'open')
let sort: 'oldest' | 'recentupdate' | 'recentclose' | 'leastupdate' | 'mostcomment' | 'leastcomment' | 'priority'; //Type of sort (optional) (default to undefined)
let milestone: number; //ID of the milestone (optional) (default to undefined)
let labels: Array<number>; //Label IDs (optional) (default to undefined)
let poster: string; //Filter by pull request author (optional) (default to undefined)
let page: number; //Page number of results to return (1-based) (optional) (default to 1)
let limit: number; //Page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListPullRequests(
    owner,
    repo,
    state,
    sort,
    milestone,
    labels,
    poster,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | Owner of the repo | defaults to undefined|
| **repo** | [**string**] | Name of the repo | defaults to undefined|
| **state** | [**&#39;open&#39; | &#39;closed&#39; | &#39;all&#39;**]**Array<&#39;open&#39; &#124; &#39;closed&#39; &#124; &#39;all&#39;>** | State of pull request | (optional) defaults to 'open'|
| **sort** | [**&#39;oldest&#39; | &#39;recentupdate&#39; | &#39;recentclose&#39; | &#39;leastupdate&#39; | &#39;mostcomment&#39; | &#39;leastcomment&#39; | &#39;priority&#39;**]**Array<&#39;oldest&#39; &#124; &#39;recentupdate&#39; &#124; &#39;recentclose&#39; &#124; &#39;leastupdate&#39; &#124; &#39;mostcomment&#39; &#124; &#39;leastcomment&#39; &#124; &#39;priority&#39;>** | Type of sort | (optional) defaults to undefined|
| **milestone** | [**number**] | ID of the milestone | (optional) defaults to undefined|
| **labels** | **Array&lt;number&gt;** | Label IDs | (optional) defaults to undefined|
| **poster** | [**string**] | Filter by pull request author | (optional) defaults to undefined|
| **page** | [**number**] | Page number of results to return (1-based) | (optional) defaults to 1|
| **limit** | [**number**] | Page size of results | (optional) defaults to undefined|


### Return type

**Array<PullRequest>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullRequestList |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**500** | APIError is error format response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListPullReviews**
> Array<PullReview> repoListPullReviews()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListPullReviews(
    owner,
    repo,
    index,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<PullReview>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullReviewList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListPushMirrors**
> Array<PushMirror> repoListPushMirrors()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListPushMirrors(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<PushMirror>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PushMirrorList |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListReleaseAttachments**
> Array<Attachment> repoListReleaseAttachments()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the release (default to undefined)

const { status, data } = await apiInstance.repoListReleaseAttachments(
    owner,
    repo,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the release | defaults to undefined|


### Return type

**Array<Attachment>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | AttachmentList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListReleases**
> Array<Release> repoListReleases()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let draft: boolean; //filter (exclude / include) drafts, if you dont have repo write access none will show (optional) (default to undefined)
let preRelease: boolean; //filter (exclude / include) pre-releases (optional) (default to undefined)
let q: string; //Search string (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListReleases(
    owner,
    repo,
    draft,
    preRelease,
    q,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **draft** | [**boolean**] | filter (exclude / include) drafts, if you dont have repo write access none will show | (optional) defaults to undefined|
| **preRelease** | [**boolean**] | filter (exclude / include) pre-releases | (optional) defaults to undefined|
| **q** | [**string**] | Search string | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Release>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ReleaseList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListStargazers**
> Array<User> repoListStargazers()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListStargazers(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<User>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | UserList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListStatuses**
> Array<CommitStatus> repoListStatuses()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //sha of the commit (default to undefined)
let sort: 'oldest' | 'recentupdate' | 'leastupdate' | 'leastindex' | 'highestindex'; //type of sort (optional) (default to undefined)
let state: 'pending' | 'success' | 'error' | 'failure' | 'warning'; //type of state (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListStatuses(
    owner,
    repo,
    sha,
    sort,
    state,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | sha of the commit | defaults to undefined|
| **sort** | [**&#39;oldest&#39; | &#39;recentupdate&#39; | &#39;leastupdate&#39; | &#39;leastindex&#39; | &#39;highestindex&#39;**]**Array<&#39;oldest&#39; &#124; &#39;recentupdate&#39; &#124; &#39;leastupdate&#39; &#124; &#39;leastindex&#39; &#124; &#39;highestindex&#39;>** | type of sort | (optional) defaults to undefined|
| **state** | [**&#39;pending&#39; | &#39;success&#39; | &#39;error&#39; | &#39;failure&#39; | &#39;warning&#39;**]**Array<&#39;pending&#39; &#124; &#39;success&#39; &#124; &#39;error&#39; &#124; &#39;failure&#39; &#124; &#39;warning&#39;>** | type of state | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<CommitStatus>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | CommitStatusList |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListStatusesByRef**
> Array<CommitStatus> repoListStatusesByRef()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let ref: string; //name of branch/tag/commit (default to undefined)
let sort: 'oldest' | 'recentupdate' | 'leastupdate' | 'leastindex' | 'highestindex'; //type of sort (optional) (default to undefined)
let state: 'pending' | 'success' | 'error' | 'failure' | 'warning'; //type of state (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListStatusesByRef(
    owner,
    repo,
    ref,
    sort,
    state,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **ref** | [**string**] | name of branch/tag/commit | defaults to undefined|
| **sort** | [**&#39;oldest&#39; | &#39;recentupdate&#39; | &#39;leastupdate&#39; | &#39;leastindex&#39; | &#39;highestindex&#39;**]**Array<&#39;oldest&#39; &#124; &#39;recentupdate&#39; &#124; &#39;leastupdate&#39; &#124; &#39;leastindex&#39; &#124; &#39;highestindex&#39;>** | type of sort | (optional) defaults to undefined|
| **state** | [**&#39;pending&#39; | &#39;success&#39; | &#39;error&#39; | &#39;failure&#39; | &#39;warning&#39;**]**Array<&#39;pending&#39; &#124; &#39;success&#39; &#124; &#39;error&#39; &#124; &#39;failure&#39; &#124; &#39;warning&#39;>** | type of state | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<CommitStatus>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | CommitStatusList |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListSubscribers**
> Array<User> repoListSubscribers()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListSubscribers(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<User>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | UserList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListTagProtection**
> Array<TagProtection> repoListTagProtection()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoListTagProtection(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<TagProtection>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TagProtectionList |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListTags**
> Array<Tag> repoListTags()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results, default maximum page size is 50 (optional) (default to undefined)

const { status, data } = await apiInstance.repoListTags(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results, default maximum page size is 50 | (optional) defaults to undefined|


### Return type

**Array<Tag>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TagList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListTeams**
> Array<Team> repoListTeams()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoListTeams(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<Team>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TeamList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoListTopics**
> TopicName repoListTopics()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoListTopics(
    owner,
    repo,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**TopicName**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TopicNames |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoMergePullRequest**
> repoMergePullRequest()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    MergePullRequestOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request to merge (default to undefined)
let body: MergePullRequestOption; // (optional)

const { status, data } = await apiInstance.repoMergePullRequest(
    owner,
    repo,
    index,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **MergePullRequestOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request to merge | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**405** | APIEmpty is an empty response |  -  |
|**409** | APIError is error format response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoMigrate**
> Repository repoMigrate()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    MigrateRepoOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let body: MigrateRepoOptions; // (optional)

const { status, data } = await apiInstance.repoMigrate(
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **MigrateRepoOptions**|  | |


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Repository |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**409** | The repository with the same name already exists. |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoMirrorSync**
> repoMirrorSync()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo to sync (default to undefined)
let repo: string; //name of the repo to sync (default to undefined)

const { status, data } = await apiInstance.repoMirrorSync(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo to sync | defaults to undefined|
| **repo** | [**string**] | name of the repo to sync | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoNewPinAllowed**
> NewIssuePinsAllowed repoNewPinAllowed()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoNewPinAllowed(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**NewIssuePinsAllowed**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepoNewIssuePinsAllowed |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoPullRequestIsMerged**
> repoPullRequestIsMerged()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)

const { status, data } = await apiInstance.repoPullRequestIsMerged(
    owner,
    repo,
    index
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | pull request has been merged |  -  |
|**404** | pull request has not been merged |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoPushMirrorSync**
> repoPushMirrorSync()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo to sync (default to undefined)
let repo: string; //name of the repo to sync (default to undefined)

const { status, data } = await apiInstance.repoPushMirrorSync(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo to sync | defaults to undefined|
| **repo** | [**string**] | name of the repo to sync | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | APIEmpty is an empty response |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoRemoveNote**
> repoRemoveNote()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //a git ref or commit sha (default to undefined)

const { status, data } = await apiInstance.repoRemoveNote(
    owner,
    repo,
    sha
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | a git ref or commit sha | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoReplaceAllFlags**
> repoReplaceAllFlags()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    ReplaceFlagsOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: ReplaceFlagsOption; // (optional)

const { status, data } = await apiInstance.repoReplaceAllFlags(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **ReplaceFlagsOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoSearch**
> SearchResults repoSearch()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let q: string; //keyword (optional) (default to undefined)
let topic: boolean; //Limit search to repositories with keyword as topic (optional) (default to undefined)
let includeDesc: boolean; //include search of keyword within repository description (optional) (default to undefined)
let uid: number; //search only for repos that the user with the given id owns or contributes to (optional) (default to undefined)
let priorityOwnerId: number; //repo owner to prioritize in the results (optional) (default to undefined)
let teamId: number; //search only for repos that belong to the given team id (optional) (default to undefined)
let starredBy: number; //search only for repos that the user with the given id has starred (optional) (default to undefined)
let _private: boolean; //include private repositories this user has access to (defaults to true) (optional) (default to undefined)
let isPrivate: boolean; //show only public, private or all repositories (defaults to all) (optional) (default to undefined)
let template: boolean; //include template repositories this user has access to (defaults to true) (optional) (default to undefined)
let archived: boolean; //show only archived, non-archived or all repositories (defaults to all) (optional) (default to undefined)
let mode: string; //type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\" (optional) (default to undefined)
let exclusive: boolean; //if `uid` is given, search only for repos that the user owns (optional) (default to undefined)
let sort: string; //sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", \"git_size\", \"lfs_size\", \"stars\", \"forks\" and \"id\". Default is \"alpha\" (optional) (default to undefined)
let order: string; //sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified. (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoSearch(
    q,
    topic,
    includeDesc,
    uid,
    priorityOwnerId,
    teamId,
    starredBy,
    _private,
    isPrivate,
    template,
    archived,
    mode,
    exclusive,
    sort,
    order,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **q** | [**string**] | keyword | (optional) defaults to undefined|
| **topic** | [**boolean**] | Limit search to repositories with keyword as topic | (optional) defaults to undefined|
| **includeDesc** | [**boolean**] | include search of keyword within repository description | (optional) defaults to undefined|
| **uid** | [**number**] | search only for repos that the user with the given id owns or contributes to | (optional) defaults to undefined|
| **priorityOwnerId** | [**number**] | repo owner to prioritize in the results | (optional) defaults to undefined|
| **teamId** | [**number**] | search only for repos that belong to the given team id | (optional) defaults to undefined|
| **starredBy** | [**number**] | search only for repos that the user with the given id has starred | (optional) defaults to undefined|
| **_private** | [**boolean**] | include private repositories this user has access to (defaults to true) | (optional) defaults to undefined|
| **isPrivate** | [**boolean**] | show only public, private or all repositories (defaults to all) | (optional) defaults to undefined|
| **template** | [**boolean**] | include template repositories this user has access to (defaults to true) | (optional) defaults to undefined|
| **archived** | [**boolean**] | show only archived, non-archived or all repositories (defaults to all) | (optional) defaults to undefined|
| **mode** | [**string**] | type of repository to search for. Supported values are \&quot;fork\&quot;, \&quot;source\&quot;, \&quot;mirror\&quot; and \&quot;collaborative\&quot; | (optional) defaults to undefined|
| **exclusive** | [**boolean**] | if &#x60;uid&#x60; is given, search only for repos that the user owns | (optional) defaults to undefined|
| **sort** | [**string**] | sort repos by attribute. Supported values are \&quot;alpha\&quot;, \&quot;created\&quot;, \&quot;updated\&quot;, \&quot;size\&quot;, \&quot;git_size\&quot;, \&quot;lfs_size\&quot;, \&quot;stars\&quot;, \&quot;forks\&quot; and \&quot;id\&quot;. Default is \&quot;alpha\&quot; | (optional) defaults to undefined|
| **order** | [**string**] | sort order, either \&quot;asc\&quot; (ascending) or \&quot;desc\&quot; (descending). Default is \&quot;asc\&quot;, ignored if \&quot;sort\&quot; is not specified. | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**SearchResults**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | SearchResults |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoSearchRunJobs**
> Array<ActionRunJob> repoSearchRunJobs()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let labels: string; //a comma separated list of run job labels to search for (optional) (default to undefined)

const { status, data } = await apiInstance.repoSearchRunJobs(
    owner,
    repo,
    labels
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **labels** | [**string**] | a comma separated list of run job labels to search for | (optional) defaults to undefined|


### Return type

**Array<ActionRunJob>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RunJobList is a list of action run jobs |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoSetNote**
> Note repoSetNote()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    NoteOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let sha: string; //a git ref or commit sha (default to undefined)
let body: NoteOptions; // (optional)

const { status, data } = await apiInstance.repoSetNote(
    owner,
    repo,
    sha,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **NoteOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **sha** | [**string**] | a git ref or commit sha | defaults to undefined|


### Return type

**Note**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Note |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoSigningKey**
> string repoSigningKey()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoSigningKey(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**string**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | GPG armored public key |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoSubmitPullReview**
> PullReview repoSubmitPullReview(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    SubmitPullReviewOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let id: number; //id of the review (default to undefined)
let body: SubmitPullReviewOptions; //

const { status, data } = await apiInstance.repoSubmitPullReview(
    owner,
    repo,
    index,
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **SubmitPullReviewOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **id** | [**number**] | id of the review | defaults to undefined|


### Return type

**PullReview**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullReview |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoSyncForkBranch**
> repoSyncForkBranch()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let branch: string; //The branch (default to undefined)

const { status, data } = await apiInstance.repoSyncForkBranch(
    owner,
    repo,
    branch
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **branch** | [**string**] | The branch | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoSyncForkBranchInfo**
> Array<SyncForkInfo> repoSyncForkBranchInfo()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let branch: string; //The branch (default to undefined)

const { status, data } = await apiInstance.repoSyncForkBranchInfo(
    owner,
    repo,
    branch
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **branch** | [**string**] | The branch | defaults to undefined|


### Return type

**Array<SyncForkInfo>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | SyncForkInfo |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoSyncForkDefault**
> repoSyncForkDefault()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoSyncForkDefault(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoSyncForkDefaultInfo**
> Array<SyncForkInfo> repoSyncForkDefaultInfo()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoSyncForkDefaultInfo(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**Array<SyncForkInfo>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | SyncForkInfo |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoTestHook**
> repoTestHook()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: number; //id of the hook to test (default to undefined)
let ref: string; //The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. (optional) (default to undefined)

const { status, data } = await apiInstance.repoTestHook(
    owner,
    repo,
    id,
    ref
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the hook to test | defaults to undefined|
| **ref** | [**string**] | The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. | (optional) defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoTrackedTimes**
> Array<TrackedTime> repoTrackedTimes()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let user: string; //optional filter by user (available for issue managers) (optional) (default to undefined)
let since: string; //Only show times updated after the given time. This is a timestamp in RFC 3339 format (optional) (default to undefined)
let before: string; //Only show times updated before the given time. This is a timestamp in RFC 3339 format (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.repoTrackedTimes(
    owner,
    repo,
    user,
    since,
    before,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **user** | [**string**] | optional filter by user (available for issue managers) | (optional) defaults to undefined|
| **since** | [**string**] | Only show times updated after the given time. This is a timestamp in RFC 3339 format | (optional) defaults to undefined|
| **before** | [**string**] | Only show times updated before the given time. This is a timestamp in RFC 3339 format | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<TrackedTime>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TrackedTimeList |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoTransfer**
> Repository repoTransfer(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    TransferRepoOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo to transfer (default to undefined)
let repo: string; //name of the repo to transfer (default to undefined)
let body: TransferRepoOption; //Transfer Options

const { status, data } = await apiInstance.repoTransfer(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **TransferRepoOption**| Transfer Options | |
| **owner** | [**string**] | owner of the repo to transfer | defaults to undefined|
| **repo** | [**string**] | name of the repo to transfer | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**202** | Repository |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoUnDismissPullReview**
> PullReview repoUnDismissPullReview()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request (default to undefined)
let id: number; //id of the review (default to undefined)

const { status, data } = await apiInstance.repoUnDismissPullReview(
    owner,
    repo,
    index,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request | defaults to undefined|
| **id** | [**number**] | id of the review | defaults to undefined|


### Return type

**PullReview**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | PullReview |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoUpdateAvatar**
> repoUpdateAvatar()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    UpdateRepoAvatarOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: UpdateRepoAvatarOption; // (optional)

const { status, data } = await apiInstance.repoUpdateAvatar(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **UpdateRepoAvatarOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoUpdateBranch**
> repoUpdateBranch()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    UpdateBranchRepoOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let branch: string; //name of the branch (default to undefined)
let body: UpdateBranchRepoOption; // (optional)

const { status, data } = await apiInstance.repoUpdateBranch(
    owner,
    repo,
    branch,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **UpdateBranchRepoOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **branch** | [**string**] | name of the branch | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoUpdateFile**
> FileResponse repoUpdateFile(body)


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    UpdateFileOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let filepath: string; //path of the file to update (default to undefined)
let body: UpdateFileOptions; //

const { status, data } = await apiInstance.repoUpdateFile(
    owner,
    repo,
    filepath,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **UpdateFileOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **filepath** | [**string**] | path of the file to update | defaults to undefined|


### Return type

**FileResponse**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | FileResponse |  -  |
|**403** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | APIConflict is a conflict empty response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIError is error format response |  -  |
|**423** | APIRepoArchivedError is an error that is raised when an archived repo should be modified |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoUpdatePullRequest**
> repoUpdatePullRequest()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //index of the pull request to get (default to undefined)
let style: 'merge' | 'rebase'; //how to update pull request (optional) (default to undefined)

const { status, data } = await apiInstance.repoUpdatePullRequest(
    owner,
    repo,
    index,
    style
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the pull request to get | defaults to undefined|
| **style** | [**&#39;merge&#39; | &#39;rebase&#39;**]**Array<&#39;merge&#39; &#124; &#39;rebase&#39;>** | how to update pull request | (optional) defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | APIError is error format response |  -  |
|**413** | QuotaExceeded |  * user_id -  <br>  * message -  <br>  * username -  <br>  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoUpdateTopics**
> repoUpdateTopics()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    RepoTopicOptions
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let body: RepoTopicOptions; // (optional)

const { status, data } = await apiInstance.repoUpdateTopics(
    owner,
    repo,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **RepoTopicOptions**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIInvalidTopicsError is error format response to invalid topics |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **repoValidateIssueConfig**
> IssueConfigValidation repoValidateIssueConfig()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.repoValidateIssueConfig(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**IssueConfigValidation**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepoIssueConfigValidation |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **topicSearch**
> Array<TopicResponse> topicSearch()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let q: string; //keywords to search (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.topicSearch(
    q,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **q** | [**string**] | keywords to search | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<TopicResponse>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TopicListResponse |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **updateRepoSecret**
> updateRepoSecret()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    CreateOrUpdateSecretOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repository (default to undefined)
let repo: string; //name of the repository (default to undefined)
let secretname: string; //name of the secret (default to undefined)
let body: CreateOrUpdateSecretOption; // (optional)

const { status, data } = await apiInstance.updateRepoSecret(
    owner,
    repo,
    secretname,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateOrUpdateSecretOption**|  | |
| **owner** | [**string**] | owner of the repository | defaults to undefined|
| **repo** | [**string**] | name of the repository | defaults to undefined|
| **secretname** | [**string**] | name of the secret | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when creating a secret |  -  |
|**204** | response when updating a secret |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **updateRepoVariable**
> updateRepoVariable()


### Example

```typescript
import {
    RepositoryApi,
    Configuration,
    UpdateVariableOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //name of the owner (default to undefined)
let repo: string; //name of the repository (default to undefined)
let variablename: string; //name of the variable (default to undefined)
let body: UpdateVariableOption; // (optional)

const { status, data } = await apiInstance.updateRepoVariable(
    owner,
    repo,
    variablename,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **UpdateVariableOption**|  | |
| **owner** | [**string**] | name of the owner | defaults to undefined|
| **repo** | [**string**] | name of the repository | defaults to undefined|
| **variablename** | [**string**] | name of the variable | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when updating a repo-level variable |  -  |
|**204** | response when updating a repo-level variable |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **userCurrentCheckSubscription**
> WatchInfo userCurrentCheckSubscription()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.userCurrentCheckSubscription(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**WatchInfo**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | WatchInfo |  -  |
|**404** | User is not watching this repo or repo do not exist |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **userCurrentDeleteSubscription**
> userCurrentDeleteSubscription()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.userCurrentDeleteSubscription(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **userCurrentPutSubscription**
> WatchInfo userCurrentPutSubscription()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)

const { status, data } = await apiInstance.userCurrentPutSubscription(
    owner,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|


### Return type

**WatchInfo**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | WatchInfo |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **userTrackedTimes**
> Array<TrackedTime> userTrackedTimes()


### Example

```typescript
import {
    RepositoryApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new RepositoryApi(configuration);

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let user: string; //username of user (default to undefined)

const { status, data } = await apiInstance.userTrackedTimes(
    owner,
    repo,
    user
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **user** | [**string**] | username of user | defaults to undefined|


### Return type

**Array<TrackedTime>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TrackedTimeList |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

