@connectedxm/admin-sdk 11.22.0 → 11.23.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/dist/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.0
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,23 @@ export declare const LoginsApiAxiosParamCreator: (configuration?: Configuration)
65186
65207
  * @throws {RequiredError}
65187
65208
  */
65188
65209
  deleteLogin: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65210
+ /**
65211
+ * Deletes the authenticator app (TOTP) registered to the email login with the given username, for a user who lost their device, and returns its updated MFA settings. The user can then sign in with their password and register a new authenticator. Deleting when none is registered succeeds. Requires read and update permissions on accounts.
65212
+ * @summary Delete a login\'s authenticator app
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>;
65218
+ /**
65219
+ * 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.
65220
+ * @summary Turn off one of a login\'s MFA methods
65221
+ * @param {string} username The username identifier
65222
+ * @param {string} method The method identifier
65223
+ * @param {*} [options] Override http request option.
65224
+ * @throws {RequiredError}
65225
+ */
65226
+ disableLoginMfa: (username: string, method: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65189
65227
  /**
65190
65228
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
65191
65229
  * @summary Get a single login
@@ -65218,6 +65256,14 @@ export declare const LoginsApiAxiosParamCreator: (configuration?: Configuration)
65218
65256
  * @throws {RequiredError}
65219
65257
  */
65220
65258
  getLoginDevices: (username: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65259
+ /**
65260
+ * 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.
65261
+ * @summary Get a login\'s MFA settings
65262
+ * @param {string} username The username identifier
65263
+ * @param {*} [options] Override http request option.
65264
+ * @throws {RequiredError}
65265
+ */
65266
+ getLoginMfa: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65221
65267
  /**
65222
65268
  * 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
65269
  * @summary List logins
@@ -65230,6 +65276,15 @@ export declare const LoginsApiAxiosParamCreator: (configuration?: Configuration)
65230
65276
  * @throws {RequiredError}
65231
65277
  */
65232
65278
  getLogins: (accountId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65279
+ /**
65280
+ * Turns on the given MFA method for the email login with the given username, makes it the preferred one, and returns its updated MFA settings. The method must be set up for the user and allowed by the user pool. Requires read and update permissions on accounts.
65281
+ * @summary Set a login\'s preferred MFA method
65282
+ * @param {string} username The username identifier
65283
+ * @param {SetLoginPreferredMfaRequest} setLoginPreferredMfaRequest
65284
+ * @param {*} [options] Override http request option.
65285
+ * @throws {RequiredError}
65286
+ */
65287
+ setLoginPreferredMfa: (username: string, setLoginPreferredMfaRequest: SetLoginPreferredMfaRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65233
65288
  /**
65234
65289
  * 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
65290
  * @summary Update a login\'s email
@@ -65269,6 +65324,23 @@ export declare const LoginsApiFp: (configuration?: Configuration) => {
65269
65324
  * @throws {RequiredError}
65270
65325
  */
65271
65326
  deleteLogin(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLogin200Response>>;
65327
+ /**
65328
+ * Deletes the authenticator app (TOTP) registered to the email login with the given username, for a user who lost their device, and returns its updated MFA settings. The user can then sign in with their password and register a new authenticator. Deleting when none is registered succeeds. Requires read and update permissions on accounts.
65329
+ * @summary Delete a login\'s authenticator app
65330
+ * @param {string} username The username identifier
65331
+ * @param {*} [options] Override http request option.
65332
+ * @throws {RequiredError}
65333
+ */
65334
+ deleteLoginMfaToken(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginMfa200Response>>;
65335
+ /**
65336
+ * 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.
65337
+ * @summary Turn off one of a login\'s MFA methods
65338
+ * @param {string} username The username identifier
65339
+ * @param {string} method The method identifier
65340
+ * @param {*} [options] Override http request option.
65341
+ * @throws {RequiredError}
65342
+ */
65343
+ disableLoginMfa(username: string, method: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginMfa200Response>>;
65272
65344
  /**
65273
65345
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
65274
65346
  * @summary Get a single login
@@ -65301,6 +65373,14 @@ export declare const LoginsApiFp: (configuration?: Configuration) => {
65301
65373
  * @throws {RequiredError}
65302
65374
  */
65303
65375
  getLoginDevices(username: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginDevices200Response>>;
65376
+ /**
65377
+ * 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.
65378
+ * @summary Get a login\'s MFA settings
65379
+ * @param {string} username The username identifier
65380
+ * @param {*} [options] Override http request option.
65381
+ * @throws {RequiredError}
65382
+ */
65383
+ getLoginMfa(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginMfa200Response>>;
65304
65384
  /**
65305
65385
  * 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
65386
  * @summary List logins
@@ -65313,6 +65393,15 @@ export declare const LoginsApiFp: (configuration?: Configuration) => {
65313
65393
  * @throws {RequiredError}
65314
65394
  */
65315
65395
  getLogins(accountId?: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLogins200Response>>;
65396
+ /**
65397
+ * Turns on the given MFA method for the email login with the given username, makes it the preferred one, and returns its updated MFA settings. The method must be set up for the user and allowed by the user pool. Requires read and update permissions on accounts.
65398
+ * @summary Set a login\'s preferred MFA method
65399
+ * @param {string} username The username identifier
65400
+ * @param {SetLoginPreferredMfaRequest} setLoginPreferredMfaRequest
65401
+ * @param {*} [options] Override http request option.
65402
+ * @throws {RequiredError}
65403
+ */
65404
+ setLoginPreferredMfa(username: string, setLoginPreferredMfaRequest: SetLoginPreferredMfaRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoginMfa200Response>>;
65316
65405
  /**
65317
65406
  * 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
65407
  * @summary Update a login\'s email
@@ -65352,6 +65441,22 @@ export declare const LoginsApiFactory: (configuration?: Configuration, basePath?
65352
65441
  * @throws {RequiredError}
65353
65442
  */
65354
65443
  deleteLogin(requestParameters: LoginsApiDeleteLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLogin200Response>;
65444
+ /**
65445
+ * Deletes the authenticator app (TOTP) registered to the email login with the given username, for a user who lost their device, and returns its updated MFA settings. The user can then sign in with their password and register a new authenticator. Deleting when none is registered succeeds. Requires read and update permissions on accounts.
65446
+ * @summary Delete a login\'s authenticator app
65447
+ * @param {LoginsApiDeleteLoginMfaTokenRequest} requestParameters Request parameters.
65448
+ * @param {*} [options] Override http request option.
65449
+ * @throws {RequiredError}
65450
+ */
65451
+ deleteLoginMfaToken(requestParameters: LoginsApiDeleteLoginMfaTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLoginMfa200Response>;
65452
+ /**
65453
+ * 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.
65454
+ * @summary Turn off one of a login\'s MFA methods
65455
+ * @param {LoginsApiDisableLoginMfaRequest} requestParameters Request parameters.
65456
+ * @param {*} [options] Override http request option.
65457
+ * @throws {RequiredError}
65458
+ */
65459
+ disableLoginMfa(requestParameters: LoginsApiDisableLoginMfaRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLoginMfa200Response>;
65355
65460
  /**
65356
65461
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
65357
65462
  * @summary Get a single login
@@ -65376,6 +65481,14 @@ export declare const LoginsApiFactory: (configuration?: Configuration, basePath?
65376
65481
  * @throws {RequiredError}
65377
65482
  */
65378
65483
  getLoginDevices(requestParameters: LoginsApiGetLoginDevicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLoginDevices200Response>;
65484
+ /**
65485
+ * 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.
65486
+ * @summary Get a login\'s MFA settings
65487
+ * @param {LoginsApiGetLoginMfaRequest} requestParameters Request parameters.
65488
+ * @param {*} [options] Override http request option.
65489
+ * @throws {RequiredError}
65490
+ */
65491
+ getLoginMfa(requestParameters: LoginsApiGetLoginMfaRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLoginMfa200Response>;
65379
65492
  /**
65380
65493
  * 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
65494
  * @summary List logins
@@ -65384,6 +65497,14 @@ export declare const LoginsApiFactory: (configuration?: Configuration, basePath?
65384
65497
  * @throws {RequiredError}
65385
65498
  */
65386
65499
  getLogins(requestParameters?: LoginsApiGetLoginsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLogins200Response>;
65500
+ /**
65501
+ * Turns on the given MFA method for the email login with the given username, makes it the preferred one, and returns its updated MFA settings. The method must be set up for the user and allowed by the user pool. Requires read and update permissions on accounts.
65502
+ * @summary Set a login\'s preferred MFA method
65503
+ * @param {LoginsApiSetLoginPreferredMfaRequest} requestParameters Request parameters.
65504
+ * @param {*} [options] Override http request option.
65505
+ * @throws {RequiredError}
65506
+ */
65507
+ setLoginPreferredMfa(requestParameters: LoginsApiSetLoginPreferredMfaRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetLoginMfa200Response>;
65387
65508
  /**
65388
65509
  * 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
65510
  * @summary Update a login\'s email
@@ -65419,6 +65540,28 @@ export interface LoginsApiDeleteLoginRequest {
65419
65540
  */
65420
65541
  readonly username: string;
65421
65542
  }
65543
+ /**
65544
+ * Request parameters for deleteLoginMfaToken operation in LoginsApi.
65545
+ */
65546
+ export interface LoginsApiDeleteLoginMfaTokenRequest {
65547
+ /**
65548
+ * The username identifier
65549
+ */
65550
+ readonly username: string;
65551
+ }
65552
+ /**
65553
+ * Request parameters for disableLoginMfa operation in LoginsApi.
65554
+ */
65555
+ export interface LoginsApiDisableLoginMfaRequest {
65556
+ /**
65557
+ * The username identifier
65558
+ */
65559
+ readonly username: string;
65560
+ /**
65561
+ * The method identifier
65562
+ */
65563
+ readonly method: string;
65564
+ }
65422
65565
  /**
65423
65566
  * Request parameters for getLogin operation in LoginsApi.
65424
65567
  */
@@ -65478,6 +65621,15 @@ export interface LoginsApiGetLoginDevicesRequest {
65478
65621
  */
65479
65622
  readonly search?: string;
65480
65623
  }
65624
+ /**
65625
+ * Request parameters for getLoginMfa operation in LoginsApi.
65626
+ */
65627
+ export interface LoginsApiGetLoginMfaRequest {
65628
+ /**
65629
+ * The username identifier
65630
+ */
65631
+ readonly username: string;
65632
+ }
65481
65633
  /**
65482
65634
  * Request parameters for getLogins operation in LoginsApi.
65483
65635
  */
@@ -65503,6 +65655,16 @@ export interface LoginsApiGetLoginsRequest {
65503
65655
  */
65504
65656
  readonly search?: string;
65505
65657
  }
65658
+ /**
65659
+ * Request parameters for setLoginPreferredMfa operation in LoginsApi.
65660
+ */
65661
+ export interface LoginsApiSetLoginPreferredMfaRequest {
65662
+ /**
65663
+ * The username identifier
65664
+ */
65665
+ readonly username: string;
65666
+ readonly setLoginPreferredMfaRequest: SetLoginPreferredMfaRequest;
65667
+ }
65506
65668
  /**
65507
65669
  * Request parameters for updateLoginEmail operation in LoginsApi.
65508
65670
  */
@@ -65543,6 +65705,22 @@ export declare class LoginsApi extends BaseAPI {
65543
65705
  * @throws {RequiredError}
65544
65706
  */
65545
65707
  deleteLogin(requestParameters: LoginsApiDeleteLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLogin200Response, any, {}, any>>;
65708
+ /**
65709
+ * Deletes the authenticator app (TOTP) registered to the email login with the given username, for a user who lost their device, and returns its updated MFA settings. The user can then sign in with their password and register a new authenticator. Deleting when none is registered succeeds. Requires read and update permissions on accounts.
65710
+ * @summary Delete a login\'s authenticator app
65711
+ * @param {LoginsApiDeleteLoginMfaTokenRequest} requestParameters Request parameters.
65712
+ * @param {*} [options] Override http request option.
65713
+ * @throws {RequiredError}
65714
+ */
65715
+ deleteLoginMfaToken(requestParameters: LoginsApiDeleteLoginMfaTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginMfa200Response, any, {}, any>>;
65716
+ /**
65717
+ * 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.
65718
+ * @summary Turn off one of a login\'s MFA methods
65719
+ * @param {LoginsApiDisableLoginMfaRequest} requestParameters Request parameters.
65720
+ * @param {*} [options] Override http request option.
65721
+ * @throws {RequiredError}
65722
+ */
65723
+ disableLoginMfa(requestParameters: LoginsApiDisableLoginMfaRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginMfa200Response, any, {}, any>>;
65546
65724
  /**
65547
65725
  * Returns the login record identified by username, including its profile and status details; requires the read permission on accounts.
65548
65726
  * @summary Get a single login
@@ -65567,6 +65745,14 @@ export declare class LoginsApi extends BaseAPI {
65567
65745
  * @throws {RequiredError}
65568
65746
  */
65569
65747
  getLoginDevices(requestParameters: LoginsApiGetLoginDevicesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginDevices200Response, any, {}, any>>;
65748
+ /**
65749
+ * 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.
65750
+ * @summary Get a login\'s MFA settings
65751
+ * @param {LoginsApiGetLoginMfaRequest} requestParameters Request parameters.
65752
+ * @param {*} [options] Override http request option.
65753
+ * @throws {RequiredError}
65754
+ */
65755
+ getLoginMfa(requestParameters: LoginsApiGetLoginMfaRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginMfa200Response, any, {}, any>>;
65570
65756
  /**
65571
65757
  * 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
65758
  * @summary List logins
@@ -65575,6 +65761,14 @@ export declare class LoginsApi extends BaseAPI {
65575
65761
  * @throws {RequiredError}
65576
65762
  */
65577
65763
  getLogins(requestParameters?: LoginsApiGetLoginsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLogins200Response, any, {}, any>>;
65764
+ /**
65765
+ * Turns on the given MFA method for the email login with the given username, makes it the preferred one, and returns its updated MFA settings. The method must be set up for the user and allowed by the user pool. Requires read and update permissions on accounts.
65766
+ * @summary Set a login\'s preferred MFA method
65767
+ * @param {LoginsApiSetLoginPreferredMfaRequest} requestParameters Request parameters.
65768
+ * @param {*} [options] Override http request option.
65769
+ * @throws {RequiredError}
65770
+ */
65771
+ setLoginPreferredMfa(requestParameters: LoginsApiSetLoginPreferredMfaRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLoginMfa200Response, any, {}, any>>;
65578
65772
  /**
65579
65773
  * 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
65774
  * @summary Update a login\'s email