@dynamic-labs/sdk-api 0.0.838 → 0.0.839

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.
Files changed (91) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AllowlistsApi.cjs +1 -0
  3. package/src/apis/AllowlistsApi.js +1 -0
  4. package/src/apis/AnalyticsApi.cjs +1 -0
  5. package/src/apis/AnalyticsApi.js +1 -0
  6. package/src/apis/ChainalysisApi.cjs +1 -0
  7. package/src/apis/ChainalysisApi.js +1 -0
  8. package/src/apis/ChainsApi.cjs +1 -0
  9. package/src/apis/ChainsApi.js +1 -0
  10. package/src/apis/CustomFieldsApi.cjs +1 -0
  11. package/src/apis/CustomFieldsApi.js +1 -0
  12. package/src/apis/CustomHostnamesApi.cjs +1 -0
  13. package/src/apis/CustomHostnamesApi.js +1 -0
  14. package/src/apis/CustomNetworksApi.cjs +1 -0
  15. package/src/apis/CustomNetworksApi.js +1 -0
  16. package/src/apis/DeeplinkUrlsApi.cjs +1 -0
  17. package/src/apis/DeeplinkUrlsApi.js +1 -0
  18. package/src/apis/EnvironmentsApi.cjs +1 -0
  19. package/src/apis/EnvironmentsApi.js +1 -0
  20. package/src/apis/EventsApi.cjs +1 -0
  21. package/src/apis/EventsApi.js +1 -0
  22. package/src/apis/ExportsApi.cjs +1 -0
  23. package/src/apis/ExportsApi.js +1 -0
  24. package/src/apis/ExternalJwtApi.cjs +1 -0
  25. package/src/apis/ExternalJwtApi.js +1 -0
  26. package/src/apis/GatesApi.cjs +1 -0
  27. package/src/apis/GatesApi.js +1 -0
  28. package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
  29. package/src/apis/GlobalWalletAccessControlApi.js +1 -0
  30. package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
  31. package/src/apis/GlobalWalletConnectionsApi.js +1 -0
  32. package/src/apis/GlobalWalletsApi.cjs +1 -0
  33. package/src/apis/GlobalWalletsApi.js +1 -0
  34. package/src/apis/InvitesApi.cjs +1 -0
  35. package/src/apis/InvitesApi.js +1 -0
  36. package/src/apis/MembersApi.cjs +1 -0
  37. package/src/apis/MembersApi.js +1 -0
  38. package/src/apis/MfaSettingsApi.cjs +1 -0
  39. package/src/apis/MfaSettingsApi.js +1 -0
  40. package/src/apis/NameServicesApi.cjs +1 -0
  41. package/src/apis/NameServicesApi.js +1 -0
  42. package/src/apis/OrganizationsApi.cjs +1 -0
  43. package/src/apis/OrganizationsApi.js +1 -0
  44. package/src/apis/OriginsApi.cjs +1 -0
  45. package/src/apis/OriginsApi.js +1 -0
  46. package/src/apis/ProjectsApi.cjs +1 -0
  47. package/src/apis/ProjectsApi.js +1 -0
  48. package/src/apis/SDKApi.cjs +102 -0
  49. package/src/apis/SDKApi.d.ts +35 -1
  50. package/src/apis/SDKApi.js +102 -0
  51. package/src/apis/SDKViewsApi.cjs +1 -0
  52. package/src/apis/SDKViewsApi.js +1 -0
  53. package/src/apis/SessionsApi.cjs +1 -0
  54. package/src/apis/SessionsApi.js +1 -0
  55. package/src/apis/SettingsApi.cjs +1 -0
  56. package/src/apis/SettingsApi.js +1 -0
  57. package/src/apis/TestAccountApi.cjs +1 -0
  58. package/src/apis/TestAccountApi.js +1 -0
  59. package/src/apis/TokensApi.cjs +1 -0
  60. package/src/apis/TokensApi.js +1 -0
  61. package/src/apis/UserApiTokensApi.cjs +1 -0
  62. package/src/apis/UserApiTokensApi.js +1 -0
  63. package/src/apis/UsersApi.cjs +1 -0
  64. package/src/apis/UsersApi.js +1 -0
  65. package/src/apis/VisitsApi.cjs +1 -0
  66. package/src/apis/VisitsApi.js +1 -0
  67. package/src/apis/WaasApi.cjs +1 -0
  68. package/src/apis/WaasApi.js +1 -0
  69. package/src/apis/WalletsApi.cjs +1 -0
  70. package/src/apis/WalletsApi.js +1 -0
  71. package/src/apis/WebhooksApi.cjs +1 -0
  72. package/src/apis/WebhooksApi.js +1 -0
  73. package/src/index.cjs +24 -0
  74. package/src/index.js +5 -0
  75. package/src/models/Account.d.ts +1 -1
  76. package/src/models/WalletTransaction.cjs +55 -0
  77. package/src/models/WalletTransaction.d.ts +90 -0
  78. package/src/models/WalletTransaction.js +49 -0
  79. package/src/models/WalletTransactionAssetTransfer.cjs +42 -0
  80. package/src/models/WalletTransactionAssetTransfer.d.ts +52 -0
  81. package/src/models/WalletTransactionAssetTransfer.js +36 -0
  82. package/src/models/WalletTransactionAssetTransferMetadata.cjs +39 -0
  83. package/src/models/WalletTransactionAssetTransferMetadata.d.ts +45 -0
  84. package/src/models/WalletTransactionAssetTransferMetadata.js +33 -0
  85. package/src/models/WalletTransactionType.cjs +41 -0
  86. package/src/models/WalletTransactionType.d.ts +24 -0
  87. package/src/models/WalletTransactionType.js +35 -0
  88. package/src/models/WalletTransactionsResponse.cjs +36 -0
  89. package/src/models/WalletTransactionsResponse.d.ts +34 -0
  90. package/src/models/WalletTransactionsResponse.js +30 -0
  91. package/src/models/index.d.ts +5 -0
@@ -218,6 +218,8 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
218
218
  import '../models/WaasDelegationCredentialsResponse.js';
219
219
  import '../models/WaasPolicyConstraintCondition.js';
220
220
  import '../models/WaasPolicyRuleType.js';
221
+ import '../models/WalletTransactionType.js';
222
+ import { WalletTransactionsResponseFromJSON } from '../models/WalletTransactionsResponse.js';
221
223
 
222
224
  /* tslint:disable */
223
225
  /**
@@ -4393,6 +4395,106 @@ class SDKApi extends BaseAPI {
4393
4395
  yield this.getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides);
4394
4396
  });
4395
4397
  }
4398
+ /**
4399
+ * Fetches the list of transactions for a given wallet address within an environment.
4400
+ * Get transactions for a wallet address
4401
+ */
4402
+ getWalletTransactionsRaw(requestParameters, initOverrides) {
4403
+ return __awaiter(this, void 0, void 0, function* () {
4404
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4405
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWalletTransactions.');
4406
+ }
4407
+ if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
4408
+ throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getWalletTransactions.');
4409
+ }
4410
+ if (requestParameters.address === null || requestParameters.address === undefined) {
4411
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getWalletTransactions.');
4412
+ }
4413
+ if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
4414
+ throw new RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling getWalletTransactions.');
4415
+ }
4416
+ const queryParameters = {};
4417
+ if (requestParameters.networkId !== undefined) {
4418
+ queryParameters['networkId'] = requestParameters.networkId;
4419
+ }
4420
+ if (requestParameters.limit !== undefined) {
4421
+ queryParameters['limit'] = requestParameters.limit;
4422
+ }
4423
+ if (requestParameters.offset !== undefined) {
4424
+ queryParameters['offset'] = requestParameters.offset;
4425
+ }
4426
+ const headerParameters = {};
4427
+ if (this.configuration && this.configuration.accessToken) {
4428
+ const token = this.configuration.accessToken;
4429
+ const tokenString = yield token("bearerAuth", []);
4430
+ if (tokenString) {
4431
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4432
+ }
4433
+ }
4434
+ const response = yield this.request({
4435
+ path: `/sdk/{environmentId}/chains/{chainName}/transactions/{address}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))).replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
4436
+ method: 'GET',
4437
+ headers: headerParameters,
4438
+ query: queryParameters,
4439
+ }, initOverrides);
4440
+ return new JSONApiResponse(response, (jsonValue) => WalletTransactionsResponseFromJSON(jsonValue));
4441
+ });
4442
+ }
4443
+ /**
4444
+ * Fetches the list of transactions for a given wallet address within an environment.
4445
+ * Get transactions for a wallet address
4446
+ */
4447
+ getWalletTransactions(requestParameters, initOverrides) {
4448
+ return __awaiter(this, void 0, void 0, function* () {
4449
+ const response = yield this.getWalletTransactionsRaw(requestParameters, initOverrides);
4450
+ return yield response.value();
4451
+ });
4452
+ }
4453
+ /**
4454
+ * Options call for this endpoint
4455
+ */
4456
+ getWalletTransactionsOptionsRaw(requestParameters, initOverrides) {
4457
+ return __awaiter(this, void 0, void 0, function* () {
4458
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4459
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWalletTransactionsOptions.');
4460
+ }
4461
+ if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
4462
+ throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getWalletTransactionsOptions.');
4463
+ }
4464
+ if (requestParameters.address === null || requestParameters.address === undefined) {
4465
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getWalletTransactionsOptions.');
4466
+ }
4467
+ if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
4468
+ throw new RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling getWalletTransactionsOptions.');
4469
+ }
4470
+ const queryParameters = {};
4471
+ if (requestParameters.networkId !== undefined) {
4472
+ queryParameters['networkId'] = requestParameters.networkId;
4473
+ }
4474
+ if (requestParameters.limit !== undefined) {
4475
+ queryParameters['limit'] = requestParameters.limit;
4476
+ }
4477
+ if (requestParameters.offset !== undefined) {
4478
+ queryParameters['offset'] = requestParameters.offset;
4479
+ }
4480
+ const headerParameters = {};
4481
+ const response = yield this.request({
4482
+ path: `/sdk/{environmentId}/chains/{chainName}/transactions/{address}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))).replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
4483
+ method: 'OPTIONS',
4484
+ headers: headerParameters,
4485
+ query: queryParameters,
4486
+ }, initOverrides);
4487
+ return new VoidApiResponse(response);
4488
+ });
4489
+ }
4490
+ /**
4491
+ * Options call for this endpoint
4492
+ */
4493
+ getWalletTransactionsOptions(requestParameters, initOverrides) {
4494
+ return __awaiter(this, void 0, void 0, function* () {
4495
+ yield this.getWalletTransactionsOptionsRaw(requestParameters, initOverrides);
4496
+ });
4497
+ }
4396
4498
  /**
4397
4499
  * Options call for this endpoint
4398
4500
  */
@@ -97,6 +97,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
97
97
  require('../models/WaasDelegationCredentialsResponse.cjs');
98
98
  require('../models/WaasPolicyConstraintCondition.cjs');
99
99
  require('../models/WaasPolicyRuleType.cjs');
100
+ require('../models/WalletTransactionType.cjs');
100
101
 
101
102
  /* tslint:disable */
102
103
  /**
@@ -93,6 +93,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
93
93
  import '../models/WaasDelegationCredentialsResponse.js';
94
94
  import '../models/WaasPolicyConstraintCondition.js';
95
95
  import '../models/WaasPolicyRuleType.js';
96
+ import '../models/WalletTransactionType.js';
96
97
 
97
98
  /* tslint:disable */
98
99
  /**
@@ -95,6 +95,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
95
95
  require('../models/WaasDelegationCredentialsResponse.cjs');
96
96
  require('../models/WaasPolicyConstraintCondition.cjs');
97
97
  require('../models/WaasPolicyRuleType.cjs');
98
+ require('../models/WalletTransactionType.cjs');
98
99
 
99
100
  /* tslint:disable */
100
101
  /**
@@ -91,6 +91,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
91
91
  import '../models/WaasDelegationCredentialsResponse.js';
92
92
  import '../models/WaasPolicyConstraintCondition.js';
93
93
  import '../models/WaasPolicyRuleType.js';
94
+ import '../models/WalletTransactionType.js';
94
95
 
95
96
  /* tslint:disable */
96
97
  /**
@@ -101,6 +101,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
101
101
  require('../models/WaasDelegationCredentialsResponse.cjs');
102
102
  require('../models/WaasPolicyConstraintCondition.cjs');
103
103
  require('../models/WaasPolicyRuleType.cjs');
104
+ require('../models/WalletTransactionType.cjs');
104
105
  require('../models/ZerodevBundlerProvider.cjs');
105
106
 
106
107
  /* tslint:disable */
@@ -97,6 +97,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
97
97
  import '../models/WaasDelegationCredentialsResponse.js';
98
98
  import '../models/WaasPolicyConstraintCondition.js';
99
99
  import '../models/WaasPolicyRuleType.js';
100
+ import '../models/WalletTransactionType.js';
100
101
  import '../models/ZerodevBundlerProvider.js';
101
102
 
102
103
  /* tslint:disable */
@@ -95,6 +95,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
95
95
  require('../models/WaasDelegationCredentialsResponse.cjs');
96
96
  require('../models/WaasPolicyConstraintCondition.cjs');
97
97
  require('../models/WaasPolicyRuleType.cjs');
98
+ require('../models/WalletTransactionType.cjs');
98
99
 
99
100
  /* tslint:disable */
100
101
  /**
@@ -91,6 +91,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
91
91
  import '../models/WaasDelegationCredentialsResponse.js';
92
92
  import '../models/WaasPolicyConstraintCondition.js';
93
93
  import '../models/WaasPolicyRuleType.js';
94
+ import '../models/WalletTransactionType.js';
94
95
 
95
96
  /* tslint:disable */
96
97
  /**
@@ -97,6 +97,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
97
97
  require('../models/WaasDelegationCredentialsResponse.cjs');
98
98
  require('../models/WaasPolicyConstraintCondition.cjs');
99
99
  require('../models/WaasPolicyRuleType.cjs');
100
+ require('../models/WalletTransactionType.cjs');
100
101
 
101
102
  /* tslint:disable */
102
103
  /**
@@ -93,6 +93,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
93
93
  import '../models/WaasDelegationCredentialsResponse.js';
94
94
  import '../models/WaasPolicyConstraintCondition.js';
95
95
  import '../models/WaasPolicyRuleType.js';
96
+ import '../models/WalletTransactionType.js';
96
97
 
97
98
  /* tslint:disable */
98
99
  /**
@@ -97,6 +97,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
97
97
  require('../models/WaasDelegationCredentialsResponse.cjs');
98
98
  require('../models/WaasPolicyConstraintCondition.cjs');
99
99
  require('../models/WaasPolicyRuleType.cjs');
100
+ require('../models/WalletTransactionType.cjs');
100
101
 
101
102
  /* tslint:disable */
102
103
  /**
@@ -93,6 +93,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
93
93
  import '../models/WaasDelegationCredentialsResponse.js';
94
94
  import '../models/WaasPolicyConstraintCondition.js';
95
95
  import '../models/WaasPolicyRuleType.js';
96
+ import '../models/WalletTransactionType.js';
96
97
 
97
98
  /* tslint:disable */
98
99
  /**
@@ -101,6 +101,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
101
101
  require('../models/WaasDelegationCredentialsResponse.cjs');
102
102
  require('../models/WaasPolicyConstraintCondition.cjs');
103
103
  require('../models/WaasPolicyRuleType.cjs');
104
+ require('../models/WalletTransactionType.cjs');
104
105
 
105
106
  /* tslint:disable */
106
107
  /**
@@ -97,6 +97,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
97
97
  import '../models/WaasDelegationCredentialsResponse.js';
98
98
  import '../models/WaasPolicyConstraintCondition.js';
99
99
  import '../models/WaasPolicyRuleType.js';
100
+ import '../models/WalletTransactionType.js';
100
101
 
101
102
  /* tslint:disable */
102
103
  /**
@@ -95,6 +95,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
95
95
  require('../models/WaasDelegationCredentialsResponse.cjs');
96
96
  require('../models/WaasPolicyConstraintCondition.cjs');
97
97
  require('../models/WaasPolicyRuleType.cjs');
98
+ require('../models/WalletTransactionType.cjs');
98
99
 
99
100
  /* tslint:disable */
100
101
  /**
@@ -91,6 +91,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
91
91
  import '../models/WaasDelegationCredentialsResponse.js';
92
92
  import '../models/WaasPolicyConstraintCondition.js';
93
93
  import '../models/WaasPolicyRuleType.js';
94
+ import '../models/WalletTransactionType.js';
94
95
 
95
96
  /* tslint:disable */
96
97
  /**
@@ -112,6 +112,7 @@ require('../models/WaasPolicyRuleType.cjs');
112
112
  var WaasPolicyUpdateRequest = require('../models/WaasPolicyUpdateRequest.cjs');
113
113
  var WaasVerifyApiKeyResponse = require('../models/WaasVerifyApiKeyResponse.cjs');
114
114
  var WaasWalletResponse = require('../models/WaasWalletResponse.cjs');
115
+ require('../models/WalletTransactionType.cjs');
115
116
 
116
117
  /* tslint:disable */
117
118
  /**
@@ -108,6 +108,7 @@ import '../models/WaasPolicyRuleType.js';
108
108
  import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
109
109
  import { WaasVerifyApiKeyResponseFromJSON } from '../models/WaasVerifyApiKeyResponse.js';
110
110
  import { WaasWalletResponseFromJSON } from '../models/WaasWalletResponse.js';
111
+ import '../models/WalletTransactionType.js';
111
112
 
112
113
  /* tslint:disable */
113
114
  /**
@@ -102,6 +102,7 @@ require('../models/WaasPolicyConstraintCondition.cjs');
102
102
  require('../models/WaasPolicyRuleType.cjs');
103
103
  var WalletRecoveryRequest = require('../models/WalletRecoveryRequest.cjs');
104
104
  var WalletRecoveryResponse = require('../models/WalletRecoveryResponse.cjs');
105
+ require('../models/WalletTransactionType.cjs');
105
106
  var WalletsResponse = require('../models/WalletsResponse.cjs');
106
107
 
107
108
  /* tslint:disable */
@@ -98,6 +98,7 @@ import '../models/WaasPolicyConstraintCondition.js';
98
98
  import '../models/WaasPolicyRuleType.js';
99
99
  import { WalletRecoveryRequestToJSON } from '../models/WalletRecoveryRequest.js';
100
100
  import { WalletRecoveryResponseFromJSON } from '../models/WalletRecoveryResponse.js';
101
+ import '../models/WalletTransactionType.js';
101
102
  import { WalletsResponseFromJSON } from '../models/WalletsResponse.js';
102
103
 
103
104
  /* tslint:disable */
@@ -94,6 +94,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
94
94
  require('../models/WaasDelegationCredentialsResponse.cjs');
95
95
  require('../models/WaasPolicyConstraintCondition.cjs');
96
96
  require('../models/WaasPolicyRuleType.cjs');
97
+ require('../models/WalletTransactionType.cjs');
97
98
  var Webhook = require('../models/Webhook.cjs');
98
99
  var WebhookCreateRequest = require('../models/WebhookCreateRequest.cjs');
99
100
  var WebhookMessageRedeliveryResponse = require('../models/WebhookMessageRedeliveryResponse.cjs');
@@ -90,6 +90,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
90
90
  import '../models/WaasDelegationCredentialsResponse.js';
91
91
  import '../models/WaasPolicyConstraintCondition.js';
92
92
  import '../models/WaasPolicyRuleType.js';
93
+ import '../models/WalletTransactionType.js';
93
94
  import { WebhookFromJSON } from '../models/Webhook.js';
94
95
  import { WebhookCreateRequestToJSON } from '../models/WebhookCreateRequest.js';
95
96
  import { WebhookMessageRedeliveryResponseFromJSON } from '../models/WebhookMessageRedeliveryResponse.js';
package/src/index.cjs CHANGED
@@ -609,6 +609,11 @@ var WalletProperties = require('./models/WalletProperties.cjs');
609
609
  var WalletProviderEnum = require('./models/WalletProviderEnum.cjs');
610
610
  var WalletRecoveryRequest = require('./models/WalletRecoveryRequest.cjs');
611
611
  var WalletRecoveryResponse = require('./models/WalletRecoveryResponse.cjs');
612
+ var WalletTransaction = require('./models/WalletTransaction.cjs');
613
+ var WalletTransactionAssetTransfer = require('./models/WalletTransactionAssetTransfer.cjs');
614
+ var WalletTransactionAssetTransferMetadata = require('./models/WalletTransactionAssetTransferMetadata.cjs');
615
+ var WalletTransactionType = require('./models/WalletTransactionType.cjs');
616
+ var WalletTransactionsResponse = require('./models/WalletTransactionsResponse.cjs');
612
617
  var WalletsBreakdownResult = require('./models/WalletsBreakdownResult.cjs');
613
618
  var WalletsResponse = require('./models/WalletsResponse.cjs');
614
619
  var Webhook = require('./models/Webhook.cjs');
@@ -2746,6 +2751,25 @@ exports.WalletRecoveryRequestToJSON = WalletRecoveryRequest.WalletRecoveryReques
2746
2751
  exports.WalletRecoveryResponseFromJSON = WalletRecoveryResponse.WalletRecoveryResponseFromJSON;
2747
2752
  exports.WalletRecoveryResponseFromJSONTyped = WalletRecoveryResponse.WalletRecoveryResponseFromJSONTyped;
2748
2753
  exports.WalletRecoveryResponseToJSON = WalletRecoveryResponse.WalletRecoveryResponseToJSON;
2754
+ exports.WalletTransactionFromJSON = WalletTransaction.WalletTransactionFromJSON;
2755
+ exports.WalletTransactionFromJSONTyped = WalletTransaction.WalletTransactionFromJSONTyped;
2756
+ exports.WalletTransactionToJSON = WalletTransaction.WalletTransactionToJSON;
2757
+ exports.WalletTransactionAssetTransferFromJSON = WalletTransactionAssetTransfer.WalletTransactionAssetTransferFromJSON;
2758
+ exports.WalletTransactionAssetTransferFromJSONTyped = WalletTransactionAssetTransfer.WalletTransactionAssetTransferFromJSONTyped;
2759
+ exports.WalletTransactionAssetTransferToJSON = WalletTransactionAssetTransfer.WalletTransactionAssetTransferToJSON;
2760
+ exports.WalletTransactionAssetTransferMetadataFromJSON = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSON;
2761
+ exports.WalletTransactionAssetTransferMetadataFromJSONTyped = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSONTyped;
2762
+ exports.WalletTransactionAssetTransferMetadataToJSON = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataToJSON;
2763
+ Object.defineProperty(exports, 'WalletTransactionType', {
2764
+ enumerable: true,
2765
+ get: function () { return WalletTransactionType.WalletTransactionType; }
2766
+ });
2767
+ exports.WalletTransactionTypeFromJSON = WalletTransactionType.WalletTransactionTypeFromJSON;
2768
+ exports.WalletTransactionTypeFromJSONTyped = WalletTransactionType.WalletTransactionTypeFromJSONTyped;
2769
+ exports.WalletTransactionTypeToJSON = WalletTransactionType.WalletTransactionTypeToJSON;
2770
+ exports.WalletTransactionsResponseFromJSON = WalletTransactionsResponse.WalletTransactionsResponseFromJSON;
2771
+ exports.WalletTransactionsResponseFromJSONTyped = WalletTransactionsResponse.WalletTransactionsResponseFromJSONTyped;
2772
+ exports.WalletTransactionsResponseToJSON = WalletTransactionsResponse.WalletTransactionsResponseToJSON;
2749
2773
  exports.WalletsBreakdownResultFromJSON = WalletsBreakdownResult.WalletsBreakdownResultFromJSON;
2750
2774
  exports.WalletsBreakdownResultFromJSONTyped = WalletsBreakdownResult.WalletsBreakdownResultFromJSONTyped;
2751
2775
  exports.WalletsBreakdownResultToJSON = WalletsBreakdownResult.WalletsBreakdownResultToJSON;
package/src/index.js CHANGED
@@ -605,6 +605,11 @@ export { WalletPropertiesFromJSON, WalletPropertiesFromJSONTyped, WalletProperti
605
605
  export { WalletProviderEnum, WalletProviderEnumFromJSON, WalletProviderEnumFromJSONTyped, WalletProviderEnumToJSON } from './models/WalletProviderEnum.js';
606
606
  export { WalletRecoveryRequestFromJSON, WalletRecoveryRequestFromJSONTyped, WalletRecoveryRequestToJSON } from './models/WalletRecoveryRequest.js';
607
607
  export { WalletRecoveryResponseFromJSON, WalletRecoveryResponseFromJSONTyped, WalletRecoveryResponseToJSON } from './models/WalletRecoveryResponse.js';
608
+ export { WalletTransactionFromJSON, WalletTransactionFromJSONTyped, WalletTransactionToJSON } from './models/WalletTransaction.js';
609
+ export { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferFromJSONTyped, WalletTransactionAssetTransferToJSON } from './models/WalletTransactionAssetTransfer.js';
610
+ export { WalletTransactionAssetTransferMetadataFromJSON, WalletTransactionAssetTransferMetadataFromJSONTyped, WalletTransactionAssetTransferMetadataToJSON } from './models/WalletTransactionAssetTransferMetadata.js';
611
+ export { WalletTransactionType, WalletTransactionTypeFromJSON, WalletTransactionTypeFromJSONTyped, WalletTransactionTypeToJSON } from './models/WalletTransactionType.js';
612
+ export { WalletTransactionsResponseFromJSON, WalletTransactionsResponseFromJSONTyped, WalletTransactionsResponseToJSON } from './models/WalletTransactionsResponse.js';
608
613
  export { WalletsBreakdownResultFromJSON, WalletsBreakdownResultFromJSONTyped, WalletsBreakdownResultToJSON } from './models/WalletsBreakdownResult.js';
609
614
  export { WalletsResponseFromJSON, WalletsResponseFromJSONTyped, WalletsResponseToJSON } from './models/WalletsResponse.js';
610
615
  export { WebhookFromJSON, WebhookFromJSONTyped, WebhookToJSON } from './models/Webhook.js';
@@ -48,7 +48,7 @@ export interface Account {
48
48
  */
49
49
  name?: string;
50
50
  /**
51
- * Blockchain network if relevant
51
+ *
52
52
  * @type {string}
53
53
  * @memberof Account
54
54
  */
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var ChainEnum = require('./ChainEnum.cjs');
6
+ var WalletTransactionAssetTransfer = require('./WalletTransactionAssetTransfer.cjs');
7
+ var WalletTransactionType = require('./WalletTransactionType.cjs');
8
+
9
+ /* tslint:disable */
10
+ function WalletTransactionFromJSON(json) {
11
+ return WalletTransactionFromJSONTyped(json);
12
+ }
13
+ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'transactionHash': json['transactionHash'],
19
+ 'blockNumber': json['blockNumber'],
20
+ 'transactionTimestamp': (new Date(json['transactionTimestamp'])),
21
+ 'blockHash': json['blockHash'],
22
+ 'blockExplorerUrls': json['blockExplorerUrls'],
23
+ 'fromAddress': json['fromAddress'],
24
+ 'toAddress': json['toAddress'],
25
+ 'labels': (json['labels'].map(WalletTransactionType.WalletTransactionTypeFromJSON)),
26
+ 'assetTransfers': (json['assetTransfers'].map(WalletTransactionAssetTransfer.WalletTransactionAssetTransferFromJSON)),
27
+ 'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
28
+ 'networkId': json['networkId'],
29
+ };
30
+ }
31
+ function WalletTransactionToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'transactionHash': value.transactionHash,
40
+ 'blockNumber': value.blockNumber,
41
+ 'transactionTimestamp': (value.transactionTimestamp.toISOString()),
42
+ 'blockHash': value.blockHash,
43
+ 'blockExplorerUrls': value.blockExplorerUrls,
44
+ 'fromAddress': value.fromAddress,
45
+ 'toAddress': value.toAddress,
46
+ 'labels': (value.labels.map(WalletTransactionType.WalletTransactionTypeToJSON)),
47
+ 'assetTransfers': (value.assetTransfers.map(WalletTransactionAssetTransfer.WalletTransactionAssetTransferToJSON)),
48
+ 'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
49
+ 'networkId': value.networkId,
50
+ };
51
+ }
52
+
53
+ exports.WalletTransactionFromJSON = WalletTransactionFromJSON;
54
+ exports.WalletTransactionFromJSONTyped = WalletTransactionFromJSONTyped;
55
+ exports.WalletTransactionToJSON = WalletTransactionToJSON;
@@ -0,0 +1,90 @@
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
+ import { ChainEnum } from './ChainEnum';
13
+ import { WalletTransactionAssetTransfer } from './WalletTransactionAssetTransfer';
14
+ import { WalletTransactionType } from './WalletTransactionType';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface WalletTransaction
19
+ */
20
+ export interface WalletTransaction {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof WalletTransaction
25
+ */
26
+ transactionHash: string;
27
+ /**
28
+ * Block number of the transaction
29
+ * @type {number}
30
+ * @memberof WalletTransaction
31
+ */
32
+ blockNumber: number;
33
+ /**
34
+ * Timestamp of the transaction
35
+ * @type {Date}
36
+ * @memberof WalletTransaction
37
+ */
38
+ transactionTimestamp: Date;
39
+ /**
40
+ * Hash of the block that contains the transaction
41
+ * @type {string}
42
+ * @memberof WalletTransaction
43
+ */
44
+ blockHash: string;
45
+ /**
46
+ * URLs to the block explorer for the transaction
47
+ * @type {Array<string>}
48
+ * @memberof WalletTransaction
49
+ */
50
+ blockExplorerUrls: Array<string>;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof WalletTransaction
55
+ */
56
+ fromAddress: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof WalletTransaction
61
+ */
62
+ toAddress: string;
63
+ /**
64
+ *
65
+ * @type {Array<WalletTransactionType>}
66
+ * @memberof WalletTransaction
67
+ */
68
+ labels: Array<WalletTransactionType>;
69
+ /**
70
+ *
71
+ * @type {Array<WalletTransactionAssetTransfer>}
72
+ * @memberof WalletTransaction
73
+ */
74
+ assetTransfers: Array<WalletTransactionAssetTransfer>;
75
+ /**
76
+ *
77
+ * @type {ChainEnum}
78
+ * @memberof WalletTransaction
79
+ */
80
+ chainName: ChainEnum;
81
+ /**
82
+ *
83
+ * @type {number}
84
+ * @memberof WalletTransaction
85
+ */
86
+ networkId: number;
87
+ }
88
+ export declare function WalletTransactionFromJSON(json: any): WalletTransaction;
89
+ export declare function WalletTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletTransaction;
90
+ export declare function WalletTransactionToJSON(value?: WalletTransaction | null): any;
@@ -0,0 +1,49 @@
1
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
2
+ import { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferToJSON } from './WalletTransactionAssetTransfer.js';
3
+ import { WalletTransactionTypeFromJSON, WalletTransactionTypeToJSON } from './WalletTransactionType.js';
4
+
5
+ /* tslint:disable */
6
+ function WalletTransactionFromJSON(json) {
7
+ return WalletTransactionFromJSONTyped(json);
8
+ }
9
+ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'transactionHash': json['transactionHash'],
15
+ 'blockNumber': json['blockNumber'],
16
+ 'transactionTimestamp': (new Date(json['transactionTimestamp'])),
17
+ 'blockHash': json['blockHash'],
18
+ 'blockExplorerUrls': json['blockExplorerUrls'],
19
+ 'fromAddress': json['fromAddress'],
20
+ 'toAddress': json['toAddress'],
21
+ 'labels': (json['labels'].map(WalletTransactionTypeFromJSON)),
22
+ 'assetTransfers': (json['assetTransfers'].map(WalletTransactionAssetTransferFromJSON)),
23
+ 'chainName': ChainEnumFromJSON(json['chainName']),
24
+ 'networkId': json['networkId'],
25
+ };
26
+ }
27
+ function WalletTransactionToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'transactionHash': value.transactionHash,
36
+ 'blockNumber': value.blockNumber,
37
+ 'transactionTimestamp': (value.transactionTimestamp.toISOString()),
38
+ 'blockHash': value.blockHash,
39
+ 'blockExplorerUrls': value.blockExplorerUrls,
40
+ 'fromAddress': value.fromAddress,
41
+ 'toAddress': value.toAddress,
42
+ 'labels': (value.labels.map(WalletTransactionTypeToJSON)),
43
+ 'assetTransfers': (value.assetTransfers.map(WalletTransactionAssetTransferToJSON)),
44
+ 'chainName': ChainEnumToJSON(value.chainName),
45
+ 'networkId': value.networkId,
46
+ };
47
+ }
48
+
49
+ export { WalletTransactionFromJSON, WalletTransactionFromJSONTyped, WalletTransactionToJSON };
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WalletTransactionAssetTransferMetadata = require('./WalletTransactionAssetTransferMetadata.cjs');
7
+
8
+ /* tslint:disable */
9
+ function WalletTransactionAssetTransferFromJSON(json) {
10
+ return WalletTransactionAssetTransferFromJSONTyped(json);
11
+ }
12
+ function WalletTransactionAssetTransferFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'tokenAddress': !runtime.exists(json, 'tokenAddress') ? undefined : json['tokenAddress'],
18
+ 'fromAddress': json['fromAddress'],
19
+ 'toAddress': json['toAddress'],
20
+ 'amount': json['amount'],
21
+ 'metadata': !runtime.exists(json, 'metadata') ? undefined : WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSON(json['metadata']),
22
+ };
23
+ }
24
+ function WalletTransactionAssetTransferToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'tokenAddress': value.tokenAddress,
33
+ 'fromAddress': value.fromAddress,
34
+ 'toAddress': value.toAddress,
35
+ 'amount': value.amount,
36
+ 'metadata': WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataToJSON(value.metadata),
37
+ };
38
+ }
39
+
40
+ exports.WalletTransactionAssetTransferFromJSON = WalletTransactionAssetTransferFromJSON;
41
+ exports.WalletTransactionAssetTransferFromJSONTyped = WalletTransactionAssetTransferFromJSONTyped;
42
+ exports.WalletTransactionAssetTransferToJSON = WalletTransactionAssetTransferToJSON;