@dynamic-labs/sdk-api 0.0.1001 → 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 +1 -1
- package/src/apis/SDKApi.cjs +59 -0
- package/src/apis/SDKApi.d.ts +27 -1
- package/src/apis/SDKApi.js +59 -0
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/MoonPayCurrenciesResponse.cjs +33 -0
- package/src/models/MoonPayCurrenciesResponse.d.ts +28 -0
- package/src/models/MoonPayCurrenciesResponse.js +27 -0
- package/src/models/MoonPayCurrency.cjs +47 -0
- package/src/models/MoonPayCurrency.d.ts +39 -0
- package/src/models/MoonPayCurrency.js +41 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -181,6 +181,7 @@ var MFARegisterTotpDevicePostRequest = require('../models/MFARegisterTotpDeviceP
|
|
|
181
181
|
var MFAUpdateDeviceRequest = require('../models/MFAUpdateDeviceRequest.cjs');
|
|
182
182
|
var MergeUserConflictResolutions = require('../models/MergeUserConflictResolutions.cjs');
|
|
183
183
|
require('../models/MinApiVersionEnum.cjs');
|
|
184
|
+
var MoonPayCurrenciesResponse = require('../models/MoonPayCurrenciesResponse.cjs');
|
|
184
185
|
var MultichainAccountBalanceResponse = require('../models/MultichainAccountBalanceResponse.cjs');
|
|
185
186
|
var TokenBalance = require('../models/TokenBalance.cjs');
|
|
186
187
|
var MultichainAccountBalancesRequest = require('../models/MultichainAccountBalancesRequest.cjs');
|
|
@@ -4393,6 +4394,41 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4393
4394
|
async getMfaDeviceOptions(requestParameters, initOverrides) {
|
|
4394
4395
|
await this.getMfaDeviceOptionsRaw(requestParameters, initOverrides);
|
|
4395
4396
|
}
|
|
4397
|
+
/**
|
|
4398
|
+
* 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.
|
|
4399
|
+
* Get supported MoonPay currencies for a chain
|
|
4400
|
+
*/
|
|
4401
|
+
async getMoonPayCurrenciesRaw(requestParameters, initOverrides) {
|
|
4402
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4403
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getMoonPayCurrencies.');
|
|
4404
|
+
}
|
|
4405
|
+
if (requestParameters.chain === null || requestParameters.chain === undefined) {
|
|
4406
|
+
throw new runtime.RequiredError('chain', 'Required parameter requestParameters.chain was null or undefined when calling getMoonPayCurrencies.');
|
|
4407
|
+
}
|
|
4408
|
+
const queryParameters = {};
|
|
4409
|
+
if (requestParameters.chain !== undefined) {
|
|
4410
|
+
queryParameters['chain'] = requestParameters.chain;
|
|
4411
|
+
}
|
|
4412
|
+
if (requestParameters.networkId !== undefined) {
|
|
4413
|
+
queryParameters['networkId'] = requestParameters.networkId;
|
|
4414
|
+
}
|
|
4415
|
+
const headerParameters = {};
|
|
4416
|
+
const response = await this.request({
|
|
4417
|
+
path: `/{environmentId}/onramps/moonpay/currencies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
4418
|
+
method: 'GET',
|
|
4419
|
+
headers: headerParameters,
|
|
4420
|
+
query: queryParameters,
|
|
4421
|
+
}, initOverrides);
|
|
4422
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MoonPayCurrenciesResponse.MoonPayCurrenciesResponseFromJSON(jsonValue));
|
|
4423
|
+
}
|
|
4424
|
+
/**
|
|
4425
|
+
* 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.
|
|
4426
|
+
* Get supported MoonPay currencies for a chain
|
|
4427
|
+
*/
|
|
4428
|
+
async getMoonPayCurrencies(requestParameters, initOverrides) {
|
|
4429
|
+
const response = await this.getMoonPayCurrenciesRaw(requestParameters, initOverrides);
|
|
4430
|
+
return await response.value();
|
|
4431
|
+
}
|
|
4396
4432
|
/**
|
|
4397
4433
|
* Returns the network configurations enabled for the specified environment.
|
|
4398
4434
|
* Get network configurations for the environment
|
|
@@ -5842,6 +5878,29 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5842
5878
|
async mergeUsersOptions(requestParameters, initOverrides) {
|
|
5843
5879
|
await this.mergeUsersOptionsRaw(requestParameters, initOverrides);
|
|
5844
5880
|
}
|
|
5881
|
+
/**
|
|
5882
|
+
* Options call for this endpoint
|
|
5883
|
+
*/
|
|
5884
|
+
async moonPayCurrenciesOptionsRaw(requestParameters, initOverrides) {
|
|
5885
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5886
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling moonPayCurrenciesOptions.');
|
|
5887
|
+
}
|
|
5888
|
+
const queryParameters = {};
|
|
5889
|
+
const headerParameters = {};
|
|
5890
|
+
const response = await this.request({
|
|
5891
|
+
path: `/{environmentId}/onramps/moonpay/currencies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5892
|
+
method: 'OPTIONS',
|
|
5893
|
+
headers: headerParameters,
|
|
5894
|
+
query: queryParameters,
|
|
5895
|
+
}, initOverrides);
|
|
5896
|
+
return new runtime.VoidApiResponse(response);
|
|
5897
|
+
}
|
|
5898
|
+
/**
|
|
5899
|
+
* Options call for this endpoint
|
|
5900
|
+
*/
|
|
5901
|
+
async moonPayCurrenciesOptions(requestParameters, initOverrides) {
|
|
5902
|
+
await this.moonPayCurrenciesOptionsRaw(requestParameters, initOverrides);
|
|
5903
|
+
}
|
|
5845
5904
|
/**
|
|
5846
5905
|
* Options call for this endpoint
|
|
5847
5906
|
*/
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
13
|
+
import { Account, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
14
14
|
export interface AttachSourceOperationRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
transactionId: string;
|
|
@@ -526,6 +526,11 @@ export interface GetMfaDeviceOptionsRequest {
|
|
|
526
526
|
environmentId: string;
|
|
527
527
|
mfaDeviceId: string;
|
|
528
528
|
}
|
|
529
|
+
export interface GetMoonPayCurrenciesRequest {
|
|
530
|
+
environmentId: string;
|
|
531
|
+
chain: ChainEnum;
|
|
532
|
+
networkId?: string;
|
|
533
|
+
}
|
|
529
534
|
export interface GetNetworksConfigurationByEnvIdRequest {
|
|
530
535
|
environmentId: string;
|
|
531
536
|
}
|
|
@@ -714,6 +719,9 @@ export interface MergeUsersRequest {
|
|
|
714
719
|
export interface MergeUsersOptionsRequest {
|
|
715
720
|
environmentId: string;
|
|
716
721
|
}
|
|
722
|
+
export interface MoonPayCurrenciesOptionsRequest {
|
|
723
|
+
environmentId: string;
|
|
724
|
+
}
|
|
717
725
|
export interface NetworksOptionsRequest {
|
|
718
726
|
environmentId: string;
|
|
719
727
|
}
|
|
@@ -2504,6 +2512,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2504
2512
|
* Options call for this endpoint
|
|
2505
2513
|
*/
|
|
2506
2514
|
getMfaDeviceOptions(requestParameters: GetMfaDeviceOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2515
|
+
/**
|
|
2516
|
+
* 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.
|
|
2517
|
+
* Get supported MoonPay currencies for a chain
|
|
2518
|
+
*/
|
|
2519
|
+
getMoonPayCurrenciesRaw(requestParameters: GetMoonPayCurrenciesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<MoonPayCurrenciesResponse>>;
|
|
2520
|
+
/**
|
|
2521
|
+
* 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.
|
|
2522
|
+
* Get supported MoonPay currencies for a chain
|
|
2523
|
+
*/
|
|
2524
|
+
getMoonPayCurrencies(requestParameters: GetMoonPayCurrenciesRequest, initOverrides?: RequestInit): Promise<MoonPayCurrenciesResponse>;
|
|
2507
2525
|
/**
|
|
2508
2526
|
* Returns the network configurations enabled for the specified environment.
|
|
2509
2527
|
* Get network configurations for the environment
|
|
@@ -2922,6 +2940,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2922
2940
|
* Options call for this endpoint
|
|
2923
2941
|
*/
|
|
2924
2942
|
mergeUsersOptions(requestParameters: MergeUsersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2943
|
+
/**
|
|
2944
|
+
* Options call for this endpoint
|
|
2945
|
+
*/
|
|
2946
|
+
moonPayCurrenciesOptionsRaw(requestParameters: MoonPayCurrenciesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
2947
|
+
/**
|
|
2948
|
+
* Options call for this endpoint
|
|
2949
|
+
*/
|
|
2950
|
+
moonPayCurrenciesOptions(requestParameters: MoonPayCurrenciesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2925
2951
|
/**
|
|
2926
2952
|
* Options call for this endpoint
|
|
2927
2953
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -177,6 +177,7 @@ import { MFARegisterTotpDevicePostRequestToJSON } from '../models/MFARegisterTot
|
|
|
177
177
|
import { MFAUpdateDeviceRequestToJSON } from '../models/MFAUpdateDeviceRequest.js';
|
|
178
178
|
import { MergeUserConflictResolutionsToJSON } from '../models/MergeUserConflictResolutions.js';
|
|
179
179
|
import '../models/MinApiVersionEnum.js';
|
|
180
|
+
import { MoonPayCurrenciesResponseFromJSON } from '../models/MoonPayCurrenciesResponse.js';
|
|
180
181
|
import { MultichainAccountBalanceResponseFromJSON } from '../models/MultichainAccountBalanceResponse.js';
|
|
181
182
|
import { TokenBalanceFromJSON } from '../models/TokenBalance.js';
|
|
182
183
|
import { MultichainAccountBalancesRequestToJSON } from '../models/MultichainAccountBalancesRequest.js';
|
|
@@ -4389,6 +4390,41 @@ class SDKApi extends BaseAPI {
|
|
|
4389
4390
|
async getMfaDeviceOptions(requestParameters, initOverrides) {
|
|
4390
4391
|
await this.getMfaDeviceOptionsRaw(requestParameters, initOverrides);
|
|
4391
4392
|
}
|
|
4393
|
+
/**
|
|
4394
|
+
* 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.
|
|
4395
|
+
* Get supported MoonPay currencies for a chain
|
|
4396
|
+
*/
|
|
4397
|
+
async getMoonPayCurrenciesRaw(requestParameters, initOverrides) {
|
|
4398
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4399
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getMoonPayCurrencies.');
|
|
4400
|
+
}
|
|
4401
|
+
if (requestParameters.chain === null || requestParameters.chain === undefined) {
|
|
4402
|
+
throw new RequiredError('chain', 'Required parameter requestParameters.chain was null or undefined when calling getMoonPayCurrencies.');
|
|
4403
|
+
}
|
|
4404
|
+
const queryParameters = {};
|
|
4405
|
+
if (requestParameters.chain !== undefined) {
|
|
4406
|
+
queryParameters['chain'] = requestParameters.chain;
|
|
4407
|
+
}
|
|
4408
|
+
if (requestParameters.networkId !== undefined) {
|
|
4409
|
+
queryParameters['networkId'] = requestParameters.networkId;
|
|
4410
|
+
}
|
|
4411
|
+
const headerParameters = {};
|
|
4412
|
+
const response = await this.request({
|
|
4413
|
+
path: `/{environmentId}/onramps/moonpay/currencies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
4414
|
+
method: 'GET',
|
|
4415
|
+
headers: headerParameters,
|
|
4416
|
+
query: queryParameters,
|
|
4417
|
+
}, initOverrides);
|
|
4418
|
+
return new JSONApiResponse(response, (jsonValue) => MoonPayCurrenciesResponseFromJSON(jsonValue));
|
|
4419
|
+
}
|
|
4420
|
+
/**
|
|
4421
|
+
* 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.
|
|
4422
|
+
* Get supported MoonPay currencies for a chain
|
|
4423
|
+
*/
|
|
4424
|
+
async getMoonPayCurrencies(requestParameters, initOverrides) {
|
|
4425
|
+
const response = await this.getMoonPayCurrenciesRaw(requestParameters, initOverrides);
|
|
4426
|
+
return await response.value();
|
|
4427
|
+
}
|
|
4392
4428
|
/**
|
|
4393
4429
|
* Returns the network configurations enabled for the specified environment.
|
|
4394
4430
|
* Get network configurations for the environment
|
|
@@ -5838,6 +5874,29 @@ class SDKApi extends BaseAPI {
|
|
|
5838
5874
|
async mergeUsersOptions(requestParameters, initOverrides) {
|
|
5839
5875
|
await this.mergeUsersOptionsRaw(requestParameters, initOverrides);
|
|
5840
5876
|
}
|
|
5877
|
+
/**
|
|
5878
|
+
* Options call for this endpoint
|
|
5879
|
+
*/
|
|
5880
|
+
async moonPayCurrenciesOptionsRaw(requestParameters, initOverrides) {
|
|
5881
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5882
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling moonPayCurrenciesOptions.');
|
|
5883
|
+
}
|
|
5884
|
+
const queryParameters = {};
|
|
5885
|
+
const headerParameters = {};
|
|
5886
|
+
const response = await this.request({
|
|
5887
|
+
path: `/{environmentId}/onramps/moonpay/currencies`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5888
|
+
method: 'OPTIONS',
|
|
5889
|
+
headers: headerParameters,
|
|
5890
|
+
query: queryParameters,
|
|
5891
|
+
}, initOverrides);
|
|
5892
|
+
return new VoidApiResponse(response);
|
|
5893
|
+
}
|
|
5894
|
+
/**
|
|
5895
|
+
* Options call for this endpoint
|
|
5896
|
+
*/
|
|
5897
|
+
async moonPayCurrenciesOptions(requestParameters, initOverrides) {
|
|
5898
|
+
await this.moonPayCurrenciesOptionsRaw(requestParameters, initOverrides);
|
|
5899
|
+
}
|
|
5841
5900
|
/**
|
|
5842
5901
|
* Options call for this endpoint
|
|
5843
5902
|
*/
|
package/src/index.cjs
CHANGED
|
@@ -420,6 +420,8 @@ var MfaBackupCodeAcknowledgement = require('./models/MfaBackupCodeAcknowledgemen
|
|
|
420
420
|
var MinApiVersionEnum = require('./models/MinApiVersionEnum.cjs');
|
|
421
421
|
var MinifiedDynamicJwt = require('./models/MinifiedDynamicJwt.cjs');
|
|
422
422
|
var MobileSettings = require('./models/MobileSettings.cjs');
|
|
423
|
+
var MoonPayCurrenciesResponse = require('./models/MoonPayCurrenciesResponse.cjs');
|
|
424
|
+
var MoonPayCurrency = require('./models/MoonPayCurrency.cjs');
|
|
423
425
|
var MultichainAccountBalanceResponse = require('./models/MultichainAccountBalanceResponse.cjs');
|
|
424
426
|
var MultichainAccountBalanceResponseChainBalances = require('./models/MultichainAccountBalanceResponseChainBalances.cjs');
|
|
425
427
|
var MultichainAccountBalanceResponseNetworks = require('./models/MultichainAccountBalanceResponseNetworks.cjs');
|
|
@@ -2265,6 +2267,12 @@ exports.MinifiedDynamicJwtToJSON = MinifiedDynamicJwt.MinifiedDynamicJwtToJSON;
|
|
|
2265
2267
|
exports.MobileSettingsFromJSON = MobileSettings.MobileSettingsFromJSON;
|
|
2266
2268
|
exports.MobileSettingsFromJSONTyped = MobileSettings.MobileSettingsFromJSONTyped;
|
|
2267
2269
|
exports.MobileSettingsToJSON = MobileSettings.MobileSettingsToJSON;
|
|
2270
|
+
exports.MoonPayCurrenciesResponseFromJSON = MoonPayCurrenciesResponse.MoonPayCurrenciesResponseFromJSON;
|
|
2271
|
+
exports.MoonPayCurrenciesResponseFromJSONTyped = MoonPayCurrenciesResponse.MoonPayCurrenciesResponseFromJSONTyped;
|
|
2272
|
+
exports.MoonPayCurrenciesResponseToJSON = MoonPayCurrenciesResponse.MoonPayCurrenciesResponseToJSON;
|
|
2273
|
+
exports.MoonPayCurrencyFromJSON = MoonPayCurrency.MoonPayCurrencyFromJSON;
|
|
2274
|
+
exports.MoonPayCurrencyFromJSONTyped = MoonPayCurrency.MoonPayCurrencyFromJSONTyped;
|
|
2275
|
+
exports.MoonPayCurrencyToJSON = MoonPayCurrency.MoonPayCurrencyToJSON;
|
|
2268
2276
|
exports.MultichainAccountBalanceResponseFromJSON = MultichainAccountBalanceResponse.MultichainAccountBalanceResponseFromJSON;
|
|
2269
2277
|
exports.MultichainAccountBalanceResponseFromJSONTyped = MultichainAccountBalanceResponse.MultichainAccountBalanceResponseFromJSONTyped;
|
|
2270
2278
|
exports.MultichainAccountBalanceResponseToJSON = MultichainAccountBalanceResponse.MultichainAccountBalanceResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -416,6 +416,8 @@ export { MfaBackupCodeAcknowledgement, MfaBackupCodeAcknowledgementFromJSON, Mfa
|
|
|
416
416
|
export { MinApiVersionEnum, MinApiVersionEnumFromJSON, MinApiVersionEnumFromJSONTyped, MinApiVersionEnumToJSON } from './models/MinApiVersionEnum.js';
|
|
417
417
|
export { MinifiedDynamicJwtFromJSON, MinifiedDynamicJwtFromJSONTyped, MinifiedDynamicJwtToJSON } from './models/MinifiedDynamicJwt.js';
|
|
418
418
|
export { MobileSettingsFromJSON, MobileSettingsFromJSONTyped, MobileSettingsToJSON } from './models/MobileSettings.js';
|
|
419
|
+
export { MoonPayCurrenciesResponseFromJSON, MoonPayCurrenciesResponseFromJSONTyped, MoonPayCurrenciesResponseToJSON } from './models/MoonPayCurrenciesResponse.js';
|
|
420
|
+
export { MoonPayCurrencyFromJSON, MoonPayCurrencyFromJSONTyped, MoonPayCurrencyToJSON } from './models/MoonPayCurrency.js';
|
|
419
421
|
export { MultichainAccountBalanceResponseFromJSON, MultichainAccountBalanceResponseFromJSONTyped, MultichainAccountBalanceResponseToJSON } from './models/MultichainAccountBalanceResponse.js';
|
|
420
422
|
export { MultichainAccountBalanceResponseChainBalancesFromJSON, MultichainAccountBalanceResponseChainBalancesFromJSONTyped, MultichainAccountBalanceResponseChainBalancesToJSON } from './models/MultichainAccountBalanceResponseChainBalances.js';
|
|
421
423
|
export { MultichainAccountBalanceResponseNetworksFromJSON, MultichainAccountBalanceResponseNetworksFromJSONTyped, MultichainAccountBalanceResponseNetworksToJSON } from './models/MultichainAccountBalanceResponseNetworks.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var MoonPayCurrency = require('./MoonPayCurrency.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function MoonPayCurrenciesResponseFromJSON(json) {
|
|
9
|
+
return MoonPayCurrenciesResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function MoonPayCurrenciesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'currencies': (json['currencies'].map(MoonPayCurrency.MoonPayCurrencyFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function MoonPayCurrenciesResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'currencies': (value.currencies.map(MoonPayCurrency.MoonPayCurrencyToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.MoonPayCurrenciesResponseFromJSON = MoonPayCurrenciesResponseFromJSON;
|
|
32
|
+
exports.MoonPayCurrenciesResponseFromJSONTyped = MoonPayCurrenciesResponseFromJSONTyped;
|
|
33
|
+
exports.MoonPayCurrenciesResponseToJSON = MoonPayCurrenciesResponseToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { MoonPayCurrency } from './MoonPayCurrency';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MoonPayCurrenciesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface MoonPayCurrenciesResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of supported MoonPay currencies for the requested chain/network
|
|
21
|
+
* @type {Array<MoonPayCurrency>}
|
|
22
|
+
* @memberof MoonPayCurrenciesResponse
|
|
23
|
+
*/
|
|
24
|
+
currencies: Array<MoonPayCurrency>;
|
|
25
|
+
}
|
|
26
|
+
export declare function MoonPayCurrenciesResponseFromJSON(json: any): MoonPayCurrenciesResponse;
|
|
27
|
+
export declare function MoonPayCurrenciesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoonPayCurrenciesResponse;
|
|
28
|
+
export declare function MoonPayCurrenciesResponseToJSON(value?: MoonPayCurrenciesResponse | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MoonPayCurrencyFromJSON, MoonPayCurrencyToJSON } from './MoonPayCurrency.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function MoonPayCurrenciesResponseFromJSON(json) {
|
|
5
|
+
return MoonPayCurrenciesResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function MoonPayCurrenciesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'currencies': (json['currencies'].map(MoonPayCurrencyFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function MoonPayCurrenciesResponseToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'currencies': (value.currencies.map(MoonPayCurrencyToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { MoonPayCurrenciesResponseFromJSON, MoonPayCurrenciesResponseFromJSONTyped, MoonPayCurrenciesResponseToJSON };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function MoonPayCurrencyFromJSON(json) {
|
|
19
|
+
return MoonPayCurrencyFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function MoonPayCurrencyFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'code': json['code'],
|
|
27
|
+
'name': json['name'],
|
|
28
|
+
'icon': json['icon'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function MoonPayCurrencyToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'code': value.code,
|
|
40
|
+
'name': value.name,
|
|
41
|
+
'icon': value.icon,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.MoonPayCurrencyFromJSON = MoonPayCurrencyFromJSON;
|
|
46
|
+
exports.MoonPayCurrencyFromJSONTyped = MoonPayCurrencyFromJSONTyped;
|
|
47
|
+
exports.MoonPayCurrencyToJSON = MoonPayCurrencyToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 MoonPayCurrency
|
|
16
|
+
*/
|
|
17
|
+
export interface MoonPayCurrency {
|
|
18
|
+
/**
|
|
19
|
+
* MoonPay currency code (e.g. 'eth', 'usdc_sol')
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MoonPayCurrency
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
* Human-readable currency name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MoonPayCurrency
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* URL of the currency icon image
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MoonPayCurrency
|
|
34
|
+
*/
|
|
35
|
+
icon: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function MoonPayCurrencyFromJSON(json: any): MoonPayCurrency;
|
|
38
|
+
export declare function MoonPayCurrencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoonPayCurrency;
|
|
39
|
+
export declare function MoonPayCurrencyToJSON(value?: MoonPayCurrency | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function MoonPayCurrencyFromJSON(json) {
|
|
15
|
+
return MoonPayCurrencyFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function MoonPayCurrencyFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'code': json['code'],
|
|
23
|
+
'name': json['name'],
|
|
24
|
+
'icon': json['icon'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function MoonPayCurrencyToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'code': value.code,
|
|
36
|
+
'name': value.name,
|
|
37
|
+
'icon': value.icon,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { MoonPayCurrencyFromJSON, MoonPayCurrencyFromJSONTyped, MoonPayCurrencyToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -372,6 +372,8 @@ export * from './MfaBackupCodeAcknowledgement';
|
|
|
372
372
|
export * from './MinApiVersionEnum';
|
|
373
373
|
export * from './MinifiedDynamicJwt';
|
|
374
374
|
export * from './MobileSettings';
|
|
375
|
+
export * from './MoonPayCurrenciesResponse';
|
|
376
|
+
export * from './MoonPayCurrency';
|
|
375
377
|
export * from './MultichainAccountBalanceResponse';
|
|
376
378
|
export * from './MultichainAccountBalanceResponseChainBalances';
|
|
377
379
|
export * from './MultichainAccountBalanceResponseNetworks';
|