@dynamic-labs/sdk-api-core 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.
Files changed (30) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +73 -4
  3. package/src/apis/SDKApi.cjs.map +1 -1
  4. package/src/apis/SDKApi.d.ts +32 -5
  5. package/src/apis/SDKApi.js +73 -4
  6. package/src/apis/SDKApi.js.map +1 -1
  7. package/src/index.cjs +8 -0
  8. package/src/index.cjs.map +1 -1
  9. package/src/index.js +2 -0
  10. package/src/index.js.map +1 -1
  11. package/src/models/WaasSignConfidentialTransactionsRequest.cjs +39 -0
  12. package/src/models/WaasSignConfidentialTransactionsRequest.cjs.map +1 -0
  13. package/src/models/WaasSignConfidentialTransactionsRequest.d.ts +45 -0
  14. package/src/models/WaasSignConfidentialTransactionsRequest.js +33 -0
  15. package/src/models/WaasSignConfidentialTransactionsRequest.js.map +1 -0
  16. package/src/models/WaasSignConfidentialTransactionsResponse.cjs +43 -0
  17. package/src/models/WaasSignConfidentialTransactionsResponse.cjs.map +1 -0
  18. package/src/models/WaasSignConfidentialTransactionsResponse.d.ts +27 -0
  19. package/src/models/WaasSignConfidentialTransactionsResponse.js +37 -0
  20. package/src/models/WaasSignConfidentialTransactionsResponse.js.map +1 -0
  21. package/src/models/WaasSignConfidentialTransferRequest.d.ts +1 -1
  22. package/src/models/WaasSignConfidentialTransferResponse.cjs +2 -2
  23. package/src/models/WaasSignConfidentialTransferResponse.cjs.map +1 -1
  24. package/src/models/WaasSignConfidentialTransferResponse.d.ts +4 -4
  25. package/src/models/WaasSignConfidentialTransferResponse.js +2 -2
  26. package/src/models/WaasSignConfidentialTransferResponse.js.map +1 -1
  27. package/src/models/WaasSvmConfidentialBalanceRequest.d.ts +1 -1
  28. package/src/models/index.d.ts +2 -0
  29. package/src/version.cjs +1 -1
  30. package/src/version.js +1 -1
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMutationVersion, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, 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, 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, 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;
@@ -1501,6 +1501,15 @@ export interface SignMessageOptionsRequest {
1501
1501
  environmentId: string;
1502
1502
  walletId: string;
1503
1503
  }
1504
+ export interface SignWaasConfidentialTransactionsRequest {
1505
+ environmentId: string;
1506
+ walletId: string;
1507
+ waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
1508
+ }
1509
+ export interface SignWaasConfidentialTransactionsOptionsRequest {
1510
+ environmentId: string;
1511
+ walletId: string;
1512
+ }
1504
1513
  export interface SignWaasConfidentialTransferRequest {
1505
1514
  environmentId: string;
1506
1515
  walletId: string;
@@ -5076,13 +5085,31 @@ export declare class SDKApi extends runtime.BaseAPI {
5076
5085
  */
5077
5086
  signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
5078
5087
  /**
5079
- * 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.
5080
- * Build and sign a Token-2022 confidential transfer
5088
+ * 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.
5089
+ * Co-sign enclave-built confidential-transfer transactions
5090
+ */
5091
+ signWaasConfidentialTransactionsRaw(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
5092
+ /**
5093
+ * 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.
5094
+ * Co-sign enclave-built confidential-transfer transactions
5095
+ */
5096
+ signWaasConfidentialTransactions(requestParameters: SignWaasConfidentialTransactionsRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
5097
+ /**
5098
+ * Options call for this endpoint
5099
+ */
5100
+ signWaasConfidentialTransactionsOptionsRaw(requestParameters: SignWaasConfidentialTransactionsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
5101
+ /**
5102
+ * Options call for this endpoint
5103
+ */
5104
+ signWaasConfidentialTransactionsOptions(requestParameters: SignWaasConfidentialTransactionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
5105
+ /**
5106
+ * 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.
5107
+ * Build Token-2022 confidential-transfer transactions
5081
5108
  */
5082
5109
  signWaasConfidentialTransferRaw(requestParameters: SignWaasConfidentialTransferRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
5083
5110
  /**
5084
- * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the 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.
5085
- * Build and sign a Token-2022 confidential transfer
5111
+ * 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.
5112
+ * Build Token-2022 confidential-transfer transactions
5086
5113
  */
5087
5114
  signWaasConfidentialTransfer(requestParameters: SignWaasConfidentialTransferRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
5088
5115
  /**
@@ -337,6 +337,8 @@ import '../models/WaasPolicyLayerTranslationWarning.js';
337
337
  import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
338
338
  import '../models/WaasReshareIntent.js';
339
339
  import { WaasSignAndBroadcastRequestToJSON } from '../models/WaasSignAndBroadcastRequest.js';
340
+ import { WaasSignConfidentialTransactionsRequestToJSON } from '../models/WaasSignConfidentialTransactionsRequest.js';
341
+ import { WaasSignConfidentialTransactionsResponseFromJSON } from '../models/WaasSignConfidentialTransactionsResponse.js';
340
342
  import { WaasSignConfidentialTransferRequestToJSON } from '../models/WaasSignConfidentialTransferRequest.js';
341
343
  import { WaasSignConfidentialTransferResponseFromJSON } from '../models/WaasSignConfidentialTransferResponse.js';
342
344
  import { WaasSignerPolicyLayerUpdateRequestToJSON } from '../models/WaasSignerPolicyLayerUpdateRequest.js';
@@ -11612,8 +11614,75 @@ class SDKApi extends BaseAPI {
11612
11614
  await this.signMessageOptionsRaw(requestParameters, initOverrides);
11613
11615
  }
11614
11616
  /**
11615
- * 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.
11616
- * Build and sign a Token-2022 confidential transfer
11617
+ * 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.
11618
+ * Co-sign enclave-built confidential-transfer transactions
11619
+ */
11620
+ async signWaasConfidentialTransactionsRaw(requestParameters, initOverrides) {
11621
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11622
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactions.');
11623
+ }
11624
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11625
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactions.');
11626
+ }
11627
+ if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
11628
+ throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransactions.');
11629
+ }
11630
+ const queryParameters = {};
11631
+ const headerParameters = {};
11632
+ headerParameters['Content-Type'] = 'application/json';
11633
+ if (this.configuration && this.configuration.accessToken) {
11634
+ const token = this.configuration.accessToken;
11635
+ const tokenString = await token("bearerAuth", []);
11636
+ if (tokenString) {
11637
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
11638
+ }
11639
+ }
11640
+ const response = await this.request({
11641
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11642
+ method: 'POST',
11643
+ headers: headerParameters,
11644
+ query: queryParameters,
11645
+ body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
11646
+ }, initOverrides);
11647
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
11648
+ }
11649
+ /**
11650
+ * 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.
11651
+ * Co-sign enclave-built confidential-transfer transactions
11652
+ */
11653
+ async signWaasConfidentialTransactions(requestParameters, initOverrides) {
11654
+ const response = await this.signWaasConfidentialTransactionsRaw(requestParameters, initOverrides);
11655
+ return await response.value();
11656
+ }
11657
+ /**
11658
+ * Options call for this endpoint
11659
+ */
11660
+ async signWaasConfidentialTransactionsOptionsRaw(requestParameters, initOverrides) {
11661
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11662
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionsOptions.');
11663
+ }
11664
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11665
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionsOptions.');
11666
+ }
11667
+ const queryParameters = {};
11668
+ const headerParameters = {};
11669
+ const response = await this.request({
11670
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11671
+ method: 'OPTIONS',
11672
+ headers: headerParameters,
11673
+ query: queryParameters,
11674
+ }, initOverrides);
11675
+ return new VoidApiResponse(response);
11676
+ }
11677
+ /**
11678
+ * Options call for this endpoint
11679
+ */
11680
+ async signWaasConfidentialTransactionsOptions(requestParameters, initOverrides) {
11681
+ await this.signWaasConfidentialTransactionsOptionsRaw(requestParameters, initOverrides);
11682
+ }
11683
+ /**
11684
+ * 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.
11685
+ * Build Token-2022 confidential-transfer transactions
11617
11686
  */
11618
11687
  async signWaasConfidentialTransferRaw(requestParameters, initOverrides) {
11619
11688
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
@@ -11645,8 +11714,8 @@ class SDKApi extends BaseAPI {
11645
11714
  return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
11646
11715
  }
11647
11716
  /**
11648
- * Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the 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.
11649
- * Build and sign a Token-2022 confidential transfer
11717
+ * 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.
11718
+ * Build Token-2022 confidential-transfer transactions
11650
11719
  */
11651
11720
  async signWaasConfidentialTransfer(requestParameters, initOverrides) {
11652
11721
  const response = await this.signWaasConfidentialTransferRaw(requestParameters, initOverrides);