@dynamic-labs/sdk-api-core 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.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +196 -0
  3. package/src/apis/SDKApi.cjs.map +1 -1
  4. package/src/apis/SDKApi.d.ts +82 -1
  5. package/src/apis/SDKApi.js +196 -0
  6. package/src/apis/SDKApi.js.map +1 -1
  7. package/src/index.cjs +20 -0
  8. package/src/index.cjs.map +1 -1
  9. package/src/index.js +5 -0
  10. package/src/index.js.map +1 -1
  11. package/src/models/FlowSourceTokenOption.cjs +39 -0
  12. package/src/models/FlowSourceTokenOption.cjs.map +1 -0
  13. package/src/models/FlowSourceTokenOption.d.ts +42 -0
  14. package/src/models/FlowSourceTokenOption.js +33 -0
  15. package/src/models/FlowSourceTokenOption.js.map +1 -0
  16. package/src/models/FlowSourceTokenOptionChain.cjs +36 -0
  17. package/src/models/FlowSourceTokenOptionChain.cjs.map +1 -0
  18. package/src/models/FlowSourceTokenOptionChain.d.ts +34 -0
  19. package/src/models/FlowSourceTokenOptionChain.js +30 -0
  20. package/src/models/FlowSourceTokenOptionChain.js.map +1 -0
  21. package/src/models/FlowSourceTokenOptionNetwork.cjs +37 -0
  22. package/src/models/FlowSourceTokenOptionNetwork.cjs.map +1 -0
  23. package/src/models/FlowSourceTokenOptionNetwork.d.ts +39 -0
  24. package/src/models/FlowSourceTokenOptionNetwork.js +31 -0
  25. package/src/models/FlowSourceTokenOptionNetwork.js.map +1 -0
  26. package/src/models/FlowSourceTokenOptionToken.cjs +39 -0
  27. package/src/models/FlowSourceTokenOptionToken.cjs.map +1 -0
  28. package/src/models/FlowSourceTokenOptionToken.d.ts +45 -0
  29. package/src/models/FlowSourceTokenOptionToken.js +33 -0
  30. package/src/models/FlowSourceTokenOptionToken.js.map +1 -0
  31. package/src/models/FlowSourceTokenOptionsResponse.cjs +33 -0
  32. package/src/models/FlowSourceTokenOptionsResponse.cjs.map +1 -0
  33. package/src/models/FlowSourceTokenOptionsResponse.d.ts +28 -0
  34. package/src/models/FlowSourceTokenOptionsResponse.js +27 -0
  35. package/src/models/FlowSourceTokenOptionsResponse.js.map +1 -0
  36. package/src/models/index.d.ts +5 -0
  37. package/src/version.cjs +1 -1
  38. 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 { 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, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
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, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
14
14
  export interface 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
  }
@@ -1510,6 +1528,15 @@ export interface SignMessageOptionsRequest {
1510
1528
  environmentId: string;
1511
1529
  walletId: string;
1512
1530
  }
1531
+ export interface SignWaasConfidentialTransactionRequest {
1532
+ environmentId: string;
1533
+ walletId: string;
1534
+ waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
1535
+ }
1536
+ export interface SignWaasConfidentialTransactionOptionsRequest {
1537
+ environmentId: string;
1538
+ walletId: string;
1539
+ }
1513
1540
  export interface SignWaasConfidentialTransactionsRequest {
1514
1541
  environmentId: string;
1515
1542
  walletId: string;
@@ -2025,6 +2052,24 @@ export declare class SDKApi extends runtime.BaseAPI {
2025
2052
  * Options call for this endpoint
2026
2053
  */
2027
2054
  broadcastWaasTransactionOptions(requestParameters: BroadcastWaasTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2055
+ /**
2056
+ * 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.
2057
+ * Build Token-2022 confidential-transfer transactions
2058
+ */
2059
+ buildWaasConfidentialTransactionRaw(requestParameters: BuildWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
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
+ buildWaasConfidentialTransaction(requestParameters: BuildWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
2065
+ /**
2066
+ * Options call for this endpoint
2067
+ */
2068
+ buildWaasConfidentialTransactionOptionsRaw(requestParameters: BuildWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2069
+ /**
2070
+ * Options call for this endpoint
2071
+ */
2072
+ buildWaasConfidentialTransactionOptions(requestParameters: BuildWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2028
2073
  /**
2029
2074
  * Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
2030
2075
  * Cancel a checkout transaction
@@ -3113,6 +3158,24 @@ export declare class SDKApi extends runtime.BaseAPI {
3113
3158
  * Options call for this endpoint
3114
3159
  */
3115
3160
  getFlowQuoteOptions(requestParameters: GetFlowQuoteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3161
+ /**
3162
+ * 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.
3163
+ * Get the supported tokens for a flow source
3164
+ */
3165
+ getFlowSourceTokenOptionsRaw(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowSourceTokenOptionsResponse>>;
3166
+ /**
3167
+ * 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.
3168
+ * Get the supported tokens for a flow source
3169
+ */
3170
+ getFlowSourceTokenOptions(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<FlowSourceTokenOptionsResponse>;
3171
+ /**
3172
+ * Options call for this endpoint
3173
+ */
3174
+ getFlowSourceTokenOptionsOptionsRaw(requestParameters: GetFlowSourceTokenOptionsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3175
+ /**
3176
+ * Options call for this endpoint
3177
+ */
3178
+ getFlowSourceTokenOptionsOptions(requestParameters: GetFlowSourceTokenOptionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3116
3179
  /**
3117
3180
  * Returns the global wallet settings configured for the specified environment.
3118
3181
  * Get the global wallet settings for the environment
@@ -5119,6 +5182,24 @@ export declare class SDKApi extends runtime.BaseAPI {
5119
5182
  * Options call for this endpoint
5120
5183
  */
5121
5184
  signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
5185
+ /**
5186
+ * 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.
5187
+ * Co-sign enclave-built confidential-transfer transactions
5188
+ */
5189
+ signWaasConfidentialTransactionRaw(requestParameters: SignWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
5190
+ /**
5191
+ * 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.
5192
+ * Co-sign enclave-built confidential-transfer transactions
5193
+ */
5194
+ signWaasConfidentialTransaction(requestParameters: SignWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
5195
+ /**
5196
+ * Options call for this endpoint
5197
+ */
5198
+ signWaasConfidentialTransactionOptionsRaw(requestParameters: SignWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
5199
+ /**
5200
+ * Options call for this endpoint
5201
+ */
5202
+ signWaasConfidentialTransactionOptions(requestParameters: SignWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
5122
5203
  /**
5123
5204
  * 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.
5124
5205
  * Co-sign enclave-built confidential-transfer transactions
@@ -151,6 +151,7 @@ import { FlowRecordBroadcastRequestToJSON } from '../models/FlowRecordBroadcastR
151
151
  import '../models/FlowRiskStateEnum.js';
152
152
  import '../models/FlowSettlementStateEnum.js';
153
153
  import { FlowSourceResponseFromJSON } from '../models/FlowSourceResponse.js';
154
+ import { FlowSourceTokenOptionsResponseFromJSON } from '../models/FlowSourceTokenOptionsResponse.js';
154
155
  import '../models/OnrampProviders.js';
155
156
  import { GeneratedTokenResponseFromJSON } from '../models/GeneratedTokenResponse.js';
156
157
  import { GetAvailableEVMGaslessRelayerResponseFromJSON } from '../models/GetAvailableEVMGaslessRelayerResponse.js';
@@ -1068,6 +1069,73 @@ class SDKApi extends BaseAPI {
1068
1069
  async broadcastWaasTransactionOptions(requestParameters, initOverrides) {
1069
1070
  await this.broadcastWaasTransactionOptionsRaw(requestParameters, initOverrides);
1070
1071
  }
1072
+ /**
1073
+ * 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.
1074
+ * Build Token-2022 confidential-transfer transactions
1075
+ */
1076
+ async buildWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
1077
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1078
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransaction.');
1079
+ }
1080
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1081
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransaction.');
1082
+ }
1083
+ if (requestParameters.waasSignConfidentialTransferRequest === null || requestParameters.waasSignConfidentialTransferRequest === undefined) {
1084
+ throw new RequiredError('waasSignConfidentialTransferRequest', 'Required parameter requestParameters.waasSignConfidentialTransferRequest was null or undefined when calling buildWaasConfidentialTransaction.');
1085
+ }
1086
+ const queryParameters = {};
1087
+ const headerParameters = {};
1088
+ headerParameters['Content-Type'] = 'application/json';
1089
+ if (this.configuration && this.configuration.accessToken) {
1090
+ const token = this.configuration.accessToken;
1091
+ const tokenString = await token("bearerAuth", []);
1092
+ if (tokenString) {
1093
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1094
+ }
1095
+ }
1096
+ const response = await this.request({
1097
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1098
+ method: 'POST',
1099
+ headers: headerParameters,
1100
+ query: queryParameters,
1101
+ body: WaasSignConfidentialTransferRequestToJSON(requestParameters.waasSignConfidentialTransferRequest),
1102
+ }, initOverrides);
1103
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
1104
+ }
1105
+ /**
1106
+ * 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.
1107
+ * Build Token-2022 confidential-transfer transactions
1108
+ */
1109
+ async buildWaasConfidentialTransaction(requestParameters, initOverrides) {
1110
+ const response = await this.buildWaasConfidentialTransactionRaw(requestParameters, initOverrides);
1111
+ return await response.value();
1112
+ }
1113
+ /**
1114
+ * Options call for this endpoint
1115
+ */
1116
+ async buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
1117
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1118
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1119
+ }
1120
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1121
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1122
+ }
1123
+ const queryParameters = {};
1124
+ const headerParameters = {};
1125
+ const response = await this.request({
1126
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1127
+ method: 'OPTIONS',
1128
+ headers: headerParameters,
1129
+ query: queryParameters,
1130
+ }, initOverrides);
1131
+ return new VoidApiResponse(response);
1132
+ }
1133
+ /**
1134
+ * Options call for this endpoint
1135
+ */
1136
+ async buildWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
1137
+ await this.buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
1138
+ }
1071
1139
  /**
1072
1140
  * Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
1073
1141
  * Cancel a checkout transaction
@@ -4767,6 +4835,67 @@ class SDKApi extends BaseAPI {
4767
4835
  async getFlowQuoteOptions(requestParameters, initOverrides) {
4768
4836
  await this.getFlowQuoteOptionsRaw(requestParameters, initOverrides);
4769
4837
  }
4838
+ /**
4839
+ * 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.
4840
+ * Get the supported tokens for a flow source
4841
+ */
4842
+ async getFlowSourceTokenOptionsRaw(requestParameters, initOverrides) {
4843
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4844
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptions.');
4845
+ }
4846
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4847
+ throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptions.');
4848
+ }
4849
+ if (requestParameters.sourceType === null || requestParameters.sourceType === undefined) {
4850
+ throw new RequiredError('sourceType', 'Required parameter requestParameters.sourceType was null or undefined when calling getFlowSourceTokenOptions.');
4851
+ }
4852
+ const queryParameters = {};
4853
+ if (requestParameters.sourceType !== undefined) {
4854
+ queryParameters['sourceType'] = requestParameters.sourceType;
4855
+ }
4856
+ const headerParameters = {};
4857
+ const response = await this.request({
4858
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4859
+ method: 'GET',
4860
+ headers: headerParameters,
4861
+ query: queryParameters,
4862
+ }, initOverrides);
4863
+ return new JSONApiResponse(response, (jsonValue) => FlowSourceTokenOptionsResponseFromJSON(jsonValue));
4864
+ }
4865
+ /**
4866
+ * 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.
4867
+ * Get the supported tokens for a flow source
4868
+ */
4869
+ async getFlowSourceTokenOptions(requestParameters, initOverrides) {
4870
+ const response = await this.getFlowSourceTokenOptionsRaw(requestParameters, initOverrides);
4871
+ return await response.value();
4872
+ }
4873
+ /**
4874
+ * Options call for this endpoint
4875
+ */
4876
+ async getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides) {
4877
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4878
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4879
+ }
4880
+ if (requestParameters.flowId === null || requestParameters.flowId === undefined) {
4881
+ throw new RequiredError('flowId', 'Required parameter requestParameters.flowId was null or undefined when calling getFlowSourceTokenOptionsOptions.');
4882
+ }
4883
+ const queryParameters = {};
4884
+ const headerParameters = {};
4885
+ const response = await this.request({
4886
+ path: `/sdk/{environmentId}/flow/{flowId}/sourceTokenOptions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"flowId"}}`, encodeURIComponent(String(requestParameters.flowId))),
4887
+ method: 'OPTIONS',
4888
+ headers: headerParameters,
4889
+ query: queryParameters,
4890
+ }, initOverrides);
4891
+ return new VoidApiResponse(response);
4892
+ }
4893
+ /**
4894
+ * Options call for this endpoint
4895
+ */
4896
+ async getFlowSourceTokenOptionsOptions(requestParameters, initOverrides) {
4897
+ await this.getFlowSourceTokenOptionsOptionsRaw(requestParameters, initOverrides);
4898
+ }
4770
4899
  /**
4771
4900
  * Returns the global wallet settings configured for the specified environment.
4772
4901
  * Get the global wallet settings for the environment
@@ -11694,6 +11823,73 @@ class SDKApi extends BaseAPI {
11694
11823
  async signMessageOptions(requestParameters, initOverrides) {
11695
11824
  await this.signMessageOptionsRaw(requestParameters, initOverrides);
11696
11825
  }
11826
+ /**
11827
+ * 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.
11828
+ * Co-sign enclave-built confidential-transfer transactions
11829
+ */
11830
+ async signWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
11831
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11832
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransaction.');
11833
+ }
11834
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11835
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransaction.');
11836
+ }
11837
+ if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
11838
+ throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransaction.');
11839
+ }
11840
+ const queryParameters = {};
11841
+ const headerParameters = {};
11842
+ headerParameters['Content-Type'] = 'application/json';
11843
+ if (this.configuration && this.configuration.accessToken) {
11844
+ const token = this.configuration.accessToken;
11845
+ const tokenString = await token("bearerAuth", []);
11846
+ if (tokenString) {
11847
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
11848
+ }
11849
+ }
11850
+ const response = await this.request({
11851
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11852
+ method: 'POST',
11853
+ headers: headerParameters,
11854
+ query: queryParameters,
11855
+ body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
11856
+ }, initOverrides);
11857
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
11858
+ }
11859
+ /**
11860
+ * 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.
11861
+ * Co-sign enclave-built confidential-transfer transactions
11862
+ */
11863
+ async signWaasConfidentialTransaction(requestParameters, initOverrides) {
11864
+ const response = await this.signWaasConfidentialTransactionRaw(requestParameters, initOverrides);
11865
+ return await response.value();
11866
+ }
11867
+ /**
11868
+ * Options call for this endpoint
11869
+ */
11870
+ async signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
11871
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11872
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionOptions.');
11873
+ }
11874
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11875
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionOptions.');
11876
+ }
11877
+ const queryParameters = {};
11878
+ const headerParameters = {};
11879
+ const response = await this.request({
11880
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11881
+ method: 'OPTIONS',
11882
+ headers: headerParameters,
11883
+ query: queryParameters,
11884
+ }, initOverrides);
11885
+ return new VoidApiResponse(response);
11886
+ }
11887
+ /**
11888
+ * Options call for this endpoint
11889
+ */
11890
+ async signWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
11891
+ await this.signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
11892
+ }
11697
11893
  /**
11698
11894
  * 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.
11699
11895
  * Co-sign enclave-built confidential-transfer transactions