@dynamic-labs/sdk-api 0.148.0 → 0.149.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 -4
- package/src/apis/SDKApi.d.ts +32 -5
- package/src/apis/SDKApi.js +73 -4
- package/src/apis/ServerApi.cjs +43 -4
- package/src/apis/ServerApi.d.ts +21 -5
- package/src/apis/ServerApi.js +43 -4
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/WaasSignConfidentialTransactionsRequest.cjs +39 -0
- package/src/models/WaasSignConfidentialTransactionsRequest.d.ts +45 -0
- package/src/models/WaasSignConfidentialTransactionsRequest.js +33 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.cjs +43 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.d.ts +27 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.js +37 -0
- package/src/models/WaasSignConfidentialTransferRequest.d.ts +1 -1
- package/src/models/WaasSignConfidentialTransferResponse.cjs +2 -2
- package/src/models/WaasSignConfidentialTransferResponse.d.ts +4 -4
- package/src/models/WaasSignConfidentialTransferResponse.js +2 -2
- package/src/models/WaasSvmConfidentialBalanceRequest.d.ts +1 -1
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -400,6 +400,8 @@ require('../models/WaasPolicyLayerTranslationWarning.cjs');
|
|
|
400
400
|
var WaasPolicyLayerUpdateRequest = require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
401
401
|
require('../models/WaasReshareIntent.cjs');
|
|
402
402
|
var WaasSignAndBroadcastRequest = require('../models/WaasSignAndBroadcastRequest.cjs');
|
|
403
|
+
var WaasSignConfidentialTransactionsRequest = require('../models/WaasSignConfidentialTransactionsRequest.cjs');
|
|
404
|
+
var WaasSignConfidentialTransactionsResponse = require('../models/WaasSignConfidentialTransactionsResponse.cjs');
|
|
403
405
|
var WaasSignConfidentialTransferRequest = require('../models/WaasSignConfidentialTransferRequest.cjs');
|
|
404
406
|
var WaasSignConfidentialTransferResponse = require('../models/WaasSignConfidentialTransferResponse.cjs');
|
|
405
407
|
var WaasSignerPolicyLayerUpdateRequest = require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
@@ -11758,8 +11760,75 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11758
11760
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11759
11761
|
}
|
|
11760
11762
|
/**
|
|
11761
|
-
*
|
|
11762
|
-
*
|
|
11763
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, reordered, extra or expired transactions — and joins each room to co-sign. MFA step-up is enforced once for the whole operation, not per transaction. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signature for each transaction.
|
|
11764
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
11765
|
+
*/
|
|
11766
|
+
async signWaasConfidentialTransactionsRaw(requestParameters, initOverrides) {
|
|
11767
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11768
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactions.');
|
|
11769
|
+
}
|
|
11770
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11771
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactions.');
|
|
11772
|
+
}
|
|
11773
|
+
if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
|
|
11774
|
+
throw new runtime.RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransactions.');
|
|
11775
|
+
}
|
|
11776
|
+
const queryParameters = {};
|
|
11777
|
+
const headerParameters = {};
|
|
11778
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
11779
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
11780
|
+
const token = this.configuration.accessToken;
|
|
11781
|
+
const tokenString = await token("bearerAuth", []);
|
|
11782
|
+
if (tokenString) {
|
|
11783
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
11784
|
+
}
|
|
11785
|
+
}
|
|
11786
|
+
const response = await this.request({
|
|
11787
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11788
|
+
method: 'POST',
|
|
11789
|
+
headers: headerParameters,
|
|
11790
|
+
query: queryParameters,
|
|
11791
|
+
body: WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
|
|
11792
|
+
}, initOverrides);
|
|
11793
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
11794
|
+
}
|
|
11795
|
+
/**
|
|
11796
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, reordered, extra or expired transactions — and joins each room to co-sign. MFA step-up is enforced once for the whole operation, not per transaction. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signature for each transaction.
|
|
11797
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
11798
|
+
*/
|
|
11799
|
+
async signWaasConfidentialTransactions(requestParameters, initOverrides) {
|
|
11800
|
+
const response = await this.signWaasConfidentialTransactionsRaw(requestParameters, initOverrides);
|
|
11801
|
+
return await response.value();
|
|
11802
|
+
}
|
|
11803
|
+
/**
|
|
11804
|
+
* Options call for this endpoint
|
|
11805
|
+
*/
|
|
11806
|
+
async signWaasConfidentialTransactionsOptionsRaw(requestParameters, initOverrides) {
|
|
11807
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11808
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionsOptions.');
|
|
11809
|
+
}
|
|
11810
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11811
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionsOptions.');
|
|
11812
|
+
}
|
|
11813
|
+
const queryParameters = {};
|
|
11814
|
+
const headerParameters = {};
|
|
11815
|
+
const response = await this.request({
|
|
11816
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11817
|
+
method: 'OPTIONS',
|
|
11818
|
+
headers: headerParameters,
|
|
11819
|
+
query: queryParameters,
|
|
11820
|
+
}, initOverrides);
|
|
11821
|
+
return new runtime.VoidApiResponse(response);
|
|
11822
|
+
}
|
|
11823
|
+
/**
|
|
11824
|
+
* Options call for this endpoint
|
|
11825
|
+
*/
|
|
11826
|
+
async signWaasConfidentialTransactionsOptions(requestParameters, initOverrides) {
|
|
11827
|
+
await this.signWaasConfidentialTransactionsOptionsRaw(requestParameters, initOverrides);
|
|
11828
|
+
}
|
|
11829
|
+
/**
|
|
11830
|
+
* 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.
|
|
11831
|
+
* Build Token-2022 confidential-transfer transactions
|
|
11763
11832
|
*/
|
|
11764
11833
|
async signWaasConfidentialTransferRaw(requestParameters, initOverrides) {
|
|
11765
11834
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -11791,8 +11860,8 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
11791
11860
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponse.WaasSignConfidentialTransferResponseFromJSON(jsonValue));
|
|
11792
11861
|
}
|
|
11793
11862
|
/**
|
|
11794
|
-
* 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
|
|
11795
|
-
* Build
|
|
11863
|
+
* 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.
|
|
11864
|
+
* Build Token-2022 confidential-transfer transactions
|
|
11796
11865
|
*/
|
|
11797
11866
|
async signWaasConfidentialTransfer(requestParameters, initOverrides) {
|
|
11798
11867
|
const response = await this.signWaasConfidentialTransferRaw(requestParameters, initOverrides);
|
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, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, 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, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, 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, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, 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, 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;
|
|
@@ -1506,6 +1506,15 @@ export interface SignMessageOptionsRequest {
|
|
|
1506
1506
|
environmentId: string;
|
|
1507
1507
|
walletId: string;
|
|
1508
1508
|
}
|
|
1509
|
+
export interface SignWaasConfidentialTransactionsRequest {
|
|
1510
|
+
environmentId: string;
|
|
1511
|
+
walletId: string;
|
|
1512
|
+
waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
|
|
1513
|
+
}
|
|
1514
|
+
export interface SignWaasConfidentialTransactionsOptionsRequest {
|
|
1515
|
+
environmentId: string;
|
|
1516
|
+
walletId: string;
|
|
1517
|
+
}
|
|
1509
1518
|
export interface SignWaasConfidentialTransferRequest {
|
|
1510
1519
|
environmentId: string;
|
|
1511
1520
|
walletId: string;
|
|
@@ -5109,13 +5118,31 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
5109
5118
|
*/
|
|
5110
5119
|
signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5111
5120
|
/**
|
|
5112
|
-
*
|
|
5113
|
-
*
|
|
5121
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, reordered, extra or expired transactions — and joins each room to co-sign. MFA step-up is enforced once for the whole operation, not per transaction. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signature for each transaction.
|
|
5122
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
5123
|
+
*/
|
|
5124
|
+
signWaasConfidentialTransactionsRaw(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
|
|
5125
|
+
/**
|
|
5126
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, reordered, extra or expired transactions — and joins each room to co-sign. MFA step-up is enforced once for the whole operation, not per transaction. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signature for each transaction.
|
|
5127
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
5128
|
+
*/
|
|
5129
|
+
signWaasConfidentialTransactions(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
|
|
5130
|
+
/**
|
|
5131
|
+
* Options call for this endpoint
|
|
5132
|
+
*/
|
|
5133
|
+
signWaasConfidentialTransactionsOptionsRaw(requestParameters: SignWaasConfidentialTransactionsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
5134
|
+
/**
|
|
5135
|
+
* Options call for this endpoint
|
|
5136
|
+
*/
|
|
5137
|
+
signWaasConfidentialTransactionsOptions(requestParameters: SignWaasConfidentialTransactionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
5138
|
+
/**
|
|
5139
|
+
* 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.
|
|
5140
|
+
* Build Token-2022 confidential-transfer transactions
|
|
5114
5141
|
*/
|
|
5115
5142
|
signWaasConfidentialTransferRaw(requestParameters: SignWaasConfidentialTransferRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
|
|
5116
5143
|
/**
|
|
5117
|
-
* 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
|
|
5118
|
-
* Build
|
|
5144
|
+
* 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.
|
|
5145
|
+
* Build Token-2022 confidential-transfer transactions
|
|
5119
5146
|
*/
|
|
5120
5147
|
signWaasConfidentialTransfer(requestParameters: SignWaasConfidentialTransferRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
|
|
5121
5148
|
/**
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -396,6 +396,8 @@ import '../models/WaasPolicyLayerTranslationWarning.js';
|
|
|
396
396
|
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
397
397
|
import '../models/WaasReshareIntent.js';
|
|
398
398
|
import { WaasSignAndBroadcastRequestToJSON } from '../models/WaasSignAndBroadcastRequest.js';
|
|
399
|
+
import { WaasSignConfidentialTransactionsRequestToJSON } from '../models/WaasSignConfidentialTransactionsRequest.js';
|
|
400
|
+
import { WaasSignConfidentialTransactionsResponseFromJSON } from '../models/WaasSignConfidentialTransactionsResponse.js';
|
|
399
401
|
import { WaasSignConfidentialTransferRequestToJSON } from '../models/WaasSignConfidentialTransferRequest.js';
|
|
400
402
|
import { WaasSignConfidentialTransferResponseFromJSON } from '../models/WaasSignConfidentialTransferResponse.js';
|
|
401
403
|
import { WaasSignerPolicyLayerUpdateRequestToJSON } from '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
@@ -11754,8 +11756,75 @@ class SDKApi extends BaseAPI {
|
|
|
11754
11756
|
await this.signMessageOptionsRaw(requestParameters, initOverrides);
|
|
11755
11757
|
}
|
|
11756
11758
|
/**
|
|
11757
|
-
*
|
|
11758
|
-
*
|
|
11759
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, reordered, extra or expired transactions — and joins each room to co-sign. MFA step-up is enforced once for the whole operation, not per transaction. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signature for each transaction.
|
|
11760
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
11761
|
+
*/
|
|
11762
|
+
async signWaasConfidentialTransactionsRaw(requestParameters, initOverrides) {
|
|
11763
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11764
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactions.');
|
|
11765
|
+
}
|
|
11766
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11767
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactions.');
|
|
11768
|
+
}
|
|
11769
|
+
if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
|
|
11770
|
+
throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransactions.');
|
|
11771
|
+
}
|
|
11772
|
+
const queryParameters = {};
|
|
11773
|
+
const headerParameters = {};
|
|
11774
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
11775
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
11776
|
+
const token = this.configuration.accessToken;
|
|
11777
|
+
const tokenString = await token("bearerAuth", []);
|
|
11778
|
+
if (tokenString) {
|
|
11779
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
11780
|
+
}
|
|
11781
|
+
}
|
|
11782
|
+
const response = await this.request({
|
|
11783
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11784
|
+
method: 'POST',
|
|
11785
|
+
headers: headerParameters,
|
|
11786
|
+
query: queryParameters,
|
|
11787
|
+
body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
|
|
11788
|
+
}, initOverrides);
|
|
11789
|
+
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
11790
|
+
}
|
|
11791
|
+
/**
|
|
11792
|
+
* Second half of the confidential-transfer flow. Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, reordered, extra or expired transactions — and joins each room to co-sign. MFA step-up is enforced once for the whole operation, not per transaction. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signature for each transaction.
|
|
11793
|
+
* Co-sign enclave-built confidential-transfer transactions
|
|
11794
|
+
*/
|
|
11795
|
+
async signWaasConfidentialTransactions(requestParameters, initOverrides) {
|
|
11796
|
+
const response = await this.signWaasConfidentialTransactionsRaw(requestParameters, initOverrides);
|
|
11797
|
+
return await response.value();
|
|
11798
|
+
}
|
|
11799
|
+
/**
|
|
11800
|
+
* Options call for this endpoint
|
|
11801
|
+
*/
|
|
11802
|
+
async signWaasConfidentialTransactionsOptionsRaw(requestParameters, initOverrides) {
|
|
11803
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
11804
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionsOptions.');
|
|
11805
|
+
}
|
|
11806
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
11807
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionsOptions.');
|
|
11808
|
+
}
|
|
11809
|
+
const queryParameters = {};
|
|
11810
|
+
const headerParameters = {};
|
|
11811
|
+
const response = await this.request({
|
|
11812
|
+
path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
11813
|
+
method: 'OPTIONS',
|
|
11814
|
+
headers: headerParameters,
|
|
11815
|
+
query: queryParameters,
|
|
11816
|
+
}, initOverrides);
|
|
11817
|
+
return new VoidApiResponse(response);
|
|
11818
|
+
}
|
|
11819
|
+
/**
|
|
11820
|
+
* Options call for this endpoint
|
|
11821
|
+
*/
|
|
11822
|
+
async signWaasConfidentialTransactionsOptions(requestParameters, initOverrides) {
|
|
11823
|
+
await this.signWaasConfidentialTransactionsOptionsRaw(requestParameters, initOverrides);
|
|
11824
|
+
}
|
|
11825
|
+
/**
|
|
11826
|
+
* 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.
|
|
11827
|
+
* Build Token-2022 confidential-transfer transactions
|
|
11759
11828
|
*/
|
|
11760
11829
|
async signWaasConfidentialTransferRaw(requestParameters, initOverrides) {
|
|
11761
11830
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -11787,8 +11856,8 @@ class SDKApi extends BaseAPI {
|
|
|
11787
11856
|
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
|
|
11788
11857
|
}
|
|
11789
11858
|
/**
|
|
11790
|
-
* 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
|
|
11791
|
-
* Build
|
|
11859
|
+
* 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.
|
|
11860
|
+
* Build Token-2022 confidential-transfer transactions
|
|
11792
11861
|
*/
|
|
11793
11862
|
async signWaasConfidentialTransfer(requestParameters, initOverrides) {
|
|
11794
11863
|
const response = await this.signWaasConfidentialTransferRaw(requestParameters, initOverrides);
|
package/src/apis/ServerApi.cjs
CHANGED
|
@@ -248,6 +248,8 @@ require('../models/WaasPolicyLayerRuleOperation.cjs');
|
|
|
248
248
|
require('../models/WaasPolicyLayerTranslationWarning.cjs');
|
|
249
249
|
var WaasPolicyLayerUpdateRequest = require('../models/WaasPolicyLayerUpdateRequest.cjs');
|
|
250
250
|
require('../models/WaasReshareIntent.cjs');
|
|
251
|
+
var WaasSignConfidentialTransactionsRequest = require('../models/WaasSignConfidentialTransactionsRequest.cjs');
|
|
252
|
+
var WaasSignConfidentialTransactionsResponse = require('../models/WaasSignConfidentialTransactionsResponse.cjs');
|
|
251
253
|
var WaasSignConfidentialTransferRequest = require('../models/WaasSignConfidentialTransferRequest.cjs');
|
|
252
254
|
var WaasSignConfidentialTransferResponse = require('../models/WaasSignConfidentialTransferResponse.cjs');
|
|
253
255
|
require('../models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
@@ -1440,8 +1442,45 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1440
1442
|
return await response.value();
|
|
1441
1443
|
}
|
|
1442
1444
|
/**
|
|
1443
|
-
*
|
|
1444
|
-
* Server —
|
|
1445
|
+
* Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins each room to co-sign. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signatures.
|
|
1446
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1447
|
+
*/
|
|
1448
|
+
async signWaasConfidentialTransactionsServerRaw(requestParameters, initOverrides) {
|
|
1449
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1450
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionsServer.');
|
|
1451
|
+
}
|
|
1452
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1453
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionsServer.');
|
|
1454
|
+
}
|
|
1455
|
+
if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
|
|
1456
|
+
throw new runtime.RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransactionsServer.');
|
|
1457
|
+
}
|
|
1458
|
+
const queryParameters = {};
|
|
1459
|
+
const headerParameters = {};
|
|
1460
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1461
|
+
if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
|
|
1462
|
+
headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
|
|
1463
|
+
}
|
|
1464
|
+
const response = await this.request({
|
|
1465
|
+
path: `/server/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1466
|
+
method: 'POST',
|
|
1467
|
+
headers: headerParameters,
|
|
1468
|
+
query: queryParameters,
|
|
1469
|
+
body: WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
|
|
1470
|
+
}, initOverrides);
|
|
1471
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
1472
|
+
}
|
|
1473
|
+
/**
|
|
1474
|
+
* Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins each room to co-sign. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signatures.
|
|
1475
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1476
|
+
*/
|
|
1477
|
+
async signWaasConfidentialTransactionsServer(requestParameters, initOverrides) {
|
|
1478
|
+
const response = await this.signWaasConfidentialTransactionsServerRaw(requestParameters, initOverrides);
|
|
1479
|
+
return await response.value();
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* 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`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
1483
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
1445
1484
|
*/
|
|
1446
1485
|
async signWaasConfidentialTransferServerRaw(requestParameters, initOverrides) {
|
|
1447
1486
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -1469,8 +1508,8 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
1469
1508
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponse.WaasSignConfidentialTransferResponseFromJSON(jsonValue));
|
|
1470
1509
|
}
|
|
1471
1510
|
/**
|
|
1472
|
-
* 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
|
|
1473
|
-
* Server — build
|
|
1511
|
+
* 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`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
1512
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
1474
1513
|
*/
|
|
1475
1514
|
async signWaasConfidentialTransferServer(requestParameters, initOverrides) {
|
|
1476
1515
|
const response = await this.signWaasConfidentialTransferServerRaw(requestParameters, initOverrides);
|
package/src/apis/ServerApi.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 { AddBusinessAccountMemberSdkRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, ExportWaasWalletPrivateKeyRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, GeneratedTokenResponse, ImportWaasPrivateKeyRequest, LinkBusinessAccountWalletSdkRequest, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, RefreshKeySharesRequest, RemoveBusinessAccountMemberResponse, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerResponse, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ServerIdentityResponse, SignMessageWithWaasRequest, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, TransferBusinessAccountOwnershipSdkRequest, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedPutRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasWalletByAddressResponse } from '../models';
|
|
13
|
+
import { AddBusinessAccountMemberSdkRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, ExportWaasWalletPrivateKeyRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, GeneratedTokenResponse, ImportWaasPrivateKeyRequest, LinkBusinessAccountWalletSdkRequest, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, RefreshKeySharesRequest, RemoveBusinessAccountMemberResponse, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerResponse, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ServerIdentityResponse, SignMessageWithWaasRequest, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, TransferBusinessAccountOwnershipSdkRequest, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedPutRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasWalletByAddressResponse } from '../models';
|
|
14
14
|
export interface AddBusinessAccountMemberServerRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
businessAccountId: string;
|
|
@@ -196,6 +196,12 @@ export interface SignMessageServerRequest {
|
|
|
196
196
|
signMessageWithWaasRequest: SignMessageWithWaasRequest;
|
|
197
197
|
xDynServerSigningProof?: string;
|
|
198
198
|
}
|
|
199
|
+
export interface SignWaasConfidentialTransactionsServerRequest {
|
|
200
|
+
environmentId: string;
|
|
201
|
+
walletId: string;
|
|
202
|
+
waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
|
|
203
|
+
xDynServerSigningProof?: string;
|
|
204
|
+
}
|
|
199
205
|
export interface SignWaasConfidentialTransferServerRequest {
|
|
200
206
|
environmentId: string;
|
|
201
207
|
walletId: string;
|
|
@@ -579,13 +585,23 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
579
585
|
*/
|
|
580
586
|
signMessageServer(requestParameters: SignMessageServerRequest, initOverrides?: RequestInit): Promise<OpenRoomResponse>;
|
|
581
587
|
/**
|
|
582
|
-
*
|
|
583
|
-
* Server —
|
|
588
|
+
* Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins each room to co-sign. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signatures.
|
|
589
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
590
|
+
*/
|
|
591
|
+
signWaasConfidentialTransactionsServerRaw(requestParameters: SignWaasConfidentialTransactionsServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
|
|
592
|
+
/**
|
|
593
|
+
* Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins each room to co-sign. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signatures.
|
|
594
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
595
|
+
*/
|
|
596
|
+
signWaasConfidentialTransactionsServer(requestParameters: SignWaasConfidentialTransactionsServerRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
|
|
597
|
+
/**
|
|
598
|
+
* 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`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
599
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
584
600
|
*/
|
|
585
601
|
signWaasConfidentialTransferServerRaw(requestParameters: SignWaasConfidentialTransferServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
|
|
586
602
|
/**
|
|
587
|
-
* 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
|
|
588
|
-
* Server — build
|
|
603
|
+
* 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`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
604
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
589
605
|
*/
|
|
590
606
|
signWaasConfidentialTransferServer(requestParameters: SignWaasConfidentialTransferServerRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
|
|
591
607
|
/**
|
package/src/apis/ServerApi.js
CHANGED
|
@@ -244,6 +244,8 @@ import '../models/WaasPolicyLayerRuleOperation.js';
|
|
|
244
244
|
import '../models/WaasPolicyLayerTranslationWarning.js';
|
|
245
245
|
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
246
246
|
import '../models/WaasReshareIntent.js';
|
|
247
|
+
import { WaasSignConfidentialTransactionsRequestToJSON } from '../models/WaasSignConfidentialTransactionsRequest.js';
|
|
248
|
+
import { WaasSignConfidentialTransactionsResponseFromJSON } from '../models/WaasSignConfidentialTransactionsResponse.js';
|
|
247
249
|
import { WaasSignConfidentialTransferRequestToJSON } from '../models/WaasSignConfidentialTransferRequest.js';
|
|
248
250
|
import { WaasSignConfidentialTransferResponseFromJSON } from '../models/WaasSignConfidentialTransferResponse.js';
|
|
249
251
|
import '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
@@ -1436,8 +1438,45 @@ class ServerApi extends BaseAPI {
|
|
|
1436
1438
|
return await response.value();
|
|
1437
1439
|
}
|
|
1438
1440
|
/**
|
|
1439
|
-
*
|
|
1440
|
-
* Server —
|
|
1441
|
+
* Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins each room to co-sign. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signatures.
|
|
1442
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1443
|
+
*/
|
|
1444
|
+
async signWaasConfidentialTransactionsServerRaw(requestParameters, initOverrides) {
|
|
1445
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1446
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionsServer.');
|
|
1447
|
+
}
|
|
1448
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1449
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionsServer.');
|
|
1450
|
+
}
|
|
1451
|
+
if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
|
|
1452
|
+
throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransactionsServer.');
|
|
1453
|
+
}
|
|
1454
|
+
const queryParameters = {};
|
|
1455
|
+
const headerParameters = {};
|
|
1456
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1457
|
+
if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
|
|
1458
|
+
headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
|
|
1459
|
+
}
|
|
1460
|
+
const response = await this.request({
|
|
1461
|
+
path: `/server/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1462
|
+
method: 'POST',
|
|
1463
|
+
headers: headerParameters,
|
|
1464
|
+
query: queryParameters,
|
|
1465
|
+
body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
|
|
1466
|
+
}, initOverrides);
|
|
1467
|
+
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
* Provisions one MPC signing room per transaction and hands the enclave-built transactions and their `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins each room to co-sign. The response returns immediately with the room ids; join each room with the wallet\'s client share to complete the threshold signatures.
|
|
1471
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1472
|
+
*/
|
|
1473
|
+
async signWaasConfidentialTransactionsServer(requestParameters, initOverrides) {
|
|
1474
|
+
const response = await this.signWaasConfidentialTransactionsServerRaw(requestParameters, initOverrides);
|
|
1475
|
+
return await response.value();
|
|
1476
|
+
}
|
|
1477
|
+
/**
|
|
1478
|
+
* 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`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
1479
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
1441
1480
|
*/
|
|
1442
1481
|
async signWaasConfidentialTransferServerRaw(requestParameters, initOverrides) {
|
|
1443
1482
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -1465,8 +1504,8 @@ class ServerApi extends BaseAPI {
|
|
|
1465
1504
|
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
|
|
1466
1505
|
}
|
|
1467
1506
|
/**
|
|
1468
|
-
* 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
|
|
1469
|
-
* Server — build
|
|
1507
|
+
* 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`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
1508
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
1470
1509
|
*/
|
|
1471
1510
|
async signWaasConfidentialTransferServer(requestParameters, initOverrides) {
|
|
1472
1511
|
const response = await this.signWaasConfidentialTransferServerRaw(requestParameters, initOverrides);
|
package/src/index.cjs
CHANGED
|
@@ -1017,6 +1017,8 @@ var WaasReshareApprovalQuorum = require('./models/WaasReshareApprovalQuorum.cjs'
|
|
|
1017
1017
|
var WaasReshareIntent = require('./models/WaasReshareIntent.cjs');
|
|
1018
1018
|
var WaasShareSet = require('./models/WaasShareSet.cjs');
|
|
1019
1019
|
var WaasSignAndBroadcastRequest = require('./models/WaasSignAndBroadcastRequest.cjs');
|
|
1020
|
+
var WaasSignConfidentialTransactionsRequest = require('./models/WaasSignConfidentialTransactionsRequest.cjs');
|
|
1021
|
+
var WaasSignConfidentialTransactionsResponse = require('./models/WaasSignConfidentialTransactionsResponse.cjs');
|
|
1020
1022
|
var WaasSignConfidentialTransferRequest = require('./models/WaasSignConfidentialTransferRequest.cjs');
|
|
1021
1023
|
var WaasSignConfidentialTransferResponse = require('./models/WaasSignConfidentialTransferResponse.cjs');
|
|
1022
1024
|
var WaasSignerPolicyLayerUpdateRequest = require('./models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
@@ -4922,6 +4924,12 @@ exports.WaasShareSetToJSON = WaasShareSet.WaasShareSetToJSON;
|
|
|
4922
4924
|
exports.WaasSignAndBroadcastRequestFromJSON = WaasSignAndBroadcastRequest.WaasSignAndBroadcastRequestFromJSON;
|
|
4923
4925
|
exports.WaasSignAndBroadcastRequestFromJSONTyped = WaasSignAndBroadcastRequest.WaasSignAndBroadcastRequestFromJSONTyped;
|
|
4924
4926
|
exports.WaasSignAndBroadcastRequestToJSON = WaasSignAndBroadcastRequest.WaasSignAndBroadcastRequestToJSON;
|
|
4927
|
+
exports.WaasSignConfidentialTransactionsRequestFromJSON = WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestFromJSON;
|
|
4928
|
+
exports.WaasSignConfidentialTransactionsRequestFromJSONTyped = WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestFromJSONTyped;
|
|
4929
|
+
exports.WaasSignConfidentialTransactionsRequestToJSON = WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestToJSON;
|
|
4930
|
+
exports.WaasSignConfidentialTransactionsResponseFromJSON = WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON;
|
|
4931
|
+
exports.WaasSignConfidentialTransactionsResponseFromJSONTyped = WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSONTyped;
|
|
4932
|
+
exports.WaasSignConfidentialTransactionsResponseToJSON = WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseToJSON;
|
|
4925
4933
|
exports.WaasSignConfidentialTransferRequestFromJSON = WaasSignConfidentialTransferRequest.WaasSignConfidentialTransferRequestFromJSON;
|
|
4926
4934
|
exports.WaasSignConfidentialTransferRequestFromJSONTyped = WaasSignConfidentialTransferRequest.WaasSignConfidentialTransferRequestFromJSONTyped;
|
|
4927
4935
|
exports.WaasSignConfidentialTransferRequestToJSON = WaasSignConfidentialTransferRequest.WaasSignConfidentialTransferRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -1013,6 +1013,8 @@ export { WaasReshareApprovalQuorumFromJSON, WaasReshareApprovalQuorumFromJSONTyp
|
|
|
1013
1013
|
export { WaasReshareIntentActionTypeEnum, WaasReshareIntentFromJSON, WaasReshareIntentFromJSONTyped, WaasReshareIntentToJSON } from './models/WaasReshareIntent.js';
|
|
1014
1014
|
export { WaasShareSetFromJSON, WaasShareSetFromJSONTyped, WaasShareSetToJSON } from './models/WaasShareSet.js';
|
|
1015
1015
|
export { WaasSignAndBroadcastRequestFromJSON, WaasSignAndBroadcastRequestFromJSONTyped, WaasSignAndBroadcastRequestToJSON } from './models/WaasSignAndBroadcastRequest.js';
|
|
1016
|
+
export { WaasSignConfidentialTransactionsRequestFromJSON, WaasSignConfidentialTransactionsRequestFromJSONTyped, WaasSignConfidentialTransactionsRequestToJSON } from './models/WaasSignConfidentialTransactionsRequest.js';
|
|
1017
|
+
export { WaasSignConfidentialTransactionsResponseFromJSON, WaasSignConfidentialTransactionsResponseFromJSONTyped, WaasSignConfidentialTransactionsResponseToJSON } from './models/WaasSignConfidentialTransactionsResponse.js';
|
|
1016
1018
|
export { WaasSignConfidentialTransferRequestFromJSON, WaasSignConfidentialTransferRequestFromJSONTyped, WaasSignConfidentialTransferRequestToJSON } from './models/WaasSignConfidentialTransferRequest.js';
|
|
1017
1019
|
export { WaasSignConfidentialTransferResponseFromJSON, WaasSignConfidentialTransferResponseFromJSONTyped, WaasSignConfidentialTransferResponseToJSON } from './models/WaasSignConfidentialTransferResponse.js';
|
|
1018
1020
|
export { WaasSignerPolicyLayerUpdateRequestFromJSON, WaasSignerPolicyLayerUpdateRequestFromJSONTyped, WaasSignerPolicyLayerUpdateRequestOpEnum, WaasSignerPolicyLayerUpdateRequestToJSON } from './models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WaasSignConfidentialTransactionsRequestFromJSON(json) {
|
|
9
|
+
return WaasSignConfidentialTransactionsRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WaasSignConfidentialTransactionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'solanaAddress': json['solanaAddress'],
|
|
17
|
+
'serializedTransactions': json['serializedTransactions'],
|
|
18
|
+
'transactionsTag': json['transactionsTag'],
|
|
19
|
+
'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function WaasSignConfidentialTransactionsRequestToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'solanaAddress': value.solanaAddress,
|
|
31
|
+
'serializedTransactions': value.serializedTransactions,
|
|
32
|
+
'transactionsTag': value.transactionsTag,
|
|
33
|
+
'chainId': value.chainId,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.WaasSignConfidentialTransactionsRequestFromJSON = WaasSignConfidentialTransactionsRequestFromJSON;
|
|
38
|
+
exports.WaasSignConfidentialTransactionsRequestFromJSONTyped = WaasSignConfidentialTransactionsRequestFromJSONTyped;
|
|
39
|
+
exports.WaasSignConfidentialTransactionsRequestToJSON = WaasSignConfidentialTransactionsRequestToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WaasSignConfidentialTransactionsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasSignConfidentialTransactionsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Solana address (base58 public key) the confidential transfer signs for. Must match the wallet bound by `transactionsTag`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WaasSignConfidentialTransactionsRequest
|
|
22
|
+
*/
|
|
23
|
+
solanaAddress: string;
|
|
24
|
+
/**
|
|
25
|
+
* The single Base64-encoded v1 transaction returned by `POST /waas/{walletId}/signConfidentialTransfer`, unchanged.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof WaasSignConfidentialTransactionsRequest
|
|
28
|
+
*/
|
|
29
|
+
serializedTransactions: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The `transactionsTag` returned alongside `serializedTransactions`. The enclave verifies the tag and the message hashes it binds before co-signing: it refuses tampered, reordered, extra or expired transactions.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WaasSignConfidentialTransactionsRequest
|
|
34
|
+
*/
|
|
35
|
+
transactionsTag: string;
|
|
36
|
+
/**
|
|
37
|
+
* SVM cluster identifier (genesis hash) — a sanity check against the tag's binding.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WaasSignConfidentialTransactionsRequest
|
|
40
|
+
*/
|
|
41
|
+
chainId?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function WaasSignConfidentialTransactionsRequestFromJSON(json: any): WaasSignConfidentialTransactionsRequest;
|
|
44
|
+
export declare function WaasSignConfidentialTransactionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSignConfidentialTransactionsRequest;
|
|
45
|
+
export declare function WaasSignConfidentialTransactionsRequestToJSON(value?: WaasSignConfidentialTransactionsRequest | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WaasSignConfidentialTransactionsRequestFromJSON(json) {
|
|
5
|
+
return WaasSignConfidentialTransactionsRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WaasSignConfidentialTransactionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'solanaAddress': json['solanaAddress'],
|
|
13
|
+
'serializedTransactions': json['serializedTransactions'],
|
|
14
|
+
'transactionsTag': json['transactionsTag'],
|
|
15
|
+
'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function WaasSignConfidentialTransactionsRequestToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'solanaAddress': value.solanaAddress,
|
|
27
|
+
'serializedTransactions': value.serializedTransactions,
|
|
28
|
+
'transactionsTag': value.transactionsTag,
|
|
29
|
+
'chainId': value.chainId,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { WaasSignConfidentialTransactionsRequestFromJSON, WaasSignConfidentialTransactionsRequestFromJSONTyped, WaasSignConfidentialTransactionsRequestToJSON };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function WaasSignConfidentialTransactionsResponseFromJSON(json) {
|
|
19
|
+
return WaasSignConfidentialTransactionsResponseFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function WaasSignConfidentialTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'roomIds': json['roomIds'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function WaasSignConfidentialTransactionsResponseToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'roomIds': value.roomIds,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.WaasSignConfidentialTransactionsResponseFromJSON = WaasSignConfidentialTransactionsResponseFromJSON;
|
|
42
|
+
exports.WaasSignConfidentialTransactionsResponseFromJSONTyped = WaasSignConfidentialTransactionsResponseFromJSONTyped;
|
|
43
|
+
exports.WaasSignConfidentialTransactionsResponseToJSON = WaasSignConfidentialTransactionsResponseToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WaasSignConfidentialTransactionsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasSignConfidentialTransactionsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The MPC signing ceremony room for the operation — v1 packs it into one transaction, so exactly one room. Join it with the wallet's client share to complete the threshold signature.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof WaasSignConfidentialTransactionsResponse
|
|
22
|
+
*/
|
|
23
|
+
roomIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
export declare function WaasSignConfidentialTransactionsResponseFromJSON(json: any): WaasSignConfidentialTransactionsResponse;
|
|
26
|
+
export declare function WaasSignConfidentialTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSignConfidentialTransactionsResponse;
|
|
27
|
+
export declare function WaasSignConfidentialTransactionsResponseToJSON(value?: WaasSignConfidentialTransactionsResponse | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function WaasSignConfidentialTransactionsResponseFromJSON(json) {
|
|
15
|
+
return WaasSignConfidentialTransactionsResponseFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function WaasSignConfidentialTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'roomIds': json['roomIds'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function WaasSignConfidentialTransactionsResponseToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'roomIds': value.roomIds,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { WaasSignConfidentialTransactionsResponseFromJSON, WaasSignConfidentialTransactionsResponseFromJSONTyped, WaasSignConfidentialTransactionsResponseToJSON };
|
|
@@ -18,7 +18,7 @@ import { WaasConfidentialTransferOperation } from './WaasConfidentialTransferOpe
|
|
|
18
18
|
*/
|
|
19
19
|
export interface WaasSignConfidentialTransferRequest {
|
|
20
20
|
/**
|
|
21
|
-
* Solana address (base58 public key) whose confidential seed signs the operation. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed`
|
|
21
|
+
* Solana address (base58 public key) whose confidential seed signs the operation. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed`).
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof WaasSignConfidentialTransferRequest
|
|
24
24
|
*/
|
|
@@ -24,7 +24,7 @@ function WaasSignConfidentialTransferResponseFromJSONTyped(json, ignoreDiscrimin
|
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
26
|
'serializedTransactions': json['serializedTransactions'],
|
|
27
|
-
'
|
|
27
|
+
'transactionsTag': json['transactionsTag'],
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
function WaasSignConfidentialTransferResponseToJSON(value) {
|
|
@@ -36,7 +36,7 @@ function WaasSignConfidentialTransferResponseToJSON(value) {
|
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'serializedTransactions': value.serializedTransactions,
|
|
39
|
-
'
|
|
39
|
+
'transactionsTag': value.transactionsTag,
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface WaasSignConfidentialTransferResponse {
|
|
18
18
|
/**
|
|
19
|
-
* Base64-encoded
|
|
19
|
+
* Base64-encoded v1 transaction carrying the operation with its ZK proofs inlined. The wallet's signature slot is zeroed; sign it through `POST /waas/{walletId}/signConfidentialTransactions`.
|
|
20
20
|
* @type {Array<string>}
|
|
21
21
|
* @memberof WaasSignConfidentialTransferResponse
|
|
22
22
|
*/
|
|
23
23
|
serializedTransactions: Array<string>;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* Enclave-issued authentication tag binding the wallet, operation, mint, token accounts, amount and the hash of every emitted message, with a short expiry. Submit it unchanged with `serializedTransactions` to `POST /waas/{walletId}/signConfidentialTransactions`.
|
|
26
|
+
* @type {string}
|
|
27
27
|
* @memberof WaasSignConfidentialTransferResponse
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
transactionsTag: string;
|
|
30
30
|
}
|
|
31
31
|
export declare function WaasSignConfidentialTransferResponseFromJSON(json: any): WaasSignConfidentialTransferResponse;
|
|
32
32
|
export declare function WaasSignConfidentialTransferResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSignConfidentialTransferResponse;
|
|
@@ -20,7 +20,7 @@ function WaasSignConfidentialTransferResponseFromJSONTyped(json, ignoreDiscrimin
|
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
22
|
'serializedTransactions': json['serializedTransactions'],
|
|
23
|
-
'
|
|
23
|
+
'transactionsTag': json['transactionsTag'],
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
function WaasSignConfidentialTransferResponseToJSON(value) {
|
|
@@ -32,7 +32,7 @@ function WaasSignConfidentialTransferResponseToJSON(value) {
|
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'serializedTransactions': value.serializedTransactions,
|
|
35
|
-
'
|
|
35
|
+
'transactionsTag': value.transactionsTag,
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -17,7 +17,7 @@ import { WaasConfidentialAccountState } from './WaasConfidentialAccountState';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface WaasSvmConfidentialBalanceRequest {
|
|
19
19
|
/**
|
|
20
|
-
* Solana address (base58 public key) whose stored confidential seed decrypts the balances. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed`
|
|
20
|
+
* Solana address (base58 public key) whose stored confidential seed decrypts the balances. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed`).
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof WaasSvmConfidentialBalanceRequest
|
|
23
23
|
*/
|
package/src/models/index.d.ts
CHANGED
|
@@ -960,6 +960,8 @@ export * from './WaasReshareApprovalQuorum';
|
|
|
960
960
|
export * from './WaasReshareIntent';
|
|
961
961
|
export * from './WaasShareSet';
|
|
962
962
|
export * from './WaasSignAndBroadcastRequest';
|
|
963
|
+
export * from './WaasSignConfidentialTransactionsRequest';
|
|
964
|
+
export * from './WaasSignConfidentialTransactionsResponse';
|
|
963
965
|
export * from './WaasSignConfidentialTransferRequest';
|
|
964
966
|
export * from './WaasSignConfidentialTransferResponse';
|
|
965
967
|
export * from './WaasSignerPolicyLayerUpdateRequest';
|