@dynamic-labs/sdk-api-core 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-core",
3
- "version": "0.0.518",
3
+ "version": "0.0.519",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -774,8 +774,14 @@ class SDKApi extends runtime.BaseAPI {
774
774
  if (requestParameters.mfaDeviceId === null || requestParameters.mfaDeviceId === undefined) {
775
775
  throw new runtime.RequiredError('mfaDeviceId', 'Required parameter requestParameters.mfaDeviceId was null or undefined when calling deleteMfaDevice.');
776
776
  }
777
+ if (requestParameters.xMfaAuthToken === null || requestParameters.xMfaAuthToken === undefined) {
778
+ throw new runtime.RequiredError('xMfaAuthToken', 'Required parameter requestParameters.xMfaAuthToken was null or undefined when calling deleteMfaDevice.');
779
+ }
777
780
  const queryParameters = {};
778
781
  const headerParameters = {};
782
+ if (requestParameters.xMfaAuthToken !== undefined && requestParameters.xMfaAuthToken !== null) {
783
+ headerParameters['x-mfa-auth-token'] = String(requestParameters.xMfaAuthToken);
784
+ }
779
785
  if (this.configuration && this.configuration.accessToken) {
780
786
  const token = this.configuration.accessToken;
781
787
  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;
@@ -770,8 +770,14 @@ class SDKApi extends BaseAPI {
770
770
  if (requestParameters.mfaDeviceId === null || requestParameters.mfaDeviceId === undefined) {
771
771
  throw new RequiredError('mfaDeviceId', 'Required parameter requestParameters.mfaDeviceId was null or undefined when calling deleteMfaDevice.');
772
772
  }
773
+ if (requestParameters.xMfaAuthToken === null || requestParameters.xMfaAuthToken === undefined) {
774
+ throw new RequiredError('xMfaAuthToken', 'Required parameter requestParameters.xMfaAuthToken was null or undefined when calling deleteMfaDevice.');
775
+ }
773
776
  const queryParameters = {};
774
777
  const headerParameters = {};
778
+ if (requestParameters.xMfaAuthToken !== undefined && requestParameters.xMfaAuthToken !== null) {
779
+ headerParameters['x-mfa-auth-token'] = String(requestParameters.xMfaAuthToken);
780
+ }
775
781
  if (this.configuration && this.configuration.accessToken) {
776
782
  const token = this.configuration.accessToken;
777
783
  const tokenString = yield token("bearerAuth", []);