@connectedxm/admin-sdk 11.23.0 → 11.23.1
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 +2 -2
- package/api.ts +13 -107
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +13 -60
- package/dist/api.js +13 -88
- 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 +13 -60
- package/dist/esm/api.js +13 -88
- 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/docs/LoginsApi.md +3 -58
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Connected Admin API
|
|
5
5
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 11.23.
|
|
7
|
+
* The version of the OpenAPI document: 11.23.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -79365,8 +79365,8 @@ export const LoginsApiAxiosParamCreator = function (configuration) {
|
|
|
79365
79365
|
};
|
|
79366
79366
|
}),
|
|
79367
79367
|
/**
|
|
79368
|
-
*
|
|
79369
|
-
* @summary
|
|
79368
|
+
* Removes two-factor authentication from the email login with the given username and returns its updated MFA settings. It turns TOTP off and deletes it, so nothing is left to turn back on. The user can then sign in with their password and set up two-factor authentication again. Removing when none is set up succeeds. Requires read and update permissions on accounts.
|
|
79369
|
+
* @summary Remove a login\'s two-factor authentication
|
|
79370
79370
|
* @param {string} username The username identifier
|
|
79371
79371
|
* @param {*} [options] Override http request option.
|
|
79372
79372
|
* @throws {RequiredError}
|
|
@@ -79398,44 +79398,6 @@ export const LoginsApiAxiosParamCreator = function (configuration) {
|
|
|
79398
79398
|
options: localVarRequestOptions,
|
|
79399
79399
|
};
|
|
79400
79400
|
}),
|
|
79401
|
-
/**
|
|
79402
|
-
* Turns off the given MFA method for the email login with the given username and returns its updated MFA settings. An authenticator app that is turned off stays registered, so the user can turn it back on without setting it up again; use DeleteLoginMfaToken when the device is lost. Requires read and update permissions on accounts.
|
|
79403
|
-
* @summary Turn off one of a login\'s MFA methods
|
|
79404
|
-
* @param {string} username The username identifier
|
|
79405
|
-
* @param {string} method The method identifier
|
|
79406
|
-
* @param {*} [options] Override http request option.
|
|
79407
|
-
* @throws {RequiredError}
|
|
79408
|
-
*/
|
|
79409
|
-
disableLoginMfa: (username_1, method_1, ...args_1) => __awaiter(this, [username_1, method_1, ...args_1], void 0, function* (username, method, options = {}) {
|
|
79410
|
-
// verify required parameter 'username' is not null or undefined
|
|
79411
|
-
assertParamExists('disableLoginMfa', 'username', username);
|
|
79412
|
-
// verify required parameter 'method' is not null or undefined
|
|
79413
|
-
assertParamExists('disableLoginMfa', 'method', method);
|
|
79414
|
-
const localVarPath = `/logins/{username}/mfa/{method}/disable`
|
|
79415
|
-
.replace('{username}', encodeURIComponent(String(username)))
|
|
79416
|
-
.replace('{method}', encodeURIComponent(String(method)));
|
|
79417
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
79418
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
79419
|
-
let baseOptions;
|
|
79420
|
-
if (configuration) {
|
|
79421
|
-
baseOptions = configuration.baseOptions;
|
|
79422
|
-
}
|
|
79423
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
79424
|
-
const localVarHeaderParameter = {};
|
|
79425
|
-
const localVarQueryParameter = {};
|
|
79426
|
-
// authentication ApiKeyAuth required
|
|
79427
|
-
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
79428
|
-
// authentication OrganizationId required
|
|
79429
|
-
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
79430
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
79431
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79432
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
79433
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
79434
|
-
return {
|
|
79435
|
-
url: toPathString(localVarUrlObj),
|
|
79436
|
-
options: localVarRequestOptions,
|
|
79437
|
-
};
|
|
79438
|
-
}),
|
|
79439
79401
|
/**
|
|
79440
79402
|
* Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
|
|
79441
79403
|
* @summary Get a single login
|
|
@@ -79655,7 +79617,7 @@ export const LoginsApiAxiosParamCreator = function (configuration) {
|
|
|
79655
79617
|
};
|
|
79656
79618
|
}),
|
|
79657
79619
|
/**
|
|
79658
|
-
*
|
|
79620
|
+
* Makes the given MFA method the preferred one for the email login with the given username, and returns its updated MFA settings. The method must already be turned on for the login; any other method returns a 400, so this can\'t revive a method the user turned off. Requires read and update permissions on accounts.
|
|
79659
79621
|
* @summary Set a login\'s preferred MFA method
|
|
79660
79622
|
* @param {string} username The username identifier
|
|
79661
79623
|
* @param {SetLoginPreferredMfaRequest} setLoginPreferredMfaRequest
|
|
@@ -79812,8 +79774,8 @@ export const LoginsApiFp = function (configuration) {
|
|
|
79812
79774
|
});
|
|
79813
79775
|
},
|
|
79814
79776
|
/**
|
|
79815
|
-
*
|
|
79816
|
-
* @summary
|
|
79777
|
+
* Removes two-factor authentication from the email login with the given username and returns its updated MFA settings. It turns TOTP off and deletes it, so nothing is left to turn back on. The user can then sign in with their password and set up two-factor authentication again. Removing when none is set up succeeds. Requires read and update permissions on accounts.
|
|
79778
|
+
* @summary Remove a login\'s two-factor authentication
|
|
79817
79779
|
* @param {string} username The username identifier
|
|
79818
79780
|
* @param {*} [options] Override http request option.
|
|
79819
79781
|
* @throws {RequiredError}
|
|
@@ -79827,23 +79789,6 @@ export const LoginsApiFp = function (configuration) {
|
|
|
79827
79789
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
79828
79790
|
});
|
|
79829
79791
|
},
|
|
79830
|
-
/**
|
|
79831
|
-
* Turns off the given MFA method for the email login with the given username and returns its updated MFA settings. An authenticator app that is turned off stays registered, so the user can turn it back on without setting it up again; use DeleteLoginMfaToken when the device is lost. Requires read and update permissions on accounts.
|
|
79832
|
-
* @summary Turn off one of a login\'s MFA methods
|
|
79833
|
-
* @param {string} username The username identifier
|
|
79834
|
-
* @param {string} method The method identifier
|
|
79835
|
-
* @param {*} [options] Override http request option.
|
|
79836
|
-
* @throws {RequiredError}
|
|
79837
|
-
*/
|
|
79838
|
-
disableLoginMfa(username, method, options) {
|
|
79839
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
79840
|
-
var _a, _b, _c;
|
|
79841
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableLoginMfa(username, method, options);
|
|
79842
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
79843
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoginsApi.disableLoginMfa']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
79844
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
79845
|
-
});
|
|
79846
|
-
},
|
|
79847
79792
|
/**
|
|
79848
79793
|
* Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
|
|
79849
79794
|
* @summary Get a single login
|
|
@@ -79937,7 +79882,7 @@ export const LoginsApiFp = function (configuration) {
|
|
|
79937
79882
|
});
|
|
79938
79883
|
},
|
|
79939
79884
|
/**
|
|
79940
|
-
*
|
|
79885
|
+
* Makes the given MFA method the preferred one for the email login with the given username, and returns its updated MFA settings. The method must already be turned on for the login; any other method returns a 400, so this can\'t revive a method the user turned off. Requires read and update permissions on accounts.
|
|
79941
79886
|
* @summary Set a login\'s preferred MFA method
|
|
79942
79887
|
* @param {string} username The username identifier
|
|
79943
79888
|
* @param {SetLoginPreferredMfaRequest} setLoginPreferredMfaRequest
|
|
@@ -80016,8 +79961,8 @@ export const LoginsApiFactory = function (configuration, basePath, axios) {
|
|
|
80016
79961
|
return localVarFp.deleteLogin(requestParameters.username, options).then((request) => request(axios, basePath));
|
|
80017
79962
|
},
|
|
80018
79963
|
/**
|
|
80019
|
-
*
|
|
80020
|
-
* @summary
|
|
79964
|
+
* Removes two-factor authentication from the email login with the given username and returns its updated MFA settings. It turns TOTP off and deletes it, so nothing is left to turn back on. The user can then sign in with their password and set up two-factor authentication again. Removing when none is set up succeeds. Requires read and update permissions on accounts.
|
|
79965
|
+
* @summary Remove a login\'s two-factor authentication
|
|
80021
79966
|
* @param {LoginsApiDeleteLoginMfaTokenRequest} requestParameters Request parameters.
|
|
80022
79967
|
* @param {*} [options] Override http request option.
|
|
80023
79968
|
* @throws {RequiredError}
|
|
@@ -80025,16 +79970,6 @@ export const LoginsApiFactory = function (configuration, basePath, axios) {
|
|
|
80025
79970
|
deleteLoginMfaToken(requestParameters, options) {
|
|
80026
79971
|
return localVarFp.deleteLoginMfaToken(requestParameters.username, options).then((request) => request(axios, basePath));
|
|
80027
79972
|
},
|
|
80028
|
-
/**
|
|
80029
|
-
* Turns off the given MFA method for the email login with the given username and returns its updated MFA settings. An authenticator app that is turned off stays registered, so the user can turn it back on without setting it up again; use DeleteLoginMfaToken when the device is lost. Requires read and update permissions on accounts.
|
|
80030
|
-
* @summary Turn off one of a login\'s MFA methods
|
|
80031
|
-
* @param {LoginsApiDisableLoginMfaRequest} requestParameters Request parameters.
|
|
80032
|
-
* @param {*} [options] Override http request option.
|
|
80033
|
-
* @throws {RequiredError}
|
|
80034
|
-
*/
|
|
80035
|
-
disableLoginMfa(requestParameters, options) {
|
|
80036
|
-
return localVarFp.disableLoginMfa(requestParameters.username, requestParameters.method, options).then((request) => request(axios, basePath));
|
|
80037
|
-
},
|
|
80038
79973
|
/**
|
|
80039
79974
|
* Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
|
|
80040
79975
|
* @summary Get a single login
|
|
@@ -80086,7 +80021,7 @@ export const LoginsApiFactory = function (configuration, basePath, axios) {
|
|
|
80086
80021
|
return localVarFp.getLogins(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
80087
80022
|
},
|
|
80088
80023
|
/**
|
|
80089
|
-
*
|
|
80024
|
+
* Makes the given MFA method the preferred one for the email login with the given username, and returns its updated MFA settings. The method must already be turned on for the login; any other method returns a 400, so this can\'t revive a method the user turned off. Requires read and update permissions on accounts.
|
|
80090
80025
|
* @summary Set a login\'s preferred MFA method
|
|
80091
80026
|
* @param {LoginsApiSetLoginPreferredMfaRequest} requestParameters Request parameters.
|
|
80092
80027
|
* @param {*} [options] Override http request option.
|
|
@@ -80142,8 +80077,8 @@ export class LoginsApi extends BaseAPI {
|
|
|
80142
80077
|
return LoginsApiFp(this.configuration).deleteLogin(requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
80143
80078
|
}
|
|
80144
80079
|
/**
|
|
80145
|
-
*
|
|
80146
|
-
* @summary
|
|
80080
|
+
* Removes two-factor authentication from the email login with the given username and returns its updated MFA settings. It turns TOTP off and deletes it, so nothing is left to turn back on. The user can then sign in with their password and set up two-factor authentication again. Removing when none is set up succeeds. Requires read and update permissions on accounts.
|
|
80081
|
+
* @summary Remove a login\'s two-factor authentication
|
|
80147
80082
|
* @param {LoginsApiDeleteLoginMfaTokenRequest} requestParameters Request parameters.
|
|
80148
80083
|
* @param {*} [options] Override http request option.
|
|
80149
80084
|
* @throws {RequiredError}
|
|
@@ -80151,16 +80086,6 @@ export class LoginsApi extends BaseAPI {
|
|
|
80151
80086
|
deleteLoginMfaToken(requestParameters, options) {
|
|
80152
80087
|
return LoginsApiFp(this.configuration).deleteLoginMfaToken(requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
80153
80088
|
}
|
|
80154
|
-
/**
|
|
80155
|
-
* Turns off the given MFA method for the email login with the given username and returns its updated MFA settings. An authenticator app that is turned off stays registered, so the user can turn it back on without setting it up again; use DeleteLoginMfaToken when the device is lost. Requires read and update permissions on accounts.
|
|
80156
|
-
* @summary Turn off one of a login\'s MFA methods
|
|
80157
|
-
* @param {LoginsApiDisableLoginMfaRequest} requestParameters Request parameters.
|
|
80158
|
-
* @param {*} [options] Override http request option.
|
|
80159
|
-
* @throws {RequiredError}
|
|
80160
|
-
*/
|
|
80161
|
-
disableLoginMfa(requestParameters, options) {
|
|
80162
|
-
return LoginsApiFp(this.configuration).disableLoginMfa(requestParameters.username, requestParameters.method, options).then((request) => request(this.axios, this.basePath));
|
|
80163
|
-
}
|
|
80164
80089
|
/**
|
|
80165
80090
|
* Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
|
|
80166
80091
|
* @summary Get a single login
|
|
@@ -80212,7 +80137,7 @@ export class LoginsApi extends BaseAPI {
|
|
|
80212
80137
|
return LoginsApiFp(this.configuration).getLogins(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
80213
80138
|
}
|
|
80214
80139
|
/**
|
|
80215
|
-
*
|
|
80140
|
+
* Makes the given MFA method the preferred one for the email login with the given username, and returns its updated MFA settings. The method must already be turned on for the login; any other method returns a 400, so this can\'t revive a method the user turned off. Requires read and update permissions on accounts.
|
|
80216
80141
|
* @summary Set a login\'s preferred MFA method
|
|
80217
80142
|
* @param {LoginsApiSetLoginPreferredMfaRequest} requestParameters Request parameters.
|
|
80218
80143
|
* @param {*} [options] Override http request option.
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Connected Admin API
|
|
3
3
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 11.23.
|
|
5
|
+
* The version of the OpenAPI document: 11.23.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Connected Admin API
|
|
5
5
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 11.23.
|
|
7
|
+
* The version of the OpenAPI document: 11.23.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Connected Admin API
|
|
3
3
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 11.23.
|
|
5
|
+
* The version of the OpenAPI document: 11.23.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Connected Admin API
|
|
5
5
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 11.23.
|
|
7
|
+
* The version of the OpenAPI document: 11.23.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Connected Admin API
|
|
3
3
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 11.23.
|
|
5
|
+
* The version of the OpenAPI document: 11.23.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Connected Admin API
|
|
4
4
|
* The Admin API allows you to manage your Connected community programmatically.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 11.23.
|
|
6
|
+
* The version of the OpenAPI document: 11.23.1
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/LoginsApi.md
CHANGED
|
@@ -6,8 +6,7 @@ All URIs are relative to *https://admin-api.connected.dev*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**confirmLogin**](#confirmlogin) | **PUT** /logins/{username}/confirm | Confirm a login|
|
|
8
8
|
|[**deleteLogin**](#deletelogin) | **DELETE** /logins/{username} | Delete a login|
|
|
9
|
-
|[**deleteLoginMfaToken**](#deleteloginmfatoken) | **DELETE** /logins/{username}/mfa/totp |
|
|
10
|
-
|[**disableLoginMfa**](#disableloginmfa) | **PUT** /logins/{username}/mfa/{method}/disable | Turn off one of a login\'s MFA methods|
|
|
9
|
+
|[**deleteLoginMfaToken**](#deleteloginmfatoken) | **DELETE** /logins/{username}/mfa/totp | Remove a login\'s two-factor authentication|
|
|
11
10
|
|[**getLogin**](#getlogin) | **GET** /logins/{username} | Get a single login|
|
|
12
11
|
|[**getLoginAuthSessions**](#getloginauthsessions) | **GET** /logins/{username}/auth-sessions | List a login\'s auth sessions|
|
|
13
12
|
|[**getLoginDevices**](#getlogindevices) | **GET** /logins/{username}/devices | List a login\'s push devices|
|
|
@@ -122,7 +121,7 @@ const { status, data } = await apiInstance.deleteLogin(
|
|
|
122
121
|
# **deleteLoginMfaToken**
|
|
123
122
|
> GetLoginMfa200Response deleteLoginMfaToken()
|
|
124
123
|
|
|
125
|
-
|
|
124
|
+
Removes two-factor authentication from the email login with the given username and returns its updated MFA settings. It turns TOTP off and deletes it, so nothing is left to turn back on. The user can then sign in with their password and set up two-factor authentication again. Removing when none is set up succeeds. Requires read and update permissions on accounts.
|
|
126
125
|
|
|
127
126
|
### Example
|
|
128
127
|
|
|
@@ -149,60 +148,6 @@ const { status, data } = await apiInstance.deleteLoginMfaToken(
|
|
|
149
148
|
| **username** | [**string**] | The username identifier | defaults to undefined|
|
|
150
149
|
|
|
151
150
|
|
|
152
|
-
### Return type
|
|
153
|
-
|
|
154
|
-
**GetLoginMfa200Response**
|
|
155
|
-
|
|
156
|
-
### Authorization
|
|
157
|
-
|
|
158
|
-
[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
|
|
159
|
-
|
|
160
|
-
### HTTP request headers
|
|
161
|
-
|
|
162
|
-
- **Content-Type**: Not defined
|
|
163
|
-
- **Accept**: application/json
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
### HTTP response details
|
|
167
|
-
| Status code | Description | Response headers |
|
|
168
|
-
|-------------|-------------|------------------|
|
|
169
|
-
|**200** | Successful response | - |
|
|
170
|
-
|
|
171
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
172
|
-
|
|
173
|
-
# **disableLoginMfa**
|
|
174
|
-
> GetLoginMfa200Response disableLoginMfa()
|
|
175
|
-
|
|
176
|
-
Turns off the given MFA method for the email login with the given username and returns its updated MFA settings. An authenticator app that is turned off stays registered, so the user can turn it back on without setting it up again; use DeleteLoginMfaToken when the device is lost. Requires read and update permissions on accounts.
|
|
177
|
-
|
|
178
|
-
### Example
|
|
179
|
-
|
|
180
|
-
```typescript
|
|
181
|
-
import {
|
|
182
|
-
LoginsApi,
|
|
183
|
-
Configuration
|
|
184
|
-
} from '@connectedxm/admin-sdk';
|
|
185
|
-
|
|
186
|
-
const configuration = new Configuration();
|
|
187
|
-
const apiInstance = new LoginsApi(configuration);
|
|
188
|
-
|
|
189
|
-
let username: string; //The username identifier (default to undefined)
|
|
190
|
-
let method: string; //The method identifier (default to undefined)
|
|
191
|
-
|
|
192
|
-
const { status, data } = await apiInstance.disableLoginMfa(
|
|
193
|
-
username,
|
|
194
|
-
method
|
|
195
|
-
);
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
### Parameters
|
|
199
|
-
|
|
200
|
-
|Name | Type | Description | Notes|
|
|
201
|
-
|------------- | ------------- | ------------- | -------------|
|
|
202
|
-
| **username** | [**string**] | The username identifier | defaults to undefined|
|
|
203
|
-
| **method** | [**string**] | The method identifier | defaults to undefined|
|
|
204
|
-
|
|
205
|
-
|
|
206
151
|
### Return type
|
|
207
152
|
|
|
208
153
|
**GetLoginMfa200Response**
|
|
@@ -518,7 +463,7 @@ const { status, data } = await apiInstance.getLogins(
|
|
|
518
463
|
# **setLoginPreferredMfa**
|
|
519
464
|
> GetLoginMfa200Response setLoginPreferredMfa(setLoginPreferredMfaRequest)
|
|
520
465
|
|
|
521
|
-
|
|
466
|
+
Makes the given MFA method the preferred one for the email login with the given username, and returns its updated MFA settings. The method must already be turned on for the login; any other method returns a 400, so this can\'t revive a method the user turned off. Requires read and update permissions on accounts.
|
|
522
467
|
|
|
523
468
|
### Example
|
|
524
469
|
|