@dynamic-labs/sdk-api-core 0.148.0 → 0.150.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 +73 -46
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +32 -20
- package/src/apis/SDKApi.js +73 -46
- package/src/apis/SDKApi.js.map +1 -1
- package/src/index.cjs +8 -4
- package/src/index.cjs.map +1 -1
- package/src/index.js +2 -1
- package/src/index.js.map +1 -1
- package/src/models/WaasSignConfidentialTransactionsRequest.cjs +39 -0
- package/src/models/WaasSignConfidentialTransactionsRequest.cjs.map +1 -0
- package/src/models/WaasSignConfidentialTransactionsRequest.d.ts +45 -0
- package/src/models/WaasSignConfidentialTransactionsRequest.js +33 -0
- package/src/models/WaasSignConfidentialTransactionsRequest.js.map +1 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.cjs +43 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.cjs.map +1 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.d.ts +27 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.js +37 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.js.map +1 -0
- package/src/models/WaasSignConfidentialTransferRequest.d.ts +1 -1
- package/src/models/WaasSignConfidentialTransferResponse.cjs +2 -2
- package/src/models/WaasSignConfidentialTransferResponse.cjs.map +1 -1
- package/src/models/WaasSignConfidentialTransferResponse.d.ts +4 -4
- package/src/models/WaasSignConfidentialTransferResponse.js +2 -2
- package/src/models/WaasSignConfidentialTransferResponse.js.map +1 -1
- package/src/models/WaasSvmConfidentialBalanceRequest.d.ts +1 -1
- package/src/models/index.d.ts +2 -1
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
- package/src/models/WaasConfidentialSeedPutRequest.cjs +0 -39
- package/src/models/WaasConfidentialSeedPutRequest.cjs.map +0 -1
- package/src/models/WaasConfidentialSeedPutRequest.d.ts +0 -45
- package/src/models/WaasConfidentialSeedPutRequest.js +0 -33
- package/src/models/WaasConfidentialSeedPutRequest.js.map +0 -1
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest,
|
|
13
|
+
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -1020,11 +1020,6 @@ export interface PublishEventRequest {
|
|
|
1020
1020
|
environmentId: string;
|
|
1021
1021
|
publishEvents: PublishEvents;
|
|
1022
1022
|
}
|
|
1023
|
-
export interface PutWaasConfidentialSeedRequest {
|
|
1024
|
-
environmentId: string;
|
|
1025
|
-
walletId: string;
|
|
1026
|
-
waasConfidentialSeedPutRequest: WaasConfidentialSeedPutRequest;
|
|
1027
|
-
}
|
|
1028
1023
|
export interface QuoteCheckoutTransactionRequest {
|
|
1029
1024
|
environmentId: string;
|
|
1030
1025
|
transactionId: string;
|
|
@@ -1501,6 +1496,15 @@ export interface SignMessageOptionsRequest {
|
|
|
1501
1496
|
environmentId: string;
|
|
1502
1497
|
walletId: string;
|
|
1503
1498
|
}
|
|
1499
|
+
export interface SignWaasConfidentialTransactionsRequest {
|
|
1500
|
+
environmentId: string;
|
|
1501
|
+
walletId: string;
|
|
1502
|
+
waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
|
|
1503
|
+
}
|
|
1504
|
+
export interface SignWaasConfidentialTransactionsOptionsRequest {
|
|
1505
|
+
environmentId: string;
|
|
1506
|
+
walletId: string;
|
|
1507
|
+
}
|
|
1504
1508
|
export interface SignWaasConfidentialTransferRequest {
|
|
1505
1509
|
environmentId: string;
|
|
1506
1510
|
walletId: string;
|
|
@@ -4051,16 +4055,6 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4051
4055
|
* Publish SDK events
|
|
4052
4056
|
*/
|
|
4053
4057
|
publishEvent(requestParameters: PublishEventRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4054
|
-
/**
|
|
4055
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
4056
|
-
* Store a Solana confidential-transfer seed
|
|
4057
|
-
*/
|
|
4058
|
-
putWaasConfidentialSeedRaw(requestParameters: PutWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
|
|
4059
|
-
/**
|
|
4060
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
4061
|
-
* Store a Solana confidential-transfer seed
|
|
4062
|
-
*/
|
|
4063
|
-
putWaasConfidentialSeed(requestParameters: PutWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
|
|
4064
4058
|
/**
|
|
4065
4059
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
|
|
4066
4060
|
* Get a quote for a checkout transaction
|
|
@@ -5076,13 +5070,31 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
5076
5070
|
*/
|
|
5077
5071
|
signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5078
5072
|
/**
|
|
5079
|
-
*
|
|
5080
|
-
*
|
|
5073
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
5074
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
5075
|
+
*/
|
|
5076
|
+
signWaasConfidentialTransactionsRaw(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
|
|
5077
|
+
/**
|
|
5078
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
5079
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
5080
|
+
*/
|
|
5081
|
+
signWaasConfidentialTransactions(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
|
|
5082
|
+
/**
|
|
5083
|
+
* Options call for this endpoint
|
|
5084
|
+
*/
|
|
5085
|
+
signWaasConfidentialTransactionsOptionsRaw(requestParameters: SignWaasConfidentialTransactionsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
5086
|
+
/**
|
|
5087
|
+
* Options call for this endpoint
|
|
5088
|
+
*/
|
|
5089
|
+
signWaasConfidentialTransactionsOptions(requestParameters: SignWaasConfidentialTransactionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5090
|
+
/**
|
|
5091
|
+
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`, which co-signs inside caller-visible MPC rooms. The enclave is offline: the caller supplies the token accounts\' raw on-chain state (`accountState`, `destinationAccountState`), the cluster rent constant (`lamportsPerByte`) and a fresh `recentBlockhash`/`lastValidBlockHeight`. Confidential amounts are opaque on-chain — policy screens the operation, mint and addresses but cannot evaluate the transferred amount.
|
|
5092
|
+
* Build Token-2022 confidential-transfer transactions
|
|
5081
5093
|
*/
|
|
5082
5094
|
signWaasConfidentialTransferRaw(requestParameters: SignWaasConfidentialTransferRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
|
|
5083
5095
|
/**
|
|
5084
|
-
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the
|
|
5085
|
-
* Build
|
|
5096
|
+
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`, which co-signs inside caller-visible MPC rooms. The enclave is offline: the caller supplies the token accounts\' raw on-chain state (`accountState`, `destinationAccountState`), the cluster rent constant (`lamportsPerByte`) and a fresh `recentBlockhash`/`lastValidBlockHeight`. Confidential amounts are opaque on-chain — policy screens the operation, mint and addresses but cannot evaluate the transferred amount.
|
|
5097
|
+
* Build Token-2022 confidential-transfer transactions
|
|
5086
5098
|
*/
|
|
5087
5099
|
signWaasConfidentialTransfer(requestParameters: SignWaasConfidentialTransferRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
|
|
5088
5100
|
/**
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -321,7 +321,6 @@ import { VerifyResponseFromJSON } from '../models/VerifyResponse.js';
|
|
|
321
321
|
import { VerifyUnlinkRequestToJSON } from '../models/VerifyUnlinkRequest.js';
|
|
322
322
|
import '../models/WaasBroadcastStatus.js';
|
|
323
323
|
import { WaasConfidentialSeedCreateRequestToJSON } from '../models/WaasConfidentialSeedCreateRequest.js';
|
|
324
|
-
import { WaasConfidentialSeedPutRequestToJSON } from '../models/WaasConfidentialSeedPutRequest.js';
|
|
325
324
|
import { WaasConfidentialSeedResponseFromJSON } from '../models/WaasConfidentialSeedResponse.js';
|
|
326
325
|
import '../models/WaasConfidentialTransferOperation.js';
|
|
327
326
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
@@ -337,6 +336,8 @@ import '../models/WaasPolicyLayerTranslationWarning.js';
|
|
|
337
336
|
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
338
337
|
import '../models/WaasReshareIntent.js';
|
|
339
338
|
import { WaasSignAndBroadcastRequestToJSON } from '../models/WaasSignAndBroadcastRequest.js';
|
|
339
|
+
import { WaasSignConfidentialTransactionsRequestToJSON } from '../models/WaasSignConfidentialTransactionsRequest.js';
|
|
340
|
+
import { WaasSignConfidentialTransactionsResponseFromJSON } from '../models/WaasSignConfidentialTransactionsResponse.js';
|
|
340
341
|
import { WaasSignConfidentialTransferRequestToJSON } from '../models/WaasSignConfidentialTransferRequest.js';
|
|
341
342
|
import { WaasSignConfidentialTransferResponseFromJSON } from '../models/WaasSignConfidentialTransferResponse.js';
|
|
342
343
|
import { WaasSignerPolicyLayerUpdateRequestToJSON } from '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
@@ -7988,47 +7989,6 @@ class SDKApi extends BaseAPI {
|
|
|
7988
7989
|
async publishEvent(requestParameters, initOverrides) {
|
|
7989
7990
|
await this.publishEventRaw(requestParameters, initOverrides);
|
|
7990
7991
|
}
|
|
7991
|
-
/**
|
|
7992
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
7993
|
-
* Store a Solana confidential-transfer seed
|
|
7994
|
-
*/
|
|
7995
|
-
async putWaasConfidentialSeedRaw(requestParameters, initOverrides) {
|
|
7996
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
7997
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeed.');
|
|
7998
|
-
}
|
|
7999
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8000
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeed.');
|
|
8001
|
-
}
|
|
8002
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
8003
|
-
throw new RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeed.');
|
|
8004
|
-
}
|
|
8005
|
-
const queryParameters = {};
|
|
8006
|
-
const headerParameters = {};
|
|
8007
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
8008
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
8009
|
-
const token = this.configuration.accessToken;
|
|
8010
|
-
const tokenString = await token("bearerAuth", []);
|
|
8011
|
-
if (tokenString) {
|
|
8012
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8013
|
-
}
|
|
8014
|
-
}
|
|
8015
|
-
const response = await this.request({
|
|
8016
|
-
path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
8017
|
-
method: 'PUT',
|
|
8018
|
-
headers: headerParameters,
|
|
8019
|
-
query: queryParameters,
|
|
8020
|
-
body: WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
8021
|
-
}, initOverrides);
|
|
8022
|
-
return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
8023
|
-
}
|
|
8024
|
-
/**
|
|
8025
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version) — a repeat write returns 409. The sealed seed is opaque to redcoast.
|
|
8026
|
-
* Store a Solana confidential-transfer seed
|
|
8027
|
-
*/
|
|
8028
|
-
async putWaasConfidentialSeed(requestParameters, initOverrides) {
|
|
8029
|
-
const response = await this.putWaasConfidentialSeedRaw(requestParameters, initOverrides);
|
|
8030
|
-
return await response.value();
|
|
8031
|
-
}
|
|
8032
7992
|
/**
|
|
8033
7993
|
* Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/quote instead. Fetches a swap quote and stores a snapshot on the transaction.
|
|
8034
7994
|
* Get a quote for a checkout transaction
|
|
@@ -11612,8 +11572,75 @@ class SDKApi extends BaseAPI {
|
|
|
11612
11572
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11613
11573
|
}
|
|
11614
11574
|
/**
|
|
11615
|
-
*
|
|
11616
|
-
*
|
|
11575
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
11576
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
11577
|
+
*/
|
|
11578
|
+
async signWaasConfidentialTransactionsRaw(requestParameters, initOverrides) {
|
|
11579
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11580
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactions.');
|
|
11581
|
+
}
|
|
11582
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11583
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactions.');
|
|
11584
|
+
}
|
|
11585
|
+
if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
|
|
11586
|
+
throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransactions.');
|
|
11587
|
+
}
|
|
11588
|
+
const queryParameters = {};
|
|
11589
|
+
const headerParameters = {};
|
|
11590
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
11591
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
11592
|
+
const token = this.configuration.accessToken;
|
|
11593
|
+
const tokenString = await token("bearerAuth", []);
|
|
11594
|
+
if (tokenString) {
|
|
11595
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
11596
|
+
}
|
|
11597
|
+
}
|
|
11598
|
+
const response = await this.request({
|
|
11599
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11600
|
+
method: 'POST',
|
|
11601
|
+
headers: headerParameters,
|
|
11602
|
+
query: queryParameters,
|
|
11603
|
+
body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
|
|
11604
|
+
}, initOverrides);
|
|
11605
|
+
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
11606
|
+
}
|
|
11607
|
+
/**
|
|
11608
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
11609
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
11610
|
+
*/
|
|
11611
|
+
async signWaasConfidentialTransactions(requestParameters, initOverrides) {
|
|
11612
|
+
const response = await this.signWaasConfidentialTransactionsRaw(requestParameters, initOverrides);
|
|
11613
|
+
return await response.value();
|
|
11614
|
+
}
|
|
11615
|
+
/**
|
|
11616
|
+
* Options call for this endpoint
|
|
11617
|
+
*/
|
|
11618
|
+
async signWaasConfidentialTransactionsOptionsRaw(requestParameters, initOverrides) {
|
|
11619
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11620
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionsOptions.');
|
|
11621
|
+
}
|
|
11622
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11623
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionsOptions.');
|
|
11624
|
+
}
|
|
11625
|
+
const queryParameters = {};
|
|
11626
|
+
const headerParameters = {};
|
|
11627
|
+
const response = await this.request({
|
|
11628
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11629
|
+
method: 'OPTIONS',
|
|
11630
|
+
headers: headerParameters,
|
|
11631
|
+
query: queryParameters,
|
|
11632
|
+
}, initOverrides);
|
|
11633
|
+
return new VoidApiResponse(response);
|
|
11634
|
+
}
|
|
11635
|
+
/**
|
|
11636
|
+
* Options call for this endpoint
|
|
11637
|
+
*/
|
|
11638
|
+
async signWaasConfidentialTransactionsOptions(requestParameters, initOverrides) {
|
|
11639
|
+
await this.signWaasConfidentialTransactionsOptionsRaw(requestParameters, initOverrides);
|
|
11640
|
+
}
|
|
11641
|
+
/**
|
|
11642
|
+
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`, which co-signs inside caller-visible MPC rooms. The enclave is offline: the caller supplies the token accounts\' raw on-chain state (`accountState`, `destinationAccountState`), the cluster rent constant (`lamportsPerByte`) and a fresh `recentBlockhash`/`lastValidBlockHeight`. Confidential amounts are opaque on-chain — policy screens the operation, mint and addresses but cannot evaluate the transferred amount.
|
|
11643
|
+
* Build Token-2022 confidential-transfer transactions
|
|
11617
11644
|
*/
|
|
11618
11645
|
async signWaasConfidentialTransferRaw(requestParameters, initOverrides) {
|
|
11619
11646
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -11645,8 +11672,8 @@ class SDKApi extends BaseAPI {
|
|
|
11645
11672
|
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
|
|
11646
11673
|
}
|
|
11647
11674
|
/**
|
|
11648
|
-
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the
|
|
11649
|
-
* Build
|
|
11675
|
+
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`, which co-signs inside caller-visible MPC rooms. The enclave is offline: the caller supplies the token accounts\' raw on-chain state (`accountState`, `destinationAccountState`), the cluster rent constant (`lamportsPerByte`) and a fresh `recentBlockhash`/`lastValidBlockHeight`. Confidential amounts are opaque on-chain — policy screens the operation, mint and addresses but cannot evaluate the transferred amount.
|
|
11676
|
+
* Build Token-2022 confidential-transfer transactions
|
|
11650
11677
|
*/
|
|
11651
11678
|
async signWaasConfidentialTransfer(requestParameters, initOverrides) {
|
|
11652
11679
|
const response = await this.signWaasConfidentialTransferRaw(requestParameters, initOverrides);
|