@dynamic-labs/sdk-api-core 0.0.1000 → 0.0.1002

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.1000",
3
+ "version": "0.0.1002",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -159,6 +159,7 @@ require('../models/MFASettingsActions.cjs');
159
159
  var MFAUpdateDeviceRequest = require('../models/MFAUpdateDeviceRequest.cjs');
160
160
  var MergeUserConflictResolutions = require('../models/MergeUserConflictResolutions.cjs');
161
161
  require('../models/MinApiVersionEnum.cjs');
162
+ var MoonPayCurrenciesResponse = require('../models/MoonPayCurrenciesResponse.cjs');
162
163
  var MultichainAccountBalanceResponse = require('../models/MultichainAccountBalanceResponse.cjs');
163
164
  var TokenBalance = require('../models/TokenBalance.cjs');
164
165
  var MultichainAccountBalancesRequest = require('../models/MultichainAccountBalancesRequest.cjs');
@@ -4322,6 +4323,41 @@ class SDKApi extends runtime.BaseAPI {
4322
4323
  async getMfaDeviceOptions(requestParameters, initOverrides) {
4323
4324
  await this.getMfaDeviceOptionsRaw(requestParameters, initOverrides);
4324
4325
  }
4326
+ /**
4327
+ * Returns the list of crypto currencies supported by MoonPay for the given chain and network, filtered to active currencies only. Requires a MoonPay publishable API key to be configured for the environment.
4328
+ * Get supported MoonPay currencies for a chain
4329
+ */
4330
+ async getMoonPayCurrenciesRaw(requestParameters, initOverrides) {
4331
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4332
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getMoonPayCurrencies.');
4333
+ }
4334
+ if (requestParameters.chain === null || requestParameters.chain === undefined) {
4335
+ throw new runtime.RequiredError('chain', 'Required parameter requestParameters.chain was null or undefined when calling getMoonPayCurrencies.');
4336
+ }
4337
+ const queryParameters = {};
4338
+ if (requestParameters.chain !== undefined) {
4339
+ queryParameters['chain'] = requestParameters.chain;
4340
+ }
4341
+ if (requestParameters.networkId !== undefined) {
4342
+ queryParameters['networkId'] = requestParameters.networkId;
4343
+ }
4344
+ const headerParameters = {};
4345
+ const response = await this.request({
4346
+ path: `/{environmentId}/onramps/moonpay/currencies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
4347
+ method: 'GET',
4348
+ headers: headerParameters,
4349
+ query: queryParameters,
4350
+ }, initOverrides);
4351
+ return new runtime.JSONApiResponse(response, (jsonValue) => MoonPayCurrenciesResponse.MoonPayCurrenciesResponseFromJSON(jsonValue));
4352
+ }
4353
+ /**
4354
+ * Returns the list of crypto currencies supported by MoonPay for the given chain and network, filtered to active currencies only. Requires a MoonPay publishable API key to be configured for the environment.
4355
+ * Get supported MoonPay currencies for a chain
4356
+ */
4357
+ async getMoonPayCurrencies(requestParameters, initOverrides) {
4358
+ const response = await this.getMoonPayCurrenciesRaw(requestParameters, initOverrides);
4359
+ return await response.value();
4360
+ }
4325
4361
  /**
4326
4362
  * Returns the network configurations enabled for the specified environment.
4327
4363
  * Get network configurations for the environment
@@ -5737,6 +5773,29 @@ class SDKApi extends runtime.BaseAPI {
5737
5773
  async mergeUsersOptions(requestParameters, initOverrides) {
5738
5774
  await this.mergeUsersOptionsRaw(requestParameters, initOverrides);
5739
5775
  }
5776
+ /**
5777
+ * Options call for this endpoint
5778
+ */
5779
+ async moonPayCurrenciesOptionsRaw(requestParameters, initOverrides) {
5780
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
5781
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling moonPayCurrenciesOptions.');
5782
+ }
5783
+ const queryParameters = {};
5784
+ const headerParameters = {};
5785
+ const response = await this.request({
5786
+ path: `/{environmentId}/onramps/moonpay/currencies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
5787
+ method: 'OPTIONS',
5788
+ headers: headerParameters,
5789
+ query: queryParameters,
5790
+ }, initOverrides);
5791
+ return new runtime.VoidApiResponse(response);
5792
+ }
5793
+ /**
5794
+ * Options call for this endpoint
5795
+ */
5796
+ async moonPayCurrenciesOptions(requestParameters, initOverrides) {
5797
+ await this.moonPayCurrenciesOptionsRaw(requestParameters, initOverrides);
5798
+ }
5740
5799
  /**
5741
5800
  * Options call for this endpoint
5742
5801
  */