@dynamic-labs/sdk-api 0.152.0 → 0.154.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.152.0",
3
+ "version": "0.154.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -190,6 +190,7 @@ var FlowRecordBroadcastRequest = require('../models/FlowRecordBroadcastRequest.c
190
190
  require('../models/FlowRiskStateEnum.cjs');
191
191
  require('../models/FlowSettlementStateEnum.cjs');
192
192
  var FlowSourceResponse = require('../models/FlowSourceResponse.cjs');
193
+ var FlowSourceTokenOptionsResponse = require('../models/FlowSourceTokenOptionsResponse.cjs');
193
194
  require('../models/OnrampProviders.cjs');
194
195
  require('../models/GateRuleType.cjs');
195
196
  var GeneratedTokenResponse = require('../models/GeneratedTokenResponse.cjs');
@@ -1137,6 +1138,73 @@ class SDKApi extends runtime.BaseAPI {
1137
1138
  async broadcastWaasTransactionOptions(requestParameters, initOverrides) {
1138
1139
  await this.broadcastWaasTransactionOptionsRaw(requestParameters, initOverrides);
1139
1140
  }
1141
+ /**
1142
+ * 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.
1143
+ * Build Token-2022 confidential-transfer transactions
1144
+ */
1145
+ async buildWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
1146
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1147
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransaction.');
1148
+ }
1149
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1150
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransaction.');
1151
+ }
1152
+ if (requestParameters.waasSignConfidentialTransferRequest === null || requestParameters.waasSignConfidentialTransferRequest === undefined) {
1153
+ throw new runtime.RequiredError('waasSignConfidentialTransferRequest', 'Required parameter requestParameters.waasSignConfidentialTransferRequest was null or undefined when calling buildWaasConfidentialTransaction.');
1154
+ }
1155
+ const queryParameters = {};
1156
+ const headerParameters = {};
1157
+ headerParameters['Content-Type'] = 'application/json';
1158
+ if (this.configuration && this.configuration.accessToken) {
1159
+ const token = this.configuration.accessToken;
1160
+ const tokenString = await token("bearerAuth", []);
1161
+ if (tokenString) {
1162
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1163
+ }
1164
+ }
1165
+ const response = await this.request({
1166
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1167
+ method: 'POST',
1168
+ headers: headerParameters,
1169
+ query: queryParameters,
1170
+ body: WaasSignConfidentialTransferRequest.WaasSignConfidentialTransferRequestToJSON(requestParameters.waasSignConfidentialTransferRequest),
1171
+ }, initOverrides);
1172
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponse.WaasSignConfidentialTransferResponseFromJSON(jsonValue));
1173
+ }
1174
+ /**
1175
+ * 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.
1176
+ * Build Token-2022 confidential-transfer transactions
1177
+ */
1178
+ async buildWaasConfidentialTransaction(requestParameters, initOverrides) {
1179
+ const response = await this.buildWaasConfidentialTransactionRaw(requestParameters, initOverrides);
1180
+ return await response.value();
1181
+ }
1182
+ /**
1183
+ * Options call for this endpoint
1184
+ */
1185
+ async buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
1186
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1187
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1188
+ }
1189
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1190
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1191
+ }
1192
+ const queryParameters = {};
1193
+ const headerParameters = {};
1194
+ const response = await this.request({
1195
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1196
+ method: 'OPTIONS',
1197
+ headers: headerParameters,
1198
+ query: queryParameters,
1199
+ }, initOverrides);
1200
+ return new runtime.VoidApiResponse(response);
1201
+ }
1202
+ /**
1203
+ * Options call for this endpoint
1204
+ */
1205
+ async buildWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
1206
+ await this.buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
1207
+ }
1140
1208
  /**
1141
1209
  * Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
1142
1210
  * Cancel a checkout transaction
@@ -4879,6 +4947,67 @@ class SDKApi extends runtime.BaseAPI {
4879
4947
  async getFlowQuoteOptions(requestParameters, initOverrides) {
4880
4948
  await this.getFlowQuoteOptionsRaw(requestParameters, initOverrides);
4881
4949
  }
4950
+ /**
4951
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
4952
+ * Get the supported tokens for a flow source
4953
+ */
4954
+ async getFlowSourceTokenOptionsRaw(requestParameters, initOverrides) {
4955
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4956
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptions.');
4957
+ }
4958
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4959
+ throw new runtime.RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptions.');
4960
+ }
4961
+ if (requestParameters.sourceType === null || requestParameters.sourceType === undefined) {
4962
+ throw new runtime.RequiredError('sourceType', 'Required parameter requestParameters.sourceType was null or undefined when calling getFlowSourceTokenOptions.');
4963
+ }
4964
+ const queryParameters = {};
4965
+ if (requestParameters.sourceType !== undefined) {
4966
+ queryParameters['sourceType'] = requestParameters.sourceType;
4967
+ }
4968
+ const headerParameters = {};
4969
+ const response = await this.request({
4970
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4971
+ method: 'GET',
4972
+ headers: headerParameters,
4973
+ query: queryParameters,
4974
+ }, initOverrides);
4975
+ return new runtime.JSONApiResponse(response, (jsonValue) => FlowSourceTokenOptionsResponse.FlowSourceTokenOptionsResponseFromJSON(jsonValue));
4976
+ }
4977
+ /**
4978
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
4979
+ * Get the supported tokens for a flow source
4980
+ */
4981
+ async getFlowSourceTokenOptions(requestParameters, initOverrides) {
4982
+ const response = await this.getFlowSourceTokenOptionsRaw(requestParameters, initOverrides);
4983
+ return await response.value();
4984
+ }
4985
+ /**
4986
+ * Options call for this endpoint
4987
+ */
4988
+ async getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides) {
4989
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4990
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4991
+ }
4992
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4993
+ throw new runtime.RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4994
+ }
4995
+ const queryParameters = {};
4996
+ const headerParameters = {};
4997
+ const response = await this.request({
4998
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4999
+ method: 'OPTIONS',
5000
+ headers: headerParameters,
5001
+ query: queryParameters,
5002
+ }, initOverrides);
5003
+ return new runtime.VoidApiResponse(response);
5004
+ }
5005
+ /**
5006
+ * Options call for this endpoint
5007
+ */
5008
+ async getFlowSourceTokenOptionsOptions(requestParameters, initOverrides) {
5009
+ await this.getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides);
5010
+ }
4882
5011
  /**
4883
5012
  * Returns the global wallet settings configured for the specified environment.
4884
5013
  * Get the global wallet settings for the environment
@@ -11840,6 +11969,73 @@ class SDKApi extends runtime.BaseAPI {
11840
11969
  async signMessageOptions(requestParameters, initOverrides) {
11841
11970
  await this.signMessageOptionsRaw(requestParameters, initOverrides);
11842
11971
  }
11972
+ /**
11973
+ * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
11974
+ * Co-sign enclave-built confidential-transfer transactions
11975
+ */
11976
+ async signWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
11977
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11978
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransaction.');
11979
+ }
11980
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11981
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransaction.');
11982
+ }
11983
+ if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
11984
+ throw new runtime.RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransaction.');
11985
+ }
11986
+ const queryParameters = {};
11987
+ const headerParameters = {};
11988
+ headerParameters['Content-Type'] = 'application/json';
11989
+ if (this.configuration && this.configuration.accessToken) {
11990
+ const token = this.configuration.accessToken;
11991
+ const tokenString = await token("bearerAuth", []);
11992
+ if (tokenString) {
11993
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
11994
+ }
11995
+ }
11996
+ const response = await this.request({
11997
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11998
+ method: 'POST',
11999
+ headers: headerParameters,
12000
+ query: queryParameters,
12001
+ body: WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
12002
+ }, initOverrides);
12003
+ return new runtime.JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
12004
+ }
12005
+ /**
12006
+ * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
12007
+ * Co-sign enclave-built confidential-transfer transactions
12008
+ */
12009
+ async signWaasConfidentialTransaction(requestParameters, initOverrides) {
12010
+ const response = await this.signWaasConfidentialTransactionRaw(requestParameters, initOverrides);
12011
+ return await response.value();
12012
+ }
12013
+ /**
12014
+ * Options call for this endpoint
12015
+ */
12016
+ async signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
12017
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
12018
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionOptions.');
12019
+ }
12020
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
12021
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionOptions.');
12022
+ }
12023
+ const queryParameters = {};
12024
+ const headerParameters = {};
12025
+ const response = await this.request({
12026
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
12027
+ method: 'OPTIONS',
12028
+ headers: headerParameters,
12029
+ query: queryParameters,
12030
+ }, initOverrides);
12031
+ return new runtime.VoidApiResponse(response);
12032
+ }
12033
+ /**
12034
+ * Options call for this endpoint
12035
+ */
12036
+ async signWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
12037
+ await this.signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
12038
+ }
11843
12039
  /**
11844
12040
  * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
11845
12041
  * Co-sign enclave-built confidential-transfer transactions
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, 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, 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';
13
+ import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, 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, FlowSourceTokenOptionsResponse, FlowSourceTypeEnum, 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, 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 AcceptBusinessAccountInviteRequest {
15
15
  environmentId: string;
16
16
  inviteId: string;
@@ -104,6 +104,15 @@ export interface BroadcastWaasTransactionOptionsRequest {
104
104
  environmentId: string;
105
105
  walletId: string;
106
106
  }
107
+ export interface BuildWaasConfidentialTransactionRequest {
108
+ environmentId: string;
109
+ walletId: string;
110
+ waasSignConfidentialTransferRequest: WaasSignConfidentialTransferRequest;
111
+ }
112
+ export interface BuildWaasConfidentialTransactionOptionsRequest {
113
+ environmentId: string;
114
+ walletId: string;
115
+ }
107
116
  export interface CancelCheckoutTransactionRequest {
108
117
  environmentId: string;
109
118
  transactionId: string;
@@ -582,6 +591,15 @@ export interface GetFlowQuoteOptionsRequest {
582
591
  environmentId: string;
583
592
  flowId: string;
584
593
  }
594
+ export interface GetFlowSourceTokenOptionsRequest {
595
+ environmentId: string;
596
+ flowId: string;
597
+ sourceType: FlowSourceTypeEnum;
598
+ }
599
+ export interface GetFlowSourceTokenOptionsOptionsRequest {
600
+ environmentId: string;
601
+ flowId: string;
602
+ }
585
603
  export interface GetGlobalWalletsSettingsRequest {
586
604
  environmentId: string;
587
605
  }
@@ -1515,6 +1533,15 @@ export interface SignMessageOptionsRequest {
1515
1533
  environmentId: string;
1516
1534
  walletId: string;
1517
1535
  }
1536
+ export interface SignWaasConfidentialTransactionRequest {
1537
+ environmentId: string;
1538
+ walletId: string;
1539
+ waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
1540
+ }
1541
+ export interface SignWaasConfidentialTransactionOptionsRequest {
1542
+ environmentId: string;
1543
+ walletId: string;
1544
+ }
1518
1545
  export interface SignWaasConfidentialTransactionsRequest {
1519
1546
  environmentId: string;
1520
1547
  walletId: string;
@@ -2030,6 +2057,24 @@ export declare class SDKApi extends runtime.BaseAPI {
2030
2057
  * Options call for this endpoint
2031
2058
  */
2032
2059
  broadcastWaasTransactionOptions(requestParameters: BroadcastWaasTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2060
+ /**
2061
+ * 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.
2062
+ * Build Token-2022 confidential-transfer transactions
2063
+ */
2064
+ buildWaasConfidentialTransactionRaw(requestParameters: BuildWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
2065
+ /**
2066
+ * 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.
2067
+ * Build Token-2022 confidential-transfer transactions
2068
+ */
2069
+ buildWaasConfidentialTransaction(requestParameters: BuildWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
2070
+ /**
2071
+ * Options call for this endpoint
2072
+ */
2073
+ buildWaasConfidentialTransactionOptionsRaw(requestParameters: BuildWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2074
+ /**
2075
+ * Options call for this endpoint
2076
+ */
2077
+ buildWaasConfidentialTransactionOptions(requestParameters: BuildWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2033
2078
  /**
2034
2079
  * Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
2035
2080
  * Cancel a checkout transaction
@@ -3136,6 +3181,24 @@ export declare class SDKApi extends runtime.BaseAPI {
3136
3181
  * Options call for this endpoint
3137
3182
  */
3138
3183
  getFlowQuoteOptions(requestParameters: GetFlowQuoteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3184
+ /**
3185
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
3186
+ * Get the supported tokens for a flow source
3187
+ */
3188
+ getFlowSourceTokenOptionsRaw(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowSourceTokenOptionsResponse>>;
3189
+ /**
3190
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
3191
+ * Get the supported tokens for a flow source
3192
+ */
3193
+ getFlowSourceTokenOptions(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<FlowSourceTokenOptionsResponse>;
3194
+ /**
3195
+ * Options call for this endpoint
3196
+ */
3197
+ getFlowSourceTokenOptionsOptionsRaw(requestParameters: GetFlowSourceTokenOptionsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3198
+ /**
3199
+ * Options call for this endpoint
3200
+ */
3201
+ getFlowSourceTokenOptionsOptions(requestParameters: GetFlowSourceTokenOptionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3139
3202
  /**
3140
3203
  * Returns the global wallet settings configured for the specified environment.
3141
3204
  * Get the global wallet settings for the environment
@@ -5152,6 +5215,24 @@ export declare class SDKApi extends runtime.BaseAPI {
5152
5215
  * Options call for this endpoint
5153
5216
  */
5154
5217
  signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
5218
+ /**
5219
+ * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
5220
+ * Co-sign enclave-built confidential-transfer transactions
5221
+ */
5222
+ signWaasConfidentialTransactionRaw(requestParameters: SignWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
5223
+ /**
5224
+ * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
5225
+ * Co-sign enclave-built confidential-transfer transactions
5226
+ */
5227
+ signWaasConfidentialTransaction(requestParameters: SignWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
5228
+ /**
5229
+ * Options call for this endpoint
5230
+ */
5231
+ signWaasConfidentialTransactionOptionsRaw(requestParameters: SignWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
5232
+ /**
5233
+ * Options call for this endpoint
5234
+ */
5235
+ signWaasConfidentialTransactionOptions(requestParameters: SignWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
5155
5236
  /**
5156
5237
  * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
5157
5238
  * Co-sign enclave-built confidential-transfer transactions
@@ -186,6 +186,7 @@ import { FlowRecordBroadcastRequestToJSON } from '../models/FlowRecordBroadcastR
186
186
  import '../models/FlowRiskStateEnum.js';
187
187
  import '../models/FlowSettlementStateEnum.js';
188
188
  import { FlowSourceResponseFromJSON } from '../models/FlowSourceResponse.js';
189
+ import { FlowSourceTokenOptionsResponseFromJSON } from '../models/FlowSourceTokenOptionsResponse.js';
189
190
  import '../models/OnrampProviders.js';
190
191
  import '../models/GateRuleType.js';
191
192
  import { GeneratedTokenResponseFromJSON } from '../models/GeneratedTokenResponse.js';
@@ -1133,6 +1134,73 @@ class SDKApi extends BaseAPI {
1133
1134
  async broadcastWaasTransactionOptions(requestParameters, initOverrides) {
1134
1135
  await this.broadcastWaasTransactionOptionsRaw(requestParameters, initOverrides);
1135
1136
  }
1137
+ /**
1138
+ * 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.
1139
+ * Build Token-2022 confidential-transfer transactions
1140
+ */
1141
+ async buildWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
1142
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1143
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransaction.');
1144
+ }
1145
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1146
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransaction.');
1147
+ }
1148
+ if (requestParameters.waasSignConfidentialTransferRequest === null || requestParameters.waasSignConfidentialTransferRequest === undefined) {
1149
+ throw new RequiredError('waasSignConfidentialTransferRequest', 'Required parameter requestParameters.waasSignConfidentialTransferRequest was null or undefined when calling buildWaasConfidentialTransaction.');
1150
+ }
1151
+ const queryParameters = {};
1152
+ const headerParameters = {};
1153
+ headerParameters['Content-Type'] = 'application/json';
1154
+ if (this.configuration && this.configuration.accessToken) {
1155
+ const token = this.configuration.accessToken;
1156
+ const tokenString = await token("bearerAuth", []);
1157
+ if (tokenString) {
1158
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1159
+ }
1160
+ }
1161
+ const response = await this.request({
1162
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1163
+ method: 'POST',
1164
+ headers: headerParameters,
1165
+ query: queryParameters,
1166
+ body: WaasSignConfidentialTransferRequestToJSON(requestParameters.waasSignConfidentialTransferRequest),
1167
+ }, initOverrides);
1168
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
1169
+ }
1170
+ /**
1171
+ * 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.
1172
+ * Build Token-2022 confidential-transfer transactions
1173
+ */
1174
+ async buildWaasConfidentialTransaction(requestParameters, initOverrides) {
1175
+ const response = await this.buildWaasConfidentialTransactionRaw(requestParameters, initOverrides);
1176
+ return await response.value();
1177
+ }
1178
+ /**
1179
+ * Options call for this endpoint
1180
+ */
1181
+ async buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
1182
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1183
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1184
+ }
1185
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1186
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1187
+ }
1188
+ const queryParameters = {};
1189
+ const headerParameters = {};
1190
+ const response = await this.request({
1191
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1192
+ method: 'OPTIONS',
1193
+ headers: headerParameters,
1194
+ query: queryParameters,
1195
+ }, initOverrides);
1196
+ return new VoidApiResponse(response);
1197
+ }
1198
+ /**
1199
+ * Options call for this endpoint
1200
+ */
1201
+ async buildWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
1202
+ await this.buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
1203
+ }
1136
1204
  /**
1137
1205
  * Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
1138
1206
  * Cancel a checkout transaction
@@ -4875,6 +4943,67 @@ class SDKApi extends BaseAPI {
4875
4943
  async getFlowQuoteOptions(requestParameters, initOverrides) {
4876
4944
  await this.getFlowQuoteOptionsRaw(requestParameters, initOverrides);
4877
4945
  }
4946
+ /**
4947
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
4948
+ * Get the supported tokens for a flow source
4949
+ */
4950
+ async getFlowSourceTokenOptionsRaw(requestParameters, initOverrides) {
4951
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4952
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptions.');
4953
+ }
4954
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4955
+ throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptions.');
4956
+ }
4957
+ if (requestParameters.sourceType === null || requestParameters.sourceType === undefined) {
4958
+ throw new RequiredError('sourceType', 'Required parameter requestParameters.sourceType was null or undefined when calling getFlowSourceTokenOptions.');
4959
+ }
4960
+ const queryParameters = {};
4961
+ if (requestParameters.sourceType !== undefined) {
4962
+ queryParameters['sourceType'] = requestParameters.sourceType;
4963
+ }
4964
+ const headerParameters = {};
4965
+ const response = await this.request({
4966
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4967
+ method: 'GET',
4968
+ headers: headerParameters,
4969
+ query: queryParameters,
4970
+ }, initOverrides);
4971
+ return new JSONApiResponse(response, (jsonValue) => FlowSourceTokenOptionsResponseFromJSON(jsonValue));
4972
+ }
4973
+ /**
4974
+ * Returns the supported tokens for deposit address source, for a given flow, grouped by the network they are sent on. Only the deposit_address source type is supported.
4975
+ * Get the supported tokens for a flow source
4976
+ */
4977
+ async getFlowSourceTokenOptions(requestParameters, initOverrides) {
4978
+ const response = await this.getFlowSourceTokenOptionsRaw(requestParameters, initOverrides);
4979
+ return await response.value();
4980
+ }
4981
+ /**
4982
+ * Options call for this endpoint
4983
+ */
4984
+ async getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides) {
4985
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4986
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4987
+ }
4988
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4989
+ throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4990
+ }
4991
+ const queryParameters = {};
4992
+ const headerParameters = {};
4993
+ const response = await this.request({
4994
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4995
+ method: 'OPTIONS',
4996
+ headers: headerParameters,
4997
+ query: queryParameters,
4998
+ }, initOverrides);
4999
+ return new VoidApiResponse(response);
5000
+ }
5001
+ /**
5002
+ * Options call for this endpoint
5003
+ */
5004
+ async getFlowSourceTokenOptionsOptions(requestParameters, initOverrides) {
5005
+ await this.getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides);
5006
+ }
4878
5007
  /**
4879
5008
  * Returns the global wallet settings configured for the specified environment.
4880
5009
  * Get the global wallet settings for the environment
@@ -11836,6 +11965,73 @@ class SDKApi extends BaseAPI {
11836
11965
  async signMessageOptions(requestParameters, initOverrides) {
11837
11966
  await this.signMessageOptionsRaw(requestParameters, initOverrides);
11838
11967
  }
11968
+ /**
11969
+ * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
11970
+ * Co-sign enclave-built confidential-transfer transactions
11971
+ */
11972
+ async signWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
11973
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11974
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransaction.');
11975
+ }
11976
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11977
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransaction.');
11978
+ }
11979
+ if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
11980
+ throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransaction.');
11981
+ }
11982
+ const queryParameters = {};
11983
+ const headerParameters = {};
11984
+ headerParameters['Content-Type'] = 'application/json';
11985
+ if (this.configuration && this.configuration.accessToken) {
11986
+ const token = this.configuration.accessToken;
11987
+ const tokenString = await token("bearerAuth", []);
11988
+ if (tokenString) {
11989
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
11990
+ }
11991
+ }
11992
+ const response = await this.request({
11993
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11994
+ method: 'POST',
11995
+ headers: headerParameters,
11996
+ query: queryParameters,
11997
+ body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
11998
+ }, initOverrides);
11999
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
12000
+ }
12001
+ /**
12002
+ * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
12003
+ * Co-sign enclave-built confidential-transfer transactions
12004
+ */
12005
+ async signWaasConfidentialTransaction(requestParameters, initOverrides) {
12006
+ const response = await this.signWaasConfidentialTransactionRaw(requestParameters, initOverrides);
12007
+ return await response.value();
12008
+ }
12009
+ /**
12010
+ * Options call for this endpoint
12011
+ */
12012
+ async signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
12013
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
12014
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionOptions.');
12015
+ }
12016
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
12017
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionOptions.');
12018
+ }
12019
+ const queryParameters = {};
12020
+ const headerParameters = {};
12021
+ const response = await this.request({
12022
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
12023
+ method: 'OPTIONS',
12024
+ headers: headerParameters,
12025
+ query: queryParameters,
12026
+ }, initOverrides);
12027
+ return new VoidApiResponse(response);
12028
+ }
12029
+ /**
12030
+ * Options call for this endpoint
12031
+ */
12032
+ async signWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
12033
+ await this.signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
12034
+ }
11839
12035
  /**
11840
12036
  * Second half of the confidential-transfer flow. Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag — rejecting tampered, extra or expired transactions — and joins the room to co-sign. MFA step-up is enforced once for the whole operation. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
11841
12037
  * Co-sign enclave-built confidential-transfer transactions