@teemill/projects 1.45.1 → 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 +5 -2
- package/api.ts +148 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +97 -1
- package/dist/api.js +81 -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 +97 -1
- package/dist/esm/api.js +80 -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 +60 -0
- package/docs/SetupMethod.md +20 -0
- package/docs/TwoFactorAuthentication.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/projects@1.
|
|
1
|
+
## @teemill/projects@1.46.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/projects@1.
|
|
39
|
+
npm install @teemill/projects@1.46.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -82,6 +82,7 @@ Class | Method | HTTP request | Description
|
|
|
82
82
|
*ProjectsApi* | [**listBookmarks**](docs/ProjectsApi.md#listbookmarks) | **GET** /v1/projects/{project}/bookmarks | List bookmarks
|
|
83
83
|
*ProjectsApi* | [**listBookmarktabs**](docs/ProjectsApi.md#listbookmarktabs) | **GET** /v1/projects/{project}/bookmarktabs | List bookmark tabs
|
|
84
84
|
*ProjectsApi* | [**listTasks**](docs/ProjectsApi.md#listtasks) | **GET** /v1/projects/{project}/tasks | List Tasks
|
|
85
|
+
*ProjectsApi* | [**reset2FA**](docs/ProjectsApi.md#reset2fa) | **POST** /v1/projects/{project}/users/{user}/reset-2fa | Reset 2FA
|
|
85
86
|
*ProjectsApi* | [**setupIntegration**](docs/ProjectsApi.md#setupintegration) | **POST** /v1/projects/{project}/integrations/{integration}/setup | Setup integration
|
|
86
87
|
*ProjectsApi* | [**uninstallIntegration**](docs/ProjectsApi.md#uninstallintegration) | **DELETE** /v1/projects/{project}/integrations/{integration} | Uninstall integration
|
|
87
88
|
*ProjectsApi* | [**updateBookmark**](docs/ProjectsApi.md#updatebookmark) | **PATCH** /v1/projects/{project}/bookmarks/{id} | Update bookmark
|
|
@@ -132,12 +133,14 @@ Class | Method | HTTP request | Description
|
|
|
132
133
|
- [ProjectUserAvatar](docs/ProjectUserAvatar.md)
|
|
133
134
|
- [ProjectUsers](docs/ProjectUsers.md)
|
|
134
135
|
- [ProjectsResponse](docs/ProjectsResponse.md)
|
|
136
|
+
- [SetupMethod](docs/SetupMethod.md)
|
|
135
137
|
- [Task](docs/Task.md)
|
|
136
138
|
- [TaskStatus](docs/TaskStatus.md)
|
|
137
139
|
- [TaskSummary](docs/TaskSummary.md)
|
|
138
140
|
- [Template](docs/Template.md)
|
|
139
141
|
- [TemplateCode](docs/TemplateCode.md)
|
|
140
142
|
- [TemplatesResponse](docs/TemplatesResponse.md)
|
|
143
|
+
- [TwoFactorAuthentication](docs/TwoFactorAuthentication.md)
|
|
141
144
|
- [UpdateBookmarkRequest](docs/UpdateBookmarkRequest.md)
|
|
142
145
|
- [UpdateBookmarkTabsRequest](docs/UpdateBookmarkTabsRequest.md)
|
|
143
146
|
- [UpdateBookmarkTabsRequestTabsInner](docs/UpdateBookmarkTabsRequestTabsInner.md)
|
package/api.ts
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).
|
|
@@ -851,6 +851,12 @@ export interface ProjectUser {
|
|
|
851
851
|
* @memberof ProjectUser
|
|
852
852
|
*/
|
|
853
853
|
'avatar': ProjectUserAvatar;
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @type {TwoFactorAuthentication}
|
|
857
|
+
* @memberof ProjectUser
|
|
858
|
+
*/
|
|
859
|
+
'twoFactorAuthentication': TwoFactorAuthentication;
|
|
854
860
|
}
|
|
855
861
|
|
|
856
862
|
export const ProjectUserTypeEnum = {
|
|
@@ -906,6 +912,26 @@ export interface ProjectsResponse {
|
|
|
906
912
|
*/
|
|
907
913
|
'projects': Array<Project>;
|
|
908
914
|
}
|
|
915
|
+
/**
|
|
916
|
+
*
|
|
917
|
+
* @export
|
|
918
|
+
* @interface SetupMethod
|
|
919
|
+
*/
|
|
920
|
+
export interface SetupMethod {
|
|
921
|
+
/**
|
|
922
|
+
*
|
|
923
|
+
* @type {string}
|
|
924
|
+
* @memberof SetupMethod
|
|
925
|
+
*/
|
|
926
|
+
'type': SetupMethodTypeEnum;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
export const SetupMethodTypeEnum = {
|
|
930
|
+
Authenticator: 'authenticator'
|
|
931
|
+
} as const;
|
|
932
|
+
|
|
933
|
+
export type SetupMethodTypeEnum = typeof SetupMethodTypeEnum[keyof typeof SetupMethodTypeEnum];
|
|
934
|
+
|
|
909
935
|
/**
|
|
910
936
|
*
|
|
911
937
|
* @export
|
|
@@ -1172,6 +1198,25 @@ export interface TemplatesResponse {
|
|
|
1172
1198
|
*/
|
|
1173
1199
|
'templates': Array<Template>;
|
|
1174
1200
|
}
|
|
1201
|
+
/**
|
|
1202
|
+
*
|
|
1203
|
+
* @export
|
|
1204
|
+
* @interface TwoFactorAuthentication
|
|
1205
|
+
*/
|
|
1206
|
+
export interface TwoFactorAuthentication {
|
|
1207
|
+
/**
|
|
1208
|
+
*
|
|
1209
|
+
* @type {boolean}
|
|
1210
|
+
* @memberof TwoFactorAuthentication
|
|
1211
|
+
*/
|
|
1212
|
+
'required'?: boolean;
|
|
1213
|
+
/**
|
|
1214
|
+
*
|
|
1215
|
+
* @type {Array<SetupMethod>}
|
|
1216
|
+
* @memberof TwoFactorAuthentication
|
|
1217
|
+
*/
|
|
1218
|
+
'setupMethods'?: Array<SetupMethod>;
|
|
1219
|
+
}
|
|
1175
1220
|
/**
|
|
1176
1221
|
*
|
|
1177
1222
|
* @export
|
|
@@ -2755,6 +2800,51 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2755
2800
|
|
|
2756
2801
|
|
|
2757
2802
|
|
|
2803
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2804
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2805
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2806
|
+
|
|
2807
|
+
return {
|
|
2808
|
+
url: toPathString(localVarUrlObj),
|
|
2809
|
+
options: localVarRequestOptions,
|
|
2810
|
+
};
|
|
2811
|
+
},
|
|
2812
|
+
/**
|
|
2813
|
+
* Reset 2FA for a given user
|
|
2814
|
+
* @summary Reset 2FA
|
|
2815
|
+
* @param {string} project Projects unique identifier
|
|
2816
|
+
* @param {string} user the unique id of the user
|
|
2817
|
+
* @param {*} [options] Override http request option.
|
|
2818
|
+
* @throws {RequiredError}
|
|
2819
|
+
*/
|
|
2820
|
+
reset2FA: async (project: string, user: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2821
|
+
// verify required parameter 'project' is not null or undefined
|
|
2822
|
+
assertParamExists('reset2FA', 'project', project)
|
|
2823
|
+
// verify required parameter 'user' is not null or undefined
|
|
2824
|
+
assertParamExists('reset2FA', 'user', user)
|
|
2825
|
+
const localVarPath = `/v1/projects/{project}/users/{user}/reset-2fa`
|
|
2826
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
2827
|
+
.replace(`{${"user"}}`, encodeURIComponent(String(user)));
|
|
2828
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2829
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2830
|
+
let baseOptions;
|
|
2831
|
+
if (configuration) {
|
|
2832
|
+
baseOptions = configuration.baseOptions;
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2836
|
+
const localVarHeaderParameter = {} as any;
|
|
2837
|
+
const localVarQueryParameter = {} as any;
|
|
2838
|
+
|
|
2839
|
+
// authentication session-oauth required
|
|
2840
|
+
// oauth required
|
|
2841
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2842
|
+
|
|
2843
|
+
// authentication api-key required
|
|
2844
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2845
|
+
|
|
2846
|
+
|
|
2847
|
+
|
|
2758
2848
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2759
2849
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2760
2850
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3591,6 +3681,20 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
3591
3681
|
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.listTasks']?.[localVarOperationServerIndex]?.url;
|
|
3592
3682
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3593
3683
|
},
|
|
3684
|
+
/**
|
|
3685
|
+
* Reset 2FA for a given user
|
|
3686
|
+
* @summary Reset 2FA
|
|
3687
|
+
* @param {string} project Projects unique identifier
|
|
3688
|
+
* @param {string} user the unique id of the user
|
|
3689
|
+
* @param {*} [options] Override http request option.
|
|
3690
|
+
* @throws {RequiredError}
|
|
3691
|
+
*/
|
|
3692
|
+
async reset2FA(project: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3693
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reset2FA(project, user, options);
|
|
3694
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3695
|
+
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.reset2FA']?.[localVarOperationServerIndex]?.url;
|
|
3696
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3697
|
+
},
|
|
3594
3698
|
/**
|
|
3595
3699
|
* Setup an integration on the project
|
|
3596
3700
|
* @summary Setup integration
|
|
@@ -4028,6 +4132,16 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4028
4132
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTasksResponse> {
|
|
4029
4133
|
return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
4030
4134
|
},
|
|
4135
|
+
/**
|
|
4136
|
+
* Reset 2FA for a given user
|
|
4137
|
+
* @summary Reset 2FA
|
|
4138
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
4139
|
+
* @param {*} [options] Override http request option.
|
|
4140
|
+
* @throws {RequiredError}
|
|
4141
|
+
*/
|
|
4142
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4143
|
+
return localVarFp.reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
4144
|
+
},
|
|
4031
4145
|
/**
|
|
4032
4146
|
* Setup an integration on the project
|
|
4033
4147
|
* @summary Setup integration
|
|
@@ -4699,6 +4813,27 @@ export interface ProjectsApiListTasksRequest {
|
|
|
4699
4813
|
readonly project: string
|
|
4700
4814
|
}
|
|
4701
4815
|
|
|
4816
|
+
/**
|
|
4817
|
+
* Request parameters for reset2FA operation in ProjectsApi.
|
|
4818
|
+
* @export
|
|
4819
|
+
* @interface ProjectsApiReset2FARequest
|
|
4820
|
+
*/
|
|
4821
|
+
export interface ProjectsApiReset2FARequest {
|
|
4822
|
+
/**
|
|
4823
|
+
* Projects unique identifier
|
|
4824
|
+
* @type {string}
|
|
4825
|
+
* @memberof ProjectsApiReset2FA
|
|
4826
|
+
*/
|
|
4827
|
+
readonly project: string
|
|
4828
|
+
|
|
4829
|
+
/**
|
|
4830
|
+
* the unique id of the user
|
|
4831
|
+
* @type {string}
|
|
4832
|
+
* @memberof ProjectsApiReset2FA
|
|
4833
|
+
*/
|
|
4834
|
+
readonly user: string
|
|
4835
|
+
}
|
|
4836
|
+
|
|
4702
4837
|
/**
|
|
4703
4838
|
* Request parameters for setupIntegration operation in ProjectsApi.
|
|
4704
4839
|
* @export
|
|
@@ -5281,6 +5416,18 @@ export class ProjectsApi extends BaseAPI {
|
|
|
5281
5416
|
return ProjectsApiFp(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
5282
5417
|
}
|
|
5283
5418
|
|
|
5419
|
+
/**
|
|
5420
|
+
* Reset 2FA for a given user
|
|
5421
|
+
* @summary Reset 2FA
|
|
5422
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
5423
|
+
* @param {*} [options] Override http request option.
|
|
5424
|
+
* @throws {RequiredError}
|
|
5425
|
+
* @memberof ProjectsApi
|
|
5426
|
+
*/
|
|
5427
|
+
public reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig) {
|
|
5428
|
+
return ProjectsApiFp(this.configuration).reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
5429
|
+
}
|
|
5430
|
+
|
|
5284
5431
|
/**
|
|
5285
5432
|
* Setup an integration on the project
|
|
5286
5433
|
* @summary Setup integration
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage PodOS Projects
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.46.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -836,6 +836,12 @@ export interface ProjectUser {
|
|
|
836
836
|
* @memberof ProjectUser
|
|
837
837
|
*/
|
|
838
838
|
'avatar': ProjectUserAvatar;
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @type {TwoFactorAuthentication}
|
|
842
|
+
* @memberof ProjectUser
|
|
843
|
+
*/
|
|
844
|
+
'twoFactorAuthentication': TwoFactorAuthentication;
|
|
839
845
|
}
|
|
840
846
|
export declare const ProjectUserTypeEnum: {
|
|
841
847
|
readonly User: "user";
|
|
@@ -888,6 +894,23 @@ export interface ProjectsResponse {
|
|
|
888
894
|
*/
|
|
889
895
|
'projects': Array<Project>;
|
|
890
896
|
}
|
|
897
|
+
/**
|
|
898
|
+
*
|
|
899
|
+
* @export
|
|
900
|
+
* @interface SetupMethod
|
|
901
|
+
*/
|
|
902
|
+
export interface SetupMethod {
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @type {string}
|
|
906
|
+
* @memberof SetupMethod
|
|
907
|
+
*/
|
|
908
|
+
'type': SetupMethodTypeEnum;
|
|
909
|
+
}
|
|
910
|
+
export declare const SetupMethodTypeEnum: {
|
|
911
|
+
readonly Authenticator: "authenticator";
|
|
912
|
+
};
|
|
913
|
+
export type SetupMethodTypeEnum = typeof SetupMethodTypeEnum[keyof typeof SetupMethodTypeEnum];
|
|
891
914
|
/**
|
|
892
915
|
*
|
|
893
916
|
* @export
|
|
@@ -1140,6 +1163,25 @@ export interface TemplatesResponse {
|
|
|
1140
1163
|
*/
|
|
1141
1164
|
'templates': Array<Template>;
|
|
1142
1165
|
}
|
|
1166
|
+
/**
|
|
1167
|
+
*
|
|
1168
|
+
* @export
|
|
1169
|
+
* @interface TwoFactorAuthentication
|
|
1170
|
+
*/
|
|
1171
|
+
export interface TwoFactorAuthentication {
|
|
1172
|
+
/**
|
|
1173
|
+
*
|
|
1174
|
+
* @type {boolean}
|
|
1175
|
+
* @memberof TwoFactorAuthentication
|
|
1176
|
+
*/
|
|
1177
|
+
'required'?: boolean;
|
|
1178
|
+
/**
|
|
1179
|
+
*
|
|
1180
|
+
* @type {Array<SetupMethod>}
|
|
1181
|
+
* @memberof TwoFactorAuthentication
|
|
1182
|
+
*/
|
|
1183
|
+
'setupMethods'?: Array<SetupMethod>;
|
|
1184
|
+
}
|
|
1143
1185
|
/**
|
|
1144
1186
|
*
|
|
1145
1187
|
* @export
|
|
@@ -1620,6 +1662,15 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1620
1662
|
* @throws {RequiredError}
|
|
1621
1663
|
*/
|
|
1622
1664
|
listTasks: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1665
|
+
/**
|
|
1666
|
+
* Reset 2FA for a given user
|
|
1667
|
+
* @summary Reset 2FA
|
|
1668
|
+
* @param {string} project Projects unique identifier
|
|
1669
|
+
* @param {string} user the unique id of the user
|
|
1670
|
+
* @param {*} [options] Override http request option.
|
|
1671
|
+
* @throws {RequiredError}
|
|
1672
|
+
*/
|
|
1673
|
+
reset2FA: (project: string, user: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1623
1674
|
/**
|
|
1624
1675
|
* Setup an integration on the project
|
|
1625
1676
|
* @summary Setup integration
|
|
@@ -1973,6 +2024,15 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
1973
2024
|
* @throws {RequiredError}
|
|
1974
2025
|
*/
|
|
1975
2026
|
listTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponse>>;
|
|
2027
|
+
/**
|
|
2028
|
+
* Reset 2FA for a given user
|
|
2029
|
+
* @summary Reset 2FA
|
|
2030
|
+
* @param {string} project Projects unique identifier
|
|
2031
|
+
* @param {string} user the unique id of the user
|
|
2032
|
+
* @param {*} [options] Override http request option.
|
|
2033
|
+
* @throws {RequiredError}
|
|
2034
|
+
*/
|
|
2035
|
+
reset2FA(project: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1976
2036
|
/**
|
|
1977
2037
|
* Setup an integration on the project
|
|
1978
2038
|
* @summary Setup integration
|
|
@@ -2304,6 +2364,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
2304
2364
|
* @throws {RequiredError}
|
|
2305
2365
|
*/
|
|
2306
2366
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTasksResponse>;
|
|
2367
|
+
/**
|
|
2368
|
+
* Reset 2FA for a given user
|
|
2369
|
+
* @summary Reset 2FA
|
|
2370
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
2371
|
+
* @param {*} [options] Override http request option.
|
|
2372
|
+
* @throws {RequiredError}
|
|
2373
|
+
*/
|
|
2374
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2307
2375
|
/**
|
|
2308
2376
|
* Setup an integration on the project
|
|
2309
2377
|
* @summary Setup integration
|
|
@@ -2904,6 +2972,25 @@ export interface ProjectsApiListTasksRequest {
|
|
|
2904
2972
|
*/
|
|
2905
2973
|
readonly project: string;
|
|
2906
2974
|
}
|
|
2975
|
+
/**
|
|
2976
|
+
* Request parameters for reset2FA operation in ProjectsApi.
|
|
2977
|
+
* @export
|
|
2978
|
+
* @interface ProjectsApiReset2FARequest
|
|
2979
|
+
*/
|
|
2980
|
+
export interface ProjectsApiReset2FARequest {
|
|
2981
|
+
/**
|
|
2982
|
+
* Projects unique identifier
|
|
2983
|
+
* @type {string}
|
|
2984
|
+
* @memberof ProjectsApiReset2FA
|
|
2985
|
+
*/
|
|
2986
|
+
readonly project: string;
|
|
2987
|
+
/**
|
|
2988
|
+
* the unique id of the user
|
|
2989
|
+
* @type {string}
|
|
2990
|
+
* @memberof ProjectsApiReset2FA
|
|
2991
|
+
*/
|
|
2992
|
+
readonly user: string;
|
|
2993
|
+
}
|
|
2907
2994
|
/**
|
|
2908
2995
|
* Request parameters for setupIntegration operation in ProjectsApi.
|
|
2909
2996
|
* @export
|
|
@@ -3372,6 +3459,15 @@ export declare class ProjectsApi extends BaseAPI {
|
|
|
3372
3459
|
* @memberof ProjectsApi
|
|
3373
3460
|
*/
|
|
3374
3461
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTasksResponse, any>>;
|
|
3462
|
+
/**
|
|
3463
|
+
* Reset 2FA for a given user
|
|
3464
|
+
* @summary Reset 2FA
|
|
3465
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
3466
|
+
* @param {*} [options] Override http request option.
|
|
3467
|
+
* @throws {RequiredError}
|
|
3468
|
+
* @memberof ProjectsApi
|
|
3469
|
+
*/
|
|
3470
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3375
3471
|
/**
|
|
3376
3472
|
* Setup an integration on the project
|
|
3377
3473
|
* @summary Setup integration
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage PodOS Projects
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.46.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.TemplateCode = exports.TaskStatus = exports.ProjectUserTypeEnum = exports.OkrLevel = void 0;
|
|
25
|
+
exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.TemplateCode = exports.TaskStatus = exports.SetupMethodTypeEnum = exports.ProjectUserTypeEnum = exports.OkrLevel = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -44,6 +44,9 @@ exports.ProjectUserTypeEnum = {
|
|
|
44
44
|
Service: 'service',
|
|
45
45
|
Ghost: 'ghost'
|
|
46
46
|
};
|
|
47
|
+
exports.SetupMethodTypeEnum = {
|
|
48
|
+
Authenticator: 'authenticator'
|
|
49
|
+
};
|
|
47
50
|
/**
|
|
48
51
|
*
|
|
49
52
|
* @export
|
|
@@ -1220,6 +1223,44 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1220
1223
|
options: localVarRequestOptions,
|
|
1221
1224
|
};
|
|
1222
1225
|
}),
|
|
1226
|
+
/**
|
|
1227
|
+
* Reset 2FA for a given user
|
|
1228
|
+
* @summary Reset 2FA
|
|
1229
|
+
* @param {string} project Projects unique identifier
|
|
1230
|
+
* @param {string} user the unique id of the user
|
|
1231
|
+
* @param {*} [options] Override http request option.
|
|
1232
|
+
* @throws {RequiredError}
|
|
1233
|
+
*/
|
|
1234
|
+
reset2FA: (project_1, user_1, ...args_1) => __awaiter(this, [project_1, user_1, ...args_1], void 0, function* (project, user, options = {}) {
|
|
1235
|
+
// verify required parameter 'project' is not null or undefined
|
|
1236
|
+
(0, common_1.assertParamExists)('reset2FA', 'project', project);
|
|
1237
|
+
// verify required parameter 'user' is not null or undefined
|
|
1238
|
+
(0, common_1.assertParamExists)('reset2FA', 'user', user);
|
|
1239
|
+
const localVarPath = `/v1/projects/{project}/users/{user}/reset-2fa`
|
|
1240
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1241
|
+
.replace(`{${"user"}}`, encodeURIComponent(String(user)));
|
|
1242
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1243
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1244
|
+
let baseOptions;
|
|
1245
|
+
if (configuration) {
|
|
1246
|
+
baseOptions = configuration.baseOptions;
|
|
1247
|
+
}
|
|
1248
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1249
|
+
const localVarHeaderParameter = {};
|
|
1250
|
+
const localVarQueryParameter = {};
|
|
1251
|
+
// authentication session-oauth required
|
|
1252
|
+
// oauth required
|
|
1253
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1254
|
+
// authentication api-key required
|
|
1255
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1256
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1257
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1258
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1259
|
+
return {
|
|
1260
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1261
|
+
options: localVarRequestOptions,
|
|
1262
|
+
};
|
|
1263
|
+
}),
|
|
1223
1264
|
/**
|
|
1224
1265
|
* Setup an integration on the project
|
|
1225
1266
|
* @summary Setup integration
|
|
@@ -2077,6 +2118,23 @@ const ProjectsApiFp = function (configuration) {
|
|
|
2077
2118
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2078
2119
|
});
|
|
2079
2120
|
},
|
|
2121
|
+
/**
|
|
2122
|
+
* Reset 2FA for a given user
|
|
2123
|
+
* @summary Reset 2FA
|
|
2124
|
+
* @param {string} project Projects unique identifier
|
|
2125
|
+
* @param {string} user the unique id of the user
|
|
2126
|
+
* @param {*} [options] Override http request option.
|
|
2127
|
+
* @throws {RequiredError}
|
|
2128
|
+
*/
|
|
2129
|
+
reset2FA(project, user, options) {
|
|
2130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2131
|
+
var _a, _b, _c;
|
|
2132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reset2FA(project, user, options);
|
|
2133
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2134
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.reset2FA']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2135
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2136
|
+
});
|
|
2137
|
+
},
|
|
2080
2138
|
/**
|
|
2081
2139
|
* Setup an integration on the project
|
|
2082
2140
|
* @summary Setup integration
|
|
@@ -2538,6 +2596,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2538
2596
|
listTasks(requestParameters, options) {
|
|
2539
2597
|
return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2540
2598
|
},
|
|
2599
|
+
/**
|
|
2600
|
+
* Reset 2FA for a given user
|
|
2601
|
+
* @summary Reset 2FA
|
|
2602
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
2603
|
+
* @param {*} [options] Override http request option.
|
|
2604
|
+
* @throws {RequiredError}
|
|
2605
|
+
*/
|
|
2606
|
+
reset2FA(requestParameters, options) {
|
|
2607
|
+
return localVarFp.reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
2608
|
+
},
|
|
2541
2609
|
/**
|
|
2542
2610
|
* Setup an integration on the project
|
|
2543
2611
|
* @summary Setup integration
|
|
@@ -2969,6 +3037,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
2969
3037
|
listTasks(requestParameters, options) {
|
|
2970
3038
|
return (0, exports.ProjectsApiFp)(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2971
3039
|
}
|
|
3040
|
+
/**
|
|
3041
|
+
* Reset 2FA for a given user
|
|
3042
|
+
* @summary Reset 2FA
|
|
3043
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
3044
|
+
* @param {*} [options] Override http request option.
|
|
3045
|
+
* @throws {RequiredError}
|
|
3046
|
+
* @memberof ProjectsApi
|
|
3047
|
+
*/
|
|
3048
|
+
reset2FA(requestParameters, options) {
|
|
3049
|
+
return (0, exports.ProjectsApiFp)(this.configuration).reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
3050
|
+
}
|
|
2972
3051
|
/**
|
|
2973
3052
|
* Setup an integration on the project
|
|
2974
3053
|
* @summary Setup integration
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage PodOS Projects
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.46.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -836,6 +836,12 @@ export interface ProjectUser {
|
|
|
836
836
|
* @memberof ProjectUser
|
|
837
837
|
*/
|
|
838
838
|
'avatar': ProjectUserAvatar;
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @type {TwoFactorAuthentication}
|
|
842
|
+
* @memberof ProjectUser
|
|
843
|
+
*/
|
|
844
|
+
'twoFactorAuthentication': TwoFactorAuthentication;
|
|
839
845
|
}
|
|
840
846
|
export declare const ProjectUserTypeEnum: {
|
|
841
847
|
readonly User: "user";
|
|
@@ -888,6 +894,23 @@ export interface ProjectsResponse {
|
|
|
888
894
|
*/
|
|
889
895
|
'projects': Array<Project>;
|
|
890
896
|
}
|
|
897
|
+
/**
|
|
898
|
+
*
|
|
899
|
+
* @export
|
|
900
|
+
* @interface SetupMethod
|
|
901
|
+
*/
|
|
902
|
+
export interface SetupMethod {
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @type {string}
|
|
906
|
+
* @memberof SetupMethod
|
|
907
|
+
*/
|
|
908
|
+
'type': SetupMethodTypeEnum;
|
|
909
|
+
}
|
|
910
|
+
export declare const SetupMethodTypeEnum: {
|
|
911
|
+
readonly Authenticator: "authenticator";
|
|
912
|
+
};
|
|
913
|
+
export type SetupMethodTypeEnum = typeof SetupMethodTypeEnum[keyof typeof SetupMethodTypeEnum];
|
|
891
914
|
/**
|
|
892
915
|
*
|
|
893
916
|
* @export
|
|
@@ -1140,6 +1163,25 @@ export interface TemplatesResponse {
|
|
|
1140
1163
|
*/
|
|
1141
1164
|
'templates': Array<Template>;
|
|
1142
1165
|
}
|
|
1166
|
+
/**
|
|
1167
|
+
*
|
|
1168
|
+
* @export
|
|
1169
|
+
* @interface TwoFactorAuthentication
|
|
1170
|
+
*/
|
|
1171
|
+
export interface TwoFactorAuthentication {
|
|
1172
|
+
/**
|
|
1173
|
+
*
|
|
1174
|
+
* @type {boolean}
|
|
1175
|
+
* @memberof TwoFactorAuthentication
|
|
1176
|
+
*/
|
|
1177
|
+
'required'?: boolean;
|
|
1178
|
+
/**
|
|
1179
|
+
*
|
|
1180
|
+
* @type {Array<SetupMethod>}
|
|
1181
|
+
* @memberof TwoFactorAuthentication
|
|
1182
|
+
*/
|
|
1183
|
+
'setupMethods'?: Array<SetupMethod>;
|
|
1184
|
+
}
|
|
1143
1185
|
/**
|
|
1144
1186
|
*
|
|
1145
1187
|
* @export
|
|
@@ -1620,6 +1662,15 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1620
1662
|
* @throws {RequiredError}
|
|
1621
1663
|
*/
|
|
1622
1664
|
listTasks: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1665
|
+
/**
|
|
1666
|
+
* Reset 2FA for a given user
|
|
1667
|
+
* @summary Reset 2FA
|
|
1668
|
+
* @param {string} project Projects unique identifier
|
|
1669
|
+
* @param {string} user the unique id of the user
|
|
1670
|
+
* @param {*} [options] Override http request option.
|
|
1671
|
+
* @throws {RequiredError}
|
|
1672
|
+
*/
|
|
1673
|
+
reset2FA: (project: string, user: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1623
1674
|
/**
|
|
1624
1675
|
* Setup an integration on the project
|
|
1625
1676
|
* @summary Setup integration
|
|
@@ -1973,6 +2024,15 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
1973
2024
|
* @throws {RequiredError}
|
|
1974
2025
|
*/
|
|
1975
2026
|
listTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponse>>;
|
|
2027
|
+
/**
|
|
2028
|
+
* Reset 2FA for a given user
|
|
2029
|
+
* @summary Reset 2FA
|
|
2030
|
+
* @param {string} project Projects unique identifier
|
|
2031
|
+
* @param {string} user the unique id of the user
|
|
2032
|
+
* @param {*} [options] Override http request option.
|
|
2033
|
+
* @throws {RequiredError}
|
|
2034
|
+
*/
|
|
2035
|
+
reset2FA(project: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1976
2036
|
/**
|
|
1977
2037
|
* Setup an integration on the project
|
|
1978
2038
|
* @summary Setup integration
|
|
@@ -2304,6 +2364,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
2304
2364
|
* @throws {RequiredError}
|
|
2305
2365
|
*/
|
|
2306
2366
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTasksResponse>;
|
|
2367
|
+
/**
|
|
2368
|
+
* Reset 2FA for a given user
|
|
2369
|
+
* @summary Reset 2FA
|
|
2370
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
2371
|
+
* @param {*} [options] Override http request option.
|
|
2372
|
+
* @throws {RequiredError}
|
|
2373
|
+
*/
|
|
2374
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2307
2375
|
/**
|
|
2308
2376
|
* Setup an integration on the project
|
|
2309
2377
|
* @summary Setup integration
|
|
@@ -2904,6 +2972,25 @@ export interface ProjectsApiListTasksRequest {
|
|
|
2904
2972
|
*/
|
|
2905
2973
|
readonly project: string;
|
|
2906
2974
|
}
|
|
2975
|
+
/**
|
|
2976
|
+
* Request parameters for reset2FA operation in ProjectsApi.
|
|
2977
|
+
* @export
|
|
2978
|
+
* @interface ProjectsApiReset2FARequest
|
|
2979
|
+
*/
|
|
2980
|
+
export interface ProjectsApiReset2FARequest {
|
|
2981
|
+
/**
|
|
2982
|
+
* Projects unique identifier
|
|
2983
|
+
* @type {string}
|
|
2984
|
+
* @memberof ProjectsApiReset2FA
|
|
2985
|
+
*/
|
|
2986
|
+
readonly project: string;
|
|
2987
|
+
/**
|
|
2988
|
+
* the unique id of the user
|
|
2989
|
+
* @type {string}
|
|
2990
|
+
* @memberof ProjectsApiReset2FA
|
|
2991
|
+
*/
|
|
2992
|
+
readonly user: string;
|
|
2993
|
+
}
|
|
2907
2994
|
/**
|
|
2908
2995
|
* Request parameters for setupIntegration operation in ProjectsApi.
|
|
2909
2996
|
* @export
|
|
@@ -3372,6 +3459,15 @@ export declare class ProjectsApi extends BaseAPI {
|
|
|
3372
3459
|
* @memberof ProjectsApi
|
|
3373
3460
|
*/
|
|
3374
3461
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTasksResponse, any>>;
|
|
3462
|
+
/**
|
|
3463
|
+
* Reset 2FA for a given user
|
|
3464
|
+
* @summary Reset 2FA
|
|
3465
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
3466
|
+
* @param {*} [options] Override http request option.
|
|
3467
|
+
* @throws {RequiredError}
|
|
3468
|
+
* @memberof ProjectsApi
|
|
3469
|
+
*/
|
|
3470
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3375
3471
|
/**
|
|
3376
3472
|
* Setup an integration on the project
|
|
3377
3473
|
* @summary Setup integration
|
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
|
|
@@ -1217,6 +1220,44 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1217
1220
|
options: localVarRequestOptions,
|
|
1218
1221
|
};
|
|
1219
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
|
+
}),
|
|
1220
1261
|
/**
|
|
1221
1262
|
* Setup an integration on the project
|
|
1222
1263
|
* @summary Setup integration
|
|
@@ -2073,6 +2114,23 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
2073
2114
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2074
2115
|
});
|
|
2075
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
|
+
},
|
|
2076
2134
|
/**
|
|
2077
2135
|
* Setup an integration on the project
|
|
2078
2136
|
* @summary Setup integration
|
|
@@ -2533,6 +2591,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2533
2591
|
listTasks(requestParameters, options) {
|
|
2534
2592
|
return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2535
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
|
+
},
|
|
2536
2604
|
/**
|
|
2537
2605
|
* Setup an integration on the project
|
|
2538
2606
|
* @summary Setup integration
|
|
@@ -2963,6 +3031,17 @@ export class ProjectsApi extends BaseAPI {
|
|
|
2963
3031
|
listTasks(requestParameters, options) {
|
|
2964
3032
|
return ProjectsApiFp(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2965
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
|
+
}
|
|
2966
3045
|
/**
|
|
2967
3046
|
* Setup an integration on the project
|
|
2968
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
|
@@ -35,6 +35,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
35
35
|
|[**listBookmarks**](#listbookmarks) | **GET** /v1/projects/{project}/bookmarks | List bookmarks|
|
|
36
36
|
|[**listBookmarktabs**](#listbookmarktabs) | **GET** /v1/projects/{project}/bookmarktabs | List bookmark tabs|
|
|
37
37
|
|[**listTasks**](#listtasks) | **GET** /v1/projects/{project}/tasks | List Tasks|
|
|
38
|
+
|[**reset2FA**](#reset2fa) | **POST** /v1/projects/{project}/users/{user}/reset-2fa | Reset 2FA|
|
|
38
39
|
|[**setupIntegration**](#setupintegration) | **POST** /v1/projects/{project}/integrations/{integration}/setup | Setup integration|
|
|
39
40
|
|[**uninstallIntegration**](#uninstallintegration) | **DELETE** /v1/projects/{project}/integrations/{integration} | Uninstall integration|
|
|
40
41
|
|[**updateBookmark**](#updatebookmark) | **PATCH** /v1/projects/{project}/bookmarks/{id} | Update bookmark|
|
|
@@ -1822,6 +1823,65 @@ const { status, data } = await apiInstance.listTasks(
|
|
|
1822
1823
|
|
|
1823
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)
|
|
1824
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
|
+
|
|
1825
1885
|
# **setupIntegration**
|
|
1826
1886
|
> Integration setupIntegration(updateIntegrationRequest)
|
|
1827
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