@connectedxm/admin-sdk 11.22.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/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Connected Admin API
6
6
  * The Admin API allows you to manage your Connected community programmatically.
7
7
  *
8
- * The version of the OpenAPI document: 11.22.0
8
+ * The version of the OpenAPI document: 11.23.1
9
9
  *
10
10
  *
11
11
  * 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.22.0
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).
@@ -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.22.0
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/api.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.22.0
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).
@@ -8615,6 +8615,14 @@ export interface GetLoginDevices200Response {
8615
8615
  export declare enum GetLoginDevices200ResponseStatusEnum {
8616
8616
  Ok = "ok"
8617
8617
  }
8618
+ export interface GetLoginMfa200Response {
8619
+ 'status': GetLoginMfa200ResponseStatusEnum;
8620
+ 'message': string;
8621
+ 'data': LoginMfa;
8622
+ }
8623
+ export declare enum GetLoginMfa200ResponseStatusEnum {
8624
+ Ok = "ok"
8625
+ }
8618
8626
  export interface GetLogins200Response {
8619
8627
  'status': GetLogins200ResponseStatusEnum;
8620
8628
  'message': string;
@@ -10091,6 +10099,16 @@ export interface LoginAllOfCount {
10091
10099
  'accounts': number;
10092
10100
  'devices': number;
10093
10101
  }
10102
+ export interface LoginMfa {
10103
+ 'supported': boolean;
10104
+ 'methods': Array<LoginMfaMethod>;
10105
+ 'preferred': LoginMfaMethod | null;
10106
+ }
10107
+ export declare enum LoginMfaMethod {
10108
+ Totp = "totp",
10109
+ Sms = "sms",
10110
+ Email = "email"
10111
+ }
10094
10112
  export interface MarkNotificationsReadInputs {
10095
10113
  'notificationIds': Array<string>;
10096
10114
  }
@@ -12527,6 +12545,9 @@ export interface SeriesUpdateInputs {
12527
12545
  'paymentIntegrationId'?: string | null;
12528
12546
  'entityId'?: string | null;
12529
12547
  }
12548
+ export interface SetLoginPreferredMfaRequest {
12549
+ 'method': LoginMfaMethod;
12550
+ }
12530
12551
  export interface SideEffect {
12531
12552
  'id': string;
12532
12553
  'newPassOfPassTypeId': string | null;
@@ -65186,6 +65207,14 @@ export declare const LoginsApiAxiosParamCreator: (configuration?: Configuration)
65186
65207
  * @throws {RequiredError}
65187
65208
  */
65188
65209
  deleteLogin: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65210
+ /**
65211
+ * 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.
65212
+ * @summary Remove a login\'s two-factor authentication
65213
+ * @param {string} username The username identifier
65214
+ * @param {*} [options] Override http request option.
65215
+ * @throws {RequiredError}
65216
+ */
65217
+ deleteLoginMfaToken: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65189
65218
  /**
65190
65219
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
65191
65220
  * @summary Get a single login
@@ -65218,6 +65247,14 @@ export declare const LoginsApiAxiosParamCreator: (configuration?: Configuration)
65218
65247
  * @throws {RequiredError}
65219
65248
  */
65220
65249
  getLoginDevices: (username: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65250
+ /**
65251
+ * Returns the MFA methods the login has turned on and which one is preferred; only email logins support MFA. Each call is a live Cognito lookup that counts the login as a monthly active user, so fetch it only when an admin views a single login, never for lists. Requires the read permission on accounts.
65252
+ * @summary Get a login\'s MFA settings
65253
+ * @param {string} username The username identifier
65254
+ * @param {*} [options] Override http request option.
65255
+ * @throws {RequiredError}
65256
+ */
65257
+ getLoginMfa: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65221
65258
  /**
65222
65259
  * Returns a paginated list of logins for the organization, optionally filtered by linked account and with search and ordering support; requires the read permission on accounts.
65223
65260
  * @summary List logins
@@ -65230,6 +65267,15 @@ export declare const LoginsApiAxiosParamCreator: (configuration?: Configuration)
65230
65267
  * @throws {RequiredError}
65231
65268
  */
65232
65269
  getLogins: (accountId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65270
+ /**
65271
+ * 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.
65272
+ * @summary Set a login\'s preferred MFA method
65273
+ * @param {string} username The username identifier
65274
+ * @param {SetLoginPreferredMfaRequest} setLoginPreferredMfaRequest
65275
+ * @param {*} [options] Override http request option.
65276
+ * @throws {RequiredError}
65277
+ */
65278
+ setLoginPreferredMfa: (username: string, setLoginPreferredMfaRequest: SetLoginPreferredMfaRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65233
65279
  /**
65234
65280
  * Changes the email address for the given login username in both the database and Cognito, marking the new email as verified, and requires the \"update\" permission on accounts.
65235
65281
  * @summary Update a login\'s email
@@ -65269,6 +65315,14 @@ export declare const LoginsApiFp: (configuration?: Configuration) => {
65269
65315
  * @throws {RequiredError}
65270
65316
  */
65271
65317
  deleteLogin(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLogin200Response>>;
65318
+ /**
65319
+ * 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.
65320
+ * @summary Remove a login\'s two-factor authentication
65321
+ * @param {string} username The username identifier
65322
+ * @param {*} [options] Override http request option.
65323
+ * @throws {RequiredError}
65324
+ */
65325
+ deleteLoginMfaToken(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginMfa200Response>>;
65272
65326
  /**
65273
65327
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
65274
65328
  * @summary Get a single login
@@ -65301,6 +65355,14 @@ export declare const LoginsApiFp: (configuration?: Configuration) => {
65301
65355
  * @throws {RequiredError}
65302
65356
  */
65303
65357
  getLoginDevices(username: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginDevices200Response>>;
65358
+ /**
65359
+ * Returns the MFA methods the login has turned on and which one is preferred; only email logins support MFA. Each call is a live Cognito lookup that counts the login as a monthly active user, so fetch it only when an admin views a single login, never for lists. Requires the read permission on accounts.
65360
+ * @summary Get a login\'s MFA settings
65361
+ * @param {string} username The username identifier
65362
+ * @param {*} [options] Override http request option.
65363
+ * @throws {RequiredError}
65364
+ */
65365
+ getLoginMfa(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginMfa200Response>>;
65304
65366
  /**
65305
65367
  * Returns a paginated list of logins for the organization, optionally filtered by linked account and with search and ordering support; requires the read permission on accounts.
65306
65368
  * @summary List logins
@@ -65313,6 +65375,15 @@ export declare const LoginsApiFp: (configuration?: Configuration) => {
65313
65375
  * @throws {RequiredError}
65314
65376
  */
65315
65377
  getLogins(accountId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLogins200Response>>;
65378
+ /**
65379
+ * 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.
65380
+ * @summary Set a login\'s preferred MFA method
65381
+ * @param {string} username The username identifier
65382
+ * @param {SetLoginPreferredMfaRequest} setLoginPreferredMfaRequest
65383
+ * @param {*} [options] Override http request option.
65384
+ * @throws {RequiredError}
65385
+ */
65386
+ setLoginPreferredMfa(username: string, setLoginPreferredMfaRequest: SetLoginPreferredMfaRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginMfa200Response>>;
65316
65387
  /**
65317
65388
  * Changes the email address for the given login username in both the database and Cognito, marking the new email as verified, and requires the \"update\" permission on accounts.
65318
65389
  * @summary Update a login\'s email
@@ -65352,6 +65423,14 @@ export declare const LoginsApiFactory: (configuration?: Configuration, basePath?
65352
65423
  * @throws {RequiredError}
65353
65424
  */
65354
65425
  deleteLogin(requestParameters: LoginsApiDeleteLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLogin200Response>;
65426
+ /**
65427
+ * 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.
65428
+ * @summary Remove a login\'s two-factor authentication
65429
+ * @param {LoginsApiDeleteLoginMfaTokenRequest} requestParameters Request parameters.
65430
+ * @param {*} [options] Override http request option.
65431
+ * @throws {RequiredError}
65432
+ */
65433
+ deleteLoginMfaToken(requestParameters: LoginsApiDeleteLoginMfaTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLoginMfa200Response>;
65355
65434
  /**
65356
65435
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
65357
65436
  * @summary Get a single login
@@ -65376,6 +65455,14 @@ export declare const LoginsApiFactory: (configuration?: Configuration, basePath?
65376
65455
  * @throws {RequiredError}
65377
65456
  */
65378
65457
  getLoginDevices(requestParameters: LoginsApiGetLoginDevicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLoginDevices200Response>;
65458
+ /**
65459
+ * Returns the MFA methods the login has turned on and which one is preferred; only email logins support MFA. Each call is a live Cognito lookup that counts the login as a monthly active user, so fetch it only when an admin views a single login, never for lists. Requires the read permission on accounts.
65460
+ * @summary Get a login\'s MFA settings
65461
+ * @param {LoginsApiGetLoginMfaRequest} requestParameters Request parameters.
65462
+ * @param {*} [options] Override http request option.
65463
+ * @throws {RequiredError}
65464
+ */
65465
+ getLoginMfa(requestParameters: LoginsApiGetLoginMfaRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLoginMfa200Response>;
65379
65466
  /**
65380
65467
  * Returns a paginated list of logins for the organization, optionally filtered by linked account and with search and ordering support; requires the read permission on accounts.
65381
65468
  * @summary List logins
@@ -65384,6 +65471,14 @@ export declare const LoginsApiFactory: (configuration?: Configuration, basePath?
65384
65471
  * @throws {RequiredError}
65385
65472
  */
65386
65473
  getLogins(requestParameters?: LoginsApiGetLoginsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLogins200Response>;
65474
+ /**
65475
+ * 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.
65476
+ * @summary Set a login\'s preferred MFA method
65477
+ * @param {LoginsApiSetLoginPreferredMfaRequest} requestParameters Request parameters.
65478
+ * @param {*} [options] Override http request option.
65479
+ * @throws {RequiredError}
65480
+ */
65481
+ setLoginPreferredMfa(requestParameters: LoginsApiSetLoginPreferredMfaRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLoginMfa200Response>;
65387
65482
  /**
65388
65483
  * Changes the email address for the given login username in both the database and Cognito, marking the new email as verified, and requires the \"update\" permission on accounts.
65389
65484
  * @summary Update a login\'s email
@@ -65419,6 +65514,15 @@ export interface LoginsApiDeleteLoginRequest {
65419
65514
  */
65420
65515
  readonly username: string;
65421
65516
  }
65517
+ /**
65518
+ * Request parameters for deleteLoginMfaToken operation in LoginsApi.
65519
+ */
65520
+ export interface LoginsApiDeleteLoginMfaTokenRequest {
65521
+ /**
65522
+ * The username identifier
65523
+ */
65524
+ readonly username: string;
65525
+ }
65422
65526
  /**
65423
65527
  * Request parameters for getLogin operation in LoginsApi.
65424
65528
  */
@@ -65478,6 +65582,15 @@ export interface LoginsApiGetLoginDevicesRequest {
65478
65582
  */
65479
65583
  readonly search?: string;
65480
65584
  }
65585
+ /**
65586
+ * Request parameters for getLoginMfa operation in LoginsApi.
65587
+ */
65588
+ export interface LoginsApiGetLoginMfaRequest {
65589
+ /**
65590
+ * The username identifier
65591
+ */
65592
+ readonly username: string;
65593
+ }
65481
65594
  /**
65482
65595
  * Request parameters for getLogins operation in LoginsApi.
65483
65596
  */
@@ -65503,6 +65616,16 @@ export interface LoginsApiGetLoginsRequest {
65503
65616
  */
65504
65617
  readonly search?: string;
65505
65618
  }
65619
+ /**
65620
+ * Request parameters for setLoginPreferredMfa operation in LoginsApi.
65621
+ */
65622
+ export interface LoginsApiSetLoginPreferredMfaRequest {
65623
+ /**
65624
+ * The username identifier
65625
+ */
65626
+ readonly username: string;
65627
+ readonly setLoginPreferredMfaRequest: SetLoginPreferredMfaRequest;
65628
+ }
65506
65629
  /**
65507
65630
  * Request parameters for updateLoginEmail operation in LoginsApi.
65508
65631
  */
@@ -65543,6 +65666,14 @@ export declare class LoginsApi extends BaseAPI {
65543
65666
  * @throws {RequiredError}
65544
65667
  */
65545
65668
  deleteLogin(requestParameters: LoginsApiDeleteLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLogin200Response, any, {}, any>>;
65669
+ /**
65670
+ * 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.
65671
+ * @summary Remove a login\'s two-factor authentication
65672
+ * @param {LoginsApiDeleteLoginMfaTokenRequest} requestParameters Request parameters.
65673
+ * @param {*} [options] Override http request option.
65674
+ * @throws {RequiredError}
65675
+ */
65676
+ deleteLoginMfaToken(requestParameters: LoginsApiDeleteLoginMfaTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginMfa200Response, any, {}, any>>;
65546
65677
  /**
65547
65678
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
65548
65679
  * @summary Get a single login
@@ -65567,6 +65698,14 @@ export declare class LoginsApi extends BaseAPI {
65567
65698
  * @throws {RequiredError}
65568
65699
  */
65569
65700
  getLoginDevices(requestParameters: LoginsApiGetLoginDevicesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginDevices200Response, any, {}, any>>;
65701
+ /**
65702
+ * Returns the MFA methods the login has turned on and which one is preferred; only email logins support MFA. Each call is a live Cognito lookup that counts the login as a monthly active user, so fetch it only when an admin views a single login, never for lists. Requires the read permission on accounts.
65703
+ * @summary Get a login\'s MFA settings
65704
+ * @param {LoginsApiGetLoginMfaRequest} requestParameters Request parameters.
65705
+ * @param {*} [options] Override http request option.
65706
+ * @throws {RequiredError}
65707
+ */
65708
+ getLoginMfa(requestParameters: LoginsApiGetLoginMfaRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginMfa200Response, any, {}, any>>;
65570
65709
  /**
65571
65710
  * Returns a paginated list of logins for the organization, optionally filtered by linked account and with search and ordering support; requires the read permission on accounts.
65572
65711
  * @summary List logins
@@ -65575,6 +65714,14 @@ export declare class LoginsApi extends BaseAPI {
65575
65714
  * @throws {RequiredError}
65576
65715
  */
65577
65716
  getLogins(requestParameters?: LoginsApiGetLoginsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLogins200Response, any, {}, any>>;
65717
+ /**
65718
+ * 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.
65719
+ * @summary Set a login\'s preferred MFA method
65720
+ * @param {LoginsApiSetLoginPreferredMfaRequest} requestParameters Request parameters.
65721
+ * @param {*} [options] Override http request option.
65722
+ * @throws {RequiredError}
65723
+ */
65724
+ setLoginPreferredMfa(requestParameters: LoginsApiSetLoginPreferredMfaRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginMfa200Response, any, {}, any>>;
65578
65725
  /**
65579
65726
  * Changes the email address for the given login username in both the database and Cognito, marking the new email as verified, and requires the \"update\" permission on accounts.
65580
65727
  * @summary Update a login\'s email
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.22.0
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).
@@ -1627,6 +1627,10 @@ export var GetLoginDevices200ResponseStatusEnum;
1627
1627
  (function (GetLoginDevices200ResponseStatusEnum) {
1628
1628
  GetLoginDevices200ResponseStatusEnum["Ok"] = "ok";
1629
1629
  })(GetLoginDevices200ResponseStatusEnum || (GetLoginDevices200ResponseStatusEnum = {}));
1630
+ export var GetLoginMfa200ResponseStatusEnum;
1631
+ (function (GetLoginMfa200ResponseStatusEnum) {
1632
+ GetLoginMfa200ResponseStatusEnum["Ok"] = "ok";
1633
+ })(GetLoginMfa200ResponseStatusEnum || (GetLoginMfa200ResponseStatusEnum = {}));
1630
1634
  export var GetLogins200ResponseStatusEnum;
1631
1635
  (function (GetLogins200ResponseStatusEnum) {
1632
1636
  GetLogins200ResponseStatusEnum["Ok"] = "ok";
@@ -2166,6 +2170,12 @@ export var LocationQuestionOption;
2166
2170
  LocationQuestionOption["CountryState"] = "countryState";
2167
2171
  LocationQuestionOption["CountryStateCity"] = "countryStateCity";
2168
2172
  })(LocationQuestionOption || (LocationQuestionOption = {}));
2173
+ export var LoginMfaMethod;
2174
+ (function (LoginMfaMethod) {
2175
+ LoginMfaMethod["Totp"] = "totp";
2176
+ LoginMfaMethod["Sms"] = "sms";
2177
+ LoginMfaMethod["Email"] = "email";
2178
+ })(LoginMfaMethod || (LoginMfaMethod = {}));
2169
2179
  export var MatchQuestionType;
2170
2180
  (function (MatchQuestionType) {
2171
2181
  MatchQuestionType["Exclude"] = "exclude";
@@ -79354,6 +79364,40 @@ export const LoginsApiAxiosParamCreator = function (configuration) {
79354
79364
  options: localVarRequestOptions,
79355
79365
  };
79356
79366
  }),
79367
+ /**
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
+ * @param {string} username The username identifier
79371
+ * @param {*} [options] Override http request option.
79372
+ * @throws {RequiredError}
79373
+ */
79374
+ deleteLoginMfaToken: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
79375
+ // verify required parameter 'username' is not null or undefined
79376
+ assertParamExists('deleteLoginMfaToken', 'username', username);
79377
+ const localVarPath = `/logins/{username}/mfa/totp`
79378
+ .replace('{username}', encodeURIComponent(String(username)));
79379
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79380
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
79381
+ let baseOptions;
79382
+ if (configuration) {
79383
+ baseOptions = configuration.baseOptions;
79384
+ }
79385
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
79386
+ const localVarHeaderParameter = {};
79387
+ const localVarQueryParameter = {};
79388
+ // authentication ApiKeyAuth required
79389
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
79390
+ // authentication OrganizationId required
79391
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
79392
+ localVarHeaderParameter['Accept'] = 'application/json';
79393
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
79395
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
79396
+ return {
79397
+ url: toPathString(localVarUrlObj),
79398
+ options: localVarRequestOptions,
79399
+ };
79400
+ }),
79357
79401
  /**
79358
79402
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
79359
79403
  * @summary Get a single login
@@ -79488,6 +79532,40 @@ export const LoginsApiAxiosParamCreator = function (configuration) {
79488
79532
  options: localVarRequestOptions,
79489
79533
  };
79490
79534
  }),
79535
+ /**
79536
+ * Returns the MFA methods the login has turned on and which one is preferred; only email logins support MFA. Each call is a live Cognito lookup that counts the login as a monthly active user, so fetch it only when an admin views a single login, never for lists. Requires the read permission on accounts.
79537
+ * @summary Get a login\'s MFA settings
79538
+ * @param {string} username The username identifier
79539
+ * @param {*} [options] Override http request option.
79540
+ * @throws {RequiredError}
79541
+ */
79542
+ getLoginMfa: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
79543
+ // verify required parameter 'username' is not null or undefined
79544
+ assertParamExists('getLoginMfa', 'username', username);
79545
+ const localVarPath = `/logins/{username}/mfa`
79546
+ .replace('{username}', encodeURIComponent(String(username)));
79547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
79549
+ let baseOptions;
79550
+ if (configuration) {
79551
+ baseOptions = configuration.baseOptions;
79552
+ }
79553
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
79554
+ const localVarHeaderParameter = {};
79555
+ const localVarQueryParameter = {};
79556
+ // authentication ApiKeyAuth required
79557
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
79558
+ // authentication OrganizationId required
79559
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
79560
+ localVarHeaderParameter['Accept'] = 'application/json';
79561
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79562
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
79563
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
79564
+ return {
79565
+ url: toPathString(localVarUrlObj),
79566
+ options: localVarRequestOptions,
79567
+ };
79568
+ }),
79491
79569
  /**
79492
79570
  * Returns a paginated list of logins for the organization, optionally filtered by linked account and with search and ordering support; requires the read permission on accounts.
79493
79571
  * @summary List logins
@@ -79538,6 +79616,45 @@ export const LoginsApiAxiosParamCreator = function (configuration) {
79538
79616
  options: localVarRequestOptions,
79539
79617
  };
79540
79618
  }),
79619
+ /**
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.
79621
+ * @summary Set a login\'s preferred MFA method
79622
+ * @param {string} username The username identifier
79623
+ * @param {SetLoginPreferredMfaRequest} setLoginPreferredMfaRequest
79624
+ * @param {*} [options] Override http request option.
79625
+ * @throws {RequiredError}
79626
+ */
79627
+ setLoginPreferredMfa: (username_1, setLoginPreferredMfaRequest_1, ...args_1) => __awaiter(this, [username_1, setLoginPreferredMfaRequest_1, ...args_1], void 0, function* (username, setLoginPreferredMfaRequest, options = {}) {
79628
+ // verify required parameter 'username' is not null or undefined
79629
+ assertParamExists('setLoginPreferredMfa', 'username', username);
79630
+ // verify required parameter 'setLoginPreferredMfaRequest' is not null or undefined
79631
+ assertParamExists('setLoginPreferredMfa', 'setLoginPreferredMfaRequest', setLoginPreferredMfaRequest);
79632
+ const localVarPath = `/logins/{username}/mfa/preferred`
79633
+ .replace('{username}', encodeURIComponent(String(username)));
79634
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79635
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
79636
+ let baseOptions;
79637
+ if (configuration) {
79638
+ baseOptions = configuration.baseOptions;
79639
+ }
79640
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
79641
+ const localVarHeaderParameter = {};
79642
+ const localVarQueryParameter = {};
79643
+ // authentication ApiKeyAuth required
79644
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
79645
+ // authentication OrganizationId required
79646
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
79647
+ localVarHeaderParameter['Content-Type'] = 'application/json';
79648
+ localVarHeaderParameter['Accept'] = 'application/json';
79649
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79650
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
79651
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
79652
+ localVarRequestOptions.data = serializeDataIfNeeded(setLoginPreferredMfaRequest, localVarRequestOptions, configuration);
79653
+ return {
79654
+ url: toPathString(localVarUrlObj),
79655
+ options: localVarRequestOptions,
79656
+ };
79657
+ }),
79541
79658
  /**
79542
79659
  * Changes the email address for the given login username in both the database and Cognito, marking the new email as verified, and requires the \"update\" permission on accounts.
79543
79660
  * @summary Update a login\'s email
@@ -79656,6 +79773,22 @@ export const LoginsApiFp = function (configuration) {
79656
79773
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
79657
79774
  });
79658
79775
  },
79776
+ /**
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
79779
+ * @param {string} username The username identifier
79780
+ * @param {*} [options] Override http request option.
79781
+ * @throws {RequiredError}
79782
+ */
79783
+ deleteLoginMfaToken(username, options) {
79784
+ return __awaiter(this, void 0, void 0, function* () {
79785
+ var _a, _b, _c;
79786
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteLoginMfaToken(username, options);
79787
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
79788
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoginsApi.deleteLoginMfaToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
79789
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
79790
+ });
79791
+ },
79659
79792
  /**
79660
79793
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
79661
79794
  * @summary Get a single login
@@ -79712,6 +79845,22 @@ export const LoginsApiFp = function (configuration) {
79712
79845
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
79713
79846
  });
79714
79847
  },
79848
+ /**
79849
+ * Returns the MFA methods the login has turned on and which one is preferred; only email logins support MFA. Each call is a live Cognito lookup that counts the login as a monthly active user, so fetch it only when an admin views a single login, never for lists. Requires the read permission on accounts.
79850
+ * @summary Get a login\'s MFA settings
79851
+ * @param {string} username The username identifier
79852
+ * @param {*} [options] Override http request option.
79853
+ * @throws {RequiredError}
79854
+ */
79855
+ getLoginMfa(username, options) {
79856
+ return __awaiter(this, void 0, void 0, function* () {
79857
+ var _a, _b, _c;
79858
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLoginMfa(username, options);
79859
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
79860
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoginsApi.getLoginMfa']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
79861
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
79862
+ });
79863
+ },
79715
79864
  /**
79716
79865
  * Returns a paginated list of logins for the organization, optionally filtered by linked account and with search and ordering support; requires the read permission on accounts.
79717
79866
  * @summary List logins
@@ -79732,6 +79881,23 @@ export const LoginsApiFp = function (configuration) {
79732
79881
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
79733
79882
  });
79734
79883
  },
79884
+ /**
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.
79886
+ * @summary Set a login\'s preferred MFA method
79887
+ * @param {string} username The username identifier
79888
+ * @param {SetLoginPreferredMfaRequest} setLoginPreferredMfaRequest
79889
+ * @param {*} [options] Override http request option.
79890
+ * @throws {RequiredError}
79891
+ */
79892
+ setLoginPreferredMfa(username, setLoginPreferredMfaRequest, options) {
79893
+ return __awaiter(this, void 0, void 0, function* () {
79894
+ var _a, _b, _c;
79895
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setLoginPreferredMfa(username, setLoginPreferredMfaRequest, options);
79896
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
79897
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LoginsApi.setLoginPreferredMfa']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
79898
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
79899
+ });
79900
+ },
79735
79901
  /**
79736
79902
  * Changes the email address for the given login username in both the database and Cognito, marking the new email as verified, and requires the \"update\" permission on accounts.
79737
79903
  * @summary Update a login\'s email
@@ -79794,6 +79960,16 @@ export const LoginsApiFactory = function (configuration, basePath, axios) {
79794
79960
  deleteLogin(requestParameters, options) {
79795
79961
  return localVarFp.deleteLogin(requestParameters.username, options).then((request) => request(axios, basePath));
79796
79962
  },
79963
+ /**
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
79966
+ * @param {LoginsApiDeleteLoginMfaTokenRequest} requestParameters Request parameters.
79967
+ * @param {*} [options] Override http request option.
79968
+ * @throws {RequiredError}
79969
+ */
79970
+ deleteLoginMfaToken(requestParameters, options) {
79971
+ return localVarFp.deleteLoginMfaToken(requestParameters.username, options).then((request) => request(axios, basePath));
79972
+ },
79797
79973
  /**
79798
79974
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
79799
79975
  * @summary Get a single login
@@ -79824,6 +80000,16 @@ export const LoginsApiFactory = function (configuration, basePath, axios) {
79824
80000
  getLoginDevices(requestParameters, options) {
79825
80001
  return localVarFp.getLoginDevices(requestParameters.username, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
79826
80002
  },
80003
+ /**
80004
+ * Returns the MFA methods the login has turned on and which one is preferred; only email logins support MFA. Each call is a live Cognito lookup that counts the login as a monthly active user, so fetch it only when an admin views a single login, never for lists. Requires the read permission on accounts.
80005
+ * @summary Get a login\'s MFA settings
80006
+ * @param {LoginsApiGetLoginMfaRequest} requestParameters Request parameters.
80007
+ * @param {*} [options] Override http request option.
80008
+ * @throws {RequiredError}
80009
+ */
80010
+ getLoginMfa(requestParameters, options) {
80011
+ return localVarFp.getLoginMfa(requestParameters.username, options).then((request) => request(axios, basePath));
80012
+ },
79827
80013
  /**
79828
80014
  * Returns a paginated list of logins for the organization, optionally filtered by linked account and with search and ordering support; requires the read permission on accounts.
79829
80015
  * @summary List logins
@@ -79834,6 +80020,16 @@ export const LoginsApiFactory = function (configuration, basePath, axios) {
79834
80020
  getLogins(requestParameters = {}, options) {
79835
80021
  return localVarFp.getLogins(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
79836
80022
  },
80023
+ /**
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.
80025
+ * @summary Set a login\'s preferred MFA method
80026
+ * @param {LoginsApiSetLoginPreferredMfaRequest} requestParameters Request parameters.
80027
+ * @param {*} [options] Override http request option.
80028
+ * @throws {RequiredError}
80029
+ */
80030
+ setLoginPreferredMfa(requestParameters, options) {
80031
+ return localVarFp.setLoginPreferredMfa(requestParameters.username, requestParameters.setLoginPreferredMfaRequest, options).then((request) => request(axios, basePath));
80032
+ },
79837
80033
  /**
79838
80034
  * Changes the email address for the given login username in both the database and Cognito, marking the new email as verified, and requires the \"update\" permission on accounts.
79839
80035
  * @summary Update a login\'s email
@@ -79880,6 +80076,16 @@ export class LoginsApi extends BaseAPI {
79880
80076
  deleteLogin(requestParameters, options) {
79881
80077
  return LoginsApiFp(this.configuration).deleteLogin(requestParameters.username, options).then((request) => request(this.axios, this.basePath));
79882
80078
  }
80079
+ /**
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
80082
+ * @param {LoginsApiDeleteLoginMfaTokenRequest} requestParameters Request parameters.
80083
+ * @param {*} [options] Override http request option.
80084
+ * @throws {RequiredError}
80085
+ */
80086
+ deleteLoginMfaToken(requestParameters, options) {
80087
+ return LoginsApiFp(this.configuration).deleteLoginMfaToken(requestParameters.username, options).then((request) => request(this.axios, this.basePath));
80088
+ }
79883
80089
  /**
79884
80090
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
79885
80091
  * @summary Get a single login
@@ -79910,6 +80116,16 @@ export class LoginsApi extends BaseAPI {
79910
80116
  getLoginDevices(requestParameters, options) {
79911
80117
  return LoginsApiFp(this.configuration).getLoginDevices(requestParameters.username, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
79912
80118
  }
80119
+ /**
80120
+ * Returns the MFA methods the login has turned on and which one is preferred; only email logins support MFA. Each call is a live Cognito lookup that counts the login as a monthly active user, so fetch it only when an admin views a single login, never for lists. Requires the read permission on accounts.
80121
+ * @summary Get a login\'s MFA settings
80122
+ * @param {LoginsApiGetLoginMfaRequest} requestParameters Request parameters.
80123
+ * @param {*} [options] Override http request option.
80124
+ * @throws {RequiredError}
80125
+ */
80126
+ getLoginMfa(requestParameters, options) {
80127
+ return LoginsApiFp(this.configuration).getLoginMfa(requestParameters.username, options).then((request) => request(this.axios, this.basePath));
80128
+ }
79913
80129
  /**
79914
80130
  * Returns a paginated list of logins for the organization, optionally filtered by linked account and with search and ordering support; requires the read permission on accounts.
79915
80131
  * @summary List logins
@@ -79920,6 +80136,16 @@ export class LoginsApi extends BaseAPI {
79920
80136
  getLogins(requestParameters = {}, options) {
79921
80137
  return LoginsApiFp(this.configuration).getLogins(requestParameters.accountId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
79922
80138
  }
80139
+ /**
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.
80141
+ * @summary Set a login\'s preferred MFA method
80142
+ * @param {LoginsApiSetLoginPreferredMfaRequest} requestParameters Request parameters.
80143
+ * @param {*} [options] Override http request option.
80144
+ * @throws {RequiredError}
80145
+ */
80146
+ setLoginPreferredMfa(requestParameters, options) {
80147
+ return LoginsApiFp(this.configuration).setLoginPreferredMfa(requestParameters.username, requestParameters.setLoginPreferredMfaRequest, options).then((request) => request(this.axios, this.basePath));
80148
+ }
79923
80149
  /**
79924
80150
  * Changes the email address for the given login username in both the database and Cognito, marking the new email as verified, and requires the \"update\" permission on accounts.
79925
80151
  * @summary Update a login\'s email
@@ -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.22.0
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).