# IssueApi

All URIs are relative to */api/v1*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**issueAddLabel**](#issueaddlabel) | **POST** /repos/{owner}/{repo}/issues/{index}/labels | Add a label to an issue|
|[**issueAddSubscription**](#issueaddsubscription) | **PUT** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Subscribe user to issue|
|[**issueAddTime**](#issueaddtime) | **POST** /repos/{owner}/{repo}/issues/{index}/times | Add tracked time to a issue|
|[**issueCheckSubscription**](#issuechecksubscription) | **GET** /repos/{owner}/{repo}/issues/{index}/subscriptions/check | Check if user is subscribed to an issue|
|[**issueClearLabels**](#issueclearlabels) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels | Remove all labels from an issue|
|[**issueCreateComment**](#issuecreatecomment) | **POST** /repos/{owner}/{repo}/issues/{index}/comments | Add a comment to an issue|
|[**issueCreateIssue**](#issuecreateissue) | **POST** /repos/{owner}/{repo}/issues | Create an issue. If using deadline only the date will be taken into account, and time of day ignored.|
|[**issueCreateIssueAttachment**](#issuecreateissueattachment) | **POST** /repos/{owner}/{repo}/issues/{index}/assets | Create an issue attachment|
|[**issueCreateIssueBlocking**](#issuecreateissueblocking) | **POST** /repos/{owner}/{repo}/issues/{index}/blocks | Block the issue given in the body by the issue in path|
|[**issueCreateIssueCommentAttachment**](#issuecreateissuecommentattachment) | **POST** /repos/{owner}/{repo}/issues/comments/{id}/assets | Create a comment attachment|
|[**issueCreateIssueDependencies**](#issuecreateissuedependencies) | **POST** /repos/{owner}/{repo}/issues/{index}/dependencies | Make the issue in the url depend on the issue in the form.|
|[**issueCreateLabel**](#issuecreatelabel) | **POST** /repos/{owner}/{repo}/labels | Create a label|
|[**issueCreateMilestone**](#issuecreatemilestone) | **POST** /repos/{owner}/{repo}/milestones | Create a milestone|
|[**issueDelete**](#issuedelete) | **DELETE** /repos/{owner}/{repo}/issues/{index} | Delete an issue|
|[**issueDeleteComment**](#issuedeletecomment) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id} | Delete a comment|
|[**issueDeleteCommentDeprecated**](#issuedeletecommentdeprecated) | **DELETE** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Delete a comment|
|[**issueDeleteCommentReaction**](#issuedeletecommentreaction) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Remove a reaction from a comment of an issue|
|[**issueDeleteIssueAttachment**](#issuedeleteissueattachment) | **DELETE** /repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} | Delete an issue attachment|
|[**issueDeleteIssueCommentAttachment**](#issuedeleteissuecommentattachment) | **DELETE** /repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id} | Delete a comment attachment|
|[**issueDeleteIssueReaction**](#issuedeleteissuereaction) | **DELETE** /repos/{owner}/{repo}/issues/{index}/reactions | Remove a reaction from an issue|
|[**issueDeleteLabel**](#issuedeletelabel) | **DELETE** /repos/{owner}/{repo}/labels/{id} | Delete a label|
|[**issueDeleteMilestone**](#issuedeletemilestone) | **DELETE** /repos/{owner}/{repo}/milestones/{id} | Delete a milestone|
|[**issueDeleteStopWatch**](#issuedeletestopwatch) | **DELETE** /repos/{owner}/{repo}/issues/{index}/stopwatch/delete | Delete an issue\&#39;s existing stopwatch.|
|[**issueDeleteSubscription**](#issuedeletesubscription) | **DELETE** /repos/{owner}/{repo}/issues/{index}/subscriptions/{user} | Unsubscribe user from issue|
|[**issueDeleteTime**](#issuedeletetime) | **DELETE** /repos/{owner}/{repo}/issues/{index}/times/{id} | Delete specific tracked time|
|[**issueEditComment**](#issueeditcomment) | **PATCH** /repos/{owner}/{repo}/issues/comments/{id} | Edit a comment|
|[**issueEditCommentDeprecated**](#issueeditcommentdeprecated) | **PATCH** /repos/{owner}/{repo}/issues/{index}/comments/{id} | Edit a comment|
|[**issueEditIssue**](#issueeditissue) | **PATCH** /repos/{owner}/{repo}/issues/{index} | Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.|
|[**issueEditIssueAttachment**](#issueeditissueattachment) | **PATCH** /repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} | Edit an issue attachment|
|[**issueEditIssueCommentAttachment**](#issueeditissuecommentattachment) | **PATCH** /repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id} | Edit a comment attachment|
|[**issueEditIssueDeadline**](#issueeditissuedeadline) | **POST** /repos/{owner}/{repo}/issues/{index}/deadline | Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.|
|[**issueEditLabel**](#issueeditlabel) | **PATCH** /repos/{owner}/{repo}/labels/{id} | Update a label|
|[**issueEditMilestone**](#issueeditmilestone) | **PATCH** /repos/{owner}/{repo}/milestones/{id} | Update a milestone|
|[**issueGetComment**](#issuegetcomment) | **GET** /repos/{owner}/{repo}/issues/comments/{id} | Get a comment|
|[**issueGetCommentReactions**](#issuegetcommentreactions) | **GET** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Get a list of reactions from a comment of an issue|
|[**issueGetComments**](#issuegetcomments) | **GET** /repos/{owner}/{repo}/issues/{index}/comments | List all comments on an issue|
|[**issueGetCommentsAndTimeline**](#issuegetcommentsandtimeline) | **GET** /repos/{owner}/{repo}/issues/{index}/timeline | List all comments and events on an issue|
|[**issueGetIssue**](#issuegetissue) | **GET** /repos/{owner}/{repo}/issues/{index} | Get an issue|
|[**issueGetIssueAttachment**](#issuegetissueattachment) | **GET** /repos/{owner}/{repo}/issues/{index}/assets/{attachment_id} | Get an issue attachment|
|[**issueGetIssueCommentAttachment**](#issuegetissuecommentattachment) | **GET** /repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id} | Get a comment attachment|
|[**issueGetIssueReactions**](#issuegetissuereactions) | **GET** /repos/{owner}/{repo}/issues/{index}/reactions | Get a list reactions of an issue|
|[**issueGetLabel**](#issuegetlabel) | **GET** /repos/{owner}/{repo}/labels/{id} | Get a single label|
|[**issueGetLabels**](#issuegetlabels) | **GET** /repos/{owner}/{repo}/issues/{index}/labels | Get an issue\&#39;s labels|
|[**issueGetMilestone**](#issuegetmilestone) | **GET** /repos/{owner}/{repo}/milestones/{id} | Get a milestone|
|[**issueGetMilestonesList**](#issuegetmilestoneslist) | **GET** /repos/{owner}/{repo}/milestones | Get all of a repository\&#39;s opened milestones|
|[**issueGetRepoComments**](#issuegetrepocomments) | **GET** /repos/{owner}/{repo}/issues/comments | List all comments in a repository|
|[**issueListBlocks**](#issuelistblocks) | **GET** /repos/{owner}/{repo}/issues/{index}/blocks | List issues that are blocked by this issue|
|[**issueListIssueAttachments**](#issuelistissueattachments) | **GET** /repos/{owner}/{repo}/issues/{index}/assets | List issue\&#39;s attachments|
|[**issueListIssueCommentAttachments**](#issuelistissuecommentattachments) | **GET** /repos/{owner}/{repo}/issues/comments/{id}/assets | List comment\&#39;s attachments|
|[**issueListIssueDependencies**](#issuelistissuedependencies) | **GET** /repos/{owner}/{repo}/issues/{index}/dependencies | List an issue\&#39;s dependencies, i.e all issues that block this issue.|
|[**issueListIssues**](#issuelistissues) | **GET** /repos/{owner}/{repo}/issues | List a repository\&#39;s issues|
|[**issueListLabels**](#issuelistlabels) | **GET** /repos/{owner}/{repo}/labels | Get all of a repository\&#39;s labels|
|[**issuePostCommentReaction**](#issuepostcommentreaction) | **POST** /repos/{owner}/{repo}/issues/comments/{id}/reactions | Add a reaction to a comment of an issue|
|[**issuePostIssueReaction**](#issuepostissuereaction) | **POST** /repos/{owner}/{repo}/issues/{index}/reactions | Add a reaction to an issue|
|[**issueRemoveIssueBlocking**](#issueremoveissueblocking) | **DELETE** /repos/{owner}/{repo}/issues/{index}/blocks | Unblock the issue given in the body by the issue in path|
|[**issueRemoveIssueDependencies**](#issueremoveissuedependencies) | **DELETE** /repos/{owner}/{repo}/issues/{index}/dependencies | Remove an issue dependency|
|[**issueRemoveLabel**](#issueremovelabel) | **DELETE** /repos/{owner}/{repo}/issues/{index}/labels/{id} | Remove a label from an issue|
|[**issueReplaceLabels**](#issuereplacelabels) | **PUT** /repos/{owner}/{repo}/issues/{index}/labels | Replace an issue\&#39;s labels|
|[**issueResetTime**](#issueresettime) | **DELETE** /repos/{owner}/{repo}/issues/{index}/times | Reset a tracked time of an issue|
|[**issueSearchIssues**](#issuesearchissues) | **GET** /repos/issues/search | Search for issues across the repositories that the user has access to|
|[**issueStartStopWatch**](#issuestartstopwatch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/start | Start stopwatch on an issue.|
|[**issueStopStopWatch**](#issuestopstopwatch) | **POST** /repos/{owner}/{repo}/issues/{index}/stopwatch/stop | Stop an issue\&#39;s existing stopwatch.|
|[**issueSubscriptions**](#issuesubscriptions) | **GET** /repos/{owner}/{repo}/issues/{index}/subscriptions | Get users who subscribed on an issue.|
|[**issueTrackedTimes**](#issuetrackedtimes) | **GET** /repos/{owner}/{repo}/issues/{index}/times | List an issue\&#39;s tracked times|
|[**moveIssuePin**](#moveissuepin) | **PATCH** /repos/{owner}/{repo}/issues/{index}/pin/{position} | Moves the Pin to the given Position|
|[**pinIssue**](#pinissue) | **POST** /repos/{owner}/{repo}/issues/{index}/pin | Pin an Issue|
|[**unpinIssue**](#unpinissue) | **DELETE** /repos/{owner}/{repo}/issues/{index}/pin | Unpin an Issue|

# **issueAddLabel**
> Array<Label> issueAddLabel()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    IssueLabelsOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let body: IssueLabelsOption; // (optional)

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

### Parameters

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


### Return type

**Array<Label>**

### 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** | LabelList |  -  |
|**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)

# **issueAddSubscription**
> issueAddSubscription()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let user: string; //user to subscribe (default to undefined)

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

### 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 issue | defaults to undefined|
| **user** | [**string**] | user to subscribe | 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** | Already subscribed |  -  |
|**201** | Successfully Subscribed |  -  |
|**304** | User can only subscribe itself if he is no admin |  -  |
|**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)

# **issueAddTime**
> TrackedTime issueAddTime()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    AddTimeOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let body: AddTimeOption; // (optional)

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

### Parameters

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


### Return type

**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**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TrackedTime |  -  |
|**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)

# **issueCheckSubscription**
> WatchInfo issueCheckSubscription()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)

const { status, data } = await apiInstance.issueCheckSubscription(
    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 issue | 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


### 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)

# **issueClearLabels**
> issueClearLabels()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    DeleteLabelsOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let body: DeleteLabelsOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **DeleteLabelsOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the issue | 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)

# **issueCreateComment**
> Comment issueCreateComment()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    CreateIssueCommentOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let body: CreateIssueCommentOption; // (optional)

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

### Parameters

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


### Return type

**Comment**

### 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** | Comment |  -  |
|**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 |  -  |
|**500** | APIInternalServerError is an error that is raised when an internal server error occurs |  -  |

[[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)

# **issueCreateIssue**
> Issue issueCreateIssue()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    CreateIssueOption
} from 'berg';

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

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

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

### Parameters

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


### Return type

**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**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Issue |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**412** | APIError is error format 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)

# **issueCreateIssueAttachment**
> Attachment issueCreateIssueAttachment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let attachment: File; //attachment to upload (default to undefined)
let name: string; //name of the attachment (optional) (default to undefined)
let updatedAt: string; //time of the attachment\'s creation. This is a timestamp in RFC 3339 format (optional) (default to undefined)

const { status, data } = await apiInstance.issueCreateIssueAttachment(
    owner,
    repo,
    index,
    attachment,
    name,
    updatedAt
);
```

### 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 issue | defaults to undefined|
| **attachment** | [**File**] | attachment to upload | defaults to undefined|
| **name** | [**string**] | name of the attachment | (optional) defaults to undefined|
| **updatedAt** | [**string**] | time of the attachment\&#39;s creation. This is a timestamp in RFC 3339 format | (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
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Attachment |  -  |
|**400** | APIError is error format response |  -  |
|**404** | 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)

# **issueCreateIssueBlocking**
> Issue issueCreateIssueBlocking()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    IssueMeta
} from 'berg';

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

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

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

### Parameters

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


### Return type

**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**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Issue |  -  |
|**404** | the issue does 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)

# **issueCreateIssueCommentAttachment**
> Attachment issueCreateIssueCommentAttachment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment (default to undefined)
let attachment: File; //attachment to upload (default to undefined)
let name: string; //name of the attachment (optional) (default to undefined)
let updatedAt: string; //time of the attachment\'s creation. This is a timestamp in RFC 3339 format (optional) (default to undefined)

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

### 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 comment | defaults to undefined|
| **attachment** | [**File**] | attachment to upload | defaults to undefined|
| **name** | [**string**] | name of the attachment | (optional) defaults to undefined|
| **updatedAt** | [**string**] | time of the attachment\&#39;s creation. This is a timestamp in RFC 3339 format | (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
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Attachment |  -  |
|**400** | APIError is error format response |  -  |
|**404** | 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)

# **issueCreateIssueDependencies**
> Issue issueCreateIssueDependencies()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    IssueMeta
} from 'berg';

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

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

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

### Parameters

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


### Return type

**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**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Issue |  -  |
|**404** | the issue does not exist |  -  |
|**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)

# **issueCreateLabel**
> Label issueCreateLabel()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    CreateLabelOption
} from 'berg';

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

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

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

### Parameters

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


### Return type

**Label**

### 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** | Label |  -  |
|**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)

# **issueCreateMilestone**
> Milestone issueCreateMilestone()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    CreateMilestoneOption
} from 'berg';

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

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

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

### Parameters

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


### Return type

**Milestone**

### 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** | Milestone |  -  |
|**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)

# **issueDelete**
> issueDelete()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to delete (default to undefined)

const { status, data } = await apiInstance.issueDelete(
    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 issue 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)

# **issueDeleteComment**
> issueDeleteComment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment to delete (default to undefined)

const { status, data } = await apiInstance.issueDeleteComment(
    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 comment 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 |  -  |
|**500** | APIInternalServerError is an error that is raised when an internal server error occurs |  -  |

[[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)

# **issueDeleteCommentDeprecated**
> issueDeleteCommentDeprecated()


### Example

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

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //this parameter is ignored (default to undefined)
let id: number; //id of comment to delete (default to undefined)

const { status, data } = await apiInstance.issueDeleteCommentDeprecated(
    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**] | this parameter is ignored | defaults to undefined|
| **id** | [**number**] | id of comment 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 |  -  |
|**500** | APIInternalServerError is an error that is raised when an internal server error occurs |  -  |

[[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)

# **issueDeleteCommentReaction**
> issueDeleteCommentReaction()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditReactionOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment to edit (default to undefined)
let content: EditReactionOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **content** | **EditReactionOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the comment to edit | 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 |
|-------------|-------------|------------------|
|**200** | 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)

# **issueDeleteIssueAttachment**
> issueDeleteIssueAttachment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let attachmentId: number; //id of the attachment to delete (default to undefined)

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

### 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 issue | 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** | 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)

# **issueDeleteIssueCommentAttachment**
> issueDeleteIssueCommentAttachment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment (default to undefined)
let attachmentId: number; //id of the attachment to delete (default to undefined)

const { status, data } = await apiInstance.issueDeleteIssueCommentAttachment(
    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 comment | 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** | 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)

# **issueDeleteIssueReaction**
> issueDeleteIssueReaction()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditReactionOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let content: EditReactionOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **content** | **EditReactionOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the issue | 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 |
|-------------|-------------|------------------|
|**200** | 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)

# **issueDeleteLabel**
> issueDeleteLabel()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 label to delete (default to undefined)

const { status, data } = await apiInstance.issueDeleteLabel(
    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 label 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 |  -  |

[[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)

# **issueDeleteMilestone**
> issueDeleteMilestone()


### Example

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

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: string; //the milestone to delete, identified by ID and if not available by name (default to undefined)

const { status, data } = await apiInstance.issueDeleteMilestone(
    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**] | the milestone to delete, identified by ID and if not available by 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, 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)

# **issueDeleteStopWatch**
> issueDeleteStopWatch()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to stop the stopwatch on (default to undefined)

const { status, data } = await apiInstance.issueDeleteStopWatch(
    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 issue to stop the stopwatch on | 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** | Not repo writer, user does not have rights to toggle stopwatch |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | Cannot cancel a non existent stopwatch |  -  |

[[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)

# **issueDeleteSubscription**
> issueDeleteSubscription()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let user: string; //user witch unsubscribe (default to undefined)

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

### 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 issue | defaults to undefined|
| **user** | [**string**] | user witch unsubscribe | 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** | Already unsubscribed |  -  |
|**201** | Successfully Unsubscribed |  -  |
|**304** | User can only subscribe itself if he is no admin |  -  |
|**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)

# **issueDeleteTime**
> issueDeleteTime()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let id: number; //id of time to delete (default to undefined)

const { status, data } = await apiInstance.issueDeleteTime(
    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 issue | defaults to undefined|
| **id** | [**number**] | id of time 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 |  -  |
|**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)

# **issueEditComment**
> Comment issueEditComment()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditIssueCommentOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment to edit (default to undefined)
let body: EditIssueCommentOption; // (optional)

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

### Parameters

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


### Return type

**Comment**

### 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** | Comment |  -  |
|**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 |  -  |
|**500** | APIInternalServerError is an error that is raised when an internal server error occurs |  -  |

[[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)

# **issueEditCommentDeprecated**
> Comment issueEditCommentDeprecated()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditIssueCommentOption
} from 'berg';

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: number; //this parameter is ignored (default to undefined)
let id: number; //id of the comment to edit (default to undefined)
let body: EditIssueCommentOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditIssueCommentOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | this parameter is ignored | defaults to undefined|
| **id** | [**number**] | id of the comment to edit | defaults to undefined|


### Return type

**Comment**

### 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** | Comment |  -  |
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**500** | APIInternalServerError is an error that is raised when an internal server error occurs |  -  |

[[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)

# **issueEditIssue**
> Issue issueEditIssue()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditIssueOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to edit (default to undefined)
let body: EditIssueOption; // (optional)

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

### Parameters

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


### Return type

**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**: application/json
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Issue |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**412** | 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)

# **issueEditIssueAttachment**
> Attachment issueEditIssueAttachment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let attachmentId: number; //id of the attachment to edit (default to undefined)
let body: EditAttachmentOptions; // (optional)

const { status, data } = await apiInstance.issueEditIssueAttachment(
    owner,
    repo,
    index,
    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|
| **index** | [**number**] | index of the issue | 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** | 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)

# **issueEditIssueCommentAttachment**
> Attachment issueEditIssueCommentAttachment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment (default to undefined)
let attachmentId: number; //id of the attachment to edit (default to undefined)
let body: EditAttachmentOptions; // (optional)

const { status, data } = await apiInstance.issueEditIssueCommentAttachment(
    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 comment | 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** | 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)

# **issueEditIssueDeadline**
> IssueDeadline issueEditIssueDeadline()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditDeadlineOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to create or update a deadline on (default to undefined)
let body: EditDeadlineOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditDeadlineOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the issue to create or update a deadline on | defaults to undefined|


### Return type

**IssueDeadline**

### 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** | IssueDeadline |  -  |
|**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)

# **issueEditLabel**
> Label issueEditLabel()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditLabelOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 label to edit (default to undefined)
let body: EditLabelOption; // (optional)

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

### Parameters

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


### Return type

**Label**

### 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** | Label |  -  |
|**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)

# **issueEditMilestone**
> Milestone issueEditMilestone()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditMilestoneOption
} from 'berg';

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: string; //the milestone to edit, identified by ID and if not available by name (default to undefined)
let body: EditMilestoneOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditMilestoneOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**string**] | the milestone to edit, identified by ID and if not available by name | defaults to undefined|


### Return type

**Milestone**

### 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** | Milestone |  -  |
|**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)

# **issueGetComment**
> Comment issueGetComment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment (default to undefined)

const { status, data } = await apiInstance.issueGetComment(
    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 comment | defaults to undefined|


### Return type

**Comment**

### 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** | Comment |  -  |
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**500** | APIInternalServerError is an error that is raised when an internal server error occurs |  -  |

[[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)

# **issueGetCommentReactions**
> Array<Reaction> issueGetCommentReactions()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment to edit (default to undefined)

const { status, data } = await apiInstance.issueGetCommentReactions(
    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 comment to edit | defaults to undefined|


### Return type

**Array<Reaction>**

### 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** | ReactionList |  -  |
|**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)

# **issueGetComments**
> Array<Comment> issueGetComments()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let since: string; //if provided, only comments updated since the specified time are returned. (optional) (default to undefined)
let before: string; //if provided, only comments updated before the provided time are returned. (optional) (default to undefined)

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

### 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 issue | defaults to undefined|
| **since** | [**string**] | if provided, only comments updated since the specified time are returned. | (optional) defaults to undefined|
| **before** | [**string**] | if provided, only comments updated before the provided time are returned. | (optional) defaults to undefined|


### Return type

**Array<Comment>**

### 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** | CommentList |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**500** | APIInternalServerError is an error that is raised when an internal server error occurs |  -  |

[[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)

# **issueGetCommentsAndTimeline**
> Array<TimelineComment> issueGetCommentsAndTimeline()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let since: string; //if provided, only comments updated since the specified time are returned. (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)
let before: string; //if provided, only comments updated before the provided time are returned. (optional) (default to undefined)

const { status, data } = await apiInstance.issueGetCommentsAndTimeline(
    owner,
    repo,
    index,
    since,
    page,
    limit,
    before
);
```

### 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 issue | defaults to undefined|
| **since** | [**string**] | if provided, only comments updated since the specified time are returned. | (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|
| **before** | [**string**] | if provided, only comments updated before the provided time are returned. | (optional) defaults to undefined|


### Return type

**Array<TimelineComment>**

### 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** | TimelineList |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**500** | APIInternalServerError is an error that is raised when an internal server error occurs |  -  |

[[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)

# **issueGetIssue**
> Issue issueGetIssue()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to get (default to undefined)

const { status, data } = await apiInstance.issueGetIssue(
    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 issue to get | defaults to undefined|


### Return type

**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** | Issue |  -  |
|**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)

# **issueGetIssueAttachment**
> Attachment issueGetIssueAttachment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let attachmentId: number; //id of the attachment to get (default to undefined)

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

### 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 issue | 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** | 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)

# **issueGetIssueCommentAttachment**
> Attachment issueGetIssueCommentAttachment()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment (default to undefined)
let attachmentId: number; //id of the attachment to get (default to undefined)

const { status, data } = await apiInstance.issueGetIssueCommentAttachment(
    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 comment | 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** | 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)

# **issueGetIssueReactions**
> Array<Reaction> issueGetIssueReactions()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (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.issueGetIssueReactions(
    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 issue | 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<Reaction>**

### 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** | ReactionList |  -  |
|**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)

# **issueGetLabel**
> Label issueGetLabel()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 label to get (default to undefined)

const { status, data } = await apiInstance.issueGetLabel(
    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 label to get | defaults to undefined|


### Return type

**Label**

### 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** | Label |  -  |
|**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)

# **issueGetLabels**
> Array<Label> issueGetLabels()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)

const { status, data } = await apiInstance.issueGetLabels(
    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 issue | defaults to undefined|


### Return type

**Array<Label>**

### 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** | LabelList |  -  |
|**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)

# **issueGetMilestone**
> Milestone issueGetMilestone()


### Example

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

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let id: string; //the milestone to get, identified by ID and if not available by name (default to undefined)

const { status, data } = await apiInstance.issueGetMilestone(
    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**] | the milestone to get, identified by ID and if not available by name | defaults to undefined|


### Return type

**Milestone**

### 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** | Milestone |  -  |
|**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)

# **issueGetMilestonesList**
> Array<Milestone> issueGetMilestonesList()


### Example

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

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let state: string; //Milestone state, Recognized values are open, closed and all. Defaults to \"open\" (optional) (default to undefined)
let name: string; //filter by milestone name (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.issueGetMilestonesList(
    owner,
    repo,
    state,
    name,
    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** | [**string**] | Milestone state, Recognized values are open, closed and all. Defaults to \&quot;open\&quot; | (optional) defaults to undefined|
| **name** | [**string**] | filter by milestone name | (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<Milestone>**

### 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** | MilestoneList |  -  |
|**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)

# **issueGetRepoComments**
> Array<Comment> issueGetRepoComments()


### Example

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

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let since: string; //if provided, only comments updated since the provided time are returned. (optional) (default to undefined)
let before: string; //if provided, only comments updated before the provided time are returned. (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.issueGetRepoComments(
    owner,
    repo,
    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|
| **since** | [**string**] | if provided, only comments updated since the provided time are returned. | (optional) defaults to undefined|
| **before** | [**string**] | if provided, only comments updated before the provided time are returned. | (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<Comment>**

### 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** | CommentList |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |
|**500** | APIInternalServerError is an error that is raised when an internal server error occurs |  -  |

[[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)

# **issueListBlocks**
> Array<Issue> issueListBlocks()


### Example

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

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: string; //index of the issue (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.issueListBlocks(
    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** | [**string**] | index of the issue | 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<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)

# **issueListIssueAttachments**
> Array<Attachment> issueListIssueAttachments()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)

const { status, data } = await apiInstance.issueListIssueAttachments(
    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 issue | 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** | 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)

# **issueListIssueCommentAttachments**
> Array<Attachment> issueListIssueCommentAttachments()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment (default to undefined)

const { status, data } = await apiInstance.issueListIssueCommentAttachments(
    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 comment | 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** | 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)

# **issueListIssueDependencies**
> Array<Issue> issueListIssueDependencies()


### Example

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

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let index: string; //index of the issue (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.issueListIssueDependencies(
    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** | [**string**] | index of the issue | 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<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)

# **issueListIssues**
> Array<Issue> issueListIssues()


### Example

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

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

let owner: string; //owner of the repo (default to undefined)
let repo: string; //name of the repo (default to undefined)
let state: 'closed' | 'open' | 'all'; //whether issue is open or closed (optional) (default to undefined)
let labels: string; //comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded (optional) (default to undefined)
let q: string; //search string (optional) (default to undefined)
let type: 'issues' | 'pulls'; //filter by type (issues / pulls) if set (optional) (default to undefined)
let milestones: string; //comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded (optional) (default to undefined)
let since: string; //Only show items updated after the given time. This is a timestamp in RFC 3339 format (optional) (default to undefined)
let before: string; //Only show items updated before the given time. This is a timestamp in RFC 3339 format (optional) (default to undefined)
let createdBy: string; //Only show items which were created by the given user (optional) (default to undefined)
let assignedBy: string; //Only show items for which the given user is assigned (optional) (default to undefined)
let mentionedBy: string; //Only show items in which the given user was mentioned (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)
let sort: 'relevance' | 'latest' | 'oldest' | 'recentupdate' | 'leastupdate' | 'mostcomment' | 'leastcomment' | 'nearduedate' | 'farduedate'; //Type of sort (optional) (default to 'latest')

const { status, data } = await apiInstance.issueListIssues(
    owner,
    repo,
    state,
    labels,
    q,
    type,
    milestones,
    since,
    before,
    createdBy,
    assignedBy,
    mentionedBy,
    page,
    limit,
    sort
);
```

### 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;closed&#39; | &#39;open&#39; | &#39;all&#39;**]**Array<&#39;closed&#39; &#124; &#39;open&#39; &#124; &#39;all&#39;>** | whether issue is open or closed | (optional) defaults to undefined|
| **labels** | [**string**] | comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded | (optional) defaults to undefined|
| **q** | [**string**] | search string | (optional) defaults to undefined|
| **type** | [**&#39;issues&#39; | &#39;pulls&#39;**]**Array<&#39;issues&#39; &#124; &#39;pulls&#39;>** | filter by type (issues / pulls) if set | (optional) defaults to undefined|
| **milestones** | [**string**] | comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded | (optional) defaults to undefined|
| **since** | [**string**] | Only show items updated after the given time. This is a timestamp in RFC 3339 format | (optional) defaults to undefined|
| **before** | [**string**] | Only show items updated before the given time. This is a timestamp in RFC 3339 format | (optional) defaults to undefined|
| **createdBy** | [**string**] | Only show items which were created by the given user | (optional) defaults to undefined|
| **assignedBy** | [**string**] | Only show items for which the given user is assigned | (optional) defaults to undefined|
| **mentionedBy** | [**string**] | Only show items in which the given user was mentioned | (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|
| **sort** | [**&#39;relevance&#39; | &#39;latest&#39; | &#39;oldest&#39; | &#39;recentupdate&#39; | &#39;leastupdate&#39; | &#39;mostcomment&#39; | &#39;leastcomment&#39; | &#39;nearduedate&#39; | &#39;farduedate&#39;**]**Array<&#39;relevance&#39; &#124; &#39;latest&#39; &#124; &#39;oldest&#39; &#124; &#39;recentupdate&#39; &#124; &#39;leastupdate&#39; &#124; &#39;mostcomment&#39; &#124; &#39;leastcomment&#39; &#124; &#39;nearduedate&#39; &#124; &#39;farduedate&#39;>** | Type of sort | (optional) defaults to 'latest'|


### 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)

# **issueListLabels**
> Array<Label> issueListLabels()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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.issueListLabels(
    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<Label>**

### 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** | LabelList |  -  |
|**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)

# **issuePostCommentReaction**
> Reaction issuePostCommentReaction()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditReactionOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 comment to edit (default to undefined)
let content: EditReactionOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **content** | **EditReactionOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **id** | [**number**] | id of the comment to edit | defaults to undefined|


### Return type

**Reaction**

### 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** | Reaction |  -  |
|**201** | Reaction |  -  |
|**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)

# **issuePostIssueReaction**
> Reaction issuePostIssueReaction()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    EditReactionOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let content: EditReactionOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **content** | **EditReactionOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the issue | defaults to undefined|


### Return type

**Reaction**

### 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** | Reaction |  -  |
|**201** | Reaction |  -  |
|**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)

# **issueRemoveIssueBlocking**
> Issue issueRemoveIssueBlocking()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    IssueMeta
} from 'berg';

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

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

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

### Parameters

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


### Return type

**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**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Issue |  -  |
|**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)

# **issueRemoveIssueDependencies**
> Issue issueRemoveIssueDependencies()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    IssueMeta
} from 'berg';

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

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

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

### Parameters

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


### Return type

**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**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Issue |  -  |
|**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)

# **issueRemoveLabel**
> issueRemoveLabel()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    DeleteLabelsOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let id: number; //id of the label to remove (default to undefined)
let body: DeleteLabelsOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **DeleteLabelsOption**|  | |
| **owner** | [**string**] | owner of the repo | defaults to undefined|
| **repo** | [**string**] | name of the repo | defaults to undefined|
| **index** | [**number**] | index of the issue | defaults to undefined|
| **id** | [**number**] | id of the label to remove | 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)

# **issueReplaceLabels**
> Array<Label> issueReplaceLabels()


### Example

```typescript
import {
    IssueApi,
    Configuration,
    IssueLabelsOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let body: IssueLabelsOption; // (optional)

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

### Parameters

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


### Return type

**Array<Label>**

### 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** | LabelList |  -  |
|**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)

# **issueResetTime**
> issueResetTime()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to add tracked time to (default to undefined)

const { status, data } = await apiInstance.issueResetTime(
    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 issue to add tracked time to | 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 |  -  |
|**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)

# **issueSearchIssues**
> Array<Issue> issueSearchIssues()


### Example

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

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

let state: 'open' | 'closed' | 'all'; //State of the issue (optional) (default to 'open')
let labels: string; //Comma-separated list of label names. Fetch only issues that have any of these labels. Non existent labels are discarded. (optional) (default to undefined)
let milestones: string; //Comma-separated list of milestone names. Fetch only issues that have any of these milestones. Non existent milestones are discarded. (optional) (default to undefined)
let q: string; //Search string (optional) (default to undefined)
let priorityRepoId: number; //Repository ID to prioritize in the results (optional) (default to undefined)
let type: 'issues' | 'pulls'; //Filter by issue type (optional) (default to undefined)
let since: string; //Only show issues updated after the given time (RFC 3339 format) (optional) (default to undefined)
let before: string; //Only show issues updated before the given time (RFC 3339 format) (optional) (default to undefined)
let assigned: boolean; //Filter issues or pulls assigned to the authenticated user (optional) (default to false)
let created: boolean; //Filter issues or pulls created by the authenticated user (optional) (default to false)
let mentioned: boolean; //Filter issues or pulls mentioning the authenticated user (optional) (default to false)
let reviewRequested: boolean; //Filter pull requests where the authenticated user\'s review was requested (optional) (default to false)
let reviewed: boolean; //Filter pull requests reviewed by the authenticated user (optional) (default to false)
let owner: string; //Filter by repository owner (optional) (default to undefined)
let team: string; //Filter by team (requires organization owner parameter) (optional) (default to undefined)
let page: number; //Page number of results to return (1-based) (optional) (default to 1)
let limit: number; //Number of items per page (optional) (default to undefined)

const { status, data } = await apiInstance.issueSearchIssues(
    state,
    labels,
    milestones,
    q,
    priorityRepoId,
    type,
    since,
    before,
    assigned,
    created,
    mentioned,
    reviewRequested,
    reviewed,
    owner,
    team,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **state** | [**&#39;open&#39; | &#39;closed&#39; | &#39;all&#39;**]**Array<&#39;open&#39; &#124; &#39;closed&#39; &#124; &#39;all&#39;>** | State of the issue | (optional) defaults to 'open'|
| **labels** | [**string**] | Comma-separated list of label names. Fetch only issues that have any of these labels. Non existent labels are discarded. | (optional) defaults to undefined|
| **milestones** | [**string**] | Comma-separated list of milestone names. Fetch only issues that have any of these milestones. Non existent milestones are discarded. | (optional) defaults to undefined|
| **q** | [**string**] | Search string | (optional) defaults to undefined|
| **priorityRepoId** | [**number**] | Repository ID to prioritize in the results | (optional) defaults to undefined|
| **type** | [**&#39;issues&#39; | &#39;pulls&#39;**]**Array<&#39;issues&#39; &#124; &#39;pulls&#39;>** | Filter by issue type | (optional) defaults to undefined|
| **since** | [**string**] | Only show issues updated after the given time (RFC 3339 format) | (optional) defaults to undefined|
| **before** | [**string**] | Only show issues updated before the given time (RFC 3339 format) | (optional) defaults to undefined|
| **assigned** | [**boolean**] | Filter issues or pulls assigned to the authenticated user | (optional) defaults to false|
| **created** | [**boolean**] | Filter issues or pulls created by the authenticated user | (optional) defaults to false|
| **mentioned** | [**boolean**] | Filter issues or pulls mentioning the authenticated user | (optional) defaults to false|
| **reviewRequested** | [**boolean**] | Filter pull requests where the authenticated user\&#39;s review was requested | (optional) defaults to false|
| **reviewed** | [**boolean**] | Filter pull requests reviewed by the authenticated user | (optional) defaults to false|
| **owner** | [**string**] | Filter by repository owner | (optional) defaults to undefined|
| **team** | [**string**] | Filter by team (requires organization owner parameter) | (optional) defaults to undefined|
| **page** | [**number**] | Page number of results to return (1-based) | (optional) defaults to 1|
| **limit** | [**number**] | Number of items per page | (optional) 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 |  -  |
|**400** | 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)

# **issueStartStopWatch**
> issueStartStopWatch()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to create the stopwatch on (default to undefined)

const { status, data } = await apiInstance.issueStartStopWatch(
    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 issue to create the stopwatch on | 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 |
|-------------|-------------|------------------|
|**201** | APIEmpty is an empty response |  -  |
|**403** | Not repo writer, user does not have rights to toggle stopwatch |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | Cannot start a stopwatch again if it already exists |  -  |

[[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)

# **issueStopStopWatch**
> issueStopStopWatch()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to stop the stopwatch on (default to undefined)

const { status, data } = await apiInstance.issueStopStopWatch(
    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 issue to stop the stopwatch on | 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 |
|-------------|-------------|------------------|
|**201** | APIEmpty is an empty response |  -  |
|**403** | Not repo writer, user does not have rights to toggle stopwatch |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**409** | Cannot stop a non existent stopwatch |  -  |

[[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)

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


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (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.issueSubscriptions(
    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 issue | 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)

# **issueTrackedTimes**
> Array<TrackedTime> issueTrackedTimes()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (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.issueTrackedTimes(
    owner,
    repo,
    index,
    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|
| **index** | [**number**] | index of the issue | 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 |  -  |
|**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)

# **moveIssuePin**
> moveIssuePin()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue (default to undefined)
let position: number; //the new position (default to undefined)

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

### 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 issue | defaults to undefined|
| **position** | [**number**] | the new position | 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)

# **pinIssue**
> pinIssue()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to pin (default to undefined)

const { status, data } = await apiInstance.pinIssue(
    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 issue to pin | 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)

# **unpinIssue**
> unpinIssue()


### Example

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

const configuration = new Configuration();
const apiInstance = new IssueApi(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 issue to unpin (default to undefined)

const { status, data } = await apiInstance.unpinIssue(
    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 issue to unpin | 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)

