# UserApi

All URIs are relative to */api/v1*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**createCurrentUserRepo**](#createcurrentuserrepo) | **POST** /user/repos | Create a repository|
|[**createUserVariable**](#createuservariable) | **POST** /user/actions/variables/{variablename} | Create a user-level variable|
|[**deleteUserSecret**](#deleteusersecret) | **DELETE** /user/actions/secrets/{secretname} | Delete a secret in a user scope|
|[**deleteUserVariable**](#deleteuservariable) | **DELETE** /user/actions/variables/{variablename} | Delete a user-level variable which is created by current doer|
|[**getUserSettings**](#getusersettings) | **GET** /user/settings | Get user settings|
|[**getUserVariable**](#getuservariable) | **GET** /user/actions/variables/{variablename} | Get a user-level variable which is created by current doer|
|[**getUserVariablesList**](#getuservariableslist) | **GET** /user/actions/variables | Get the user-level list of variables which is created by current doer|
|[**getVerificationToken**](#getverificationtoken) | **GET** /user/gpg_key_token | Get a Token to verify|
|[**updateUserSecret**](#updateusersecret) | **PUT** /user/actions/secrets/{secretname} | Create or Update a secret value in a user scope|
|[**updateUserSettings**](#updateusersettings) | **PATCH** /user/settings | Update user settings|
|[**updateUserVariable**](#updateuservariable) | **PUT** /user/actions/variables/{variablename} | Update a user-level variable which is created by current doer|
|[**userAddEmail**](#useraddemail) | **POST** /user/emails | Add email addresses|
|[**userBlockUser**](#userblockuser) | **PUT** /user/block/{username} | Blocks a user from the doer.|
|[**userCheckFollowing**](#usercheckfollowing) | **GET** /users/{username}/following/{target} | Check if one user is following another user|
|[**userCheckQuota**](#usercheckquota) | **GET** /user/quota/check | Check if the authenticated user is over quota for a given subject|
|[**userCreateHook**](#usercreatehook) | **POST** /user/hooks | Create a hook|
|[**userCreateOAuth2Application**](#usercreateoauth2application) | **POST** /user/applications/oauth2 | creates a new OAuth2 application|
|[**userCreateToken**](#usercreatetoken) | **POST** /users/{username}/tokens | Create an access token|
|[**userCurrentCheckFollowing**](#usercurrentcheckfollowing) | **GET** /user/following/{username} | Check whether a user is followed by the authenticated user|
|[**userCurrentCheckStarring**](#usercurrentcheckstarring) | **GET** /user/starred/{owner}/{repo} | Whether the authenticated is starring the repo|
|[**userCurrentDeleteFollow**](#usercurrentdeletefollow) | **DELETE** /user/following/{username} | Unfollow a user|
|[**userCurrentDeleteGPGKey**](#usercurrentdeletegpgkey) | **DELETE** /user/gpg_keys/{id} | Remove a GPG key|
|[**userCurrentDeleteKey**](#usercurrentdeletekey) | **DELETE** /user/keys/{id} | Delete a public key|
|[**userCurrentDeleteStar**](#usercurrentdeletestar) | **DELETE** /user/starred/{owner}/{repo} | Unstar the given repo|
|[**userCurrentGetGPGKey**](#usercurrentgetgpgkey) | **GET** /user/gpg_keys/{id} | Get a GPG key|
|[**userCurrentGetKey**](#usercurrentgetkey) | **GET** /user/keys/{id} | Get a public key|
|[**userCurrentListFollowers**](#usercurrentlistfollowers) | **GET** /user/followers | List the authenticated user\&#39;s followers|
|[**userCurrentListFollowing**](#usercurrentlistfollowing) | **GET** /user/following | List the users that the authenticated user is following|
|[**userCurrentListGPGKeys**](#usercurrentlistgpgkeys) | **GET** /user/gpg_keys | List the authenticated user\&#39;s GPG keys|
|[**userCurrentListKeys**](#usercurrentlistkeys) | **GET** /user/keys | List the authenticated user\&#39;s public keys|
|[**userCurrentListRepos**](#usercurrentlistrepos) | **GET** /user/repos | List the repos that the authenticated user owns|
|[**userCurrentListStarred**](#usercurrentliststarred) | **GET** /user/starred | The repos that the authenticated user has starred|
|[**userCurrentListSubscriptions**](#usercurrentlistsubscriptions) | **GET** /user/subscriptions | List repositories watched by the authenticated user|
|[**userCurrentPostGPGKey**](#usercurrentpostgpgkey) | **POST** /user/gpg_keys | Create a GPG key|
|[**userCurrentPostKey**](#usercurrentpostkey) | **POST** /user/keys | Create a public key|
|[**userCurrentPutFollow**](#usercurrentputfollow) | **PUT** /user/following/{username} | Follow a user|
|[**userCurrentPutStar**](#usercurrentputstar) | **PUT** /user/starred/{owner}/{repo} | Star the given repo|
|[**userCurrentTrackedTimes**](#usercurrenttrackedtimes) | **GET** /user/times | List the current user\&#39;s tracked times|
|[**userDeleteAccessToken**](#userdeleteaccesstoken) | **DELETE** /users/{username}/tokens/{token} | delete an access token|
|[**userDeleteAvatar**](#userdeleteavatar) | **DELETE** /user/avatar | Delete Avatar|
|[**userDeleteEmail**](#userdeleteemail) | **DELETE** /user/emails | Delete email addresses|
|[**userDeleteHook**](#userdeletehook) | **DELETE** /user/hooks/{id} | Delete a hook|
|[**userDeleteOAuth2Application**](#userdeleteoauth2application) | **DELETE** /user/applications/oauth2/{id} | delete an OAuth2 Application|
|[**userEditHook**](#useredithook) | **PATCH** /user/hooks/{id} | Update a hook|
|[**userGet**](#userget) | **GET** /users/{username} | Get a user|
|[**userGetCurrent**](#usergetcurrent) | **GET** /user | Get the authenticated user|
|[**userGetHeatmapData**](#usergetheatmapdata) | **GET** /users/{username}/heatmap | Get a user\&#39;s heatmap|
|[**userGetHook**](#usergethook) | **GET** /user/hooks/{id} | Get a hook|
|[**userGetOAuth2Application**](#usergetoauth2application) | **GET** /user/applications/oauth2/{id} | get an OAuth2 Application|
|[**userGetOAuth2Applications**](#usergetoauth2applications) | **GET** /user/applications/oauth2 | List the authenticated user\&#39;s oauth2 applications|
|[**userGetQuota**](#usergetquota) | **GET** /user/quota | Get quota information for the authenticated user|
|[**userGetRunnerRegistrationToken**](#usergetrunnerregistrationtoken) | **GET** /user/actions/runners/registration-token | Get an user\&#39;s actions runner registration token|
|[**userGetStopWatches**](#usergetstopwatches) | **GET** /user/stopwatches | Get list of all existing stopwatches|
|[**userGetTokens**](#usergettokens) | **GET** /users/{username}/tokens | List the authenticated user\&#39;s access tokens|
|[**userListActivityFeeds**](#userlistactivityfeeds) | **GET** /users/{username}/activities/feeds | List a user\&#39;s activity feeds|
|[**userListBlockedUsers**](#userlistblockedusers) | **GET** /user/list_blocked | List the authenticated user\&#39;s blocked users|
|[**userListEmails**](#userlistemails) | **GET** /user/emails | List the authenticated user\&#39;s email addresses|
|[**userListFollowers**](#userlistfollowers) | **GET** /users/{username}/followers | List the given user\&#39;s followers|
|[**userListFollowing**](#userlistfollowing) | **GET** /users/{username}/following | List the users that the given user is following|
|[**userListGPGKeys**](#userlistgpgkeys) | **GET** /users/{username}/gpg_keys | List the given user\&#39;s GPG keys|
|[**userListHooks**](#userlisthooks) | **GET** /user/hooks | List the authenticated user\&#39;s webhooks|
|[**userListKeys**](#userlistkeys) | **GET** /users/{username}/keys | List the given user\&#39;s public keys|
|[**userListQuotaArtifacts**](#userlistquotaartifacts) | **GET** /user/quota/artifacts | List the artifacts affecting the authenticated user\&#39;s quota|
|[**userListQuotaAttachments**](#userlistquotaattachments) | **GET** /user/quota/attachments | List the attachments affecting the authenticated user\&#39;s quota|
|[**userListQuotaPackages**](#userlistquotapackages) | **GET** /user/quota/packages | List the packages affecting the authenticated user\&#39;s quota|
|[**userListRepos**](#userlistrepos) | **GET** /users/{username}/repos | List the repos owned by the given user|
|[**userListStarred**](#userliststarred) | **GET** /users/{username}/starred | The repos that the given user has starred|
|[**userListSubscriptions**](#userlistsubscriptions) | **GET** /users/{username}/subscriptions | List the repositories watched by a user|
|[**userListTeams**](#userlistteams) | **GET** /user/teams | List all the teams a user belongs to|
|[**userSearch**](#usersearch) | **GET** /users/search | Search for users|
|[**userSearchRunJobs**](#usersearchrunjobs) | **GET** /user/actions/runners/jobs | Search for user\&#39;s action jobs according filter conditions|
|[**userUnblockUser**](#userunblockuser) | **PUT** /user/unblock/{username} | Unblocks a user from the doer.|
|[**userUpdateAvatar**](#userupdateavatar) | **POST** /user/avatar | Update Avatar|
|[**userUpdateOAuth2Application**](#userupdateoauth2application) | **PATCH** /user/applications/oauth2/{id} | update an OAuth2 Application, this includes regenerating the client secret|
|[**userVerifyGPGKey**](#userverifygpgkey) | **POST** /user/gpg_key_verify | Verify a GPG key|

# **createCurrentUserRepo**
> Repository createCurrentUserRepo()


### Example

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

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

let body: CreateRepoOption; // (optional)

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

### Parameters

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


### Return type

**Repository**

### Authorization

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

### HTTP request headers

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


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

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

# **createUserVariable**
> createUserVariable()


### Example

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

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

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

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

### Parameters

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


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when creating a variable |  -  |
|**204** | response when creating a variable |  -  |
|**400** | APIError is error format response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **deleteUserSecret**
> deleteUserSecret()


### Example

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

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

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

const { status, data } = await apiInstance.deleteUserSecret(
    secretname
);
```

### Parameters

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


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | delete one secret of the user |  -  |
|**400** | APIError is error format response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **deleteUserVariable**
> deleteUserVariable()


### Example

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

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

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

const { status, data } = await apiInstance.deleteUserVariable(
    variablename
);
```

### Parameters

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


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when deleting a variable |  -  |
|**204** | response when deleting a variable |  -  |
|**400** | APIError is error format response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **getUserSettings**
> UserSettings getUserSettings()


### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### Return type

**UserSettings**

### 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** | UserSettings |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **getUserVariable**
> ActionVariable getUserVariable()


### Example

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

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

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

const { status, data } = await apiInstance.getUserVariable(
    variablename
);
```

### Parameters

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


### Return type

**ActionVariable**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActionVariable |  -  |
|**400** | APIError is error format response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

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


### Example

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

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

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.getUserVariablesList(
    page,
    limit
);
```

### Parameters

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


### Return type

**Array<ActionVariable>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | VariableList |  -  |
|**400** | APIError is error format response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **getVerificationToken**
> string getVerificationToken()


### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### Return type

**string**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | APIString is a string response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **updateUserSecret**
> updateUserSecret()


### Example

```typescript
import {
    UserApi,
    Configuration,
    CreateOrUpdateSecretOption
} from 'berg';

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

let secretname: string; //name of the secret (default to undefined)
let body: CreateOrUpdateSecretOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateOrUpdateSecretOption**|  | |
| **secretname** | [**string**] | name of the secret | defaults to undefined|


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when creating a secret |  -  |
|**204** | response when updating a secret |  -  |
|**400** | APIError is error format response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **updateUserSettings**
> UserSettings updateUserSettings()


### Example

```typescript
import {
    UserApi,
    Configuration,
    UserSettingsOptions
} from 'berg';

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

let body: UserSettingsOptions; // (optional)

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

### Parameters

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


### Return type

**UserSettings**

### 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** | UserSettings |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **updateUserVariable**
> updateUserVariable()


### Example

```typescript
import {
    UserApi,
    Configuration,
    UpdateVariableOption
} from 'berg';

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

let variablename: string; //name of the variable (default to undefined)
let body: UpdateVariableOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **UpdateVariableOption**|  | |
| **variablename** | [**string**] | name of the variable | defaults to undefined|


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when updating a variable |  -  |
|**204** | response when updating a variable |  -  |
|**400** | APIError is error format response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userAddEmail**
> Array<Email> userAddEmail()


### Example

```typescript
import {
    UserApi,
    Configuration,
    CreateEmailOption
} from 'berg';

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

let body: CreateEmailOption; // (optional)

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

### Parameters

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


### Return type

**Array<Email>**

### 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** | EmailList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden 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)

# **userBlockUser**
> userBlockUser()


### Example

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

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

let username: string; //username of the user (default to undefined)

const { status, data } = await apiInstance.userBlockUser(
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of the user | 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCheckFollowing**
> userCheckFollowing()


### Example

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

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

let username: string; //username of following user (default to undefined)
let target: string; //username of followed user (default to undefined)

const { status, data } = await apiInstance.userCheckFollowing(
    username,
    target
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of following user | defaults to undefined|
| **target** | [**string**] | username of followed user | 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)

# **userCheckQuota**
> userCheckQuota()


### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### 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** | Boolean |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden 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)

# **userCreateHook**
> Hook userCreateHook(body)


### Example

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

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

let body: CreateHookOption; //

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

### Parameters

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


### Return type

**Hook**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Hook |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userCreateOAuth2Application**
> OAuth2Application userCreateOAuth2Application(body)


### Example

```typescript
import {
    UserApi,
    Configuration,
    CreateOAuth2ApplicationOptions
} from 'berg';

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

let body: CreateOAuth2ApplicationOptions; //

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

### Parameters

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


### Return type

**OAuth2Application**

### 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** | OAuth2Application |  -  |
|**400** | APIError is error format response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userCreateToken**
> AccessToken userCreateToken()


### Example

```typescript
import {
    UserApi,
    Configuration,
    CreateAccessTokenOption
} from 'berg';

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

let username: string; //username of user (default to undefined)
let body: CreateAccessTokenOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateAccessTokenOption**|  | |
| **username** | [**string**] | username of user | defaults to undefined|


### Return type

**AccessToken**

### 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** | AccessToken represents an API access token. |  -  |
|**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)

# **userCurrentCheckFollowing**
> userCurrentCheckFollowing()


### Example

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

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

let username: string; //username of followed user (default to undefined)

const { status, data } = await apiInstance.userCurrentCheckFollowing(
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of followed user | 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCurrentCheckStarring**
> userCurrentCheckStarring()


### Example

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

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

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

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

### Parameters

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


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCurrentDeleteFollow**
> userCurrentDeleteFollow()


### Example

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

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

let username: string; //username of user to unfollow (default to undefined)

const { status, data } = await apiInstance.userCurrentDeleteFollow(
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user to unfollow | 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCurrentDeleteGPGKey**
> userCurrentDeleteGPGKey()


### Example

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

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

let id: number; //id of key to delete (default to undefined)

const { status, data } = await apiInstance.userCurrentDeleteGPGKey(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of key to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCurrentDeleteKey**
> userCurrentDeleteKey()


### Example

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

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

let id: number; //id of key to delete (default to undefined)

const { status, data } = await apiInstance.userCurrentDeleteKey(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of key to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCurrentDeleteStar**
> userCurrentDeleteStar()


### Example

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

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

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

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo to unstar | defaults to undefined|
| **repo** | [**string**] | name of the repo to unstar | 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCurrentGetGPGKey**
> GPGKey userCurrentGetGPGKey()


### Example

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

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

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

const { status, data } = await apiInstance.userCurrentGetGPGKey(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of key to get | defaults to undefined|


### Return type

**GPGKey**

### 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** | GPGKey |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCurrentGetKey**
> PublicKey userCurrentGetKey()


### Example

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

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

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

const { status, data } = await apiInstance.userCurrentGetKey(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of key to get | defaults to undefined|


### Return type

**PublicKey**

### 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** | PublicKey |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

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


### Example

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

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

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.userCurrentListFollowers(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

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


### Example

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

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

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.userCurrentListFollowing(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userCurrentListGPGKeys**
> Array<GPGKey> userCurrentListGPGKeys()


### Example

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

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

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.userCurrentListGPGKeys(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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<GPGKey>**

### 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** | GPGKeyList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userCurrentListKeys**
> Array<PublicKey> userCurrentListKeys()


### Example

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

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

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

const { status, data } = await apiInstance.userCurrentListKeys(
    fingerprint,
    page,
    limit
);
```

### Parameters

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


### Return type

**Array<PublicKey>**

### 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** | PublicKeyList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

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


### Example

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

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

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 orderBy: 'name' | 'id' | 'newest' | 'oldest' | 'recentupdate' | 'leastupdate' | 'reversealphabetically' | 'alphabetically' | 'reversesize' | 'size' | 'reversegitsize' | 'gitsize' | 'reverselfssize' | 'lfssize' | 'moststars' | 'feweststars' | 'mostforks' | 'fewestforks'; //order the repositories (optional) (default to undefined)

const { status, data } = await apiInstance.userCurrentListRepos(
    page,
    limit,
    orderBy
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|
| **orderBy** | [**&#39;name&#39; | &#39;id&#39; | &#39;newest&#39; | &#39;oldest&#39; | &#39;recentupdate&#39; | &#39;leastupdate&#39; | &#39;reversealphabetically&#39; | &#39;alphabetically&#39; | &#39;reversesize&#39; | &#39;size&#39; | &#39;reversegitsize&#39; | &#39;gitsize&#39; | &#39;reverselfssize&#39; | &#39;lfssize&#39; | &#39;moststars&#39; | &#39;feweststars&#39; | &#39;mostforks&#39; | &#39;fewestforks&#39;**]**Array<&#39;name&#39; &#124; &#39;id&#39; &#124; &#39;newest&#39; &#124; &#39;oldest&#39; &#124; &#39;recentupdate&#39; &#124; &#39;leastupdate&#39; &#124; &#39;reversealphabetically&#39; &#124; &#39;alphabetically&#39; &#124; &#39;reversesize&#39; &#124; &#39;size&#39; &#124; &#39;reversegitsize&#39; &#124; &#39;gitsize&#39; &#124; &#39;reverselfssize&#39; &#124; &#39;lfssize&#39; &#124; &#39;moststars&#39; &#124; &#39;feweststars&#39; &#124; &#39;mostforks&#39; &#124; &#39;fewestforks&#39;>** | order the repositories | (optional) defaults to undefined|


### Return type

**Array<Repository>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepositoryList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden 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)

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


### Example

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

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

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.userCurrentListStarred(
    page,
    limit
);
```

### Parameters

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


### Return type

**Array<Repository>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepositoryList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

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


### Example

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

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

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.userCurrentListSubscriptions(
    page,
    limit
);
```

### Parameters

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


### Return type

**Array<Repository>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepositoryList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userCurrentPostGPGKey**
> GPGKey userCurrentPostGPGKey()


### Example

```typescript
import {
    UserApi,
    Configuration,
    CreateGPGKeyOption
} from 'berg';

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

let form: CreateGPGKeyOption; // (optional)

const { status, data } = await apiInstance.userCurrentPostGPGKey(
    form
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **form** | **CreateGPGKeyOption**|  | |


### Return type

**GPGKey**

### 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** | GPGKey |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCurrentPostKey**
> PublicKey userCurrentPostKey()


### Example

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

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

let body: CreateKeyOption; // (optional)

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

### Parameters

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


### Return type

**PublicKey**

### 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** | PublicKey |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden 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)

# **userCurrentPutFollow**
> userCurrentPutFollow()


### Example

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

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

let username: string; //username of user to follow (default to undefined)

const { status, data } = await apiInstance.userCurrentPutFollow(
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user to follow | 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userCurrentPutStar**
> userCurrentPutStar()


### Example

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

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

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

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **owner** | [**string**] | owner of the repo to star | defaults to undefined|
| **repo** | [**string**] | name of the repo to star | 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

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


### Example

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

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

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

const { status, data } = await apiInstance.userCurrentTrackedTimes(
    page,
    limit,
    since,
    before
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (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|


### 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userDeleteAccessToken**
> userDeleteAccessToken()


### Example

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

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

let username: string; //username of user (default to undefined)
let token: string; //token to be deleted, identified by ID and if not available by name (default to undefined)

const { status, data } = await apiInstance.userDeleteAccessToken(
    username,
    token
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user | defaults to undefined|
| **token** | [**string**] | token to be deleted, 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


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

# **userDeleteAvatar**
> userDeleteAvatar()


### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userDeleteEmail**
> userDeleteEmail()


### Example

```typescript
import {
    UserApi,
    Configuration,
    DeleteEmailOption
} from 'berg';

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

let body: DeleteEmailOption; // (optional)

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

### Parameters

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


### 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userDeleteHook**
> userDeleteHook()


### Example

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

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

let id: number; //id of the hook to delete (default to undefined)

const { status, data } = await apiInstance.userDeleteHook(
    id
);
```

### Parameters

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


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userDeleteOAuth2Application**
> userDeleteOAuth2Application()


### Example

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

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

let id: number; //token to be deleted (default to undefined)

const { status, data } = await apiInstance.userDeleteOAuth2Application(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | token to be deleted | 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userEditHook**
> Hook userEditHook()


### Example

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

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

let id: number; //id of the hook to update (default to undefined)
let body: EditHookOption; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditHookOption**|  | |
| **id** | [**number**] | id of the hook to update | defaults to undefined|


### Return type

**Hook**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Hook |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userGet**
> User userGet()


### Example

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

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

let username: string; //username of user to get (default to undefined)

const { status, data } = await apiInstance.userGet(
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user to get | defaults to undefined|


### Return type

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

# **userGetCurrent**
> User userGetCurrent()


### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### Return type

**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** | User |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userGetHeatmapData**
> Array<UserHeatmapData> userGetHeatmapData()


### Example

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

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

let username: string; //username of user to get (default to undefined)

const { status, data } = await apiInstance.userGetHeatmapData(
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user to get | defaults to undefined|


### Return type

**Array<UserHeatmapData>**

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

# **userGetHook**
> Hook userGetHook()


### Example

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

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

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

const { status, data } = await apiInstance.userGetHook(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the hook to get | defaults to undefined|


### Return type

**Hook**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Hook |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userGetOAuth2Application**
> OAuth2Application userGetOAuth2Application()


### Example

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

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

let id: number; //Application ID to be found (default to undefined)

const { status, data } = await apiInstance.userGetOAuth2Application(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | Application ID to be found | defaults to undefined|


### Return type

**OAuth2Application**

### 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** | OAuth2Application |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userGetOAuth2Applications**
> Array<OAuth2Application> userGetOAuth2Applications()


### Example

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

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

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.userGetOAuth2Applications(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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<OAuth2Application>**

### 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** | OAuth2ApplicationList represents a list of OAuth2 applications. |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userGetQuota**
> QuotaInfo userGetQuota()


### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### Return type

**QuotaInfo**

### 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** | QuotaInfo |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userGetRunnerRegistrationToken**
> userGetRunnerRegistrationToken()


### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### 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** | RegistrationToken is a string used to register a runner with a server |  * token -  <br>  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userGetStopWatches**
> Array<StopWatch> userGetStopWatches()


### Example

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

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

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.userGetStopWatches(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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<StopWatch>**

### 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** | StopWatchList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userGetTokens**
> Array<AccessToken> userGetTokens()


### Example

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

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

let username: string; //username of user (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.userGetTokens(
    username,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user | 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<AccessToken>**

### 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** | AccessTokenList represents a list of API access token. |  -  |
|**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)

# **userListActivityFeeds**
> Array<Activity> userListActivityFeeds()


### Example

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

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

let username: string; //username of user (default to undefined)
let onlyPerformedBy: boolean; //if true, only show actions performed by the requested user (optional) (default to undefined)
let date: string; //the date of the activities to be found (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.userListActivityFeeds(
    username,
    onlyPerformedBy,
    date,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user | defaults to undefined|
| **onlyPerformedBy** | [**boolean**] | if true, only show actions performed by the requested user | (optional) defaults to undefined|
| **date** | [**string**] | the date of the activities to be found | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Activity>**

### Authorization

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

### HTTP request headers

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


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

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

# **userListBlockedUsers**
> Array<BlockedUser> userListBlockedUsers()


### Example

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

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

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.userListBlockedUsers(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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<BlockedUser>**

### 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** | BlockedUserList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userListEmails**
> Array<Email> userListEmails()


### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### Return type

**Array<Email>**

### 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** | EmailList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

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


### Example

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

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

let username: string; //username of user (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.userListFollowers(
    username,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user | 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)

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


### Example

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

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

let username: string; //username of user (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.userListFollowing(
    username,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user | 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)

# **userListGPGKeys**
> Array<GPGKey> userListGPGKeys()


### Example

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

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

let username: string; //username of user (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.userListGPGKeys(
    username,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user | 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<GPGKey>**

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

# **userListHooks**
> Array<Hook> userListHooks()


### Example

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

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

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.userListHooks(
    page,
    limit
);
```

### Parameters

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


### Return type

**Array<Hook>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | HookList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userListKeys**
> Array<PublicKey> userListKeys()


### Example

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

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

let username: string; //username of user (default to undefined)
let fingerprint: string; //fingerprint of the key (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.userListKeys(
    username,
    fingerprint,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user | defaults to undefined|
| **fingerprint** | [**string**] | fingerprint of the key | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<PublicKey>**

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

# **userListQuotaArtifacts**
> Array<QuotaUsedArtifact> userListQuotaArtifacts()


### Example

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

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

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.userListQuotaArtifacts(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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<QuotaUsedArtifact>**

### 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** | QuotaUsedArtifactList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userListQuotaAttachments**
> Array<QuotaUsedAttachment> userListQuotaAttachments()


### Example

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

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

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.userListQuotaAttachments(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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<QuotaUsedAttachment>**

### 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** | QuotaUsedAttachmentList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userListQuotaPackages**
> Array<QuotaUsedPackage> userListQuotaPackages()


### Example

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

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

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.userListQuotaPackages(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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<QuotaUsedPackage>**

### 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** | QuotaUsedPackageList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

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


### Example

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

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

let username: string; //username of user (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.userListRepos(
    username,
    page,
    limit
);
```

### Parameters

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


### Return type

**Array<Repository>**

### Authorization

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

### HTTP request headers

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


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

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

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


### Example

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

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

let username: string; //username of user (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.userListStarred(
    username,
    page,
    limit
);
```

### Parameters

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


### Return type

**Array<Repository>**

### Authorization

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

### HTTP request headers

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


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

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

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


### Example

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

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

let username: string; //username of the user (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.userListSubscriptions(
    username,
    page,
    limit
);
```

### Parameters

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


### Return type

**Array<Repository>**

### Authorization

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

### HTTP request headers

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


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

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

# **userListTeams**
> Array<Team> userListTeams()


### Example

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

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

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.userListTeams(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **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<Team>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TeamList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userSearch**
> UserSearch200Response userSearch()


### Example

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

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

let q: string; //keyword (optional) (default to undefined)
let uid: number; //ID of the user to search for (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.userSearch(
    q,
    uid,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **q** | [**string**] | keyword | (optional) defaults to undefined|
| **uid** | [**number**] | ID of the user to search for | (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

**UserSearch200Response**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | SearchResults of a successful search |  -  |

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

# **userSearchRunJobs**
> Array<ActionRunJob> userSearchRunJobs()


### Example

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

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

let labels: string; //a comma separated list of run job labels to search for (optional) (default to undefined)

const { status, data } = await apiInstance.userSearchRunJobs(
    labels
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **labels** | [**string**] | a comma separated list of run job labels to search for | (optional) defaults to undefined|


### Return type

**Array<ActionRunJob>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RunJobList is a list of action run jobs |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userUnblockUser**
> userUnblockUser()


### Example

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

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

let username: string; //username of the user (default to undefined)

const { status, data } = await apiInstance.userUnblockUser(
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of the user | 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userUpdateAvatar**
> userUpdateAvatar()


### Example

```typescript
import {
    UserApi,
    Configuration,
    UpdateUserAvatarOption
} from 'berg';

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

let body: UpdateUserAvatarOption; // (optional)

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

### Parameters

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


### 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 |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

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

# **userUpdateOAuth2Application**
> OAuth2Application userUpdateOAuth2Application(body)


### Example

```typescript
import {
    UserApi,
    Configuration,
    CreateOAuth2ApplicationOptions
} from 'berg';

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

let id: number; //application to be updated (default to undefined)
let body: CreateOAuth2ApplicationOptions; //

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateOAuth2ApplicationOptions**|  | |
| **id** | [**number**] | application to be updated | defaults to undefined|


### Return type

**OAuth2Application**

### 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** | OAuth2Application |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

# **userVerifyGPGKey**
> GPGKey userVerifyGPGKey()


### Example

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

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

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

### Parameters
This endpoint does not have any parameters.


### Return type

**GPGKey**

### 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** | GPGKey |  -  |
|**401** | APIUnauthorizedError is a unauthorized error 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)

