@teemill/projects 1.44.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/api.ts +238 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +143 -1
- package/dist/api.js +152 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +143 -1
- package/dist/esm/api.js +151 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ProjectUser.md +2 -0
- package/docs/ProjectsApi.md +115 -0
- package/docs/SetupMethod.md +20 -0
- package/docs/TwoFactorAuthentication.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage PodOS Projects
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.46.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,6 +41,9 @@ export const ProjectUserTypeEnum = {
|
|
|
41
41
|
Service: 'service',
|
|
42
42
|
Ghost: 'ghost'
|
|
43
43
|
};
|
|
44
|
+
export const SetupMethodTypeEnum = {
|
|
45
|
+
Authenticator: 'authenticator'
|
|
46
|
+
};
|
|
44
47
|
/**
|
|
45
48
|
*
|
|
46
49
|
* @export
|
|
@@ -71,6 +74,40 @@ export const TemplateCode = {
|
|
|
71
74
|
*/
|
|
72
75
|
export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
73
76
|
return {
|
|
77
|
+
/**
|
|
78
|
+
* Archive all the done tasks in the workflow
|
|
79
|
+
* @summary Archive all done tasks
|
|
80
|
+
* @param {string} project Projects unique identifier
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
archiveTasks: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
85
|
+
// verify required parameter 'project' is not null or undefined
|
|
86
|
+
assertParamExists('archiveTasks', 'project', project);
|
|
87
|
+
const localVarPath = `/v1/projects/{project}/tasks/archive`
|
|
88
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
89
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
91
|
+
let baseOptions;
|
|
92
|
+
if (configuration) {
|
|
93
|
+
baseOptions = configuration.baseOptions;
|
|
94
|
+
}
|
|
95
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
96
|
+
const localVarHeaderParameter = {};
|
|
97
|
+
const localVarQueryParameter = {};
|
|
98
|
+
// authentication session-oauth required
|
|
99
|
+
// oauth required
|
|
100
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
101
|
+
// authentication api-key required
|
|
102
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
103
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
104
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
106
|
+
return {
|
|
107
|
+
url: toPathString(localVarUrlObj),
|
|
108
|
+
options: localVarRequestOptions,
|
|
109
|
+
};
|
|
110
|
+
}),
|
|
74
111
|
/**
|
|
75
112
|
* Update multiple tasks in the workflow at once
|
|
76
113
|
* @summary Bulk update tasks
|
|
@@ -1183,6 +1220,44 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1183
1220
|
options: localVarRequestOptions,
|
|
1184
1221
|
};
|
|
1185
1222
|
}),
|
|
1223
|
+
/**
|
|
1224
|
+
* Reset 2FA for a given user
|
|
1225
|
+
* @summary Reset 2FA
|
|
1226
|
+
* @param {string} project Projects unique identifier
|
|
1227
|
+
* @param {string} user the unique id of the user
|
|
1228
|
+
* @param {*} [options] Override http request option.
|
|
1229
|
+
* @throws {RequiredError}
|
|
1230
|
+
*/
|
|
1231
|
+
reset2FA: (project_1, user_1, ...args_1) => __awaiter(this, [project_1, user_1, ...args_1], void 0, function* (project, user, options = {}) {
|
|
1232
|
+
// verify required parameter 'project' is not null or undefined
|
|
1233
|
+
assertParamExists('reset2FA', 'project', project);
|
|
1234
|
+
// verify required parameter 'user' is not null or undefined
|
|
1235
|
+
assertParamExists('reset2FA', 'user', user);
|
|
1236
|
+
const localVarPath = `/v1/projects/{project}/users/{user}/reset-2fa`
|
|
1237
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1238
|
+
.replace(`{${"user"}}`, encodeURIComponent(String(user)));
|
|
1239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1240
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1241
|
+
let baseOptions;
|
|
1242
|
+
if (configuration) {
|
|
1243
|
+
baseOptions = configuration.baseOptions;
|
|
1244
|
+
}
|
|
1245
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1246
|
+
const localVarHeaderParameter = {};
|
|
1247
|
+
const localVarQueryParameter = {};
|
|
1248
|
+
// authentication session-oauth required
|
|
1249
|
+
// oauth required
|
|
1250
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1251
|
+
// authentication api-key required
|
|
1252
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1253
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1255
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1256
|
+
return {
|
|
1257
|
+
url: toPathString(localVarUrlObj),
|
|
1258
|
+
options: localVarRequestOptions,
|
|
1259
|
+
};
|
|
1260
|
+
}),
|
|
1186
1261
|
/**
|
|
1187
1262
|
* Setup an integration on the project
|
|
1188
1263
|
* @summary Setup integration
|
|
@@ -1521,6 +1596,22 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1521
1596
|
export const ProjectsApiFp = function (configuration) {
|
|
1522
1597
|
const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration);
|
|
1523
1598
|
return {
|
|
1599
|
+
/**
|
|
1600
|
+
* Archive all the done tasks in the workflow
|
|
1601
|
+
* @summary Archive all done tasks
|
|
1602
|
+
* @param {string} project Projects unique identifier
|
|
1603
|
+
* @param {*} [options] Override http request option.
|
|
1604
|
+
* @throws {RequiredError}
|
|
1605
|
+
*/
|
|
1606
|
+
archiveTasks(project, options) {
|
|
1607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1608
|
+
var _a, _b, _c;
|
|
1609
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveTasks(project, options);
|
|
1610
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1611
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.archiveTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1612
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1613
|
+
});
|
|
1614
|
+
},
|
|
1524
1615
|
/**
|
|
1525
1616
|
* Update multiple tasks in the workflow at once
|
|
1526
1617
|
* @summary Bulk update tasks
|
|
@@ -2023,6 +2114,23 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
2023
2114
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2024
2115
|
});
|
|
2025
2116
|
},
|
|
2117
|
+
/**
|
|
2118
|
+
* Reset 2FA for a given user
|
|
2119
|
+
* @summary Reset 2FA
|
|
2120
|
+
* @param {string} project Projects unique identifier
|
|
2121
|
+
* @param {string} user the unique id of the user
|
|
2122
|
+
* @param {*} [options] Override http request option.
|
|
2123
|
+
* @throws {RequiredError}
|
|
2124
|
+
*/
|
|
2125
|
+
reset2FA(project, user, options) {
|
|
2126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2127
|
+
var _a, _b, _c;
|
|
2128
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reset2FA(project, user, options);
|
|
2129
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2130
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.reset2FA']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2131
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2132
|
+
});
|
|
2133
|
+
},
|
|
2026
2134
|
/**
|
|
2027
2135
|
* Setup an integration on the project
|
|
2028
2136
|
* @summary Setup integration
|
|
@@ -2173,6 +2281,16 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
2173
2281
|
export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
2174
2282
|
const localVarFp = ProjectsApiFp(configuration);
|
|
2175
2283
|
return {
|
|
2284
|
+
/**
|
|
2285
|
+
* Archive all the done tasks in the workflow
|
|
2286
|
+
* @summary Archive all done tasks
|
|
2287
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
2288
|
+
* @param {*} [options] Override http request option.
|
|
2289
|
+
* @throws {RequiredError}
|
|
2290
|
+
*/
|
|
2291
|
+
archiveTasks(requestParameters, options) {
|
|
2292
|
+
return localVarFp.archiveTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2293
|
+
},
|
|
2176
2294
|
/**
|
|
2177
2295
|
* Update multiple tasks in the workflow at once
|
|
2178
2296
|
* @summary Bulk update tasks
|
|
@@ -2473,6 +2591,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2473
2591
|
listTasks(requestParameters, options) {
|
|
2474
2592
|
return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2475
2593
|
},
|
|
2594
|
+
/**
|
|
2595
|
+
* Reset 2FA for a given user
|
|
2596
|
+
* @summary Reset 2FA
|
|
2597
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
2598
|
+
* @param {*} [options] Override http request option.
|
|
2599
|
+
* @throws {RequiredError}
|
|
2600
|
+
*/
|
|
2601
|
+
reset2FA(requestParameters, options) {
|
|
2602
|
+
return localVarFp.reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
2603
|
+
},
|
|
2476
2604
|
/**
|
|
2477
2605
|
* Setup an integration on the project
|
|
2478
2606
|
* @summary Setup integration
|
|
@@ -2562,6 +2690,17 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2562
2690
|
* @extends {BaseAPI}
|
|
2563
2691
|
*/
|
|
2564
2692
|
export class ProjectsApi extends BaseAPI {
|
|
2693
|
+
/**
|
|
2694
|
+
* Archive all the done tasks in the workflow
|
|
2695
|
+
* @summary Archive all done tasks
|
|
2696
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
2697
|
+
* @param {*} [options] Override http request option.
|
|
2698
|
+
* @throws {RequiredError}
|
|
2699
|
+
* @memberof ProjectsApi
|
|
2700
|
+
*/
|
|
2701
|
+
archiveTasks(requestParameters, options) {
|
|
2702
|
+
return ProjectsApiFp(this.configuration).archiveTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2703
|
+
}
|
|
2565
2704
|
/**
|
|
2566
2705
|
* Update multiple tasks in the workflow at once
|
|
2567
2706
|
* @summary Bulk update tasks
|
|
@@ -2892,6 +3031,17 @@ export class ProjectsApi extends BaseAPI {
|
|
|
2892
3031
|
listTasks(requestParameters, options) {
|
|
2893
3032
|
return ProjectsApiFp(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2894
3033
|
}
|
|
3034
|
+
/**
|
|
3035
|
+
* Reset 2FA for a given user
|
|
3036
|
+
* @summary Reset 2FA
|
|
3037
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
3038
|
+
* @param {*} [options] Override http request option.
|
|
3039
|
+
* @throws {RequiredError}
|
|
3040
|
+
* @memberof ProjectsApi
|
|
3041
|
+
*/
|
|
3042
|
+
reset2FA(requestParameters, options) {
|
|
3043
|
+
return ProjectsApiFp(this.configuration).reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
3044
|
+
}
|
|
2895
3045
|
/**
|
|
2896
3046
|
* Setup an integration on the project
|
|
2897
3047
|
* @summary Setup integration
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/ProjectUser.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**username** | **string** | | [default to undefined]
|
|
14
14
|
**email** | **string** | | [default to undefined]
|
|
15
15
|
**avatar** | [**ProjectUserAvatar**](ProjectUserAvatar.md) | | [default to undefined]
|
|
16
|
+
**twoFactorAuthentication** | [**TwoFactorAuthentication**](TwoFactorAuthentication.md) | | [default to undefined]
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const instance: ProjectUser = {
|
|
|
28
29
|
username,
|
|
29
30
|
email,
|
|
30
31
|
avatar,
|
|
32
|
+
twoFactorAuthentication,
|
|
31
33
|
};
|
|
32
34
|
```
|
|
33
35
|
|
package/docs/ProjectsApi.md
CHANGED
|
@@ -4,6 +4,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**archiveTasks**](#archivetasks) | **GET** /v1/projects/{project}/tasks/archive | Archive all done tasks|
|
|
7
8
|
|[**bulkUpdateTasks**](#bulkupdatetasks) | **PATCH** /v1/projects/{project}/tasks | Bulk update tasks|
|
|
8
9
|
|[**createAuth**](#createauth) | **POST** /v1/projects/{project}/auth | Create auth token|
|
|
9
10
|
|[**createBookmark**](#createbookmark) | **POST** /v1/projects/{project}/bookmarks | Create bookmark|
|
|
@@ -34,6 +35,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
34
35
|
|[**listBookmarks**](#listbookmarks) | **GET** /v1/projects/{project}/bookmarks | List bookmarks|
|
|
35
36
|
|[**listBookmarktabs**](#listbookmarktabs) | **GET** /v1/projects/{project}/bookmarktabs | List bookmark tabs|
|
|
36
37
|
|[**listTasks**](#listtasks) | **GET** /v1/projects/{project}/tasks | List Tasks|
|
|
38
|
+
|[**reset2FA**](#reset2fa) | **POST** /v1/projects/{project}/users/{user}/reset-2fa | Reset 2FA|
|
|
37
39
|
|[**setupIntegration**](#setupintegration) | **POST** /v1/projects/{project}/integrations/{integration}/setup | Setup integration|
|
|
38
40
|
|[**uninstallIntegration**](#uninstallintegration) | **DELETE** /v1/projects/{project}/integrations/{integration} | Uninstall integration|
|
|
39
41
|
|[**updateBookmark**](#updatebookmark) | **PATCH** /v1/projects/{project}/bookmarks/{id} | Update bookmark|
|
|
@@ -43,6 +45,60 @@ All URIs are relative to *https://localhost:8080*
|
|
|
43
45
|
|[**updateTask**](#updatetask) | **PATCH** /v1/projects/{project}/tasks/{id} | Update Task|
|
|
44
46
|
|[**updateUser**](#updateuser) | **PATCH** /v1/projects/{project}/users/{user} | Update a user|
|
|
45
47
|
|
|
48
|
+
# **archiveTasks**
|
|
49
|
+
> archiveTasks()
|
|
50
|
+
|
|
51
|
+
Archive all the done tasks in the workflow
|
|
52
|
+
|
|
53
|
+
### Example
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
import {
|
|
57
|
+
ProjectsApi,
|
|
58
|
+
Configuration
|
|
59
|
+
} from '@teemill/projects';
|
|
60
|
+
|
|
61
|
+
const configuration = new Configuration();
|
|
62
|
+
const apiInstance = new ProjectsApi(configuration);
|
|
63
|
+
|
|
64
|
+
let project: string; //Projects unique identifier (default to undefined)
|
|
65
|
+
|
|
66
|
+
const { status, data } = await apiInstance.archiveTasks(
|
|
67
|
+
project
|
|
68
|
+
);
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
|Name | Type | Description | Notes|
|
|
74
|
+
|------------- | ------------- | ------------- | -------------|
|
|
75
|
+
| **project** | [**string**] | Projects unique identifier | defaults to undefined|
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Return type
|
|
79
|
+
|
|
80
|
+
void (empty response body)
|
|
81
|
+
|
|
82
|
+
### Authorization
|
|
83
|
+
|
|
84
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
85
|
+
|
|
86
|
+
### HTTP request headers
|
|
87
|
+
|
|
88
|
+
- **Content-Type**: Not defined
|
|
89
|
+
- **Accept**: application/json
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### HTTP response details
|
|
93
|
+
| Status code | Description | Response headers |
|
|
94
|
+
|-------------|-------------|------------------|
|
|
95
|
+
|**204** | Tasks archived | - |
|
|
96
|
+
|**401** | Not authorised to access this resource | - |
|
|
97
|
+
|**403** | Refuse to authorize | - |
|
|
98
|
+
|**500** | Unknown server error | - |
|
|
99
|
+
|
|
100
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
101
|
+
|
|
46
102
|
# **bulkUpdateTasks**
|
|
47
103
|
> ListTasksResponse bulkUpdateTasks(bulkUpdateTasksRequest)
|
|
48
104
|
|
|
@@ -1767,6 +1823,65 @@ const { status, data } = await apiInstance.listTasks(
|
|
|
1767
1823
|
|
|
1768
1824
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1769
1825
|
|
|
1826
|
+
# **reset2FA**
|
|
1827
|
+
> reset2FA()
|
|
1828
|
+
|
|
1829
|
+
Reset 2FA for a given user
|
|
1830
|
+
|
|
1831
|
+
### Example
|
|
1832
|
+
|
|
1833
|
+
```typescript
|
|
1834
|
+
import {
|
|
1835
|
+
ProjectsApi,
|
|
1836
|
+
Configuration
|
|
1837
|
+
} from '@teemill/projects';
|
|
1838
|
+
|
|
1839
|
+
const configuration = new Configuration();
|
|
1840
|
+
const apiInstance = new ProjectsApi(configuration);
|
|
1841
|
+
|
|
1842
|
+
let project: string; //Projects unique identifier (default to undefined)
|
|
1843
|
+
let user: string; //the unique id of the user (default to undefined)
|
|
1844
|
+
|
|
1845
|
+
const { status, data } = await apiInstance.reset2FA(
|
|
1846
|
+
project,
|
|
1847
|
+
user
|
|
1848
|
+
);
|
|
1849
|
+
```
|
|
1850
|
+
|
|
1851
|
+
### Parameters
|
|
1852
|
+
|
|
1853
|
+
|Name | Type | Description | Notes|
|
|
1854
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1855
|
+
| **project** | [**string**] | Projects unique identifier | defaults to undefined|
|
|
1856
|
+
| **user** | [**string**] | the unique id of the user | defaults to undefined|
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
### Return type
|
|
1860
|
+
|
|
1861
|
+
void (empty response body)
|
|
1862
|
+
|
|
1863
|
+
### Authorization
|
|
1864
|
+
|
|
1865
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
1866
|
+
|
|
1867
|
+
### HTTP request headers
|
|
1868
|
+
|
|
1869
|
+
- **Content-Type**: Not defined
|
|
1870
|
+
- **Accept**: application/json
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
### HTTP response details
|
|
1874
|
+
| Status code | Description | Response headers |
|
|
1875
|
+
|-------------|-------------|------------------|
|
|
1876
|
+
|**200** | Two-factor authentication successfully reset | - |
|
|
1877
|
+
|**400** | Failed validation | - |
|
|
1878
|
+
|**401** | Not authorised to access this resource | - |
|
|
1879
|
+
|**403** | Refuse to authorize | - |
|
|
1880
|
+
|**404** | Resource not found | - |
|
|
1881
|
+
|**500** | Unknown server error | - |
|
|
1882
|
+
|
|
1883
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1884
|
+
|
|
1770
1885
|
# **setupIntegration**
|
|
1771
1886
|
> Integration setupIntegration(updateIntegrationRequest)
|
|
1772
1887
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# SetupMethod
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { SetupMethod } from '@teemill/projects';
|
|
14
|
+
|
|
15
|
+
const instance: SetupMethod = {
|
|
16
|
+
type,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# TwoFactorAuthentication
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**required** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
**setupMethods** | [**Array<SetupMethod>**](SetupMethod.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { TwoFactorAuthentication } from '@teemill/projects';
|
|
15
|
+
|
|
16
|
+
const instance: TwoFactorAuthentication = {
|
|
17
|
+
required,
|
|
18
|
+
setupMethods,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED