@dynamic-labs/sdk-api 0.153.0 → 0.154.0

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.153.0",
3
+ "version": "0.154.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -190,6 +190,7 @@ var FlowRecordBroadcastRequest = require('../models/FlowRecordBroadcastRequest.c
190
190
  require('../models/FlowRiskStateEnum.cjs');
191
191
  require('../models/FlowSettlementStateEnum.cjs');
192
192
  var FlowSourceResponse = require('../models/FlowSourceResponse.cjs');
193
+ var FlowSourceTokenOptionsResponse = require('../models/FlowSourceTokenOptionsResponse.cjs');
193
194
  require('../models/OnrampProviders.cjs');
194
195
  require('../models/GateRuleType.cjs');
195
196
  var GeneratedTokenResponse = require('../models/GeneratedTokenResponse.cjs');
@@ -4946,6 +4947,67 @@ class SDKApi extends runtime.BaseAPI {
4946
4947
  async getFlowQuoteOptions(requestParameters, initOverrides) {
4947
4948
  await this.getFlowQuoteOptionsRaw(requestParameters, initOverrides);
4948
4949
  }
4950
+ /**
4951
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
4952
+ * Get the supported tokens for a flow source
4953
+ */
4954
+ async getFlowSourceTokenOptionsRaw(requestParameters, initOverrides) {
4955
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4956
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptions.');
4957
+ }
4958
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4959
+ throw new runtime.RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptions.');
4960
+ }
4961
+ if (requestParameters.sourceType === null || requestParameters.sourceType === undefined) {
4962
+ throw new runtime.RequiredError('sourceType', 'Required parameter requestParameters.sourceType was null or undefined when calling getFlowSourceTokenOptions.');
4963
+ }
4964
+ const queryParameters = {};
4965
+ if (requestParameters.sourceType !== undefined) {
4966
+ queryParameters['sourceType'] = requestParameters.sourceType;
4967
+ }
4968
+ const headerParameters = {};
4969
+ const response = await this.request({
4970
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4971
+ method: 'GET',
4972
+ headers: headerParameters,
4973
+ query: queryParameters,
4974
+ }, initOverrides);
4975
+ return new runtime.JSONApiResponse(response, (jsonValue) => FlowSourceTokenOptionsResponse.FlowSourceTokenOptionsResponseFromJSON(jsonValue));
4976
+ }
4977
+ /**
4978
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
4979
+ * Get the supported tokens for a flow source
4980
+ */
4981
+ async getFlowSourceTokenOptions(requestParameters, initOverrides) {
4982
+ const response = await this.getFlowSourceTokenOptionsRaw(requestParameters, initOverrides);
4983
+ return await response.value();
4984
+ }
4985
+ /**
4986
+ * Options call for this endpoint
4987
+ */
4988
+ async getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides) {
4989
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4990
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4991
+ }
4992
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4993
+ throw new runtime.RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4994
+ }
4995
+ const queryParameters = {};
4996
+ const headerParameters = {};
4997
+ const response = await this.request({
4998
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4999
+ method: 'OPTIONS',
5000
+ headers: headerParameters,
5001
+ query: queryParameters,
5002
+ }, initOverrides);
5003
+ return new runtime.VoidApiResponse(response);
5004
+ }
5005
+ /**
5006
+ * Options call for this endpoint
5007
+ */
5008
+ async getFlowSourceTokenOptionsOptions(requestParameters, initOverrides) {
5009
+ await this.getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides);
5010
+ }
4949
5011
  /**
4950
5012
  * Returns the global wallet settings configured for the specified environment.
4951
5013
  * Get the global wallet settings for the environment
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, 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, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, 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, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
13
+ import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, FlowSourceTokenOptionsResponse, FlowSourceTypeEnum, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, 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, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, 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, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
14
14
  export interface AcceptBusinessAccountInviteRequest {
15
15
  environmentId: string;
16
16
  inviteId: string;
@@ -591,6 +591,15 @@ export interface GetFlowQuoteOptionsRequest {
591
591
  environmentId: string;
592
592
  flowId: string;
593
593
  }
594
+ export interface GetFlowSourceTokenOptionsRequest {
595
+ environmentId: string;
596
+ flowId: string;
597
+ sourceType: FlowSourceTypeEnum;
598
+ }
599
+ export interface GetFlowSourceTokenOptionsOptionsRequest {
600
+ environmentId: string;
601
+ flowId: string;
602
+ }
594
603
  export interface GetGlobalWalletsSettingsRequest {
595
604
  environmentId: string;
596
605
  }
@@ -3172,6 +3181,24 @@ export declare class SDKApi extends runtime.BaseAPI {
3172
3181
  * Options call for this endpoint
3173
3182
  */
3174
3183
  getFlowQuoteOptions(requestParameters: GetFlowQuoteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3184
+ /**
3185
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
3186
+ * Get the supported tokens for a flow source
3187
+ */
3188
+ getFlowSourceTokenOptionsRaw(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowSourceTokenOptionsResponse>>;
3189
+ /**
3190
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
3191
+ * Get the supported tokens for a flow source
3192
+ */
3193
+ getFlowSourceTokenOptions(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<FlowSourceTokenOptionsResponse>;
3194
+ /**
3195
+ * Options call for this endpoint
3196
+ */
3197
+ getFlowSourceTokenOptionsOptionsRaw(requestParameters: GetFlowSourceTokenOptionsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3198
+ /**
3199
+ * Options call for this endpoint
3200
+ */
3201
+ getFlowSourceTokenOptionsOptions(requestParameters: GetFlowSourceTokenOptionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3175
3202
  /**
3176
3203
  * Returns the global wallet settings configured for the specified environment.
3177
3204
  * Get the global wallet settings for the environment
@@ -186,6 +186,7 @@ import { FlowRecordBroadcastRequestToJSON } from '../models/FlowRecordBroadcastR
186
186
  import '../models/FlowRiskStateEnum.js';
187
187
  import '../models/FlowSettlementStateEnum.js';
188
188
  import { FlowSourceResponseFromJSON } from '../models/FlowSourceResponse.js';
189
+ import { FlowSourceTokenOptionsResponseFromJSON } from '../models/FlowSourceTokenOptionsResponse.js';
189
190
  import '../models/OnrampProviders.js';
190
191
  import '../models/GateRuleType.js';
191
192
  import { GeneratedTokenResponseFromJSON } from '../models/GeneratedTokenResponse.js';
@@ -4942,6 +4943,67 @@ class SDKApi extends BaseAPI {
4942
4943
  async getFlowQuoteOptions(requestParameters, initOverrides) {
4943
4944
  await this.getFlowQuoteOptionsRaw(requestParameters, initOverrides);
4944
4945
  }
4946
+ /**
4947
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
4948
+ * Get the supported tokens for a flow source
4949
+ */
4950
+ async getFlowSourceTokenOptionsRaw(requestParameters, initOverrides) {
4951
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4952
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptions.');
4953
+ }
4954
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4955
+ throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptions.');
4956
+ }
4957
+ if (requestParameters.sourceType === null || requestParameters.sourceType === undefined) {
4958
+ throw new RequiredError('sourceType', 'Required parameter requestParameters.sourceType was null or undefined when calling getFlowSourceTokenOptions.');
4959
+ }
4960
+ const queryParameters = {};
4961
+ if (requestParameters.sourceType !== undefined) {
4962
+ queryParameters['sourceType'] = requestParameters.sourceType;
4963
+ }
4964
+ const headerParameters = {};
4965
+ const response = await this.request({
4966
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4967
+ method: 'GET',
4968
+ headers: headerParameters,
4969
+ query: queryParameters,
4970
+ }, initOverrides);
4971
+ return new JSONApiResponse(response, (jsonValue) => FlowSourceTokenOptionsResponseFromJSON(jsonValue));
4972
+ }
4973
+ /**
4974
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
4975
+ * Get the supported tokens for a flow source
4976
+ */
4977
+ async getFlowSourceTokenOptions(requestParameters, initOverrides) {
4978
+ const response = await this.getFlowSourceTokenOptionsRaw(requestParameters, initOverrides);
4979
+ return await response.value();
4980
+ }
4981
+ /**
4982
+ * Options call for this endpoint
4983
+ */
4984
+ async getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides) {
4985
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4986
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4987
+ }
4988
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4989
+ throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4990
+ }
4991
+ const queryParameters = {};
4992
+ const headerParameters = {};
4993
+ const response = await this.request({
4994
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4995
+ method: 'OPTIONS',
4996
+ headers: headerParameters,
4997
+ query: queryParameters,
4998
+ }, initOverrides);
4999
+ return new VoidApiResponse(response);
5000
+ }
5001
+ /**
5002
+ * Options call for this endpoint
5003
+ */
5004
+ async getFlowSourceTokenOptionsOptions(requestParameters, initOverrides) {
5005
+ await this.getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides);
5006
+ }
4945
5007
  /**
4946
5008
  * Returns the global wallet settings configured for the specified environment.
4947
5009
  * Get the global wallet settings for the environment
package/src/index.cjs CHANGED
@@ -430,6 +430,11 @@ var FlowRiskStateEnum = require('./models/FlowRiskStateEnum.cjs');
430
430
  var FlowSettlementData = require('./models/FlowSettlementData.cjs');
431
431
  var FlowSettlementStateEnum = require('./models/FlowSettlementStateEnum.cjs');
432
432
  var FlowSourceResponse = require('./models/FlowSourceResponse.cjs');
433
+ var FlowSourceTokenOption = require('./models/FlowSourceTokenOption.cjs');
434
+ var FlowSourceTokenOptionChain = require('./models/FlowSourceTokenOptionChain.cjs');
435
+ var FlowSourceTokenOptionNetwork = require('./models/FlowSourceTokenOptionNetwork.cjs');
436
+ var FlowSourceTokenOptionToken = require('./models/FlowSourceTokenOptionToken.cjs');
437
+ var FlowSourceTokenOptionsResponse = require('./models/FlowSourceTokenOptionsResponse.cjs');
433
438
  var FlowSourceTypeEnum = require('./models/FlowSourceTypeEnum.cjs');
434
439
  var FlowTokenInfo = require('./models/FlowTokenInfo.cjs');
435
440
  var FlowUIConfig = require('./models/FlowUIConfig.cjs');
@@ -2687,6 +2692,21 @@ exports.FlowSettlementStateEnumToJSON = FlowSettlementStateEnum.FlowSettlementSt
2687
2692
  exports.FlowSourceResponseFromJSON = FlowSourceResponse.FlowSourceResponseFromJSON;
2688
2693
  exports.FlowSourceResponseFromJSONTyped = FlowSourceResponse.FlowSourceResponseFromJSONTyped;
2689
2694
  exports.FlowSourceResponseToJSON = FlowSourceResponse.FlowSourceResponseToJSON;
2695
+ exports.FlowSourceTokenOptionFromJSON = FlowSourceTokenOption.FlowSourceTokenOptionFromJSON;
2696
+ exports.FlowSourceTokenOptionFromJSONTyped = FlowSourceTokenOption.FlowSourceTokenOptionFromJSONTyped;
2697
+ exports.FlowSourceTokenOptionToJSON = FlowSourceTokenOption.FlowSourceTokenOptionToJSON;
2698
+ exports.FlowSourceTokenOptionChainFromJSON = FlowSourceTokenOptionChain.FlowSourceTokenOptionChainFromJSON;
2699
+ exports.FlowSourceTokenOptionChainFromJSONTyped = FlowSourceTokenOptionChain.FlowSourceTokenOptionChainFromJSONTyped;
2700
+ exports.FlowSourceTokenOptionChainToJSON = FlowSourceTokenOptionChain.FlowSourceTokenOptionChainToJSON;
2701
+ exports.FlowSourceTokenOptionNetworkFromJSON = FlowSourceTokenOptionNetwork.FlowSourceTokenOptionNetworkFromJSON;
2702
+ exports.FlowSourceTokenOptionNetworkFromJSONTyped = FlowSourceTokenOptionNetwork.FlowSourceTokenOptionNetworkFromJSONTyped;
2703
+ exports.FlowSourceTokenOptionNetworkToJSON = FlowSourceTokenOptionNetwork.FlowSourceTokenOptionNetworkToJSON;
2704
+ exports.FlowSourceTokenOptionTokenFromJSON = FlowSourceTokenOptionToken.FlowSourceTokenOptionTokenFromJSON;
2705
+ exports.FlowSourceTokenOptionTokenFromJSONTyped = FlowSourceTokenOptionToken.FlowSourceTokenOptionTokenFromJSONTyped;
2706
+ exports.FlowSourceTokenOptionTokenToJSON = FlowSourceTokenOptionToken.FlowSourceTokenOptionTokenToJSON;
2707
+ exports.FlowSourceTokenOptionsResponseFromJSON = FlowSourceTokenOptionsResponse.FlowSourceTokenOptionsResponseFromJSON;
2708
+ exports.FlowSourceTokenOptionsResponseFromJSONTyped = FlowSourceTokenOptionsResponse.FlowSourceTokenOptionsResponseFromJSONTyped;
2709
+ exports.FlowSourceTokenOptionsResponseToJSON = FlowSourceTokenOptionsResponse.FlowSourceTokenOptionsResponseToJSON;
2690
2710
  Object.defineProperty(exports, 'FlowSourceTypeEnum', {
2691
2711
  enumerable: true,
2692
2712
  get: function () { return FlowSourceTypeEnum.FlowSourceTypeEnum; }
package/src/index.js CHANGED
@@ -426,6 +426,11 @@ export { FlowRiskStateEnum, FlowRiskStateEnumFromJSON, FlowRiskStateEnumFromJSON
426
426
  export { FlowSettlementDataFromJSON, FlowSettlementDataFromJSONTyped, FlowSettlementDataToJSON } from './models/FlowSettlementData.js';
427
427
  export { FlowSettlementStateEnum, FlowSettlementStateEnumFromJSON, FlowSettlementStateEnumFromJSONTyped, FlowSettlementStateEnumToJSON } from './models/FlowSettlementStateEnum.js';
428
428
  export { FlowSourceResponseFromJSON, FlowSourceResponseFromJSONTyped, FlowSourceResponseToJSON } from './models/FlowSourceResponse.js';
429
+ export { FlowSourceTokenOptionFromJSON, FlowSourceTokenOptionFromJSONTyped, FlowSourceTokenOptionToJSON } from './models/FlowSourceTokenOption.js';
430
+ export { FlowSourceTokenOptionChainFromJSON, FlowSourceTokenOptionChainFromJSONTyped, FlowSourceTokenOptionChainToJSON } from './models/FlowSourceTokenOptionChain.js';
431
+ export { FlowSourceTokenOptionNetworkFromJSON, FlowSourceTokenOptionNetworkFromJSONTyped, FlowSourceTokenOptionNetworkToJSON } from './models/FlowSourceTokenOptionNetwork.js';
432
+ export { FlowSourceTokenOptionTokenFromJSON, FlowSourceTokenOptionTokenFromJSONTyped, FlowSourceTokenOptionTokenToJSON } from './models/FlowSourceTokenOptionToken.js';
433
+ export { FlowSourceTokenOptionsResponseFromJSON, FlowSourceTokenOptionsResponseFromJSONTyped, FlowSourceTokenOptionsResponseToJSON } from './models/FlowSourceTokenOptionsResponse.js';
429
434
  export { FlowSourceTypeEnum, FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumFromJSONTyped, FlowSourceTypeEnumToJSON } from './models/FlowSourceTypeEnum.js';
430
435
  export { FlowTokenInfoFromJSON, FlowTokenInfoFromJSONTyped, FlowTokenInfoToJSON } from './models/FlowTokenInfo.js';
431
436
  export { FlowUIConfigFromJSON, FlowUIConfigFromJSONTyped, FlowUIConfigToJSON } from './models/FlowUIConfig.js';
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var FlowSourceTokenOptionChain = require('./FlowSourceTokenOptionChain.cjs');
6
+ var FlowSourceTokenOptionNetwork = require('./FlowSourceTokenOptionNetwork.cjs');
7
+ var FlowSourceTokenOptionToken = require('./FlowSourceTokenOptionToken.cjs');
8
+
9
+ /* tslint:disable */
10
+ function FlowSourceTokenOptionFromJSON(json) {
11
+ return FlowSourceTokenOptionFromJSONTyped(json);
12
+ }
13
+ function FlowSourceTokenOptionFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'chain': FlowSourceTokenOptionChain.FlowSourceTokenOptionChainFromJSON(json['chain']),
19
+ 'network': FlowSourceTokenOptionNetwork.FlowSourceTokenOptionNetworkFromJSON(json['network']),
20
+ 'tokens': (json['tokens'].map(FlowSourceTokenOptionToken.FlowSourceTokenOptionTokenFromJSON)),
21
+ };
22
+ }
23
+ function FlowSourceTokenOptionToJSON(value) {
24
+ if (value === undefined) {
25
+ return undefined;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ 'chain': FlowSourceTokenOptionChain.FlowSourceTokenOptionChainToJSON(value.chain),
32
+ 'network': FlowSourceTokenOptionNetwork.FlowSourceTokenOptionNetworkToJSON(value.network),
33
+ 'tokens': (value.tokens.map(FlowSourceTokenOptionToken.FlowSourceTokenOptionTokenToJSON)),
34
+ };
35
+ }
36
+
37
+ exports.FlowSourceTokenOptionFromJSON = FlowSourceTokenOptionFromJSON;
38
+ exports.FlowSourceTokenOptionFromJSONTyped = FlowSourceTokenOptionFromJSONTyped;
39
+ exports.FlowSourceTokenOptionToJSON = FlowSourceTokenOptionToJSON;
@@ -0,0 +1,42 @@
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 { FlowSourceTokenOptionChain } from './FlowSourceTokenOptionChain';
13
+ import { FlowSourceTokenOptionNetwork } from './FlowSourceTokenOptionNetwork';
14
+ import { FlowSourceTokenOptionToken } from './FlowSourceTokenOptionToken';
15
+ /**
16
+ * A network a payer can fund a flow from with a deposit address, and the tokens accepted on it.
17
+ * @export
18
+ * @interface FlowSourceTokenOption
19
+ */
20
+ export interface FlowSourceTokenOption {
21
+ /**
22
+ *
23
+ * @type {FlowSourceTokenOptionChain}
24
+ * @memberof FlowSourceTokenOption
25
+ */
26
+ chain: FlowSourceTokenOptionChain;
27
+ /**
28
+ *
29
+ * @type {FlowSourceTokenOptionNetwork}
30
+ * @memberof FlowSourceTokenOption
31
+ */
32
+ network: FlowSourceTokenOptionNetwork;
33
+ /**
34
+ * The tokens the payer can send on this network.
35
+ * @type {Array<FlowSourceTokenOptionToken>}
36
+ * @memberof FlowSourceTokenOption
37
+ */
38
+ tokens: Array<FlowSourceTokenOptionToken>;
39
+ }
40
+ export declare function FlowSourceTokenOptionFromJSON(json: any): FlowSourceTokenOption;
41
+ export declare function FlowSourceTokenOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSourceTokenOption;
42
+ export declare function FlowSourceTokenOptionToJSON(value?: FlowSourceTokenOption | null): any;
@@ -0,0 +1,33 @@
1
+ import { FlowSourceTokenOptionChainFromJSON, FlowSourceTokenOptionChainToJSON } from './FlowSourceTokenOptionChain.js';
2
+ import { FlowSourceTokenOptionNetworkFromJSON, FlowSourceTokenOptionNetworkToJSON } from './FlowSourceTokenOptionNetwork.js';
3
+ import { FlowSourceTokenOptionTokenFromJSON, FlowSourceTokenOptionTokenToJSON } from './FlowSourceTokenOptionToken.js';
4
+
5
+ /* tslint:disable */
6
+ function FlowSourceTokenOptionFromJSON(json) {
7
+ return FlowSourceTokenOptionFromJSONTyped(json);
8
+ }
9
+ function FlowSourceTokenOptionFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'chain': FlowSourceTokenOptionChainFromJSON(json['chain']),
15
+ 'network': FlowSourceTokenOptionNetworkFromJSON(json['network']),
16
+ 'tokens': (json['tokens'].map(FlowSourceTokenOptionTokenFromJSON)),
17
+ };
18
+ }
19
+ function FlowSourceTokenOptionToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'chain': FlowSourceTokenOptionChainToJSON(value.chain),
28
+ 'network': FlowSourceTokenOptionNetworkToJSON(value.network),
29
+ 'tokens': (value.tokens.map(FlowSourceTokenOptionTokenToJSON)),
30
+ };
31
+ }
32
+
33
+ export { FlowSourceTokenOptionFromJSON, FlowSourceTokenOptionFromJSONTyped, FlowSourceTokenOptionToJSON };
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ChainEnum = require('./ChainEnum.cjs');
7
+
8
+ /* tslint:disable */
9
+ function FlowSourceTokenOptionChainFromJSON(json) {
10
+ return FlowSourceTokenOptionChainFromJSONTyped(json);
11
+ }
12
+ function FlowSourceTokenOptionChainFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'name': ChainEnum.ChainEnumFromJSON(json['name']),
18
+ 'iconUrl': !runtime.exists(json, 'iconUrl') ? undefined : json['iconUrl'],
19
+ };
20
+ }
21
+ function FlowSourceTokenOptionChainToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'name': ChainEnum.ChainEnumToJSON(value.name),
30
+ 'iconUrl': value.iconUrl,
31
+ };
32
+ }
33
+
34
+ exports.FlowSourceTokenOptionChainFromJSON = FlowSourceTokenOptionChainFromJSON;
35
+ exports.FlowSourceTokenOptionChainFromJSONTyped = FlowSourceTokenOptionChainFromJSONTyped;
36
+ exports.FlowSourceTokenOptionChainToJSON = FlowSourceTokenOptionChainToJSON;
@@ -0,0 +1,34 @@
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
+ /**
14
+ * The chain family the payer sends from.
15
+ * @export
16
+ * @interface FlowSourceTokenOptionChain
17
+ */
18
+ export interface FlowSourceTokenOptionChain {
19
+ /**
20
+ *
21
+ * @type {ChainEnum}
22
+ * @memberof FlowSourceTokenOptionChain
23
+ */
24
+ name: ChainEnum;
25
+ /**
26
+ * Absolute HTTPS URL of the chain family's logo.
27
+ * @type {string}
28
+ * @memberof FlowSourceTokenOptionChain
29
+ */
30
+ iconUrl?: string;
31
+ }
32
+ export declare function FlowSourceTokenOptionChainFromJSON(json: any): FlowSourceTokenOptionChain;
33
+ export declare function FlowSourceTokenOptionChainFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSourceTokenOptionChain;
34
+ export declare function FlowSourceTokenOptionChainToJSON(value?: FlowSourceTokenOptionChain | null): any;
@@ -0,0 +1,30 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
+
4
+ /* tslint:disable */
5
+ function FlowSourceTokenOptionChainFromJSON(json) {
6
+ return FlowSourceTokenOptionChainFromJSONTyped(json);
7
+ }
8
+ function FlowSourceTokenOptionChainFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'name': ChainEnumFromJSON(json['name']),
14
+ 'iconUrl': !exists(json, 'iconUrl') ? undefined : json['iconUrl'],
15
+ };
16
+ }
17
+ function FlowSourceTokenOptionChainToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'name': ChainEnumToJSON(value.name),
26
+ 'iconUrl': value.iconUrl,
27
+ };
28
+ }
29
+
30
+ export { FlowSourceTokenOptionChainFromJSON, FlowSourceTokenOptionChainFromJSONTyped, FlowSourceTokenOptionChainToJSON };
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowSourceTokenOptionNetworkFromJSON(json) {
9
+ return FlowSourceTokenOptionNetworkFromJSONTyped(json);
10
+ }
11
+ function FlowSourceTokenOptionNetworkFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'id': json['id'],
17
+ 'name': json['name'],
18
+ 'iconUrl': !runtime.exists(json, 'iconUrl') ? undefined : json['iconUrl'],
19
+ };
20
+ }
21
+ function FlowSourceTokenOptionNetworkToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'id': value.id,
30
+ 'name': value.name,
31
+ 'iconUrl': value.iconUrl,
32
+ };
33
+ }
34
+
35
+ exports.FlowSourceTokenOptionNetworkFromJSON = FlowSourceTokenOptionNetworkFromJSON;
36
+ exports.FlowSourceTokenOptionNetworkFromJSONTyped = FlowSourceTokenOptionNetworkFromJSONTyped;
37
+ exports.FlowSourceTokenOptionNetworkToJSON = FlowSourceTokenOptionNetworkToJSON;
@@ -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
+ * The network within the chain family the funds are sent on.
14
+ * @export
15
+ * @interface FlowSourceTokenOptionNetwork
16
+ */
17
+ export interface FlowSourceTokenOptionNetwork {
18
+ /**
19
+ * The network's id within its chain family, e.g. "8453" for Base.
20
+ * @type {string}
21
+ * @memberof FlowSourceTokenOptionNetwork
22
+ */
23
+ id: string;
24
+ /**
25
+ * The network's display name, e.g. "Base".
26
+ * @type {string}
27
+ * @memberof FlowSourceTokenOptionNetwork
28
+ */
29
+ name: string;
30
+ /**
31
+ * Absolute HTTPS URL of the network's logo.
32
+ * @type {string}
33
+ * @memberof FlowSourceTokenOptionNetwork
34
+ */
35
+ iconUrl?: string;
36
+ }
37
+ export declare function FlowSourceTokenOptionNetworkFromJSON(json: any): FlowSourceTokenOptionNetwork;
38
+ export declare function FlowSourceTokenOptionNetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSourceTokenOptionNetwork;
39
+ export declare function FlowSourceTokenOptionNetworkToJSON(value?: FlowSourceTokenOptionNetwork | null): any;
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowSourceTokenOptionNetworkFromJSON(json) {
5
+ return FlowSourceTokenOptionNetworkFromJSONTyped(json);
6
+ }
7
+ function FlowSourceTokenOptionNetworkFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'id': json['id'],
13
+ 'name': json['name'],
14
+ 'iconUrl': !exists(json, 'iconUrl') ? undefined : json['iconUrl'],
15
+ };
16
+ }
17
+ function FlowSourceTokenOptionNetworkToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'id': value.id,
26
+ 'name': value.name,
27
+ 'iconUrl': value.iconUrl,
28
+ };
29
+ }
30
+
31
+ export { FlowSourceTokenOptionNetworkFromJSON, FlowSourceTokenOptionNetworkFromJSONTyped, FlowSourceTokenOptionNetworkToJSON };
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowSourceTokenOptionTokenFromJSON(json) {
9
+ return FlowSourceTokenOptionTokenFromJSONTyped(json);
10
+ }
11
+ function FlowSourceTokenOptionTokenFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'address': json['address'],
17
+ 'decimals': json['decimals'],
18
+ 'symbol': json['symbol'],
19
+ 'iconUrl': !runtime.exists(json, 'iconUrl') ? undefined : json['iconUrl'],
20
+ };
21
+ }
22
+ function FlowSourceTokenOptionTokenToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'address': value.address,
31
+ 'decimals': value.decimals,
32
+ 'symbol': value.symbol,
33
+ 'iconUrl': value.iconUrl,
34
+ };
35
+ }
36
+
37
+ exports.FlowSourceTokenOptionTokenFromJSON = FlowSourceTokenOptionTokenFromJSON;
38
+ exports.FlowSourceTokenOptionTokenFromJSONTyped = FlowSourceTokenOptionTokenFromJSONTyped;
39
+ exports.FlowSourceTokenOptionTokenToJSON = FlowSourceTokenOptionTokenToJSON;
@@ -0,0 +1,45 @@
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
+ * A token a payer can send to a flow's deposit address.
14
+ * @export
15
+ * @interface FlowSourceTokenOptionToken
16
+ */
17
+ export interface FlowSourceTokenOptionToken {
18
+ /**
19
+ * The token's contract address, or a chain-specific placeholder for the network's native token.
20
+ * @type {string}
21
+ * @memberof FlowSourceTokenOptionToken
22
+ */
23
+ address: string;
24
+ /**
25
+ * Number of decimal places for this token
26
+ * @type {number}
27
+ * @memberof FlowSourceTokenOptionToken
28
+ */
29
+ decimals: number;
30
+ /**
31
+ * Token symbol (e.g. USDC, ETH)
32
+ * @type {string}
33
+ * @memberof FlowSourceTokenOptionToken
34
+ */
35
+ symbol: string;
36
+ /**
37
+ * Absolute HTTPS URL of the token's logo.
38
+ * @type {string}
39
+ * @memberof FlowSourceTokenOptionToken
40
+ */
41
+ iconUrl?: string;
42
+ }
43
+ export declare function FlowSourceTokenOptionTokenFromJSON(json: any): FlowSourceTokenOptionToken;
44
+ export declare function FlowSourceTokenOptionTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSourceTokenOptionToken;
45
+ export declare function FlowSourceTokenOptionTokenToJSON(value?: FlowSourceTokenOptionToken | null): any;
@@ -0,0 +1,33 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowSourceTokenOptionTokenFromJSON(json) {
5
+ return FlowSourceTokenOptionTokenFromJSONTyped(json);
6
+ }
7
+ function FlowSourceTokenOptionTokenFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'address': json['address'],
13
+ 'decimals': json['decimals'],
14
+ 'symbol': json['symbol'],
15
+ 'iconUrl': !exists(json, 'iconUrl') ? undefined : json['iconUrl'],
16
+ };
17
+ }
18
+ function FlowSourceTokenOptionTokenToJSON(value) {
19
+ if (value === undefined) {
20
+ return undefined;
21
+ }
22
+ if (value === null) {
23
+ return null;
24
+ }
25
+ return {
26
+ 'address': value.address,
27
+ 'decimals': value.decimals,
28
+ 'symbol': value.symbol,
29
+ 'iconUrl': value.iconUrl,
30
+ };
31
+ }
32
+
33
+ export { FlowSourceTokenOptionTokenFromJSON, FlowSourceTokenOptionTokenFromJSONTyped, FlowSourceTokenOptionTokenToJSON };
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var FlowSourceTokenOption = require('./FlowSourceTokenOption.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowSourceTokenOptionsResponseFromJSON(json) {
9
+ return FlowSourceTokenOptionsResponseFromJSONTyped(json);
10
+ }
11
+ function FlowSourceTokenOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'sourceTokenOptions': (json['sourceTokenOptions'].map(FlowSourceTokenOption.FlowSourceTokenOptionFromJSON)),
17
+ };
18
+ }
19
+ function FlowSourceTokenOptionsResponseToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'sourceTokenOptions': (value.sourceTokenOptions.map(FlowSourceTokenOption.FlowSourceTokenOptionToJSON)),
28
+ };
29
+ }
30
+
31
+ exports.FlowSourceTokenOptionsResponseFromJSON = FlowSourceTokenOptionsResponseFromJSON;
32
+ exports.FlowSourceTokenOptionsResponseFromJSONTyped = FlowSourceTokenOptionsResponseFromJSONTyped;
33
+ exports.FlowSourceTokenOptionsResponseToJSON = FlowSourceTokenOptionsResponseToJSON;
@@ -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 { FlowSourceTokenOption } from './FlowSourceTokenOption';
13
+ /**
14
+ * The tokens a flow can be paid with from a deposit address.
15
+ * @export
16
+ * @interface FlowSourceTokenOptionsResponse
17
+ */
18
+ export interface FlowSourceTokenOptionsResponse {
19
+ /**
20
+ * Networks and tokens a payer can fund the flow from.
21
+ * @type {Array<FlowSourceTokenOption>}
22
+ * @memberof FlowSourceTokenOptionsResponse
23
+ */
24
+ sourceTokenOptions: Array<FlowSourceTokenOption>;
25
+ }
26
+ export declare function FlowSourceTokenOptionsResponseFromJSON(json: any): FlowSourceTokenOptionsResponse;
27
+ export declare function FlowSourceTokenOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSourceTokenOptionsResponse;
28
+ export declare function FlowSourceTokenOptionsResponseToJSON(value?: FlowSourceTokenOptionsResponse | null): any;
@@ -0,0 +1,27 @@
1
+ import { FlowSourceTokenOptionFromJSON, FlowSourceTokenOptionToJSON } from './FlowSourceTokenOption.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowSourceTokenOptionsResponseFromJSON(json) {
5
+ return FlowSourceTokenOptionsResponseFromJSONTyped(json);
6
+ }
7
+ function FlowSourceTokenOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'sourceTokenOptions': (json['sourceTokenOptions'].map(FlowSourceTokenOptionFromJSON)),
13
+ };
14
+ }
15
+ function FlowSourceTokenOptionsResponseToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'sourceTokenOptions': (value.sourceTokenOptions.map(FlowSourceTokenOptionToJSON)),
24
+ };
25
+ }
26
+
27
+ export { FlowSourceTokenOptionsResponseFromJSON, FlowSourceTokenOptionsResponseFromJSONTyped, FlowSourceTokenOptionsResponseToJSON };
@@ -373,6 +373,11 @@ export * from './FlowRiskStateEnum';
373
373
  export * from './FlowSettlementData';
374
374
  export * from './FlowSettlementStateEnum';
375
375
  export * from './FlowSourceResponse';
376
+ export * from './FlowSourceTokenOption';
377
+ export * from './FlowSourceTokenOptionChain';
378
+ export * from './FlowSourceTokenOptionNetwork';
379
+ export * from './FlowSourceTokenOptionToken';
380
+ export * from './FlowSourceTokenOptionsResponse';
376
381
  export * from './FlowSourceTypeEnum';
377
382
  export * from './FlowTokenInfo';
378
383
  export * from './FlowUIConfig';