@dynamic-labs/sdk-api-core 0.139.0 → 0.141.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 +112 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +43 -1
- package/src/apis/SDKApi.js +112 -0
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.cjs.map +1 -1
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WaasApi.js.map +1 -1
- package/src/index.cjs +24 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +5 -0
- package/src/index.js.map +1 -1
- package/src/models/WaasConfidentialAccountState.cjs +47 -0
- package/src/models/WaasConfidentialAccountState.cjs.map +1 -0
- package/src/models/WaasConfidentialAccountState.d.ts +39 -0
- package/src/models/WaasConfidentialAccountState.js +41 -0
- package/src/models/WaasConfidentialAccountState.js.map +1 -0
- package/src/models/WaasConfidentialSeedCreateRequest.cjs +35 -0
- package/src/models/WaasConfidentialSeedCreateRequest.cjs.map +1 -0
- package/src/models/WaasConfidentialSeedCreateRequest.d.ts +33 -0
- package/src/models/WaasConfidentialSeedCreateRequest.js +29 -0
- package/src/models/WaasConfidentialSeedCreateRequest.js.map +1 -0
- package/src/models/WaasConfidentialTransferOperation.cjs +43 -0
- package/src/models/WaasConfidentialTransferOperation.cjs.map +1 -0
- package/src/models/WaasConfidentialTransferOperation.d.ts +26 -0
- package/src/models/WaasConfidentialTransferOperation.js +37 -0
- package/src/models/WaasConfidentialTransferOperation.js.map +1 -0
- package/src/models/WaasReshareIntent.d.ts +1 -1
- package/src/models/WaasSignConfidentialTransferRequest.cjs +65 -0
- package/src/models/WaasSignConfidentialTransferRequest.cjs.map +1 -0
- package/src/models/WaasSignConfidentialTransferRequest.d.ts +119 -0
- package/src/models/WaasSignConfidentialTransferRequest.js +59 -0
- package/src/models/WaasSignConfidentialTransferRequest.js.map +1 -0
- package/src/models/WaasSignConfidentialTransferResponse.cjs +45 -0
- package/src/models/WaasSignConfidentialTransferResponse.cjs.map +1 -0
- package/src/models/WaasSignConfidentialTransferResponse.d.ts +33 -0
- package/src/models/WaasSignConfidentialTransferResponse.js +39 -0
- package/src/models/WaasSignConfidentialTransferResponse.js.map +1 -0
- package/src/models/index.d.ts +5 -0
- package/src/version.cjs +1 -1
- package/src/version.js +1 -1
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, 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, WaasConfidentialSeedPutRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
13
|
+
import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, 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, WaasConfidentialSeedPutRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -235,6 +235,11 @@ export interface CreateWaasAccountOperationRequest {
|
|
|
235
235
|
export interface CreateWaasAccountOptionsRequest {
|
|
236
236
|
environmentId: string;
|
|
237
237
|
}
|
|
238
|
+
export interface CreateWaasConfidentialSeedRequest {
|
|
239
|
+
environmentId: string;
|
|
240
|
+
walletId: string;
|
|
241
|
+
waasConfidentialSeedCreateRequest: WaasConfidentialSeedCreateRequest;
|
|
242
|
+
}
|
|
238
243
|
export interface CreateWalletAccountOperationRequest {
|
|
239
244
|
environmentId: string;
|
|
240
245
|
createWalletAccountRequest: CreateWalletAccountRequest;
|
|
@@ -1487,6 +1492,15 @@ export interface SignMessageOptionsRequest {
|
|
|
1487
1492
|
environmentId: string;
|
|
1488
1493
|
walletId: string;
|
|
1489
1494
|
}
|
|
1495
|
+
export interface SignWaasConfidentialTransferRequest {
|
|
1496
|
+
environmentId: string;
|
|
1497
|
+
walletId: string;
|
|
1498
|
+
waasSignConfidentialTransferRequest: WaasSignConfidentialTransferRequest;
|
|
1499
|
+
}
|
|
1500
|
+
export interface SignWaasConfidentialTransferOptionsRequest {
|
|
1501
|
+
environmentId: string;
|
|
1502
|
+
walletId: string;
|
|
1503
|
+
}
|
|
1490
1504
|
export interface SigninWithPasskeyRequest {
|
|
1491
1505
|
environmentId: string;
|
|
1492
1506
|
passkeyAuthRequest: PasskeyAuthRequest;
|
|
@@ -2276,6 +2290,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2276
2290
|
* Options call for this endpoint
|
|
2277
2291
|
*/
|
|
2278
2292
|
createWaasAccountOptions(requestParameters: CreateWaasAccountOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2293
|
+
/**
|
|
2294
|
+
* Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed seed via client-keyshare-service, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per (wallet, address, derivation version) — a repeat create returns 409.
|
|
2295
|
+
* Create a Solana confidential-transfer seed
|
|
2296
|
+
*/
|
|
2297
|
+
createWaasConfidentialSeedRaw(requestParameters: CreateWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
|
|
2298
|
+
/**
|
|
2299
|
+
* Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed seed via client-keyshare-service, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per (wallet, address, derivation version) — a repeat create returns 409.
|
|
2300
|
+
* Create a Solana confidential-transfer seed
|
|
2301
|
+
*/
|
|
2302
|
+
createWaasConfidentialSeed(requestParameters: CreateWaasConfidentialSeedRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
|
|
2279
2303
|
/**
|
|
2280
2304
|
* Add a wallet account to a user\'s existing V2 wallet
|
|
2281
2305
|
* Add a wallet account to a user\'s existing V2 wallet
|
|
@@ -5024,6 +5048,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
5024
5048
|
* Options call for this endpoint
|
|
5025
5049
|
*/
|
|
5026
5050
|
signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5051
|
+
/**
|
|
5052
|
+
* 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 MPC-signed transactions in broadcast order, ready to submit. 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.
|
|
5053
|
+
* Build and sign a Token-2022 confidential transfer
|
|
5054
|
+
*/
|
|
5055
|
+
signWaasConfidentialTransferRaw(requestParameters: SignWaasConfidentialTransferRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
|
|
5056
|
+
/**
|
|
5057
|
+
* 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 MPC-signed transactions in broadcast order, ready to submit. 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.
|
|
5058
|
+
* Build and sign a Token-2022 confidential transfer
|
|
5059
|
+
*/
|
|
5060
|
+
signWaasConfidentialTransfer(requestParameters: SignWaasConfidentialTransferRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
|
|
5061
|
+
/**
|
|
5062
|
+
* Options call for this endpoint
|
|
5063
|
+
*/
|
|
5064
|
+
signWaasConfidentialTransferOptionsRaw(requestParameters: SignWaasConfidentialTransferOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
5065
|
+
/**
|
|
5066
|
+
* Options call for this endpoint
|
|
5067
|
+
*/
|
|
5068
|
+
signWaasConfidentialTransferOptions(requestParameters: SignWaasConfidentialTransferOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5027
5069
|
/**
|
|
5028
5070
|
* Authenticates a user using a passkey and returns a JWT.
|
|
5029
5071
|
* Authenticate a passkey
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -320,8 +320,10 @@ import { VerifyRequestToJSON } from '../models/VerifyRequest.js';
|
|
|
320
320
|
import { VerifyResponseFromJSON } from '../models/VerifyResponse.js';
|
|
321
321
|
import { VerifyUnlinkRequestToJSON } from '../models/VerifyUnlinkRequest.js';
|
|
322
322
|
import '../models/WaasBroadcastStatus.js';
|
|
323
|
+
import { WaasConfidentialSeedCreateRequestToJSON } from '../models/WaasConfidentialSeedCreateRequest.js';
|
|
323
324
|
import { WaasConfidentialSeedPutRequestToJSON } from '../models/WaasConfidentialSeedPutRequest.js';
|
|
324
325
|
import { WaasConfidentialSeedResponseFromJSON } from '../models/WaasConfidentialSeedResponse.js';
|
|
326
|
+
import '../models/WaasConfidentialTransferOperation.js';
|
|
325
327
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
326
328
|
import '../models/WaasPolicyLayerRule.js';
|
|
327
329
|
import '../models/WaasExportIntent.js';
|
|
@@ -335,6 +337,8 @@ import '../models/WaasPolicyLayerTranslationWarning.js';
|
|
|
335
337
|
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
336
338
|
import '../models/WaasReshareIntent.js';
|
|
337
339
|
import { WaasSignAndBroadcastRequestToJSON } from '../models/WaasSignAndBroadcastRequest.js';
|
|
340
|
+
import { WaasSignConfidentialTransferRequestToJSON } from '../models/WaasSignConfidentialTransferRequest.js';
|
|
341
|
+
import { WaasSignConfidentialTransferResponseFromJSON } from '../models/WaasSignConfidentialTransferResponse.js';
|
|
338
342
|
import { WaasSignerPolicyLayerUpdateRequestToJSON } from '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
339
343
|
import '../models/WaasSvmCommitment.js';
|
|
340
344
|
import { WaasTransactionBroadcastFromJSON } from '../models/WaasTransactionBroadcast.js';
|
|
@@ -2060,6 +2064,47 @@ class SDKApi extends BaseAPI {
|
|
|
2060
2064
|
async createWaasAccountOptions(requestParameters, initOverrides) {
|
|
2061
2065
|
await this.createWaasAccountOptionsRaw(requestParameters, initOverrides);
|
|
2062
2066
|
}
|
|
2067
|
+
/**
|
|
2068
|
+
* Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed seed via client-keyshare-service, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per (wallet, address, derivation version) — a repeat create returns 409.
|
|
2069
|
+
* Create a Solana confidential-transfer seed
|
|
2070
|
+
*/
|
|
2071
|
+
async createWaasConfidentialSeedRaw(requestParameters, initOverrides) {
|
|
2072
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2073
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createWaasConfidentialSeed.');
|
|
2074
|
+
}
|
|
2075
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
2076
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling createWaasConfidentialSeed.');
|
|
2077
|
+
}
|
|
2078
|
+
if (requestParameters.waasConfidentialSeedCreateRequest === null || requestParameters.waasConfidentialSeedCreateRequest === undefined) {
|
|
2079
|
+
throw new RequiredError('waasConfidentialSeedCreateRequest', 'Required parameter requestParameters.waasConfidentialSeedCreateRequest was null or undefined when calling createWaasConfidentialSeed.');
|
|
2080
|
+
}
|
|
2081
|
+
const queryParameters = {};
|
|
2082
|
+
const headerParameters = {};
|
|
2083
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2084
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2085
|
+
const token = this.configuration.accessToken;
|
|
2086
|
+
const tokenString = await token("bearerAuth", []);
|
|
2087
|
+
if (tokenString) {
|
|
2088
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
const response = await this.request({
|
|
2092
|
+
path: `/sdk/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
2093
|
+
method: 'POST',
|
|
2094
|
+
headers: headerParameters,
|
|
2095
|
+
query: queryParameters,
|
|
2096
|
+
body: WaasConfidentialSeedCreateRequestToJSON(requestParameters.waasConfidentialSeedCreateRequest),
|
|
2097
|
+
}, initOverrides);
|
|
2098
|
+
return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
2099
|
+
}
|
|
2100
|
+
/**
|
|
2101
|
+
* Generates a fresh confidential-transfer seed inside the wallet-service enclave, stores the sealed seed via client-keyshare-service, and returns the derived ElGamal public key. The plaintext seed never leaves the enclave and the sealed seed is opaque to redcoast. Insert-only per (wallet, address, derivation version) — a repeat create returns 409.
|
|
2102
|
+
* Create a Solana confidential-transfer seed
|
|
2103
|
+
*/
|
|
2104
|
+
async createWaasConfidentialSeed(requestParameters, initOverrides) {
|
|
2105
|
+
const response = await this.createWaasConfidentialSeedRaw(requestParameters, initOverrides);
|
|
2106
|
+
return await response.value();
|
|
2107
|
+
}
|
|
2063
2108
|
/**
|
|
2064
2109
|
* Add a wallet account to a user\'s existing V2 wallet
|
|
2065
2110
|
* Add a wallet account to a user\'s existing V2 wallet
|
|
@@ -11497,6 +11542,73 @@ class SDKApi extends BaseAPI {
|
|
|
11497
11542
|
async signMessageOptions(requestParameters, initOverrides) {
|
|
11498
11543
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11499
11544
|
}
|
|
11545
|
+
/**
|
|
11546
|
+
* 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 MPC-signed transactions in broadcast order, ready to submit. 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.
|
|
11547
|
+
* Build and sign a Token-2022 confidential transfer
|
|
11548
|
+
*/
|
|
11549
|
+
async signWaasConfidentialTransferRaw(requestParameters, initOverrides) {
|
|
11550
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11551
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransfer.');
|
|
11552
|
+
}
|
|
11553
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11554
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransfer.');
|
|
11555
|
+
}
|
|
11556
|
+
if (requestParameters.waasSignConfidentialTransferRequest === null || requestParameters.waasSignConfidentialTransferRequest === undefined) {
|
|
11557
|
+
throw new RequiredError('waasSignConfidentialTransferRequest', 'Required parameter requestParameters.waasSignConfidentialTransferRequest was null or undefined when calling signWaasConfidentialTransfer.');
|
|
11558
|
+
}
|
|
11559
|
+
const queryParameters = {};
|
|
11560
|
+
const headerParameters = {};
|
|
11561
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
11562
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
11563
|
+
const token = this.configuration.accessToken;
|
|
11564
|
+
const tokenString = await token("bearerAuth", []);
|
|
11565
|
+
if (tokenString) {
|
|
11566
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
11567
|
+
}
|
|
11568
|
+
}
|
|
11569
|
+
const response = await this.request({
|
|
11570
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransfer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11571
|
+
method: 'POST',
|
|
11572
|
+
headers: headerParameters,
|
|
11573
|
+
query: queryParameters,
|
|
11574
|
+
body: WaasSignConfidentialTransferRequestToJSON(requestParameters.waasSignConfidentialTransferRequest),
|
|
11575
|
+
}, initOverrides);
|
|
11576
|
+
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
|
|
11577
|
+
}
|
|
11578
|
+
/**
|
|
11579
|
+
* 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 MPC-signed transactions in broadcast order, ready to submit. 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.
|
|
11580
|
+
* Build and sign a Token-2022 confidential transfer
|
|
11581
|
+
*/
|
|
11582
|
+
async signWaasConfidentialTransfer(requestParameters, initOverrides) {
|
|
11583
|
+
const response = await this.signWaasConfidentialTransferRaw(requestParameters, initOverrides);
|
|
11584
|
+
return await response.value();
|
|
11585
|
+
}
|
|
11586
|
+
/**
|
|
11587
|
+
* Options call for this endpoint
|
|
11588
|
+
*/
|
|
11589
|
+
async signWaasConfidentialTransferOptionsRaw(requestParameters, initOverrides) {
|
|
11590
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11591
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransferOptions.');
|
|
11592
|
+
}
|
|
11593
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11594
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransferOptions.');
|
|
11595
|
+
}
|
|
11596
|
+
const queryParameters = {};
|
|
11597
|
+
const headerParameters = {};
|
|
11598
|
+
const response = await this.request({
|
|
11599
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransfer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11600
|
+
method: 'OPTIONS',
|
|
11601
|
+
headers: headerParameters,
|
|
11602
|
+
query: queryParameters,
|
|
11603
|
+
}, initOverrides);
|
|
11604
|
+
return new VoidApiResponse(response);
|
|
11605
|
+
}
|
|
11606
|
+
/**
|
|
11607
|
+
* Options call for this endpoint
|
|
11608
|
+
*/
|
|
11609
|
+
async signWaasConfidentialTransferOptions(requestParameters, initOverrides) {
|
|
11610
|
+
await this.signWaasConfidentialTransferOptionsRaw(requestParameters, initOverrides);
|
|
11611
|
+
}
|
|
11500
11612
|
/**
|
|
11501
11613
|
* Authenticates a user using a passkey and returns a JWT.
|
|
11502
11614
|
* Authenticate a passkey
|