@dynamic-labs/sdk-api 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",
3
- "version": "0.0.518",
3
+ "version": "0.0.520",
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", []);
@@ -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);