@dynamic-labs/sdk-api 0.2.0 → 0.4.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 +107 -4
- package/src/apis/SDKApi.d.ts +47 -5
- package/src/apis/SDKApi.js +107 -4
- package/src/index.cjs +12 -0
- package/src/index.js +3 -0
- package/src/models/WaasTransactionBroadcastRequest.d.ts +1 -1
- package/src/models/YieldSigningPayload.cjs +42 -0
- package/src/models/YieldSigningPayload.d.ts +48 -0
- package/src/models/YieldSigningPayload.js +36 -0
- package/src/models/YieldVaultActionRequest.cjs +37 -0
- package/src/models/YieldVaultActionRequest.d.ts +39 -0
- package/src/models/YieldVaultActionRequest.js +31 -0
- package/src/models/YieldVaultActionResponse.cjs +35 -0
- package/src/models/YieldVaultActionResponse.d.ts +34 -0
- package/src/models/YieldVaultActionResponse.js +29 -0
- package/src/models/index.d.ts +3 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -334,6 +334,8 @@ require('../models/WaasTransactionReviewTestResponseResponseSignature.cjs');
|
|
|
334
334
|
var WalletSanctionsResponse = require('../models/WalletSanctionsResponse.cjs');
|
|
335
335
|
require('../models/WalletTransactionType.cjs');
|
|
336
336
|
var WalletTransactionsResponse = require('../models/WalletTransactionsResponse.cjs');
|
|
337
|
+
var YieldVaultActionRequest = require('../models/YieldVaultActionRequest.cjs');
|
|
338
|
+
var YieldVaultActionResponse = require('../models/YieldVaultActionResponse.cjs');
|
|
337
339
|
var YieldVaultDetails = require('../models/YieldVaultDetails.cjs');
|
|
338
340
|
var YieldVaultListResponse = require('../models/YieldVaultListResponse.cjs');
|
|
339
341
|
var YieldVaultPosition = require('../models/YieldVaultPosition.cjs');
|
|
@@ -903,7 +905,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
903
905
|
await this.broadcastFlowOptionsRaw(requestParameters, initOverrides);
|
|
904
906
|
}
|
|
905
907
|
/**
|
|
906
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
908
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
907
909
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
908
910
|
*/
|
|
909
911
|
async broadcastWaasTransactionRaw(requestParameters, initOverrides) {
|
|
@@ -942,7 +944,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
942
944
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasTransactionBroadcastResponse.WaasTransactionBroadcastResponseFromJSON(jsonValue));
|
|
943
945
|
}
|
|
944
946
|
/**
|
|
945
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
947
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
946
948
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
947
949
|
*/
|
|
948
950
|
async broadcastWaasTransaction(requestParameters, initOverrides) {
|
|
@@ -3735,7 +3737,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3735
3737
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3736
3738
|
}
|
|
3737
3739
|
/**
|
|
3738
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
3740
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
3739
3741
|
* Get the business account\'s account-Layer Rules
|
|
3740
3742
|
*/
|
|
3741
3743
|
async getBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
|
|
@@ -3763,7 +3765,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3763
3765
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
3764
3766
|
}
|
|
3765
3767
|
/**
|
|
3766
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
3768
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
3767
3769
|
* Get the business account\'s account-Layer Rules
|
|
3768
3770
|
*/
|
|
3769
3771
|
async getBusinessAccountPolicyLayer(requestParameters, initOverrides) {
|
|
@@ -10849,6 +10851,47 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
10849
10851
|
async updateAdditionalAddressesOptions(requestParameters, initOverrides) {
|
|
10850
10852
|
await this.updateAdditionalAddressesOptionsRaw(requestParameters, initOverrides);
|
|
10851
10853
|
}
|
|
10854
|
+
/**
|
|
10855
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
10856
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
10857
|
+
*/
|
|
10858
|
+
async updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10859
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10860
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10861
|
+
}
|
|
10862
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10863
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10864
|
+
}
|
|
10865
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
10866
|
+
throw new runtime.RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10867
|
+
}
|
|
10868
|
+
const queryParameters = {};
|
|
10869
|
+
const headerParameters = {};
|
|
10870
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10871
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10872
|
+
const token = this.configuration.accessToken;
|
|
10873
|
+
const tokenString = await token("bearerAuth", []);
|
|
10874
|
+
if (tokenString) {
|
|
10875
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10876
|
+
}
|
|
10877
|
+
}
|
|
10878
|
+
const response = await this.request({
|
|
10879
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10880
|
+
method: 'PATCH',
|
|
10881
|
+
headers: headerParameters,
|
|
10882
|
+
query: queryParameters,
|
|
10883
|
+
body: WaasPolicyLayerUpdateRequest.WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
10884
|
+
}, initOverrides);
|
|
10885
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponse.WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10886
|
+
}
|
|
10887
|
+
/**
|
|
10888
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
10889
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
10890
|
+
*/
|
|
10891
|
+
async updateBusinessAccountPolicyLayer(requestParameters, initOverrides) {
|
|
10892
|
+
const response = await this.updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides);
|
|
10893
|
+
return await response.value();
|
|
10894
|
+
}
|
|
10852
10895
|
/**
|
|
10853
10896
|
* Updates the V2 recovery email address for the authenticated user.
|
|
10854
10897
|
* Update a user\'s V2 recovery email
|
|
@@ -11927,6 +11970,66 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11927
11970
|
async walletsVerifyOptions(requestParameters, initOverrides) {
|
|
11928
11971
|
await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
|
|
11929
11972
|
}
|
|
11973
|
+
/**
|
|
11974
|
+
* Builds an unsigned deposit signing payload for the given vault and wallet address. When the payload includes an approval step, the SDK signs and sends it before the main transaction.
|
|
11975
|
+
* Build a vault deposit signing payload
|
|
11976
|
+
*/
|
|
11977
|
+
async yieldVaultDepositRaw(requestParameters, initOverrides) {
|
|
11978
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11979
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling yieldVaultDeposit.');
|
|
11980
|
+
}
|
|
11981
|
+
if (requestParameters.vaultId === null || requestParameters.vaultId === undefined) {
|
|
11982
|
+
throw new runtime.RequiredError('vaultId', 'Required parameter requestParameters.vaultId was null or undefined when calling yieldVaultDeposit.');
|
|
11983
|
+
}
|
|
11984
|
+
if (requestParameters.yieldVaultActionRequest === null || requestParameters.yieldVaultActionRequest === undefined) {
|
|
11985
|
+
throw new runtime.RequiredError('yieldVaultActionRequest', 'Required parameter requestParameters.yieldVaultActionRequest was null or undefined when calling yieldVaultDeposit.');
|
|
11986
|
+
}
|
|
11987
|
+
const queryParameters = {};
|
|
11988
|
+
const headerParameters = {};
|
|
11989
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
11990
|
+
const response = await this.request({
|
|
11991
|
+
path: `/sdk/{environmentId}/yield/vaults/{vaultId}/deposit`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"vaultId"}}`, encodeURIComponent(String(requestParameters.vaultId))),
|
|
11992
|
+
method: 'POST',
|
|
11993
|
+
headers: headerParameters,
|
|
11994
|
+
query: queryParameters,
|
|
11995
|
+
body: YieldVaultActionRequest.YieldVaultActionRequestToJSON(requestParameters.yieldVaultActionRequest),
|
|
11996
|
+
}, initOverrides);
|
|
11997
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => YieldVaultActionResponse.YieldVaultActionResponseFromJSON(jsonValue));
|
|
11998
|
+
}
|
|
11999
|
+
/**
|
|
12000
|
+
* Builds an unsigned deposit signing payload for the given vault and wallet address. When the payload includes an approval step, the SDK signs and sends it before the main transaction.
|
|
12001
|
+
* Build a vault deposit signing payload
|
|
12002
|
+
*/
|
|
12003
|
+
async yieldVaultDeposit(requestParameters, initOverrides) {
|
|
12004
|
+
const response = await this.yieldVaultDepositRaw(requestParameters, initOverrides);
|
|
12005
|
+
return await response.value();
|
|
12006
|
+
}
|
|
12007
|
+
/**
|
|
12008
|
+
* Options call for this endpoint
|
|
12009
|
+
*/
|
|
12010
|
+
async yieldVaultDepositOptionsRaw(requestParameters, initOverrides) {
|
|
12011
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
12012
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling yieldVaultDepositOptions.');
|
|
12013
|
+
}
|
|
12014
|
+
if (requestParameters.vaultId === null || requestParameters.vaultId === undefined) {
|
|
12015
|
+
throw new runtime.RequiredError('vaultId', 'Required parameter requestParameters.vaultId was null or undefined when calling yieldVaultDepositOptions.');
|
|
12016
|
+
}
|
|
12017
|
+
const queryParameters = {};
|
|
12018
|
+
const headerParameters = {};
|
|
12019
|
+
const response = await this.request({
|
|
12020
|
+
path: `/sdk/{environmentId}/yield/vaults/{vaultId}/deposit`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"vaultId"}}`, encodeURIComponent(String(requestParameters.vaultId))),
|
|
12021
|
+
method: 'OPTIONS',
|
|
12022
|
+
headers: headerParameters,
|
|
12023
|
+
query: queryParameters,
|
|
12024
|
+
}, initOverrides);
|
|
12025
|
+
return new runtime.VoidApiResponse(response);
|
|
12026
|
+
}
|
|
12027
|
+
/**
|
|
12028
|
+
* Options call for this endpoint
|
|
12029
|
+
*/
|
|
12030
|
+
async yieldVaultDepositOptions(requestParameters, initOverrides) {
|
|
12031
|
+
await this.yieldVaultDepositOptionsRaw(requestParameters, initOverrides);
|
|
12032
|
+
}
|
|
11930
12033
|
/**
|
|
11931
12034
|
* Options call for this endpoint
|
|
11932
12035
|
*/
|
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, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, 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, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultRewardsResponse } from '../models';
|
|
13
|
+
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, 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, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultRewardsResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -1382,6 +1382,11 @@ export interface UpdateAdditionalAddressesOptionsRequest {
|
|
|
1382
1382
|
environmentId: string;
|
|
1383
1383
|
walletId: string;
|
|
1384
1384
|
}
|
|
1385
|
+
export interface UpdateBusinessAccountPolicyLayerRequest {
|
|
1386
|
+
environmentId: string;
|
|
1387
|
+
businessAccountId: string;
|
|
1388
|
+
waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
|
|
1389
|
+
}
|
|
1385
1390
|
export interface UpdateEmbeddedWalletRecoveryEmailRequest {
|
|
1386
1391
|
environmentId: string;
|
|
1387
1392
|
updateRecoveryEmailRequest: UpdateRecoveryEmailRequest;
|
|
@@ -1514,6 +1519,15 @@ export interface WalletsVerifyRequest {
|
|
|
1514
1519
|
export interface WalletsVerifyOptionsRequest {
|
|
1515
1520
|
environmentId: string;
|
|
1516
1521
|
}
|
|
1522
|
+
export interface YieldVaultDepositRequest {
|
|
1523
|
+
environmentId: string;
|
|
1524
|
+
vaultId: string;
|
|
1525
|
+
yieldVaultActionRequest: YieldVaultActionRequest;
|
|
1526
|
+
}
|
|
1527
|
+
export interface YieldVaultDepositOptionsRequest {
|
|
1528
|
+
environmentId: string;
|
|
1529
|
+
vaultId: string;
|
|
1530
|
+
}
|
|
1517
1531
|
export interface YieldVaultDetailsOptionsRequest {
|
|
1518
1532
|
environmentId: string;
|
|
1519
1533
|
vaultId: string;
|
|
@@ -1691,12 +1705,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1691
1705
|
*/
|
|
1692
1706
|
broadcastFlowOptions(requestParameters: BroadcastFlowOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1693
1707
|
/**
|
|
1694
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
1708
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
1695
1709
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
1696
1710
|
*/
|
|
1697
1711
|
broadcastWaasTransactionRaw(requestParameters: BroadcastWaasTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasTransactionBroadcastResponse>>;
|
|
1698
1712
|
/**
|
|
1699
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
1713
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
1700
1714
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
1701
1715
|
*/
|
|
1702
1716
|
broadcastWaasTransaction(requestParameters: BroadcastWaasTransactionRequest, initOverrides?: RequestInit): Promise<WaasTransactionBroadcastResponse>;
|
|
@@ -2513,12 +2527,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2513
2527
|
*/
|
|
2514
2528
|
getBackupTokenOptions(requestParameters: GetBackupTokenOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2515
2529
|
/**
|
|
2516
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
2530
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
2517
2531
|
* Get the business account\'s account-Layer Rules
|
|
2518
2532
|
*/
|
|
2519
2533
|
getBusinessAccountPolicyLayerRaw(requestParameters: GetBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
2520
2534
|
/**
|
|
2521
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
2535
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
2522
2536
|
* Get the business account\'s account-Layer Rules
|
|
2523
2537
|
*/
|
|
2524
2538
|
getBusinessAccountPolicyLayer(requestParameters: GetBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
@@ -4650,6 +4664,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4650
4664
|
* Options call for this endpoint
|
|
4651
4665
|
*/
|
|
4652
4666
|
updateAdditionalAddressesOptions(requestParameters: UpdateAdditionalAddressesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4667
|
+
/**
|
|
4668
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
4669
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
4670
|
+
*/
|
|
4671
|
+
updateBusinessAccountPolicyLayerRaw(requestParameters: UpdateBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
|
|
4672
|
+
/**
|
|
4673
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
4674
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
4675
|
+
*/
|
|
4676
|
+
updateBusinessAccountPolicyLayer(requestParameters: UpdateBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
4653
4677
|
/**
|
|
4654
4678
|
* Updates the V2 recovery email address for the authenticated user.
|
|
4655
4679
|
* Update a user\'s V2 recovery email
|
|
@@ -4972,6 +4996,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4972
4996
|
* Options call for this endpoint
|
|
4973
4997
|
*/
|
|
4974
4998
|
walletsVerifyOptions(requestParameters: WalletsVerifyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4999
|
+
/**
|
|
5000
|
+
* Builds an unsigned deposit signing payload for the given vault and wallet address. When the payload includes an approval step, the SDK signs and sends it before the main transaction.
|
|
5001
|
+
* Build a vault deposit signing payload
|
|
5002
|
+
*/
|
|
5003
|
+
yieldVaultDepositRaw(requestParameters: YieldVaultDepositRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<YieldVaultActionResponse>>;
|
|
5004
|
+
/**
|
|
5005
|
+
* Builds an unsigned deposit signing payload for the given vault and wallet address. When the payload includes an approval step, the SDK signs and sends it before the main transaction.
|
|
5006
|
+
* Build a vault deposit signing payload
|
|
5007
|
+
*/
|
|
5008
|
+
yieldVaultDeposit(requestParameters: YieldVaultDepositRequest, initOverrides?: RequestInit): Promise<YieldVaultActionResponse>;
|
|
5009
|
+
/**
|
|
5010
|
+
* Options call for this endpoint
|
|
5011
|
+
*/
|
|
5012
|
+
yieldVaultDepositOptionsRaw(requestParameters: YieldVaultDepositOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
5013
|
+
/**
|
|
5014
|
+
* Options call for this endpoint
|
|
5015
|
+
*/
|
|
5016
|
+
yieldVaultDepositOptions(requestParameters: YieldVaultDepositOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4975
5017
|
/**
|
|
4976
5018
|
* Options call for this endpoint
|
|
4977
5019
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -330,6 +330,8 @@ import '../models/WaasTransactionReviewTestResponseResponseSignature.js';
|
|
|
330
330
|
import { WalletSanctionsResponseFromJSON } from '../models/WalletSanctionsResponse.js';
|
|
331
331
|
import '../models/WalletTransactionType.js';
|
|
332
332
|
import { WalletTransactionsResponseFromJSON } from '../models/WalletTransactionsResponse.js';
|
|
333
|
+
import { YieldVaultActionRequestToJSON } from '../models/YieldVaultActionRequest.js';
|
|
334
|
+
import { YieldVaultActionResponseFromJSON } from '../models/YieldVaultActionResponse.js';
|
|
333
335
|
import { YieldVaultDetailsFromJSON } from '../models/YieldVaultDetails.js';
|
|
334
336
|
import { YieldVaultListResponseFromJSON } from '../models/YieldVaultListResponse.js';
|
|
335
337
|
import { YieldVaultPositionFromJSON } from '../models/YieldVaultPosition.js';
|
|
@@ -899,7 +901,7 @@ class SDKApi extends BaseAPI {
|
|
|
899
901
|
await this.broadcastFlowOptionsRaw(requestParameters, initOverrides);
|
|
900
902
|
}
|
|
901
903
|
/**
|
|
902
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
904
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
903
905
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
904
906
|
*/
|
|
905
907
|
async broadcastWaasTransactionRaw(requestParameters, initOverrides) {
|
|
@@ -938,7 +940,7 @@ class SDKApi extends BaseAPI {
|
|
|
938
940
|
return new JSONApiResponse(response, (jsonValue) => WaasTransactionBroadcastResponseFromJSON(jsonValue));
|
|
939
941
|
}
|
|
940
942
|
/**
|
|
941
|
-
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats.
|
|
943
|
+
* Relays an already-signed transaction from a Dynamic v3 WaaS wallet to the network. The server derives chain and wallet address from `walletId`, verifies the signed payload belongs to the wallet, owns provider selection and bounded retry/failover of the identical signed bytes, and replays a stored result when `x-idempotency-key` repeats. Replacement or speed-up transactions use different signed bytes and require a new key; reusing an existing key with different bytes returns 409.
|
|
942
944
|
* Broadcast a signed transaction from a Dynamic v3 WaaS wallet
|
|
943
945
|
*/
|
|
944
946
|
async broadcastWaasTransaction(requestParameters, initOverrides) {
|
|
@@ -3731,7 +3733,7 @@ class SDKApi extends BaseAPI {
|
|
|
3731
3733
|
await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
|
|
3732
3734
|
}
|
|
3733
3735
|
/**
|
|
3734
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
3736
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
3735
3737
|
* Get the business account\'s account-Layer Rules
|
|
3736
3738
|
*/
|
|
3737
3739
|
async getBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
|
|
@@ -3759,7 +3761,7 @@ class SDKApi extends BaseAPI {
|
|
|
3759
3761
|
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
3760
3762
|
}
|
|
3761
3763
|
/**
|
|
3762
|
-
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet.
|
|
3764
|
+
* Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
|
|
3763
3765
|
* Get the business account\'s account-Layer Rules
|
|
3764
3766
|
*/
|
|
3765
3767
|
async getBusinessAccountPolicyLayer(requestParameters, initOverrides) {
|
|
@@ -10845,6 +10847,47 @@ class SDKApi extends BaseAPI {
|
|
|
10845
10847
|
async updateAdditionalAddressesOptions(requestParameters, initOverrides) {
|
|
10846
10848
|
await this.updateAdditionalAddressesOptionsRaw(requestParameters, initOverrides);
|
|
10847
10849
|
}
|
|
10850
|
+
/**
|
|
10851
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
10852
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
10853
|
+
*/
|
|
10854
|
+
async updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
|
|
10855
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
10856
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10857
|
+
}
|
|
10858
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
10859
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10860
|
+
}
|
|
10861
|
+
if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
|
|
10862
|
+
throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateBusinessAccountPolicyLayer.');
|
|
10863
|
+
}
|
|
10864
|
+
const queryParameters = {};
|
|
10865
|
+
const headerParameters = {};
|
|
10866
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
10867
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
10868
|
+
const token = this.configuration.accessToken;
|
|
10869
|
+
const tokenString = await token("bearerAuth", []);
|
|
10870
|
+
if (tokenString) {
|
|
10871
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
10872
|
+
}
|
|
10873
|
+
}
|
|
10874
|
+
const response = await this.request({
|
|
10875
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
10876
|
+
method: 'PATCH',
|
|
10877
|
+
headers: headerParameters,
|
|
10878
|
+
query: queryParameters,
|
|
10879
|
+
body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
|
|
10880
|
+
}, initOverrides);
|
|
10881
|
+
return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
|
|
10882
|
+
}
|
|
10883
|
+
/**
|
|
10884
|
+
* Applies a single per-Rule upsert (create when ruleId is new, update when it already exists) or remove operation to the business account\'s account-Layer, which applies to every wallet in the business account. BA owner/admin only. ruleId may be omitted on an upsert; the enclave then mints one and returns it in the response\'s layerContent.rules. Creates the account-Layer if this business account has none yet, so a first write succeeds rather than 404ing; it is otherwise minted the first time a signer is added to a wallet in the business account with Composition enabled. Set op to batch to apply several operations atomically in one enclave cycle.
|
|
10885
|
+
* Create, update, or remove a Rule on the business account\'s account-Layer
|
|
10886
|
+
*/
|
|
10887
|
+
async updateBusinessAccountPolicyLayer(requestParameters, initOverrides) {
|
|
10888
|
+
const response = await this.updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides);
|
|
10889
|
+
return await response.value();
|
|
10890
|
+
}
|
|
10848
10891
|
/**
|
|
10849
10892
|
* Updates the V2 recovery email address for the authenticated user.
|
|
10850
10893
|
* Update a user\'s V2 recovery email
|
|
@@ -11923,6 +11966,66 @@ class SDKApi extends BaseAPI {
|
|
|
11923
11966
|
async walletsVerifyOptions(requestParameters, initOverrides) {
|
|
11924
11967
|
await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
|
|
11925
11968
|
}
|
|
11969
|
+
/**
|
|
11970
|
+
* Builds an unsigned deposit signing payload for the given vault and wallet address. When the payload includes an approval step, the SDK signs and sends it before the main transaction.
|
|
11971
|
+
* Build a vault deposit signing payload
|
|
11972
|
+
*/
|
|
11973
|
+
async yieldVaultDepositRaw(requestParameters, initOverrides) {
|
|
11974
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11975
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling yieldVaultDeposit.');
|
|
11976
|
+
}
|
|
11977
|
+
if (requestParameters.vaultId === null || requestParameters.vaultId === undefined) {
|
|
11978
|
+
throw new RequiredError('vaultId', 'Required parameter requestParameters.vaultId was null or undefined when calling yieldVaultDeposit.');
|
|
11979
|
+
}
|
|
11980
|
+
if (requestParameters.yieldVaultActionRequest === null || requestParameters.yieldVaultActionRequest === undefined) {
|
|
11981
|
+
throw new RequiredError('yieldVaultActionRequest', 'Required parameter requestParameters.yieldVaultActionRequest was null or undefined when calling yieldVaultDeposit.');
|
|
11982
|
+
}
|
|
11983
|
+
const queryParameters = {};
|
|
11984
|
+
const headerParameters = {};
|
|
11985
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
11986
|
+
const response = await this.request({
|
|
11987
|
+
path: `/sdk/{environmentId}/yield/vaults/{vaultId}/deposit`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"vaultId"}}`, encodeURIComponent(String(requestParameters.vaultId))),
|
|
11988
|
+
method: 'POST',
|
|
11989
|
+
headers: headerParameters,
|
|
11990
|
+
query: queryParameters,
|
|
11991
|
+
body: YieldVaultActionRequestToJSON(requestParameters.yieldVaultActionRequest),
|
|
11992
|
+
}, initOverrides);
|
|
11993
|
+
return new JSONApiResponse(response, (jsonValue) => YieldVaultActionResponseFromJSON(jsonValue));
|
|
11994
|
+
}
|
|
11995
|
+
/**
|
|
11996
|
+
* Builds an unsigned deposit signing payload for the given vault and wallet address. When the payload includes an approval step, the SDK signs and sends it before the main transaction.
|
|
11997
|
+
* Build a vault deposit signing payload
|
|
11998
|
+
*/
|
|
11999
|
+
async yieldVaultDeposit(requestParameters, initOverrides) {
|
|
12000
|
+
const response = await this.yieldVaultDepositRaw(requestParameters, initOverrides);
|
|
12001
|
+
return await response.value();
|
|
12002
|
+
}
|
|
12003
|
+
/**
|
|
12004
|
+
* Options call for this endpoint
|
|
12005
|
+
*/
|
|
12006
|
+
async yieldVaultDepositOptionsRaw(requestParameters, initOverrides) {
|
|
12007
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
12008
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling yieldVaultDepositOptions.');
|
|
12009
|
+
}
|
|
12010
|
+
if (requestParameters.vaultId === null || requestParameters.vaultId === undefined) {
|
|
12011
|
+
throw new RequiredError('vaultId', 'Required parameter requestParameters.vaultId was null or undefined when calling yieldVaultDepositOptions.');
|
|
12012
|
+
}
|
|
12013
|
+
const queryParameters = {};
|
|
12014
|
+
const headerParameters = {};
|
|
12015
|
+
const response = await this.request({
|
|
12016
|
+
path: `/sdk/{environmentId}/yield/vaults/{vaultId}/deposit`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"vaultId"}}`, encodeURIComponent(String(requestParameters.vaultId))),
|
|
12017
|
+
method: 'OPTIONS',
|
|
12018
|
+
headers: headerParameters,
|
|
12019
|
+
query: queryParameters,
|
|
12020
|
+
}, initOverrides);
|
|
12021
|
+
return new VoidApiResponse(response);
|
|
12022
|
+
}
|
|
12023
|
+
/**
|
|
12024
|
+
* Options call for this endpoint
|
|
12025
|
+
*/
|
|
12026
|
+
async yieldVaultDepositOptions(requestParameters, initOverrides) {
|
|
12027
|
+
await this.yieldVaultDepositOptionsRaw(requestParameters, initOverrides);
|
|
12028
|
+
}
|
|
11926
12029
|
/**
|
|
11927
12030
|
* Options call for this endpoint
|
|
11928
12031
|
*/
|
package/src/index.cjs
CHANGED
|
@@ -902,6 +902,9 @@ var WebhookMessagesResponse = require('./models/WebhookMessagesResponse.cjs');
|
|
|
902
902
|
var WebhookUpdateRequest = require('./models/WebhookUpdateRequest.cjs');
|
|
903
903
|
var WebhooksResponse = require('./models/WebhooksResponse.cjs');
|
|
904
904
|
var WhenToImplementEnum = require('./models/WhenToImplementEnum.cjs');
|
|
905
|
+
var YieldSigningPayload = require('./models/YieldSigningPayload.cjs');
|
|
906
|
+
var YieldVaultActionRequest = require('./models/YieldVaultActionRequest.cjs');
|
|
907
|
+
var YieldVaultActionResponse = require('./models/YieldVaultActionResponse.cjs');
|
|
905
908
|
var YieldVaultDetails = require('./models/YieldVaultDetails.cjs');
|
|
906
909
|
var YieldVaultListResponse = require('./models/YieldVaultListResponse.cjs');
|
|
907
910
|
var YieldVaultPosition = require('./models/YieldVaultPosition.cjs');
|
|
@@ -4170,6 +4173,15 @@ Object.defineProperty(exports, 'WhenToImplementEnum', {
|
|
|
4170
4173
|
exports.WhenToImplementEnumFromJSON = WhenToImplementEnum.WhenToImplementEnumFromJSON;
|
|
4171
4174
|
exports.WhenToImplementEnumFromJSONTyped = WhenToImplementEnum.WhenToImplementEnumFromJSONTyped;
|
|
4172
4175
|
exports.WhenToImplementEnumToJSON = WhenToImplementEnum.WhenToImplementEnumToJSON;
|
|
4176
|
+
exports.YieldSigningPayloadFromJSON = YieldSigningPayload.YieldSigningPayloadFromJSON;
|
|
4177
|
+
exports.YieldSigningPayloadFromJSONTyped = YieldSigningPayload.YieldSigningPayloadFromJSONTyped;
|
|
4178
|
+
exports.YieldSigningPayloadToJSON = YieldSigningPayload.YieldSigningPayloadToJSON;
|
|
4179
|
+
exports.YieldVaultActionRequestFromJSON = YieldVaultActionRequest.YieldVaultActionRequestFromJSON;
|
|
4180
|
+
exports.YieldVaultActionRequestFromJSONTyped = YieldVaultActionRequest.YieldVaultActionRequestFromJSONTyped;
|
|
4181
|
+
exports.YieldVaultActionRequestToJSON = YieldVaultActionRequest.YieldVaultActionRequestToJSON;
|
|
4182
|
+
exports.YieldVaultActionResponseFromJSON = YieldVaultActionResponse.YieldVaultActionResponseFromJSON;
|
|
4183
|
+
exports.YieldVaultActionResponseFromJSONTyped = YieldVaultActionResponse.YieldVaultActionResponseFromJSONTyped;
|
|
4184
|
+
exports.YieldVaultActionResponseToJSON = YieldVaultActionResponse.YieldVaultActionResponseToJSON;
|
|
4173
4185
|
exports.YieldVaultDetailsFromJSON = YieldVaultDetails.YieldVaultDetailsFromJSON;
|
|
4174
4186
|
exports.YieldVaultDetailsFromJSONTyped = YieldVaultDetails.YieldVaultDetailsFromJSONTyped;
|
|
4175
4187
|
exports.YieldVaultDetailsToJSON = YieldVaultDetails.YieldVaultDetailsToJSON;
|
package/src/index.js
CHANGED
|
@@ -898,6 +898,9 @@ export { WebhookMessagesResponseFromJSON, WebhookMessagesResponseFromJSONTyped,
|
|
|
898
898
|
export { WebhookUpdateRequestFromJSON, WebhookUpdateRequestFromJSONTyped, WebhookUpdateRequestToJSON } from './models/WebhookUpdateRequest.js';
|
|
899
899
|
export { WebhooksResponseFromJSON, WebhooksResponseFromJSONTyped, WebhooksResponseToJSON } from './models/WebhooksResponse.js';
|
|
900
900
|
export { WhenToImplementEnum, WhenToImplementEnumFromJSON, WhenToImplementEnumFromJSONTyped, WhenToImplementEnumToJSON } from './models/WhenToImplementEnum.js';
|
|
901
|
+
export { YieldSigningPayloadFromJSON, YieldSigningPayloadFromJSONTyped, YieldSigningPayloadToJSON } from './models/YieldSigningPayload.js';
|
|
902
|
+
export { YieldVaultActionRequestFromJSON, YieldVaultActionRequestFromJSONTyped, YieldVaultActionRequestToJSON } from './models/YieldVaultActionRequest.js';
|
|
903
|
+
export { YieldVaultActionResponseFromJSON, YieldVaultActionResponseFromJSONTyped, YieldVaultActionResponseToJSON } from './models/YieldVaultActionResponse.js';
|
|
901
904
|
export { YieldVaultDetailsFromJSON, YieldVaultDetailsFromJSONTyped, YieldVaultDetailsToJSON } from './models/YieldVaultDetails.js';
|
|
902
905
|
export { YieldVaultListResponseFromJSON, YieldVaultListResponseFromJSONTyped, YieldVaultListResponseToJSON } from './models/YieldVaultListResponse.js';
|
|
903
906
|
export { YieldVaultPositionFromJSON, YieldVaultPositionFromJSONTyped, YieldVaultPositionToJSON } from './models/YieldVaultPosition.js';
|
|
@@ -28,7 +28,7 @@ export interface WaasTransactionBroadcastRequest {
|
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof WaasTransactionBroadcastRequest
|
|
30
30
|
*/
|
|
31
|
-
networkId: string
|
|
31
|
+
networkId: string;
|
|
32
32
|
/**
|
|
33
33
|
* Immutable signed transaction payload, encoded per `encoding`.
|
|
34
34
|
* @type {string}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
var SwapEvmApprovalData = require('./SwapEvmApprovalData.cjs');
|
|
8
|
+
var SwapEvmTransactionData = require('./SwapEvmTransactionData.cjs');
|
|
9
|
+
|
|
10
|
+
/* tslint:disable */
|
|
11
|
+
function YieldSigningPayloadFromJSON(json) {
|
|
12
|
+
return YieldSigningPayloadFromJSONTyped(json);
|
|
13
|
+
}
|
|
14
|
+
function YieldSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
+
if ((json === undefined) || (json === null)) {
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
'chainId': json['chainId'],
|
|
20
|
+
'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
|
|
21
|
+
'evmTransaction': !runtime.exists(json, 'evmTransaction') ? undefined : SwapEvmTransactionData.SwapEvmTransactionDataFromJSON(json['evmTransaction']),
|
|
22
|
+
'evmApproval': !runtime.exists(json, 'evmApproval') ? undefined : SwapEvmApprovalData.SwapEvmApprovalDataFromJSON(json['evmApproval']),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function YieldSigningPayloadToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'chainId': value.chainId,
|
|
34
|
+
'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
|
|
35
|
+
'evmTransaction': SwapEvmTransactionData.SwapEvmTransactionDataToJSON(value.evmTransaction),
|
|
36
|
+
'evmApproval': SwapEvmApprovalData.SwapEvmApprovalDataToJSON(value.evmApproval),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.YieldSigningPayloadFromJSON = YieldSigningPayloadFromJSON;
|
|
41
|
+
exports.YieldSigningPayloadFromJSONTyped = YieldSigningPayloadFromJSONTyped;
|
|
42
|
+
exports.YieldSigningPayloadToJSON = YieldSigningPayloadToJSON;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
import { SwapEvmApprovalData } from './SwapEvmApprovalData';
|
|
14
|
+
import { SwapEvmTransactionData } from './SwapEvmTransactionData';
|
|
15
|
+
/**
|
|
16
|
+
* Unsigned payload for a vault action. When present, `evmApproval` must be signed and sent before `evmTransaction`.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface YieldSigningPayload
|
|
19
|
+
*/
|
|
20
|
+
export interface YieldSigningPayload {
|
|
21
|
+
/**
|
|
22
|
+
* Chain identifier for the chain the payload targets.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof YieldSigningPayload
|
|
25
|
+
*/
|
|
26
|
+
chainId: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ChainEnum}
|
|
30
|
+
* @memberof YieldSigningPayload
|
|
31
|
+
*/
|
|
32
|
+
chainName: ChainEnum;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {SwapEvmTransactionData}
|
|
36
|
+
* @memberof YieldSigningPayload
|
|
37
|
+
*/
|
|
38
|
+
evmTransaction?: SwapEvmTransactionData;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {SwapEvmApprovalData}
|
|
42
|
+
* @memberof YieldSigningPayload
|
|
43
|
+
*/
|
|
44
|
+
evmApproval?: SwapEvmApprovalData;
|
|
45
|
+
}
|
|
46
|
+
export declare function YieldSigningPayloadFromJSON(json: any): YieldSigningPayload;
|
|
47
|
+
export declare function YieldSigningPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): YieldSigningPayload;
|
|
48
|
+
export declare function YieldSigningPayloadToJSON(value?: YieldSigningPayload | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
+
import { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataToJSON } from './SwapEvmApprovalData.js';
|
|
4
|
+
import { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataToJSON } from './SwapEvmTransactionData.js';
|
|
5
|
+
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
function YieldSigningPayloadFromJSON(json) {
|
|
8
|
+
return YieldSigningPayloadFromJSONTyped(json);
|
|
9
|
+
}
|
|
10
|
+
function YieldSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
+
if ((json === undefined) || (json === null)) {
|
|
12
|
+
return json;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
'chainId': json['chainId'],
|
|
16
|
+
'chainName': ChainEnumFromJSON(json['chainName']),
|
|
17
|
+
'evmTransaction': !exists(json, 'evmTransaction') ? undefined : SwapEvmTransactionDataFromJSON(json['evmTransaction']),
|
|
18
|
+
'evmApproval': !exists(json, 'evmApproval') ? undefined : SwapEvmApprovalDataFromJSON(json['evmApproval']),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function YieldSigningPayloadToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'chainId': value.chainId,
|
|
30
|
+
'chainName': ChainEnumToJSON(value.chainName),
|
|
31
|
+
'evmTransaction': SwapEvmTransactionDataToJSON(value.evmTransaction),
|
|
32
|
+
'evmApproval': SwapEvmApprovalDataToJSON(value.evmApproval),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { YieldSigningPayloadFromJSON, YieldSigningPayloadFromJSONTyped, YieldSigningPayloadToJSON };
|
|
@@ -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 YieldVaultActionRequestFromJSON(json) {
|
|
9
|
+
return YieldVaultActionRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function YieldVaultActionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'ownerAddress': json['ownerAddress'],
|
|
17
|
+
'amount': json['amount'],
|
|
18
|
+
'receiverAddress': !runtime.exists(json, 'receiverAddress') ? undefined : json['receiverAddress'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function YieldVaultActionRequestToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'ownerAddress': value.ownerAddress,
|
|
30
|
+
'amount': value.amount,
|
|
31
|
+
'receiverAddress': value.receiverAddress,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.YieldVaultActionRequestFromJSON = YieldVaultActionRequestFromJSON;
|
|
36
|
+
exports.YieldVaultActionRequestFromJSONTyped = YieldVaultActionRequestFromJSONTyped;
|
|
37
|
+
exports.YieldVaultActionRequestToJSON = YieldVaultActionRequestToJSON;
|
|
@@ -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
|
+
* Vault action request. `amount` is in the vault asset's human-readable units; `receiverAddress` defaults to `ownerAddress`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface YieldVaultActionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface YieldVaultActionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof YieldVaultActionRequest
|
|
22
|
+
*/
|
|
23
|
+
ownerAddress: string;
|
|
24
|
+
/**
|
|
25
|
+
* Digits with optional decimal part
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof YieldVaultActionRequest
|
|
28
|
+
*/
|
|
29
|
+
amount: string;
|
|
30
|
+
/**
|
|
31
|
+
* Valid blockchain wallet address, must be an alphanumeric string (underscores allowed for chains like Midnight, hyphens allowed for chains using base64url-encoded addresses like TON)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof YieldVaultActionRequest
|
|
34
|
+
*/
|
|
35
|
+
receiverAddress?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function YieldVaultActionRequestFromJSON(json: any): YieldVaultActionRequest;
|
|
38
|
+
export declare function YieldVaultActionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): YieldVaultActionRequest;
|
|
39
|
+
export declare function YieldVaultActionRequestToJSON(value?: YieldVaultActionRequest | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function YieldVaultActionRequestFromJSON(json) {
|
|
5
|
+
return YieldVaultActionRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function YieldVaultActionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'ownerAddress': json['ownerAddress'],
|
|
13
|
+
'amount': json['amount'],
|
|
14
|
+
'receiverAddress': !exists(json, 'receiverAddress') ? undefined : json['receiverAddress'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function YieldVaultActionRequestToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'ownerAddress': value.ownerAddress,
|
|
26
|
+
'amount': value.amount,
|
|
27
|
+
'receiverAddress': value.receiverAddress,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { YieldVaultActionRequestFromJSON, YieldVaultActionRequestFromJSONTyped, YieldVaultActionRequestToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var YieldSigningPayload = require('./YieldSigningPayload.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function YieldVaultActionResponseFromJSON(json) {
|
|
9
|
+
return YieldVaultActionResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function YieldVaultActionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'vaultId': json['vaultId'],
|
|
17
|
+
'signingPayload': YieldSigningPayload.YieldSigningPayloadFromJSON(json['signingPayload']),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function YieldVaultActionResponseToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'vaultId': value.vaultId,
|
|
29
|
+
'signingPayload': YieldSigningPayload.YieldSigningPayloadToJSON(value.signingPayload),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.YieldVaultActionResponseFromJSON = YieldVaultActionResponseFromJSON;
|
|
34
|
+
exports.YieldVaultActionResponseFromJSONTyped = YieldVaultActionResponseFromJSONTyped;
|
|
35
|
+
exports.YieldVaultActionResponseToJSON = YieldVaultActionResponseToJSON;
|
|
@@ -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 { YieldSigningPayload } from './YieldSigningPayload';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface YieldVaultActionResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface YieldVaultActionResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Opaque vault identifier.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof YieldVaultActionResponse
|
|
23
|
+
*/
|
|
24
|
+
vaultId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {YieldSigningPayload}
|
|
28
|
+
* @memberof YieldVaultActionResponse
|
|
29
|
+
*/
|
|
30
|
+
signingPayload: YieldSigningPayload;
|
|
31
|
+
}
|
|
32
|
+
export declare function YieldVaultActionResponseFromJSON(json: any): YieldVaultActionResponse;
|
|
33
|
+
export declare function YieldVaultActionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): YieldVaultActionResponse;
|
|
34
|
+
export declare function YieldVaultActionResponseToJSON(value?: YieldVaultActionResponse | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { YieldSigningPayloadFromJSON, YieldSigningPayloadToJSON } from './YieldSigningPayload.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function YieldVaultActionResponseFromJSON(json) {
|
|
5
|
+
return YieldVaultActionResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function YieldVaultActionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'vaultId': json['vaultId'],
|
|
13
|
+
'signingPayload': YieldSigningPayloadFromJSON(json['signingPayload']),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function YieldVaultActionResponseToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'vaultId': value.vaultId,
|
|
25
|
+
'signingPayload': YieldSigningPayloadToJSON(value.signingPayload),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { YieldVaultActionResponseFromJSON, YieldVaultActionResponseFromJSONTyped, YieldVaultActionResponseToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -848,6 +848,9 @@ export * from './WebhookMessagesResponse';
|
|
|
848
848
|
export * from './WebhookUpdateRequest';
|
|
849
849
|
export * from './WebhooksResponse';
|
|
850
850
|
export * from './WhenToImplementEnum';
|
|
851
|
+
export * from './YieldSigningPayload';
|
|
852
|
+
export * from './YieldVaultActionRequest';
|
|
853
|
+
export * from './YieldVaultActionResponse';
|
|
851
854
|
export * from './YieldVaultDetails';
|
|
852
855
|
export * from './YieldVaultListResponse';
|
|
853
856
|
export * from './YieldVaultPosition';
|