@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/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.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).
@@ -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).
@@ -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).
@@ -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.22.0
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).
@@ -0,0 +1,24 @@
1
+ # GetLoginMfa200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+ **data** | [**LoginMfa**](LoginMfa.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { GetLoginMfa200Response } from '@connectedxm/admin-sdk';
16
+
17
+ const instance: GetLoginMfa200Response = {
18
+ status,
19
+ message,
20
+ data,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # LoginMfa
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **supported** | **boolean** | | [default to undefined]
9
+ **methods** | [**Array<LoginMfaMethod>**](LoginMfaMethod.md) | | [default to undefined]
10
+ **preferred** | [**LoginMfaMethod**](LoginMfaMethod.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { LoginMfa } from '@connectedxm/admin-sdk';
16
+
17
+ const instance: LoginMfa = {
18
+ supported,
19
+ methods,
20
+ preferred,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,12 @@
1
+ # LoginMfaMethod
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Totp` (value: `'totp'`)
7
+
8
+ * `Sms` (value: `'sms'`)
9
+
10
+ * `Email` (value: `'email'`)
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/LoginsApi.md CHANGED
@@ -6,10 +6,13 @@ 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 | Remove a login\'s two-factor authentication|
9
10
  |[**getLogin**](#getlogin) | **GET** /logins/{username} | Get a single login|
10
11
  |[**getLoginAuthSessions**](#getloginauthsessions) | **GET** /logins/{username}/auth-sessions | List a login\'s auth sessions|
11
12
  |[**getLoginDevices**](#getlogindevices) | **GET** /logins/{username}/devices | List a login\'s push devices|
13
+ |[**getLoginMfa**](#getloginmfa) | **GET** /logins/{username}/mfa | Get a login\'s MFA settings|
12
14
  |[**getLogins**](#getlogins) | **GET** /logins | List logins|
15
+ |[**setLoginPreferredMfa**](#setloginpreferredmfa) | **PUT** /logins/{username}/mfa/preferred | Set a login\'s preferred MFA method|
13
16
  |[**updateLoginEmail**](#updateloginemail) | **PUT** /logins/{username}/email | Update a login\'s email|
14
17
  |[**updateLoginPassword**](#updateloginpassword) | **PUT** /logins/{username}/password | Set a login\'s password|
15
18
 
@@ -108,6 +111,57 @@ const { status, data } = await apiInstance.deleteLogin(
108
111
  - **Accept**: application/json
109
112
 
110
113
 
114
+ ### HTTP response details
115
+ | Status code | Description | Response headers |
116
+ |-------------|-------------|------------------|
117
+ |**200** | Successful response | - |
118
+
119
+ [[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)
120
+
121
+ # **deleteLoginMfaToken**
122
+ > GetLoginMfa200Response deleteLoginMfaToken()
123
+
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.
125
+
126
+ ### Example
127
+
128
+ ```typescript
129
+ import {
130
+ LoginsApi,
131
+ Configuration
132
+ } from '@connectedxm/admin-sdk';
133
+
134
+ const configuration = new Configuration();
135
+ const apiInstance = new LoginsApi(configuration);
136
+
137
+ let username: string; //The username identifier (default to undefined)
138
+
139
+ const { status, data } = await apiInstance.deleteLoginMfaToken(
140
+ username
141
+ );
142
+ ```
143
+
144
+ ### Parameters
145
+
146
+ |Name | Type | Description | Notes|
147
+ |------------- | ------------- | ------------- | -------------|
148
+ | **username** | [**string**] | The username identifier | defaults to undefined|
149
+
150
+
151
+ ### Return type
152
+
153
+ **GetLoginMfa200Response**
154
+
155
+ ### Authorization
156
+
157
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
158
+
159
+ ### HTTP request headers
160
+
161
+ - **Content-Type**: Not defined
162
+ - **Accept**: application/json
163
+
164
+
111
165
  ### HTTP response details
112
166
  | Status code | Description | Response headers |
113
167
  |-------------|-------------|------------------|
@@ -285,6 +339,57 @@ const { status, data } = await apiInstance.getLoginDevices(
285
339
  - **Accept**: application/json
286
340
 
287
341
 
342
+ ### HTTP response details
343
+ | Status code | Description | Response headers |
344
+ |-------------|-------------|------------------|
345
+ |**200** | Successful response | - |
346
+
347
+ [[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)
348
+
349
+ # **getLoginMfa**
350
+ > GetLoginMfa200Response getLoginMfa()
351
+
352
+ 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.
353
+
354
+ ### Example
355
+
356
+ ```typescript
357
+ import {
358
+ LoginsApi,
359
+ Configuration
360
+ } from '@connectedxm/admin-sdk';
361
+
362
+ const configuration = new Configuration();
363
+ const apiInstance = new LoginsApi(configuration);
364
+
365
+ let username: string; //The username identifier (default to undefined)
366
+
367
+ const { status, data } = await apiInstance.getLoginMfa(
368
+ username
369
+ );
370
+ ```
371
+
372
+ ### Parameters
373
+
374
+ |Name | Type | Description | Notes|
375
+ |------------- | ------------- | ------------- | -------------|
376
+ | **username** | [**string**] | The username identifier | defaults to undefined|
377
+
378
+
379
+ ### Return type
380
+
381
+ **GetLoginMfa200Response**
382
+
383
+ ### Authorization
384
+
385
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
386
+
387
+ ### HTTP request headers
388
+
389
+ - **Content-Type**: Not defined
390
+ - **Accept**: application/json
391
+
392
+
288
393
  ### HTTP response details
289
394
  | Status code | Description | Response headers |
290
395
  |-------------|-------------|------------------|
@@ -348,6 +453,61 @@ const { status, data } = await apiInstance.getLogins(
348
453
  - **Accept**: application/json
349
454
 
350
455
 
456
+ ### HTTP response details
457
+ | Status code | Description | Response headers |
458
+ |-------------|-------------|------------------|
459
+ |**200** | Successful response | - |
460
+
461
+ [[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)
462
+
463
+ # **setLoginPreferredMfa**
464
+ > GetLoginMfa200Response setLoginPreferredMfa(setLoginPreferredMfaRequest)
465
+
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.
467
+
468
+ ### Example
469
+
470
+ ```typescript
471
+ import {
472
+ LoginsApi,
473
+ Configuration,
474
+ SetLoginPreferredMfaRequest
475
+ } from '@connectedxm/admin-sdk';
476
+
477
+ const configuration = new Configuration();
478
+ const apiInstance = new LoginsApi(configuration);
479
+
480
+ let username: string; //The username identifier (default to undefined)
481
+ let setLoginPreferredMfaRequest: SetLoginPreferredMfaRequest; //
482
+
483
+ const { status, data } = await apiInstance.setLoginPreferredMfa(
484
+ username,
485
+ setLoginPreferredMfaRequest
486
+ );
487
+ ```
488
+
489
+ ### Parameters
490
+
491
+ |Name | Type | Description | Notes|
492
+ |------------- | ------------- | ------------- | -------------|
493
+ | **setLoginPreferredMfaRequest** | **SetLoginPreferredMfaRequest**| | |
494
+ | **username** | [**string**] | The username identifier | defaults to undefined|
495
+
496
+
497
+ ### Return type
498
+
499
+ **GetLoginMfa200Response**
500
+
501
+ ### Authorization
502
+
503
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
504
+
505
+ ### HTTP request headers
506
+
507
+ - **Content-Type**: application/json
508
+ - **Accept**: application/json
509
+
510
+
351
511
  ### HTTP response details
352
512
  | Status code | Description | Response headers |
353
513
  |-------------|-------------|------------------|
@@ -0,0 +1,20 @@
1
+ # SetLoginPreferredMfaRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **method** | [**LoginMfaMethod**](LoginMfaMethod.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { SetLoginPreferredMfaRequest } from '@connectedxm/admin-sdk';
14
+
15
+ const instance: SetLoginPreferredMfaRequest = {
16
+ method,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin-sdk",
3
- "version": "11.22.0",
3
+ "version": "11.23.1",
4
4
  "description": "OpenAPI client for @connectedxm/admin-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {