@dynamic-labs/sdk-api 0.0.518 → 0.0.519

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.518",
3
+ "version": "0.0.519",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -792,8 +792,14 @@ class SDKApi extends runtime.BaseAPI {
792
792
  if (requestParameters.mfaDeviceId === null || requestParameters.mfaDeviceId === undefined) {
793
793
  throw new runtime.RequiredError('mfaDeviceId', 'Required parameter requestParameters.mfaDeviceId was null or undefined when calling deleteMfaDevice.');
794
794
  }
795
+ if (requestParameters.xMfaAuthToken === null || requestParameters.xMfaAuthToken === undefined) {
796
+ throw new runtime.RequiredError('xMfaAuthToken', 'Required parameter requestParameters.xMfaAuthToken was null or undefined when calling deleteMfaDevice.');
797
+ }
795
798
  const queryParameters = {};
796
799
  const headerParameters = {};
800
+ if (requestParameters.xMfaAuthToken !== undefined && requestParameters.xMfaAuthToken !== null) {
801
+ headerParameters['x-mfa-auth-token'] = String(requestParameters.xMfaAuthToken);
802
+ }
797
803
  if (this.configuration && this.configuration.accessToken) {
798
804
  const token = this.configuration.accessToken;
799
805
  const tokenString = yield token("bearerAuth", []);
@@ -81,6 +81,7 @@ export interface CreateWalletAccountOperationRequest {
81
81
  export interface DeleteMfaDeviceRequest {
82
82
  environmentId: string;
83
83
  mfaDeviceId: string;
84
+ xMfaAuthToken: string;
84
85
  }
85
86
  export interface EmailAuthOptionsRequest {
86
87
  environmentId: string;
@@ -788,8 +788,14 @@ class SDKApi extends BaseAPI {
788
788
  if (requestParameters.mfaDeviceId === null || requestParameters.mfaDeviceId === undefined) {
789
789
  throw new RequiredError('mfaDeviceId', 'Required parameter requestParameters.mfaDeviceId was null or undefined when calling deleteMfaDevice.');
790
790
  }
791
+ if (requestParameters.xMfaAuthToken === null || requestParameters.xMfaAuthToken === undefined) {
792
+ throw new RequiredError('xMfaAuthToken', 'Required parameter requestParameters.xMfaAuthToken was null or undefined when calling deleteMfaDevice.');
793
+ }
791
794
  const queryParameters = {};
792
795
  const headerParameters = {};
796
+ if (requestParameters.xMfaAuthToken !== undefined && requestParameters.xMfaAuthToken !== null) {
797
+ headerParameters['x-mfa-auth-token'] = String(requestParameters.xMfaAuthToken);
798
+ }
793
799
  if (this.configuration && this.configuration.accessToken) {
794
800
  const token = this.configuration.accessToken;
795
801
  const tokenString = yield token("bearerAuth", []);