@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/docs/LoginsApi.md CHANGED
@@ -6,10 +6,14 @@ 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 | Delete a login\'s authenticator app|
10
+ |[**disableLoginMfa**](#disableloginmfa) | **PUT** /logins/{username}/mfa/{method}/disable | Turn off one of a login\'s MFA methods|
9
11
  |[**getLogin**](#getlogin) | **GET** /logins/{username} | Get a single login|
10
12
  |[**getLoginAuthSessions**](#getloginauthsessions) | **GET** /logins/{username}/auth-sessions | List a login\'s auth sessions|
11
13
  |[**getLoginDevices**](#getlogindevices) | **GET** /logins/{username}/devices | List a login\'s push devices|
14
+ |[**getLoginMfa**](#getloginmfa) | **GET** /logins/{username}/mfa | Get a login\'s MFA settings|
12
15
  |[**getLogins**](#getlogins) | **GET** /logins | List logins|
16
+ |[**setLoginPreferredMfa**](#setloginpreferredmfa) | **PUT** /logins/{username}/mfa/preferred | Set a login\'s preferred MFA method|
13
17
  |[**updateLoginEmail**](#updateloginemail) | **PUT** /logins/{username}/email | Update a login\'s email|
14
18
  |[**updateLoginPassword**](#updateloginpassword) | **PUT** /logins/{username}/password | Set a login\'s password|
15
19
 
@@ -108,6 +112,111 @@ const { status, data } = await apiInstance.deleteLogin(
108
112
  - **Accept**: application/json
109
113
 
110
114
 
115
+ ### HTTP response details
116
+ | Status code | Description | Response headers |
117
+ |-------------|-------------|------------------|
118
+ |**200** | Successful response | - |
119
+
120
+ [[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)
121
+
122
+ # **deleteLoginMfaToken**
123
+ > GetLoginMfa200Response deleteLoginMfaToken()
124
+
125
+ 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.
126
+
127
+ ### Example
128
+
129
+ ```typescript
130
+ import {
131
+ LoginsApi,
132
+ Configuration
133
+ } from '@connectedxm/admin-sdk';
134
+
135
+ const configuration = new Configuration();
136
+ const apiInstance = new LoginsApi(configuration);
137
+
138
+ let username: string; //The username identifier (default to undefined)
139
+
140
+ const { status, data } = await apiInstance.deleteLoginMfaToken(
141
+ username
142
+ );
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ |Name | Type | Description | Notes|
148
+ |------------- | ------------- | ------------- | -------------|
149
+ | **username** | [**string**] | The username identifier | defaults to undefined|
150
+
151
+
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
+ ### Return type
207
+
208
+ **GetLoginMfa200Response**
209
+
210
+ ### Authorization
211
+
212
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
213
+
214
+ ### HTTP request headers
215
+
216
+ - **Content-Type**: Not defined
217
+ - **Accept**: application/json
218
+
219
+
111
220
  ### HTTP response details
112
221
  | Status code | Description | Response headers |
113
222
  |-------------|-------------|------------------|
@@ -285,6 +394,57 @@ const { status, data } = await apiInstance.getLoginDevices(
285
394
  - **Accept**: application/json
286
395
 
287
396
 
397
+ ### HTTP response details
398
+ | Status code | Description | Response headers |
399
+ |-------------|-------------|------------------|
400
+ |**200** | Successful response | - |
401
+
402
+ [[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)
403
+
404
+ # **getLoginMfa**
405
+ > GetLoginMfa200Response getLoginMfa()
406
+
407
+ 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.
408
+
409
+ ### Example
410
+
411
+ ```typescript
412
+ import {
413
+ LoginsApi,
414
+ Configuration
415
+ } from '@connectedxm/admin-sdk';
416
+
417
+ const configuration = new Configuration();
418
+ const apiInstance = new LoginsApi(configuration);
419
+
420
+ let username: string; //The username identifier (default to undefined)
421
+
422
+ const { status, data } = await apiInstance.getLoginMfa(
423
+ username
424
+ );
425
+ ```
426
+
427
+ ### Parameters
428
+
429
+ |Name | Type | Description | Notes|
430
+ |------------- | ------------- | ------------- | -------------|
431
+ | **username** | [**string**] | The username identifier | defaults to undefined|
432
+
433
+
434
+ ### Return type
435
+
436
+ **GetLoginMfa200Response**
437
+
438
+ ### Authorization
439
+
440
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
441
+
442
+ ### HTTP request headers
443
+
444
+ - **Content-Type**: Not defined
445
+ - **Accept**: application/json
446
+
447
+
288
448
  ### HTTP response details
289
449
  | Status code | Description | Response headers |
290
450
  |-------------|-------------|------------------|
@@ -348,6 +508,61 @@ const { status, data } = await apiInstance.getLogins(
348
508
  - **Accept**: application/json
349
509
 
350
510
 
511
+ ### HTTP response details
512
+ | Status code | Description | Response headers |
513
+ |-------------|-------------|------------------|
514
+ |**200** | Successful response | - |
515
+
516
+ [[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)
517
+
518
+ # **setLoginPreferredMfa**
519
+ > GetLoginMfa200Response setLoginPreferredMfa(setLoginPreferredMfaRequest)
520
+
521
+ 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.
522
+
523
+ ### Example
524
+
525
+ ```typescript
526
+ import {
527
+ LoginsApi,
528
+ Configuration,
529
+ SetLoginPreferredMfaRequest
530
+ } from '@connectedxm/admin-sdk';
531
+
532
+ const configuration = new Configuration();
533
+ const apiInstance = new LoginsApi(configuration);
534
+
535
+ let username: string; //The username identifier (default to undefined)
536
+ let setLoginPreferredMfaRequest: SetLoginPreferredMfaRequest; //
537
+
538
+ const { status, data } = await apiInstance.setLoginPreferredMfa(
539
+ username,
540
+ setLoginPreferredMfaRequest
541
+ );
542
+ ```
543
+
544
+ ### Parameters
545
+
546
+ |Name | Type | Description | Notes|
547
+ |------------- | ------------- | ------------- | -------------|
548
+ | **setLoginPreferredMfaRequest** | **SetLoginPreferredMfaRequest**| | |
549
+ | **username** | [**string**] | The username identifier | defaults to undefined|
550
+
551
+
552
+ ### Return type
553
+
554
+ **GetLoginMfa200Response**
555
+
556
+ ### Authorization
557
+
558
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
559
+
560
+ ### HTTP request headers
561
+
562
+ - **Content-Type**: application/json
563
+ - **Accept**: application/json
564
+
565
+
351
566
  ### HTTP response details
352
567
  | Status code | Description | Response headers |
353
568
  |-------------|-------------|------------------|
@@ -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.0",
4
4
  "description": "OpenAPI client for @connectedxm/admin-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {