@dynamic-labs/sdk-api 0.0.506 → 0.0.507

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.506",
3
+ "version": "0.0.507",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _tslib = require('../../_virtual/_tslib.cjs');
6
+ var runtime = require('../runtime.cjs');
7
+
8
+ /* tslint:disable */
9
+ /**
10
+ *
11
+ */
12
+ class MfaApi extends runtime.BaseAPI {
13
+ /**
14
+ * Delete all MFA Devices for the user
15
+ */
16
+ resetAllMfaDevicesRaw(requestParameters, initOverrides) {
17
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
18
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
19
+ throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling resetAllMfaDevices.');
20
+ }
21
+ const queryParameters = {};
22
+ const headerParameters = {};
23
+ if (this.configuration && this.configuration.accessToken) {
24
+ const token = this.configuration.accessToken;
25
+ const tokenString = yield token("bearerAuth", []);
26
+ if (tokenString) {
27
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
28
+ }
29
+ }
30
+ const response = yield this.request({
31
+ path: `/users/{userId}/mfa`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
32
+ method: 'DELETE',
33
+ headers: headerParameters,
34
+ query: queryParameters,
35
+ }, initOverrides);
36
+ return new runtime.VoidApiResponse(response);
37
+ });
38
+ }
39
+ /**
40
+ * Delete all MFA Devices for the user
41
+ */
42
+ resetAllMfaDevices(requestParameters, initOverrides) {
43
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
44
+ yield this.resetAllMfaDevicesRaw(requestParameters, initOverrides);
45
+ });
46
+ }
47
+ }
48
+
49
+ exports.MfaApi = MfaApi;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ export interface ResetAllMfaDevicesRequest {
14
+ userId: string;
15
+ }
16
+ /**
17
+ *
18
+ */
19
+ export declare class MfaApi extends runtime.BaseAPI {
20
+ /**
21
+ * Delete all MFA Devices for the user
22
+ */
23
+ resetAllMfaDevicesRaw(requestParameters: ResetAllMfaDevicesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
24
+ /**
25
+ * Delete all MFA Devices for the user
26
+ */
27
+ resetAllMfaDevices(requestParameters: ResetAllMfaDevicesRequest, initOverrides?: RequestInit): Promise<void>;
28
+ }
@@ -0,0 +1,45 @@
1
+ import { __awaiter } from '../../_virtual/_tslib.js';
2
+ import { BaseAPI, RequiredError, VoidApiResponse } from '../runtime.js';
3
+
4
+ /* tslint:disable */
5
+ /**
6
+ *
7
+ */
8
+ class MfaApi extends BaseAPI {
9
+ /**
10
+ * Delete all MFA Devices for the user
11
+ */
12
+ resetAllMfaDevicesRaw(requestParameters, initOverrides) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
15
+ throw new RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling resetAllMfaDevices.');
16
+ }
17
+ const queryParameters = {};
18
+ const headerParameters = {};
19
+ if (this.configuration && this.configuration.accessToken) {
20
+ const token = this.configuration.accessToken;
21
+ const tokenString = yield token("bearerAuth", []);
22
+ if (tokenString) {
23
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
24
+ }
25
+ }
26
+ const response = yield this.request({
27
+ path: `/users/{userId}/mfa`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
28
+ method: 'DELETE',
29
+ headers: headerParameters,
30
+ query: queryParameters,
31
+ }, initOverrides);
32
+ return new VoidApiResponse(response);
33
+ });
34
+ }
35
+ /**
36
+ * Delete all MFA Devices for the user
37
+ */
38
+ resetAllMfaDevices(requestParameters, initOverrides) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ yield this.resetAllMfaDevicesRaw(requestParameters, initOverrides);
41
+ });
42
+ }
43
+ }
44
+
45
+ export { MfaApi };
@@ -12,6 +12,7 @@ export * from './ExternalJwtApi';
12
12
  export * from './GatesApi';
13
13
  export * from './InvitesApi';
14
14
  export * from './MembersApi';
15
+ export * from './MfaApi';
15
16
  export * from './MfaSettingsApi';
16
17
  export * from './OrganizationsApi';
17
18
  export * from './OriginsApi';
package/src/index.cjs CHANGED
@@ -17,6 +17,7 @@ var ExternalJwtApi = require('./apis/ExternalJwtApi.cjs');
17
17
  var GatesApi = require('./apis/GatesApi.cjs');
18
18
  var InvitesApi = require('./apis/InvitesApi.cjs');
19
19
  var MembersApi = require('./apis/MembersApi.cjs');
20
+ var MfaApi = require('./apis/MfaApi.cjs');
20
21
  var MfaSettingsApi = require('./apis/MfaSettingsApi.cjs');
21
22
  var OrganizationsApi = require('./apis/OrganizationsApi.cjs');
22
23
  var OriginsApi = require('./apis/OriginsApi.cjs');
@@ -375,6 +376,7 @@ exports.ExternalJwtApi = ExternalJwtApi.ExternalJwtApi;
375
376
  exports.GatesApi = GatesApi.GatesApi;
376
377
  exports.InvitesApi = InvitesApi.InvitesApi;
377
378
  exports.MembersApi = MembersApi.MembersApi;
379
+ exports.MfaApi = MfaApi.MfaApi;
378
380
  exports.MfaSettingsApi = MfaSettingsApi.MfaSettingsApi;
379
381
  exports.OrganizationsApi = OrganizationsApi.OrganizationsApi;
380
382
  exports.OriginsApi = OriginsApi.OriginsApi;
package/src/index.js CHANGED
@@ -13,6 +13,7 @@ export { ExternalJwtApi } from './apis/ExternalJwtApi.js';
13
13
  export { GatesApi } from './apis/GatesApi.js';
14
14
  export { InvitesApi } from './apis/InvitesApi.js';
15
15
  export { MembersApi } from './apis/MembersApi.js';
16
+ export { MfaApi } from './apis/MfaApi.js';
16
17
  export { MfaSettingsApi } from './apis/MfaSettingsApi.js';
17
18
  export { OrganizationsApi } from './apis/OrganizationsApi.js';
18
19
  export { OriginsApi } from './apis/OriginsApi.js';