@dynamic-labs/sdk-api 0.116.0 → 0.117.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.116.0",
3
+ "version": "0.117.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -170,6 +170,7 @@ require('../models/FlowAnalyticsSummaryResponse.cjs');
170
170
  var FlowAttachSourceRequest = require('../models/FlowAttachSourceRequest.cjs');
171
171
  require('../models/FlowCurrencyEnum.cjs');
172
172
  require('../models/FlowSourceTypeEnum.cjs');
173
+ var FlowExchangesResponse = require('../models/FlowExchangesResponse.cjs');
173
174
  require('../models/FlowExecutionStateEnum.cjs');
174
175
  require('../models/FlowListItem.cjs');
175
176
  require('../models/FlowModeEnum.cjs');
@@ -4547,6 +4548,61 @@ class SDKApi extends runtime.BaseAPI {
4547
4548
  const response = await this.getFlowRaw(requestParameters, initOverrides);
4548
4549
  return await response.value();
4549
4550
  }
4551
+ /**
4552
+ * Lists the exchanges that can be attached as this flow\'s source, checked against the environment\'s enabled exchanges and the flow\'s currency and settlement. It does not check whether the flow can still change source.
4553
+ * Get the exchanges a flow can be paid with
4554
+ */
4555
+ async getFlowExchangesRaw(requestParameters, initOverrides) {
4556
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4557
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowExchanges.');
4558
+ }
4559
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4560
+ throw new runtime.RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowExchanges.');
4561
+ }
4562
+ const queryParameters = {};
4563
+ const headerParameters = {};
4564
+ const response = await this.request({
4565
+ path: `/sdk/{environmentId}/flow/{flowId}/exchanges`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4566
+ method: 'GET',
4567
+ headers: headerParameters,
4568
+ query: queryParameters,
4569
+ }, initOverrides);
4570
+ return new runtime.JSONApiResponse(response, (jsonValue) => FlowExchangesResponse.FlowExchangesResponseFromJSON(jsonValue));
4571
+ }
4572
+ /**
4573
+ * Lists the exchanges that can be attached as this flow\'s source, checked against the environment\'s enabled exchanges and the flow\'s currency and settlement. It does not check whether the flow can still change source.
4574
+ * Get the exchanges a flow can be paid with
4575
+ */
4576
+ async getFlowExchanges(requestParameters, initOverrides) {
4577
+ const response = await this.getFlowExchangesRaw(requestParameters, initOverrides);
4578
+ return await response.value();
4579
+ }
4580
+ /**
4581
+ * Options call for this endpoint
4582
+ */
4583
+ async getFlowExchangesOptionsRaw(requestParameters, initOverrides) {
4584
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4585
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowExchangesOptions.');
4586
+ }
4587
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4588
+ throw new runtime.RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowExchangesOptions.');
4589
+ }
4590
+ const queryParameters = {};
4591
+ const headerParameters = {};
4592
+ const response = await this.request({
4593
+ path: `/sdk/{environmentId}/flow/{flowId}/exchanges`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4594
+ method: 'OPTIONS',
4595
+ headers: headerParameters,
4596
+ query: queryParameters,
4597
+ }, initOverrides);
4598
+ return new runtime.VoidApiResponse(response);
4599
+ }
4600
+ /**
4601
+ * Options call for this endpoint
4602
+ */
4603
+ async getFlowExchangesOptions(requestParameters, initOverrides) {
4604
+ await this.getFlowExchangesOptionsRaw(requestParameters, initOverrides);
4605
+ }
4550
4606
  /**
4551
4607
  * Options call for this endpoint
4552
4608
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, 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, 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, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
13
+ import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, 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, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
14
14
  export interface AttachFlowSourceRequest {
15
15
  environmentId: string;
16
16
  flowId: string;
@@ -541,6 +541,14 @@ export interface GetFlowRequest {
541
541
  environmentId: string;
542
542
  flowId: string;
543
543
  }
544
+ export interface GetFlowExchangesRequest {
545
+ environmentId: string;
546
+ flowId: string;
547
+ }
548
+ export interface GetFlowExchangesOptionsRequest {
549
+ environmentId: string;
550
+ flowId: string;
551
+ }
544
552
  export interface GetFlowOptionsRequest {
545
553
  environmentId: string;
546
554
  flowId: string;
@@ -2970,6 +2978,24 @@ export declare class SDKApi extends runtime.BaseAPI {
2970
2978
  * Get a flow by ID
2971
2979
  */
2972
2980
  getFlow(requestParameters: GetFlowRequest, initOverrides?: RequestInit): Promise<Flow>;
2981
+ /**
2982
+ * Lists the exchanges that can be attached as this flow\'s source, checked against the environment\'s enabled exchanges and the flow\'s currency and settlement. It does not check whether the flow can still change source.
2983
+ * Get the exchanges a flow can be paid with
2984
+ */
2985
+ getFlowExchangesRaw(requestParameters: GetFlowExchangesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowExchangesResponse>>;
2986
+ /**
2987
+ * Lists the exchanges that can be attached as this flow\'s source, checked against the environment\'s enabled exchanges and the flow\'s currency and settlement. It does not check whether the flow can still change source.
2988
+ * Get the exchanges a flow can be paid with
2989
+ */
2990
+ getFlowExchanges(requestParameters: GetFlowExchangesRequest, initOverrides?: RequestInit): Promise<FlowExchangesResponse>;
2991
+ /**
2992
+ * Options call for this endpoint
2993
+ */
2994
+ getFlowExchangesOptionsRaw(requestParameters: GetFlowExchangesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2995
+ /**
2996
+ * Options call for this endpoint
2997
+ */
2998
+ getFlowExchangesOptions(requestParameters: GetFlowExchangesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2973
2999
  /**
2974
3000
  * Options call for this endpoint
2975
3001
  */
@@ -166,6 +166,7 @@ import '../models/FlowAnalyticsSummaryResponse.js';
166
166
  import { FlowAttachSourceRequestToJSON } from '../models/FlowAttachSourceRequest.js';
167
167
  import '../models/FlowCurrencyEnum.js';
168
168
  import '../models/FlowSourceTypeEnum.js';
169
+ import { FlowExchangesResponseFromJSON } from '../models/FlowExchangesResponse.js';
169
170
  import '../models/FlowExecutionStateEnum.js';
170
171
  import '../models/FlowListItem.js';
171
172
  import '../models/FlowModeEnum.js';
@@ -4543,6 +4544,61 @@ class SDKApi extends BaseAPI {
4543
4544
  const response = await this.getFlowRaw(requestParameters, initOverrides);
4544
4545
  return await response.value();
4545
4546
  }
4547
+ /**
4548
+ * Lists the exchanges that can be attached as this flow\'s source, checked against the environment\'s enabled exchanges and the flow\'s currency and settlement. It does not check whether the flow can still change source.
4549
+ * Get the exchanges a flow can be paid with
4550
+ */
4551
+ async getFlowExchangesRaw(requestParameters, initOverrides) {
4552
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4553
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowExchanges.');
4554
+ }
4555
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4556
+ throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowExchanges.');
4557
+ }
4558
+ const queryParameters = {};
4559
+ const headerParameters = {};
4560
+ const response = await this.request({
4561
+ path: `/sdk/{environmentId}/flow/{flowId}/exchanges`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4562
+ method: 'GET',
4563
+ headers: headerParameters,
4564
+ query: queryParameters,
4565
+ }, initOverrides);
4566
+ return new JSONApiResponse(response, (jsonValue) => FlowExchangesResponseFromJSON(jsonValue));
4567
+ }
4568
+ /**
4569
+ * Lists the exchanges that can be attached as this flow\'s source, checked against the environment\'s enabled exchanges and the flow\'s currency and settlement. It does not check whether the flow can still change source.
4570
+ * Get the exchanges a flow can be paid with
4571
+ */
4572
+ async getFlowExchanges(requestParameters, initOverrides) {
4573
+ const response = await this.getFlowExchangesRaw(requestParameters, initOverrides);
4574
+ return await response.value();
4575
+ }
4576
+ /**
4577
+ * Options call for this endpoint
4578
+ */
4579
+ async getFlowExchangesOptionsRaw(requestParameters, initOverrides) {
4580
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4581
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowExchangesOptions.');
4582
+ }
4583
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4584
+ throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowExchangesOptions.');
4585
+ }
4586
+ const queryParameters = {};
4587
+ const headerParameters = {};
4588
+ const response = await this.request({
4589
+ path: `/sdk/{environmentId}/flow/{flowId}/exchanges`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4590
+ method: 'OPTIONS',
4591
+ headers: headerParameters,
4592
+ query: queryParameters,
4593
+ }, initOverrides);
4594
+ return new VoidApiResponse(response);
4595
+ }
4596
+ /**
4597
+ * Options call for this endpoint
4598
+ */
4599
+ async getFlowExchangesOptions(requestParameters, initOverrides) {
4600
+ await this.getFlowExchangesOptionsRaw(requestParameters, initOverrides);
4601
+ }
4546
4602
  /**
4547
4603
  * Options call for this endpoint
4548
4604
  */
package/src/index.cjs CHANGED
@@ -385,6 +385,7 @@ var FlowCreateRequest = require('./models/FlowCreateRequest.cjs');
385
385
  var FlowCreateResponse = require('./models/FlowCreateResponse.cjs');
386
386
  var FlowCurrencyEnum = require('./models/FlowCurrencyEnum.cjs');
387
387
  var FlowExchangeSource = require('./models/FlowExchangeSource.cjs');
388
+ var FlowExchangesResponse = require('./models/FlowExchangesResponse.cjs');
388
389
  var FlowExecutionStateEnum = require('./models/FlowExecutionStateEnum.cjs');
389
390
  var FlowFailure = require('./models/FlowFailure.cjs');
390
391
  var FlowFeeBalance = require('./models/FlowFeeBalance.cjs');
@@ -2468,6 +2469,9 @@ exports.FlowCurrencyEnumToJSON = FlowCurrencyEnum.FlowCurrencyEnumToJSON;
2468
2469
  exports.FlowExchangeSourceFromJSON = FlowExchangeSource.FlowExchangeSourceFromJSON;
2469
2470
  exports.FlowExchangeSourceFromJSONTyped = FlowExchangeSource.FlowExchangeSourceFromJSONTyped;
2470
2471
  exports.FlowExchangeSourceToJSON = FlowExchangeSource.FlowExchangeSourceToJSON;
2472
+ exports.FlowExchangesResponseFromJSON = FlowExchangesResponse.FlowExchangesResponseFromJSON;
2473
+ exports.FlowExchangesResponseFromJSONTyped = FlowExchangesResponse.FlowExchangesResponseFromJSONTyped;
2474
+ exports.FlowExchangesResponseToJSON = FlowExchangesResponse.FlowExchangesResponseToJSON;
2471
2475
  Object.defineProperty(exports, 'FlowExecutionStateEnum', {
2472
2476
  enumerable: true,
2473
2477
  get: function () { return FlowExecutionStateEnum.FlowExecutionStateEnum; }
package/src/index.js CHANGED
@@ -381,6 +381,7 @@ export { FlowCreateRequestFromJSON, FlowCreateRequestFromJSONTyped, FlowCreateRe
381
381
  export { FlowCreateResponseFromJSON, FlowCreateResponseFromJSONTyped, FlowCreateResponseToJSON } from './models/FlowCreateResponse.js';
382
382
  export { FlowCurrencyEnum, FlowCurrencyEnumFromJSON, FlowCurrencyEnumFromJSONTyped, FlowCurrencyEnumToJSON } from './models/FlowCurrencyEnum.js';
383
383
  export { FlowExchangeSourceFromJSON, FlowExchangeSourceFromJSONTyped, FlowExchangeSourceToJSON } from './models/FlowExchangeSource.js';
384
+ export { FlowExchangesResponseFromJSON, FlowExchangesResponseFromJSONTyped, FlowExchangesResponseToJSON } from './models/FlowExchangesResponse.js';
384
385
  export { FlowExecutionStateEnum, FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumFromJSONTyped, FlowExecutionStateEnumToJSON } from './models/FlowExecutionStateEnum.js';
385
386
  export { FlowFailureFromJSON, FlowFailureFromJSONTyped, FlowFailureToJSON } from './models/FlowFailure.js';
386
387
  export { FlowFeeBalanceFromJSON, FlowFeeBalanceFromJSONTyped, FlowFeeBalanceToJSON } from './models/FlowFeeBalance.js';
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var ExchangeKeyEnum = require('./ExchangeKeyEnum.cjs');
6
+
7
+ /* tslint:disable */
8
+ function FlowExchangesResponseFromJSON(json) {
9
+ return FlowExchangesResponseFromJSONTyped(json);
10
+ }
11
+ function FlowExchangesResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'exchanges': (json['exchanges'].map(ExchangeKeyEnum.ExchangeKeyEnumFromJSON)),
17
+ };
18
+ }
19
+ function FlowExchangesResponseToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'exchanges': (value.exchanges.map(ExchangeKeyEnum.ExchangeKeyEnumToJSON)),
28
+ };
29
+ }
30
+
31
+ exports.FlowExchangesResponseFromJSON = FlowExchangesResponseFromJSON;
32
+ exports.FlowExchangesResponseFromJSONTyped = FlowExchangesResponseFromJSONTyped;
33
+ exports.FlowExchangesResponseToJSON = FlowExchangesResponseToJSON;
@@ -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 { ExchangeKeyEnum } from './ExchangeKeyEnum';
13
+ /**
14
+ * The exchanges a flow can be paid with.
15
+ * @export
16
+ * @interface FlowExchangesResponse
17
+ */
18
+ export interface FlowExchangesResponse {
19
+ /**
20
+ * Exchanges that can be attached as the flow's source.
21
+ * @type {Array<ExchangeKeyEnum>}
22
+ * @memberof FlowExchangesResponse
23
+ */
24
+ exchanges: Array<ExchangeKeyEnum>;
25
+ }
26
+ export declare function FlowExchangesResponseFromJSON(json: any): FlowExchangesResponse;
27
+ export declare function FlowExchangesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowExchangesResponse;
28
+ export declare function FlowExchangesResponseToJSON(value?: FlowExchangesResponse | null): any;
@@ -0,0 +1,27 @@
1
+ import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
2
+
3
+ /* tslint:disable */
4
+ function FlowExchangesResponseFromJSON(json) {
5
+ return FlowExchangesResponseFromJSONTyped(json);
6
+ }
7
+ function FlowExchangesResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'exchanges': (json['exchanges'].map(ExchangeKeyEnumFromJSON)),
13
+ };
14
+ }
15
+ function FlowExchangesResponseToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'exchanges': (value.exchanges.map(ExchangeKeyEnumToJSON)),
24
+ };
25
+ }
26
+
27
+ export { FlowExchangesResponseFromJSON, FlowExchangesResponseFromJSONTyped, FlowExchangesResponseToJSON };
@@ -328,6 +328,7 @@ export * from './FlowCreateRequest';
328
328
  export * from './FlowCreateResponse';
329
329
  export * from './FlowCurrencyEnum';
330
330
  export * from './FlowExchangeSource';
331
+ export * from './FlowExchangesResponse';
331
332
  export * from './FlowExecutionStateEnum';
332
333
  export * from './FlowFailure';
333
334
  export * from './FlowFeeBalance';