@dynamic-labs/sdk-api 0.0.817 → 0.0.819

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.817",
3
+ "version": "0.0.819",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -3914,6 +3914,76 @@ class SDKApi extends runtime.BaseAPI {
3914
3914
  return yield response.value();
3915
3915
  });
3916
3916
  }
3917
+ /**
3918
+ * Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
3919
+ * Fetch a single WaaS wallet with verified credentials
3920
+ */
3921
+ getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides) {
3922
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
3923
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3924
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
3925
+ }
3926
+ if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
3927
+ throw new runtime.RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
3928
+ }
3929
+ const queryParameters = {};
3930
+ const headerParameters = {};
3931
+ if (this.configuration && this.configuration.accessToken) {
3932
+ const token = this.configuration.accessToken;
3933
+ const tokenString = yield token("bearerAuth", []);
3934
+ if (tokenString) {
3935
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3936
+ }
3937
+ }
3938
+ const response = yield this.request({
3939
+ path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
3940
+ method: 'GET',
3941
+ headers: headerParameters,
3942
+ query: queryParameters,
3943
+ }, initOverrides);
3944
+ return new runtime.JSONApiResponse(response, (jsonValue) => SdkUser.SdkUserFromJSON(jsonValue));
3945
+ });
3946
+ }
3947
+ /**
3948
+ * Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
3949
+ * Fetch a single WaaS wallet with verified credentials
3950
+ */
3951
+ getWaasWalletWithVerifiedCredentials(requestParameters, initOverrides) {
3952
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
3953
+ const response = yield this.getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides);
3954
+ return yield response.value();
3955
+ });
3956
+ }
3957
+ /**
3958
+ * Options call for this endpoint
3959
+ */
3960
+ getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides) {
3961
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
3962
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3963
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
3964
+ }
3965
+ if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
3966
+ throw new runtime.RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
3967
+ }
3968
+ const queryParameters = {};
3969
+ const headerParameters = {};
3970
+ const response = yield this.request({
3971
+ path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
3972
+ method: 'OPTIONS',
3973
+ headers: headerParameters,
3974
+ query: queryParameters,
3975
+ }, initOverrides);
3976
+ return new runtime.VoidApiResponse(response);
3977
+ });
3978
+ }
3979
+ /**
3980
+ * Options call for this endpoint
3981
+ */
3982
+ getWaasWalletWithVerifiedCredentialsOptions(requestParameters, initOverrides) {
3983
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
3984
+ yield this.getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides);
3985
+ });
3986
+ }
3917
3987
  /**
3918
3988
  * Options call for this endpoint
3919
3989
  */
@@ -434,6 +434,14 @@ export interface GetUserMfaMethodsRequest {
434
434
  export interface GetUserPasskeysRequest {
435
435
  environmentId: string;
436
436
  }
437
+ export interface GetWaasWalletWithVerifiedCredentialsRequest {
438
+ environmentId: string;
439
+ walletAddress: string;
440
+ }
441
+ export interface GetWaasWalletWithVerifiedCredentialsOptionsRequest {
442
+ environmentId: string;
443
+ walletAddress: string;
444
+ }
437
445
  export interface GlobalWalletConnectionsOptionsRequest {
438
446
  environmentId: string;
439
447
  }
@@ -1839,6 +1847,24 @@ export declare class SDKApi extends runtime.BaseAPI {
1839
1847
  * Gets passkey data associated with a user
1840
1848
  */
1841
1849
  getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
1850
+ /**
1851
+ * Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
1852
+ * Fetch a single WaaS wallet with verified credentials
1853
+ */
1854
+ getWaasWalletWithVerifiedCredentialsRaw(requestParameters: GetWaasWalletWithVerifiedCredentialsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SdkUser>>;
1855
+ /**
1856
+ * Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
1857
+ * Fetch a single WaaS wallet with verified credentials
1858
+ */
1859
+ getWaasWalletWithVerifiedCredentials(requestParameters: GetWaasWalletWithVerifiedCredentialsRequest, initOverrides?: RequestInit): Promise<SdkUser>;
1860
+ /**
1861
+ * Options call for this endpoint
1862
+ */
1863
+ getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters: GetWaasWalletWithVerifiedCredentialsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1864
+ /**
1865
+ * Options call for this endpoint
1866
+ */
1867
+ getWaasWalletWithVerifiedCredentialsOptions(requestParameters: GetWaasWalletWithVerifiedCredentialsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1842
1868
  /**
1843
1869
  * Options call for this endpoint
1844
1870
  */
@@ -3910,6 +3910,76 @@ class SDKApi extends BaseAPI {
3910
3910
  return yield response.value();
3911
3911
  });
3912
3912
  }
3913
+ /**
3914
+ * Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
3915
+ * Fetch a single WaaS wallet with verified credentials
3916
+ */
3917
+ getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides) {
3918
+ return __awaiter(this, void 0, void 0, function* () {
3919
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3920
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
3921
+ }
3922
+ if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
3923
+ throw new RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentials.');
3924
+ }
3925
+ const queryParameters = {};
3926
+ const headerParameters = {};
3927
+ if (this.configuration && this.configuration.accessToken) {
3928
+ const token = this.configuration.accessToken;
3929
+ const tokenString = yield token("bearerAuth", []);
3930
+ if (tokenString) {
3931
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3932
+ }
3933
+ }
3934
+ const response = yield this.request({
3935
+ path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
3936
+ method: 'GET',
3937
+ headers: headerParameters,
3938
+ query: queryParameters,
3939
+ }, initOverrides);
3940
+ return new JSONApiResponse(response, (jsonValue) => SdkUserFromJSON(jsonValue));
3941
+ });
3942
+ }
3943
+ /**
3944
+ * Fetches a single WaaS wallet and returns it with the same payload structure as the users endpoint. This endpoint returns user information along with verified credentials filtered to only include the specified WaaS wallet.
3945
+ * Fetch a single WaaS wallet with verified credentials
3946
+ */
3947
+ getWaasWalletWithVerifiedCredentials(requestParameters, initOverrides) {
3948
+ return __awaiter(this, void 0, void 0, function* () {
3949
+ const response = yield this.getWaasWalletWithVerifiedCredentialsRaw(requestParameters, initOverrides);
3950
+ return yield response.value();
3951
+ });
3952
+ }
3953
+ /**
3954
+ * Options call for this endpoint
3955
+ */
3956
+ getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides) {
3957
+ return __awaiter(this, void 0, void 0, function* () {
3958
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3959
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
3960
+ }
3961
+ if (requestParameters.walletAddress === null || requestParameters.walletAddress === undefined) {
3962
+ throw new RequiredError('walletAddress', 'Required parameter requestParameters.walletAddress was null or undefined when calling getWaasWalletWithVerifiedCredentialsOptions.');
3963
+ }
3964
+ const queryParameters = {};
3965
+ const headerParameters = {};
3966
+ const response = yield this.request({
3967
+ path: `/sdk/{environmentId}/waas/byWalletAddress/{walletAddress}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletAddress"}}`, encodeURIComponent(String(requestParameters.walletAddress))),
3968
+ method: 'OPTIONS',
3969
+ headers: headerParameters,
3970
+ query: queryParameters,
3971
+ }, initOverrides);
3972
+ return new VoidApiResponse(response);
3973
+ });
3974
+ }
3975
+ /**
3976
+ * Options call for this endpoint
3977
+ */
3978
+ getWaasWalletWithVerifiedCredentialsOptions(requestParameters, initOverrides) {
3979
+ return __awaiter(this, void 0, void 0, function* () {
3980
+ yield this.getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides);
3981
+ });
3982
+ }
3913
3983
  /**
3914
3984
  * Options call for this endpoint
3915
3985
  */
@@ -94,6 +94,8 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
94
94
  require('../models/WaasDelegationCredentialsResponse.cjs');
95
95
  require('../models/WaasPolicyConstraintCondition.cjs');
96
96
  require('../models/WaasPolicyRuleType.cjs');
97
+ var WalletRecoveryRequest = require('../models/WalletRecoveryRequest.cjs');
98
+ var WalletRecoveryResponse = require('../models/WalletRecoveryResponse.cjs');
97
99
  var WalletsResponse = require('../models/WalletsResponse.cjs');
98
100
 
99
101
  /* tslint:disable */
@@ -567,6 +569,48 @@ class WalletsApi extends runtime.BaseAPI {
567
569
  return yield response.value();
568
570
  });
569
571
  }
572
+ /**
573
+ * Recovers deleted wallets for a user in a specified environment by setting deleted_at to null. This undoes the soft deletion of wallets, wallet additional addresses, and turnkey HD wallets.
574
+ * Recover deleted wallets for a user in a specific environment
575
+ */
576
+ recoverDeletedWalletsWithEnvironmentRaw(requestParameters, initOverrides) {
577
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
578
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
579
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverDeletedWalletsWithEnvironment.');
580
+ }
581
+ if (requestParameters.walletRecoveryRequest === null || requestParameters.walletRecoveryRequest === undefined) {
582
+ throw new runtime.RequiredError('walletRecoveryRequest', 'Required parameter requestParameters.walletRecoveryRequest was null or undefined when calling recoverDeletedWalletsWithEnvironment.');
583
+ }
584
+ const queryParameters = {};
585
+ const headerParameters = {};
586
+ headerParameters['Content-Type'] = 'application/json';
587
+ if (this.configuration && this.configuration.accessToken) {
588
+ const token = this.configuration.accessToken;
589
+ const tokenString = yield token("bearerAuth", []);
590
+ if (tokenString) {
591
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
592
+ }
593
+ }
594
+ const response = yield this.request({
595
+ path: `/environments/{environmentId}/wallets/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
596
+ method: 'POST',
597
+ headers: headerParameters,
598
+ query: queryParameters,
599
+ body: WalletRecoveryRequest.WalletRecoveryRequestToJSON(requestParameters.walletRecoveryRequest),
600
+ }, initOverrides);
601
+ return new runtime.JSONApiResponse(response, (jsonValue) => WalletRecoveryResponse.WalletRecoveryResponseFromJSON(jsonValue));
602
+ });
603
+ }
604
+ /**
605
+ * Recovers deleted wallets for a user in a specified environment by setting deleted_at to null. This undoes the soft deletion of wallets, wallet additional addresses, and turnkey HD wallets.
606
+ * Recover deleted wallets for a user in a specific environment
607
+ */
608
+ recoverDeletedWalletsWithEnvironment(requestParameters, initOverrides) {
609
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
610
+ const response = yield this.recoverDeletedWalletsWithEnvironmentRaw(requestParameters, initOverrides);
611
+ return yield response.value();
612
+ });
613
+ }
570
614
  }
571
615
 
572
616
  exports.WalletsApi = WalletsApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { CreateUserEmbeddedWalletsFromFarcasterRequest, CreateUserEmbeddedWalletsRequest, CreateWalletRequest, EmbeddedWalletVersionEnum, UserResponse, UserWalletsResponse, Wallet, WalletsResponse } from '../models';
13
+ import { CreateUserEmbeddedWalletsFromFarcasterRequest, CreateUserEmbeddedWalletsRequest, CreateWalletRequest, EmbeddedWalletVersionEnum, UserResponse, UserWalletsResponse, Wallet, WalletRecoveryRequest, WalletRecoveryResponse, WalletsResponse } from '../models';
14
14
  export interface CreateEmbeddedWalletRequest {
15
15
  environmentId: string;
16
16
  createUserEmbeddedWalletsRequest: CreateUserEmbeddedWalletsRequest;
@@ -57,6 +57,10 @@ export interface GetWalletsByUserIdRequest {
57
57
  export interface GetWalletsByUserIdLegacyRequest {
58
58
  userId: string;
59
59
  }
60
+ export interface RecoverDeletedWalletsWithEnvironmentRequest {
61
+ environmentId: string;
62
+ walletRecoveryRequest: WalletRecoveryRequest;
63
+ }
60
64
  /**
61
65
  *
62
66
  */
@@ -167,4 +171,14 @@ export declare class WalletsApi extends runtime.BaseAPI {
167
171
  * Get wallets by user (deprecated - use /environments/{environmentId}/users/{userId}/wallets instead)
168
172
  */
169
173
  getWalletsByUserIdLegacy(requestParameters: GetWalletsByUserIdLegacyRequest, initOverrides?: RequestInit): Promise<UserWalletsResponse>;
174
+ /**
175
+ * Recovers deleted wallets for a user in a specified environment by setting deleted_at to null. This undoes the soft deletion of wallets, wallet additional addresses, and turnkey HD wallets.
176
+ * Recover deleted wallets for a user in a specific environment
177
+ */
178
+ recoverDeletedWalletsWithEnvironmentRaw(requestParameters: RecoverDeletedWalletsWithEnvironmentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WalletRecoveryResponse>>;
179
+ /**
180
+ * Recovers deleted wallets for a user in a specified environment by setting deleted_at to null. This undoes the soft deletion of wallets, wallet additional addresses, and turnkey HD wallets.
181
+ * Recover deleted wallets for a user in a specific environment
182
+ */
183
+ recoverDeletedWalletsWithEnvironment(requestParameters: RecoverDeletedWalletsWithEnvironmentRequest, initOverrides?: RequestInit): Promise<WalletRecoveryResponse>;
170
184
  }
@@ -90,6 +90,8 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
90
90
  import '../models/WaasDelegationCredentialsResponse.js';
91
91
  import '../models/WaasPolicyConstraintCondition.js';
92
92
  import '../models/WaasPolicyRuleType.js';
93
+ import { WalletRecoveryRequestToJSON } from '../models/WalletRecoveryRequest.js';
94
+ import { WalletRecoveryResponseFromJSON } from '../models/WalletRecoveryResponse.js';
93
95
  import { WalletsResponseFromJSON } from '../models/WalletsResponse.js';
94
96
 
95
97
  /* tslint:disable */
@@ -563,6 +565,48 @@ class WalletsApi extends BaseAPI {
563
565
  return yield response.value();
564
566
  });
565
567
  }
568
+ /**
569
+ * Recovers deleted wallets for a user in a specified environment by setting deleted_at to null. This undoes the soft deletion of wallets, wallet additional addresses, and turnkey HD wallets.
570
+ * Recover deleted wallets for a user in a specific environment
571
+ */
572
+ recoverDeletedWalletsWithEnvironmentRaw(requestParameters, initOverrides) {
573
+ return __awaiter(this, void 0, void 0, function* () {
574
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
575
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling recoverDeletedWalletsWithEnvironment.');
576
+ }
577
+ if (requestParameters.walletRecoveryRequest === null || requestParameters.walletRecoveryRequest === undefined) {
578
+ throw new RequiredError('walletRecoveryRequest', 'Required parameter requestParameters.walletRecoveryRequest was null or undefined when calling recoverDeletedWalletsWithEnvironment.');
579
+ }
580
+ const queryParameters = {};
581
+ const headerParameters = {};
582
+ headerParameters['Content-Type'] = 'application/json';
583
+ if (this.configuration && this.configuration.accessToken) {
584
+ const token = this.configuration.accessToken;
585
+ const tokenString = yield token("bearerAuth", []);
586
+ if (tokenString) {
587
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
588
+ }
589
+ }
590
+ const response = yield this.request({
591
+ path: `/environments/{environmentId}/wallets/recover`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
592
+ method: 'POST',
593
+ headers: headerParameters,
594
+ query: queryParameters,
595
+ body: WalletRecoveryRequestToJSON(requestParameters.walletRecoveryRequest),
596
+ }, initOverrides);
597
+ return new JSONApiResponse(response, (jsonValue) => WalletRecoveryResponseFromJSON(jsonValue));
598
+ });
599
+ }
600
+ /**
601
+ * Recovers deleted wallets for a user in a specified environment by setting deleted_at to null. This undoes the soft deletion of wallets, wallet additional addresses, and turnkey HD wallets.
602
+ * Recover deleted wallets for a user in a specific environment
603
+ */
604
+ recoverDeletedWalletsWithEnvironment(requestParameters, initOverrides) {
605
+ return __awaiter(this, void 0, void 0, function* () {
606
+ const response = yield this.recoverDeletedWalletsWithEnvironmentRaw(requestParameters, initOverrides);
607
+ return yield response.value();
608
+ });
609
+ }
566
610
  }
567
611
 
568
612
  export { WalletsApi };
package/src/index.cjs CHANGED
@@ -586,6 +586,8 @@ var WalletKeyShareInfoWithEncryptedAccountCredential = require('./models/WalletK
586
586
  var WalletKeyShareInfoWithEncryptedAccountCredentialAllOf = require('./models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.cjs');
587
587
  var WalletProperties = require('./models/WalletProperties.cjs');
588
588
  var WalletProviderEnum = require('./models/WalletProviderEnum.cjs');
589
+ var WalletRecoveryRequest = require('./models/WalletRecoveryRequest.cjs');
590
+ var WalletRecoveryResponse = require('./models/WalletRecoveryResponse.cjs');
589
591
  var WalletsBreakdownResult = require('./models/WalletsBreakdownResult.cjs');
590
592
  var WalletsResponse = require('./models/WalletsResponse.cjs');
591
593
  var Webhook = require('./models/Webhook.cjs');
@@ -2630,6 +2632,12 @@ Object.defineProperty(exports, 'WalletProviderEnum', {
2630
2632
  exports.WalletProviderEnumFromJSON = WalletProviderEnum.WalletProviderEnumFromJSON;
2631
2633
  exports.WalletProviderEnumFromJSONTyped = WalletProviderEnum.WalletProviderEnumFromJSONTyped;
2632
2634
  exports.WalletProviderEnumToJSON = WalletProviderEnum.WalletProviderEnumToJSON;
2635
+ exports.WalletRecoveryRequestFromJSON = WalletRecoveryRequest.WalletRecoveryRequestFromJSON;
2636
+ exports.WalletRecoveryRequestFromJSONTyped = WalletRecoveryRequest.WalletRecoveryRequestFromJSONTyped;
2637
+ exports.WalletRecoveryRequestToJSON = WalletRecoveryRequest.WalletRecoveryRequestToJSON;
2638
+ exports.WalletRecoveryResponseFromJSON = WalletRecoveryResponse.WalletRecoveryResponseFromJSON;
2639
+ exports.WalletRecoveryResponseFromJSONTyped = WalletRecoveryResponse.WalletRecoveryResponseFromJSONTyped;
2640
+ exports.WalletRecoveryResponseToJSON = WalletRecoveryResponse.WalletRecoveryResponseToJSON;
2633
2641
  exports.WalletsBreakdownResultFromJSON = WalletsBreakdownResult.WalletsBreakdownResultFromJSON;
2634
2642
  exports.WalletsBreakdownResultFromJSONTyped = WalletsBreakdownResult.WalletsBreakdownResultFromJSONTyped;
2635
2643
  exports.WalletsBreakdownResultToJSON = WalletsBreakdownResult.WalletsBreakdownResultToJSON;
package/src/index.js CHANGED
@@ -582,6 +582,8 @@ export { WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON, WalletKeyShar
582
582
  export { WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.js';
583
583
  export { WalletPropertiesFromJSON, WalletPropertiesFromJSONTyped, WalletPropertiesToJSON } from './models/WalletProperties.js';
584
584
  export { WalletProviderEnum, WalletProviderEnumFromJSON, WalletProviderEnumFromJSONTyped, WalletProviderEnumToJSON } from './models/WalletProviderEnum.js';
585
+ export { WalletRecoveryRequestFromJSON, WalletRecoveryRequestFromJSONTyped, WalletRecoveryRequestToJSON } from './models/WalletRecoveryRequest.js';
586
+ export { WalletRecoveryResponseFromJSON, WalletRecoveryResponseFromJSONTyped, WalletRecoveryResponseToJSON } from './models/WalletRecoveryResponse.js';
585
587
  export { WalletsBreakdownResultFromJSON, WalletsBreakdownResultFromJSONTyped, WalletsBreakdownResultToJSON } from './models/WalletsBreakdownResult.js';
586
588
  export { WalletsResponseFromJSON, WalletsResponseFromJSONTyped, WalletsResponseToJSON } from './models/WalletsResponse.js';
587
589
  export { WebhookFromJSON, WebhookFromJSONTyped, WebhookToJSON } from './models/Webhook.js';
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WalletRecoveryRequestFromJSON(json) {
9
+ return WalletRecoveryRequestFromJSONTyped(json);
10
+ }
11
+ function WalletRecoveryRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
17
+ };
18
+ }
19
+ function WalletRecoveryRequestToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'userId': value.userId,
28
+ };
29
+ }
30
+
31
+ exports.WalletRecoveryRequestFromJSON = WalletRecoveryRequestFromJSON;
32
+ exports.WalletRecoveryRequestFromJSONTyped = WalletRecoveryRequestFromJSONTyped;
33
+ exports.WalletRecoveryRequestToJSON = WalletRecoveryRequestToJSON;
@@ -0,0 +1,27 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface WalletRecoveryRequest
16
+ */
17
+ export interface WalletRecoveryRequest {
18
+ /**
19
+ * User Id
20
+ * @type {string}
21
+ * @memberof WalletRecoveryRequest
22
+ */
23
+ userId?: string;
24
+ }
25
+ export declare function WalletRecoveryRequestFromJSON(json: any): WalletRecoveryRequest;
26
+ export declare function WalletRecoveryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletRecoveryRequest;
27
+ export declare function WalletRecoveryRequestToJSON(value?: WalletRecoveryRequest | null): any;
@@ -0,0 +1,27 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function WalletRecoveryRequestFromJSON(json) {
5
+ return WalletRecoveryRequestFromJSONTyped(json);
6
+ }
7
+ function WalletRecoveryRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'userId': !exists(json, 'userId') ? undefined : json['userId'],
13
+ };
14
+ }
15
+ function WalletRecoveryRequestToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'userId': value.userId,
24
+ };
25
+ }
26
+
27
+ export { WalletRecoveryRequestFromJSON, WalletRecoveryRequestFromJSONTyped, WalletRecoveryRequestToJSON };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WalletRecoveryResponseFromJSON(json) {
9
+ return WalletRecoveryResponseFromJSONTyped(json);
10
+ }
11
+ function WalletRecoveryResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'data': !runtime.exists(json, 'data') ? undefined : json['data'],
17
+ 'message': !runtime.exists(json, 'message') ? undefined : json['message'],
18
+ };
19
+ }
20
+ function WalletRecoveryResponseToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'data': value.data,
29
+ 'message': value.message,
30
+ };
31
+ }
32
+
33
+ exports.WalletRecoveryResponseFromJSON = WalletRecoveryResponseFromJSON;
34
+ exports.WalletRecoveryResponseFromJSONTyped = WalletRecoveryResponseFromJSONTyped;
35
+ exports.WalletRecoveryResponseToJSON = WalletRecoveryResponseToJSON;
@@ -0,0 +1,33 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface WalletRecoveryResponse
16
+ */
17
+ export interface WalletRecoveryResponse {
18
+ /**
19
+ * Recovered wallets data
20
+ * @type {object}
21
+ * @memberof WalletRecoveryResponse
22
+ */
23
+ data?: object;
24
+ /**
25
+ * Summary of wallet recovery
26
+ * @type {string}
27
+ * @memberof WalletRecoveryResponse
28
+ */
29
+ message?: string;
30
+ }
31
+ export declare function WalletRecoveryResponseFromJSON(json: any): WalletRecoveryResponse;
32
+ export declare function WalletRecoveryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletRecoveryResponse;
33
+ export declare function WalletRecoveryResponseToJSON(value?: WalletRecoveryResponse | null): any;
@@ -0,0 +1,29 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function WalletRecoveryResponseFromJSON(json) {
5
+ return WalletRecoveryResponseFromJSONTyped(json);
6
+ }
7
+ function WalletRecoveryResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'data': !exists(json, 'data') ? undefined : json['data'],
13
+ 'message': !exists(json, 'message') ? undefined : json['message'],
14
+ };
15
+ }
16
+ function WalletRecoveryResponseToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'data': value.data,
25
+ 'message': value.message,
26
+ };
27
+ }
28
+
29
+ export { WalletRecoveryResponseFromJSON, WalletRecoveryResponseFromJSONTyped, WalletRecoveryResponseToJSON };
@@ -545,6 +545,8 @@ export * from './WalletKeyShareInfoWithEncryptedAccountCredential';
545
545
  export * from './WalletKeyShareInfoWithEncryptedAccountCredentialAllOf';
546
546
  export * from './WalletProperties';
547
547
  export * from './WalletProviderEnum';
548
+ export * from './WalletRecoveryRequest';
549
+ export * from './WalletRecoveryResponse';
548
550
  export * from './WalletsBreakdownResult';
549
551
  export * from './WalletsResponse';
550
552
  export * from './Webhook';