@dynamic-labs/sdk-api-core 0.0.518 → 0.0.520

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.520",
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", []);
@@ -112,6 +112,8 @@ exports.UnprocessableEntityErrorCode = void 0;
112
112
  UnprocessableEntityErrorCode["CannotDeleteLastProject"] = "cannot_delete_last_project";
113
113
  UnprocessableEntityErrorCode["NoHdWalletFound"] = "no_hd_wallet_found";
114
114
  UnprocessableEntityErrorCode["WalletAccountExistsForChain"] = "wallet_account_exists_for_chain";
115
+ UnprocessableEntityErrorCode["TooManyEmbeddedWalletsForUser"] = "too_many_embedded_wallets_for_user";
116
+ UnprocessableEntityErrorCode["TooManyEmbeddedWalletsPerChainForUser"] = "too_many_embedded_wallets_per_chain_for_user";
115
117
  })(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
116
118
  function UnprocessableEntityErrorCodeFromJSON(json) {
117
119
  return UnprocessableEntityErrorCodeFromJSONTyped(json);
@@ -104,7 +104,9 @@ export declare enum UnprocessableEntityErrorCode {
104
104
  InvalidUpdate = "invalid_update",
105
105
  CannotDeleteLastProject = "cannot_delete_last_project",
106
106
  NoHdWalletFound = "no_hd_wallet_found",
107
- WalletAccountExistsForChain = "wallet_account_exists_for_chain"
107
+ WalletAccountExistsForChain = "wallet_account_exists_for_chain",
108
+ TooManyEmbeddedWalletsForUser = "too_many_embedded_wallets_for_user",
109
+ TooManyEmbeddedWalletsPerChainForUser = "too_many_embedded_wallets_per_chain_for_user"
108
110
  }
109
111
  export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
110
112
  export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
@@ -108,6 +108,8 @@ var UnprocessableEntityErrorCode;
108
108
  UnprocessableEntityErrorCode["CannotDeleteLastProject"] = "cannot_delete_last_project";
109
109
  UnprocessableEntityErrorCode["NoHdWalletFound"] = "no_hd_wallet_found";
110
110
  UnprocessableEntityErrorCode["WalletAccountExistsForChain"] = "wallet_account_exists_for_chain";
111
+ UnprocessableEntityErrorCode["TooManyEmbeddedWalletsForUser"] = "too_many_embedded_wallets_for_user";
112
+ UnprocessableEntityErrorCode["TooManyEmbeddedWalletsPerChainForUser"] = "too_many_embedded_wallets_per_chain_for_user";
111
113
  })(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
112
114
  function UnprocessableEntityErrorCodeFromJSON(json) {
113
115
  return UnprocessableEntityErrorCodeFromJSONTyped(json);