@dynamic-labs/sdk-api-core 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.
@@ -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, 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, 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, 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, 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;
@@ -1377,6 +1377,11 @@ export interface UpdateAdditionalAddressesOptionsRequest {
1377
1377
  environmentId: string;
1378
1378
  walletId: string;
1379
1379
  }
1380
+ export interface UpdateBusinessAccountPolicyLayerRequest {
1381
+ environmentId: string;
1382
+ businessAccountId: string;
1383
+ waasPolicyLayerUpdateRequest: WaasPolicyLayerUpdateRequest;
1384
+ }
1380
1385
  export interface UpdateEmbeddedWalletRecoveryEmailRequest {
1381
1386
  environmentId: string;
1382
1387
  updateRecoveryEmailRequest: UpdateRecoveryEmailRequest;
@@ -1509,6 +1514,15 @@ export interface WalletsVerifyRequest {
1509
1514
  export interface WalletsVerifyOptionsRequest {
1510
1515
  environmentId: string;
1511
1516
  }
1517
+ export interface YieldVaultDepositRequest {
1518
+ environmentId: string;
1519
+ vaultId: string;
1520
+ yieldVaultActionRequest: YieldVaultActionRequest;
1521
+ }
1522
+ export interface YieldVaultDepositOptionsRequest {
1523
+ environmentId: string;
1524
+ vaultId: string;
1525
+ }
1512
1526
  export interface YieldVaultDetailsOptionsRequest {
1513
1527
  environmentId: string;
1514
1528
  vaultId: string;
@@ -1686,12 +1700,12 @@ export declare class SDKApi extends runtime.BaseAPI {
1686
1700
  */
1687
1701
  broadcastFlowOptions(requestParameters: BroadcastFlowOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1688
1702
  /**
1689
- * 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.
1703
+ * 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.
1690
1704
  * Broadcast a signed transaction from a Dynamic v3 WaaS wallet
1691
1705
  */
1692
1706
  broadcastWaasTransactionRaw(requestParameters: BroadcastWaasTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasTransactionBroadcastResponse>>;
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
  broadcastWaasTransaction(requestParameters: BroadcastWaasTransactionRequest, initOverrides?: RequestInit): Promise<WaasTransactionBroadcastResponse>;
@@ -2508,12 +2522,12 @@ export declare class SDKApi extends runtime.BaseAPI {
2508
2522
  */
2509
2523
  getBackupTokenOptions(requestParameters: GetBackupTokenOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2510
2524
  /**
2511
- * 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.
2525
+ * 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).
2512
2526
  * Get the business account\'s account-Layer Rules
2513
2527
  */
2514
2528
  getBusinessAccountPolicyLayerRaw(requestParameters: GetBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
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
  getBusinessAccountPolicyLayer(requestParameters: GetBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
@@ -4617,6 +4631,16 @@ export declare class SDKApi extends runtime.BaseAPI {
4617
4631
  * Options call for this endpoint
4618
4632
  */
4619
4633
  updateAdditionalAddressesOptions(requestParameters: UpdateAdditionalAddressesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4634
+ /**
4635
+ * 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.
4636
+ * Create, update, or remove a Rule on the business account\'s account-Layer
4637
+ */
4638
+ updateBusinessAccountPolicyLayerRaw(requestParameters: UpdateBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasPolicyLayerResponse>>;
4639
+ /**
4640
+ * 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.
4641
+ * Create, update, or remove a Rule on the business account\'s account-Layer
4642
+ */
4643
+ updateBusinessAccountPolicyLayer(requestParameters: UpdateBusinessAccountPolicyLayerRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
4620
4644
  /**
4621
4645
  * Updates the V2 recovery email address for the authenticated user.
4622
4646
  * Update a user\'s V2 recovery email
@@ -4939,6 +4963,24 @@ export declare class SDKApi extends runtime.BaseAPI {
4939
4963
  * Options call for this endpoint
4940
4964
  */
4941
4965
  walletsVerifyOptions(requestParameters: WalletsVerifyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4966
+ /**
4967
+ * 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.
4968
+ * Build a vault deposit signing payload
4969
+ */
4970
+ yieldVaultDepositRaw(requestParameters: YieldVaultDepositRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<YieldVaultActionResponse>>;
4971
+ /**
4972
+ * 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.
4973
+ * Build a vault deposit signing payload
4974
+ */
4975
+ yieldVaultDeposit(requestParameters: YieldVaultDepositRequest, initOverrides?: RequestInit): Promise<YieldVaultActionResponse>;
4976
+ /**
4977
+ * Options call for this endpoint
4978
+ */
4979
+ yieldVaultDepositOptionsRaw(requestParameters: YieldVaultDepositOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
4980
+ /**
4981
+ * Options call for this endpoint
4982
+ */
4983
+ yieldVaultDepositOptions(requestParameters: YieldVaultDepositOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4942
4984
  /**
4943
4985
  * Options call for this endpoint
4944
4986
  */
@@ -297,6 +297,8 @@ import '../models/WaasTransactionEncoding.js';
297
297
  import { WalletSanctionsResponseFromJSON } from '../models/WalletSanctionsResponse.js';
298
298
  import '../models/WalletTransactionType.js';
299
299
  import { WalletTransactionsResponseFromJSON } from '../models/WalletTransactionsResponse.js';
300
+ import { YieldVaultActionRequestToJSON } from '../models/YieldVaultActionRequest.js';
301
+ import { YieldVaultActionResponseFromJSON } from '../models/YieldVaultActionResponse.js';
300
302
  import { YieldVaultDetailsFromJSON } from '../models/YieldVaultDetails.js';
301
303
  import { YieldVaultListResponseFromJSON } from '../models/YieldVaultListResponse.js';
302
304
  import { YieldVaultPositionFromJSON } from '../models/YieldVaultPosition.js';
@@ -866,7 +868,7 @@ class SDKApi extends BaseAPI {
866
868
  await this.broadcastFlowOptionsRaw(requestParameters, initOverrides);
867
869
  }
868
870
  /**
869
- * 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.
871
+ * 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.
870
872
  * Broadcast a signed transaction from a Dynamic v3 WaaS wallet
871
873
  */
872
874
  async broadcastWaasTransactionRaw(requestParameters, initOverrides) {
@@ -905,7 +907,7 @@ class SDKApi extends BaseAPI {
905
907
  return new JSONApiResponse(response, (jsonValue) => WaasTransactionBroadcastResponseFromJSON(jsonValue));
906
908
  }
907
909
  /**
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.
910
+ * 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.
909
911
  * Broadcast a signed transaction from a Dynamic v3 WaaS wallet
910
912
  */
911
913
  async broadcastWaasTransaction(requestParameters, initOverrides) {
@@ -3698,7 +3700,7 @@ class SDKApi extends BaseAPI {
3698
3700
  await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
3699
3701
  }
3700
3702
  /**
3701
- * 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.
3703
+ * 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).
3702
3704
  * Get the business account\'s account-Layer Rules
3703
3705
  */
3704
3706
  async getBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
@@ -3726,7 +3728,7 @@ class SDKApi extends BaseAPI {
3726
3728
  return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
3727
3729
  }
3728
3730
  /**
3729
- * 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.
3731
+ * 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).
3730
3732
  * Get the business account\'s account-Layer Rules
3731
3733
  */
3732
3734
  async getBusinessAccountPolicyLayer(requestParameters, initOverrides) {
@@ -10735,6 +10737,47 @@ class SDKApi extends BaseAPI {
10735
10737
  async updateAdditionalAddressesOptions(requestParameters, initOverrides) {
10736
10738
  await this.updateAdditionalAddressesOptionsRaw(requestParameters, initOverrides);
10737
10739
  }
10740
+ /**
10741
+ * 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.
10742
+ * Create, update, or remove a Rule on the business account\'s account-Layer
10743
+ */
10744
+ async updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides) {
10745
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
10746
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateBusinessAccountPolicyLayer.');
10747
+ }
10748
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
10749
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling updateBusinessAccountPolicyLayer.');
10750
+ }
10751
+ if (requestParameters.waasPolicyLayerUpdateRequest === null || requestParameters.waasPolicyLayerUpdateRequest === undefined) {
10752
+ throw new RequiredError('waasPolicyLayerUpdateRequest', 'Required parameter requestParameters.waasPolicyLayerUpdateRequest was null or undefined when calling updateBusinessAccountPolicyLayer.');
10753
+ }
10754
+ const queryParameters = {};
10755
+ const headerParameters = {};
10756
+ headerParameters['Content-Type'] = 'application/json';
10757
+ if (this.configuration && this.configuration.accessToken) {
10758
+ const token = this.configuration.accessToken;
10759
+ const tokenString = await token("bearerAuth", []);
10760
+ if (tokenString) {
10761
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
10762
+ }
10763
+ }
10764
+ const response = await this.request({
10765
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/policy-layer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
10766
+ method: 'PATCH',
10767
+ headers: headerParameters,
10768
+ query: queryParameters,
10769
+ body: WaasPolicyLayerUpdateRequestToJSON(requestParameters.waasPolicyLayerUpdateRequest),
10770
+ }, initOverrides);
10771
+ return new JSONApiResponse(response, (jsonValue) => WaasPolicyLayerResponseFromJSON(jsonValue));
10772
+ }
10773
+ /**
10774
+ * 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.
10775
+ * Create, update, or remove a Rule on the business account\'s account-Layer
10776
+ */
10777
+ async updateBusinessAccountPolicyLayer(requestParameters, initOverrides) {
10778
+ const response = await this.updateBusinessAccountPolicyLayerRaw(requestParameters, initOverrides);
10779
+ return await response.value();
10780
+ }
10738
10781
  /**
10739
10782
  * Updates the V2 recovery email address for the authenticated user.
10740
10783
  * Update a user\'s V2 recovery email
@@ -11813,6 +11856,66 @@ class SDKApi extends BaseAPI {
11813
11856
  async walletsVerifyOptions(requestParameters, initOverrides) {
11814
11857
  await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
11815
11858
  }
11859
+ /**
11860
+ * 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.
11861
+ * Build a vault deposit signing payload
11862
+ */
11863
+ async yieldVaultDepositRaw(requestParameters, initOverrides) {
11864
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11865
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling yieldVaultDeposit.');
11866
+ }
11867
+ if (requestParameters.vaultId === null || requestParameters.vaultId === undefined) {
11868
+ throw new RequiredError('vaultId', 'Required parameter requestParameters.vaultId was null or undefined when calling yieldVaultDeposit.');
11869
+ }
11870
+ if (requestParameters.yieldVaultActionRequest === null || requestParameters.yieldVaultActionRequest === undefined) {
11871
+ throw new RequiredError('yieldVaultActionRequest', 'Required parameter requestParameters.yieldVaultActionRequest was null or undefined when calling yieldVaultDeposit.');
11872
+ }
11873
+ const queryParameters = {};
11874
+ const headerParameters = {};
11875
+ headerParameters['Content-Type'] = 'application/json';
11876
+ const response = await this.request({
11877
+ path: `/sdk/{environmentId}/yield/vaults/{vaultId}/deposit`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"vaultId"}}`, encodeURIComponent(String(requestParameters.vaultId))),
11878
+ method: 'POST',
11879
+ headers: headerParameters,
11880
+ query: queryParameters,
11881
+ body: YieldVaultActionRequestToJSON(requestParameters.yieldVaultActionRequest),
11882
+ }, initOverrides);
11883
+ return new JSONApiResponse(response, (jsonValue) => YieldVaultActionResponseFromJSON(jsonValue));
11884
+ }
11885
+ /**
11886
+ * 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.
11887
+ * Build a vault deposit signing payload
11888
+ */
11889
+ async yieldVaultDeposit(requestParameters, initOverrides) {
11890
+ const response = await this.yieldVaultDepositRaw(requestParameters, initOverrides);
11891
+ return await response.value();
11892
+ }
11893
+ /**
11894
+ * Options call for this endpoint
11895
+ */
11896
+ async yieldVaultDepositOptionsRaw(requestParameters, initOverrides) {
11897
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11898
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling yieldVaultDepositOptions.');
11899
+ }
11900
+ if (requestParameters.vaultId === null || requestParameters.vaultId === undefined) {
11901
+ throw new RequiredError('vaultId', 'Required parameter requestParameters.vaultId was null or undefined when calling yieldVaultDepositOptions.');
11902
+ }
11903
+ const queryParameters = {};
11904
+ const headerParameters = {};
11905
+ const response = await this.request({
11906
+ path: `/sdk/{environmentId}/yield/vaults/{vaultId}/deposit`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"vaultId"}}`, encodeURIComponent(String(requestParameters.vaultId))),
11907
+ method: 'OPTIONS',
11908
+ headers: headerParameters,
11909
+ query: queryParameters,
11910
+ }, initOverrides);
11911
+ return new VoidApiResponse(response);
11912
+ }
11913
+ /**
11914
+ * Options call for this endpoint
11915
+ */
11916
+ async yieldVaultDepositOptions(requestParameters, initOverrides) {
11917
+ await this.yieldVaultDepositOptionsRaw(requestParameters, initOverrides);
11918
+ }
11816
11919
  /**
11817
11920
  * Options call for this endpoint
11818
11921
  */