@dynamic-labs/sdk-api-core 0.115.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 +1 -1
- package/src/apis/SDKApi.cjs +59 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +28 -1
- package/src/apis/SDKApi.js +59 -0
- package/src/apis/SDKApi.js.map +1 -1
- package/src/index.cjs +4 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/models/FlowExchangesResponse.cjs +33 -0
- package/src/models/FlowExchangesResponse.cjs.map +1 -0
- package/src/models/FlowExchangesResponse.d.ts +28 -0
- package/src/models/FlowExchangesResponse.js +27 -0
- package/src/models/FlowExchangesResponse.js.map +1 -0
- package/src/models/index.d.ts +1 -0
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
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, 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, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, 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, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, 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;
|
|
@@ -129,6 +129,7 @@ export interface CbOauthRedirectOptionsRequest {
|
|
|
129
129
|
export interface CheckSsoProviderRequest {
|
|
130
130
|
environmentId: string;
|
|
131
131
|
ssoProviderCheckRequest: SsoProviderCheckRequest;
|
|
132
|
+
xDynOrganizationId?: string;
|
|
132
133
|
}
|
|
133
134
|
export interface CheckWalletSanctionsRequest {
|
|
134
135
|
environmentId: string;
|
|
@@ -540,6 +541,14 @@ export interface GetFlowRequest {
|
|
|
540
541
|
environmentId: string;
|
|
541
542
|
flowId: string;
|
|
542
543
|
}
|
|
544
|
+
export interface GetFlowExchangesRequest {
|
|
545
|
+
environmentId: string;
|
|
546
|
+
flowId: string;
|
|
547
|
+
}
|
|
548
|
+
export interface GetFlowExchangesOptionsRequest {
|
|
549
|
+
environmentId: string;
|
|
550
|
+
flowId: string;
|
|
551
|
+
}
|
|
543
552
|
export interface GetFlowOptionsRequest {
|
|
544
553
|
environmentId: string;
|
|
545
554
|
flowId: string;
|
|
@@ -2946,6 +2955,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2946
2955
|
* Get a flow by ID
|
|
2947
2956
|
*/
|
|
2948
2957
|
getFlow(requestParameters: GetFlowRequest, initOverrides?: RequestInit): Promise<Flow>;
|
|
2958
|
+
/**
|
|
2959
|
+
* 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.
|
|
2960
|
+
* Get the exchanges a flow can be paid with
|
|
2961
|
+
*/
|
|
2962
|
+
getFlowExchangesRaw(requestParameters: GetFlowExchangesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowExchangesResponse>>;
|
|
2963
|
+
/**
|
|
2964
|
+
* 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.
|
|
2965
|
+
* Get the exchanges a flow can be paid with
|
|
2966
|
+
*/
|
|
2967
|
+
getFlowExchanges(requestParameters: GetFlowExchangesRequest, initOverrides?: RequestInit): Promise<FlowExchangesResponse>;
|
|
2968
|
+
/**
|
|
2969
|
+
* Options call for this endpoint
|
|
2970
|
+
*/
|
|
2971
|
+
getFlowExchangesOptionsRaw(requestParameters: GetFlowExchangesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
2972
|
+
/**
|
|
2973
|
+
* Options call for this endpoint
|
|
2974
|
+
*/
|
|
2975
|
+
getFlowExchangesOptions(requestParameters: GetFlowExchangesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2949
2976
|
/**
|
|
2950
2977
|
* Options call for this endpoint
|
|
2951
2978
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -132,6 +132,7 @@ import { FlowFromJSON } from '../models/Flow.js';
|
|
|
132
132
|
import { FlowAttachSourceRequestToJSON } from '../models/FlowAttachSourceRequest.js';
|
|
133
133
|
import '../models/FlowCurrencyEnum.js';
|
|
134
134
|
import '../models/FlowSourceTypeEnum.js';
|
|
135
|
+
import { FlowExchangesResponseFromJSON } from '../models/FlowExchangesResponse.js';
|
|
135
136
|
import '../models/FlowExecutionStateEnum.js';
|
|
136
137
|
import '../models/FlowModeEnum.js';
|
|
137
138
|
import { FlowPrepareSigningRequestToJSON } from '../models/FlowPrepareSigningRequest.js';
|
|
@@ -1187,6 +1188,9 @@ class SDKApi extends BaseAPI {
|
|
|
1187
1188
|
const queryParameters = {};
|
|
1188
1189
|
const headerParameters = {};
|
|
1189
1190
|
headerParameters['Content-Type'] = 'application/json';
|
|
1191
|
+
if (requestParameters.xDynOrganizationId !== undefined && requestParameters.xDynOrganizationId !== null) {
|
|
1192
|
+
headerParameters['x-dyn-organization-id'] = String(requestParameters.xDynOrganizationId);
|
|
1193
|
+
}
|
|
1190
1194
|
const response = await this.request({
|
|
1191
1195
|
path: `/sdk/{environmentId}/ssoProvider`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1192
1196
|
method: 'POST',
|
|
@@ -4436,6 +4440,61 @@ class SDKApi extends BaseAPI {
|
|
|
4436
4440
|
const response = await this.getFlowRaw(requestParameters, initOverrides);
|
|
4437
4441
|
return await response.value();
|
|
4438
4442
|
}
|
|
4443
|
+
/**
|
|
4444
|
+
* 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.
|
|
4445
|
+
* Get the exchanges a flow can be paid with
|
|
4446
|
+
*/
|
|
4447
|
+
async getFlowExchangesRaw(requestParameters, initOverrides) {
|
|
4448
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4449
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowExchanges.');
|
|
4450
|
+
}
|
|
4451
|
+
if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
|
|
4452
|
+
throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowExchanges.');
|
|
4453
|
+
}
|
|
4454
|
+
const queryParameters = {};
|
|
4455
|
+
const headerParameters = {};
|
|
4456
|
+
const response = await this.request({
|
|
4457
|
+
path: `/sdk/{environmentId}/flow/{flowId}/exchanges`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
|
|
4458
|
+
method: 'GET',
|
|
4459
|
+
headers: headerParameters,
|
|
4460
|
+
query: queryParameters,
|
|
4461
|
+
}, initOverrides);
|
|
4462
|
+
return new JSONApiResponse(response, (jsonValue) => FlowExchangesResponseFromJSON(jsonValue));
|
|
4463
|
+
}
|
|
4464
|
+
/**
|
|
4465
|
+
* 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.
|
|
4466
|
+
* Get the exchanges a flow can be paid with
|
|
4467
|
+
*/
|
|
4468
|
+
async getFlowExchanges(requestParameters, initOverrides) {
|
|
4469
|
+
const response = await this.getFlowExchangesRaw(requestParameters, initOverrides);
|
|
4470
|
+
return await response.value();
|
|
4471
|
+
}
|
|
4472
|
+
/**
|
|
4473
|
+
* Options call for this endpoint
|
|
4474
|
+
*/
|
|
4475
|
+
async getFlowExchangesOptionsRaw(requestParameters, initOverrides) {
|
|
4476
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4477
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowExchangesOptions.');
|
|
4478
|
+
}
|
|
4479
|
+
if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
|
|
4480
|
+
throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowExchangesOptions.');
|
|
4481
|
+
}
|
|
4482
|
+
const queryParameters = {};
|
|
4483
|
+
const headerParameters = {};
|
|
4484
|
+
const response = await this.request({
|
|
4485
|
+
path: `/sdk/{environmentId}/flow/{flowId}/exchanges`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
|
|
4486
|
+
method: 'OPTIONS',
|
|
4487
|
+
headers: headerParameters,
|
|
4488
|
+
query: queryParameters,
|
|
4489
|
+
}, initOverrides);
|
|
4490
|
+
return new VoidApiResponse(response);
|
|
4491
|
+
}
|
|
4492
|
+
/**
|
|
4493
|
+
* Options call for this endpoint
|
|
4494
|
+
*/
|
|
4495
|
+
async getFlowExchangesOptions(requestParameters, initOverrides) {
|
|
4496
|
+
await this.getFlowExchangesOptionsRaw(requestParameters, initOverrides);
|
|
4497
|
+
}
|
|
4439
4498
|
/**
|
|
4440
4499
|
* Options call for this endpoint
|
|
4441
4500
|
*/
|