@dynamic-labs/sdk-api-core 0.151.0 → 0.153.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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +255 -0
  3. package/src/apis/SDKApi.cjs.map +1 -1
  4. package/src/apis/SDKApi.d.ts +105 -1
  5. package/src/apis/SDKApi.js +255 -0
  6. package/src/apis/SDKApi.js.map +1 -1
  7. package/src/apis/WaasApi.cjs +1 -0
  8. package/src/apis/WaasApi.cjs.map +1 -1
  9. package/src/apis/WaasApi.js +1 -0
  10. package/src/apis/WaasApi.js.map +1 -1
  11. package/src/index.cjs +20 -0
  12. package/src/index.cjs.map +1 -1
  13. package/src/index.js +3 -0
  14. package/src/index.js.map +1 -1
  15. package/src/models/AcceptBusinessAccountInviteResponse.cjs +36 -0
  16. package/src/models/AcceptBusinessAccountInviteResponse.cjs.map +1 -0
  17. package/src/models/AcceptBusinessAccountInviteResponse.d.ts +35 -0
  18. package/src/models/AcceptBusinessAccountInviteResponse.js +30 -0
  19. package/src/models/AcceptBusinessAccountInviteResponse.js.map +1 -0
  20. package/src/models/BusinessAccountInvite.cjs +70 -0
  21. package/src/models/BusinessAccountInvite.cjs.map +1 -0
  22. package/src/models/BusinessAccountInvite.d.ts +103 -0
  23. package/src/models/BusinessAccountInvite.js +64 -0
  24. package/src/models/BusinessAccountInvite.js.map +1 -0
  25. package/src/models/BusinessAccountInviteListResponse.cjs +33 -0
  26. package/src/models/BusinessAccountInviteListResponse.cjs.map +1 -0
  27. package/src/models/BusinessAccountInviteListResponse.d.ts +28 -0
  28. package/src/models/BusinessAccountInviteListResponse.js +27 -0
  29. package/src/models/BusinessAccountInviteListResponse.js.map +1 -0
  30. package/src/models/index.d.ts +3 -0
  31. package/src/version.cjs +1 -1
  32. package/src/version.js +1 -1
@@ -10,7 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountList, BusinessAccountMember, 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, 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
+ export interface AcceptBusinessAccountInviteRequest {
15
+ environmentId: string;
16
+ inviteId: string;
17
+ }
18
+ export interface AcceptBusinessAccountInviteOptionsRequest {
19
+ environmentId: string;
20
+ inviteId: string;
21
+ }
14
22
  export interface AttachFlowSourceRequest {
15
23
  environmentId: string;
16
24
  flowId: string;
@@ -96,6 +104,15 @@ export interface BroadcastWaasTransactionOptionsRequest {
96
104
  environmentId: string;
97
105
  walletId: string;
98
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
+ }
99
116
  export interface CancelCheckoutTransactionRequest {
100
117
  environmentId: string;
101
118
  transactionId: string;
@@ -459,6 +476,12 @@ export interface GetBackupTokenRequest {
459
476
  export interface GetBackupTokenOptionsRequest {
460
477
  environmentId: string;
461
478
  }
479
+ export interface GetBusinessAccountInvitesRequest {
480
+ environmentId: string;
481
+ }
482
+ export interface GetBusinessAccountInvitesOptionsRequest {
483
+ environmentId: string;
484
+ }
462
485
  export interface GetBusinessAccountPolicyLayerRequest {
463
486
  environmentId: string;
464
487
  businessAccountId: string;
@@ -1496,6 +1519,15 @@ export interface SignMessageOptionsRequest {
1496
1519
  environmentId: string;
1497
1520
  walletId: string;
1498
1521
  }
1522
+ export interface SignWaasConfidentialTransactionRequest {
1523
+ environmentId: string;
1524
+ walletId: string;
1525
+ waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
1526
+ }
1527
+ export interface SignWaasConfidentialTransactionOptionsRequest {
1528
+ environmentId: string;
1529
+ walletId: string;
1530
+ }
1499
1531
  export interface SignWaasConfidentialTransactionsRequest {
1500
1532
  environmentId: string;
1501
1533
  walletId: string;
@@ -1815,6 +1847,24 @@ export interface YieldVaultWithdrawOptionsRequest {
1815
1847
  *
1816
1848
  */
1817
1849
  export declare class SDKApi extends runtime.BaseAPI {
1850
+ /**
1851
+ * Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
1852
+ * Accept a pending business account invitation
1853
+ */
1854
+ acceptBusinessAccountInviteRaw(requestParameters: AcceptBusinessAccountInviteRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AcceptBusinessAccountInviteResponse>>;
1855
+ /**
1856
+ * Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
1857
+ * Accept a pending business account invitation
1858
+ */
1859
+ acceptBusinessAccountInvite(requestParameters: AcceptBusinessAccountInviteRequest, initOverrides?: RequestInit): Promise<AcceptBusinessAccountInviteResponse>;
1860
+ /**
1861
+ * Options call for this endpoint
1862
+ */
1863
+ acceptBusinessAccountInviteOptionsRaw(requestParameters: AcceptBusinessAccountInviteOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1864
+ /**
1865
+ * Options call for this endpoint
1866
+ */
1867
+ acceptBusinessAccountInviteOptions(requestParameters: AcceptBusinessAccountInviteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1818
1868
  /**
1819
1869
  * Sets the source wallet address and chain on a flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow\'s state and by CORS. A source can be attached while the flow is initiated, source_attached, quoted or signing, so a payer can switch source before broadcasting. Unlike quote, prepare, broadcast and cancel, which always require the session token, attach needs no token for the first attach or while the flow is source_attached or quoted. From signing, the current session token must be supplied (X-Dynamic-Flow-Session-Token) to prove the caller is the original signer; otherwise the request is rejected with 403 session_token_invalid. Once the flow has been broadcasted or source_detected, or has reached a terminal state, the request is rejected with 409 flow_invalid_transition. Each attach mints a new session token and invalidates the previous one, so at most one live token exists per flow at a time.
1820
1870
  * Attach a source to a flow and mint a session token
@@ -1993,6 +2043,24 @@ export declare class SDKApi extends runtime.BaseAPI {
1993
2043
  * Options call for this endpoint
1994
2044
  */
1995
2045
  broadcastWaasTransactionOptions(requestParameters: BroadcastWaasTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2046
+ /**
2047
+ * 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.
2048
+ * Build Token-2022 confidential-transfer transactions
2049
+ */
2050
+ buildWaasConfidentialTransactionRaw(requestParameters: BuildWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
2051
+ /**
2052
+ * 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.
2053
+ * Build Token-2022 confidential-transfer transactions
2054
+ */
2055
+ buildWaasConfidentialTransaction(requestParameters: BuildWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
2056
+ /**
2057
+ * Options call for this endpoint
2058
+ */
2059
+ buildWaasConfidentialTransactionOptionsRaw(requestParameters: BuildWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2060
+ /**
2061
+ * Options call for this endpoint
2062
+ */
2063
+ buildWaasConfidentialTransactionOptions(requestParameters: BuildWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1996
2064
  /**
1997
2065
  * Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
1998
2066
  * Cancel a checkout transaction
@@ -2807,6 +2875,24 @@ export declare class SDKApi extends runtime.BaseAPI {
2807
2875
  * Options call for this endpoint
2808
2876
  */
2809
2877
  getBackupTokenOptions(requestParameters: GetBackupTokenOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2878
+ /**
2879
+ * Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
2880
+ * List the authenticated user\'s pending business account invitations
2881
+ */
2882
+ getBusinessAccountInvitesRaw(requestParameters: GetBusinessAccountInvitesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountInviteListResponse>>;
2883
+ /**
2884
+ * Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
2885
+ * List the authenticated user\'s pending business account invitations
2886
+ */
2887
+ getBusinessAccountInvites(requestParameters: GetBusinessAccountInvitesRequest, initOverrides?: RequestInit): Promise<BusinessAccountInviteListResponse>;
2888
+ /**
2889
+ * Options call for this endpoint
2890
+ */
2891
+ getBusinessAccountInvitesOptionsRaw(requestParameters: GetBusinessAccountInvitesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2892
+ /**
2893
+ * Options call for this endpoint
2894
+ */
2895
+ getBusinessAccountInvitesOptions(requestParameters: GetBusinessAccountInvitesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2810
2896
  /**
2811
2897
  * Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
2812
2898
  * Get the business account\'s account-Layer Rules
@@ -5069,6 +5155,24 @@ export declare class SDKApi extends runtime.BaseAPI {
5069
5155
  * Options call for this endpoint
5070
5156
  */
5071
5157
  signMessageOptions(requestParameters: SignMessageOptionsRequest, initOverrides?: RequestInit): Promise<void>;
5158
+ /**
5159
+ * 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.
5160
+ * Co-sign enclave-built confidential-transfer transactions
5161
+ */
5162
+ signWaasConfidentialTransactionRaw(requestParameters: SignWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
5163
+ /**
5164
+ * 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.
5165
+ * Co-sign enclave-built confidential-transfer transactions
5166
+ */
5167
+ signWaasConfidentialTransaction(requestParameters: SignWaasConfidentialTransactionRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
5168
+ /**
5169
+ * Options call for this endpoint
5170
+ */
5171
+ signWaasConfidentialTransactionOptionsRaw(requestParameters: SignWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
5172
+ /**
5173
+ * Options call for this endpoint
5174
+ */
5175
+ signWaasConfidentialTransactionOptions(requestParameters: SignWaasConfidentialTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
5072
5176
  /**
5073
5177
  * 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.
5074
5178
  * Co-sign enclave-built confidential-transfer transactions
@@ -1,4 +1,5 @@
1
1
  import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse, TextApiResponse, canConsumeForm } from '../runtime.js';
2
+ import { AcceptBusinessAccountInviteResponseFromJSON } from '../models/AcceptBusinessAccountInviteResponse.js';
2
3
  import { AccountFromJSON } from '../models/Account.js';
3
4
  import '../models/ProviderEnum.js';
4
5
  import '../models/UserIdentifierTypeEnum.js';
@@ -53,6 +54,8 @@ import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.j
53
54
  import '../models/ChainEnum.js';
54
55
  import { BusinessAccountGovernanceResponseFromJSON } from '../models/BusinessAccountGovernanceResponse.js';
55
56
  import '../models/BusinessAccountGovernedAction.js';
57
+ import '../models/BusinessAccountInvite.js';
58
+ import { BusinessAccountInviteListResponseFromJSON } from '../models/BusinessAccountInviteListResponse.js';
56
59
  import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
57
60
  import { BusinessAccountMemberCreationResultFromJSON } from '../models/BusinessAccountMemberCreationResult.js';
58
61
  import '../models/BusinessAccountMemberInviteReceipt.js';
@@ -372,6 +375,68 @@ import { YieldVaultRewardsResponseFromJSON } from '../models/YieldVaultRewardsRe
372
375
  *
373
376
  */
374
377
  class SDKApi extends BaseAPI {
378
+ /**
379
+ * Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
380
+ * Accept a pending business account invitation
381
+ */
382
+ async acceptBusinessAccountInviteRaw(requestParameters, initOverrides) {
383
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
384
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInvite.');
385
+ }
386
+ if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
387
+ throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInvite.');
388
+ }
389
+ const queryParameters = {};
390
+ const headerParameters = {};
391
+ if (this.configuration && this.configuration.accessToken) {
392
+ const token = this.configuration.accessToken;
393
+ const tokenString = await token("bearerAuth", []);
394
+ if (tokenString) {
395
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
396
+ }
397
+ }
398
+ const response = await this.request({
399
+ path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
400
+ method: 'POST',
401
+ headers: headerParameters,
402
+ query: queryParameters,
403
+ }, initOverrides);
404
+ return new JSONApiResponse(response, (jsonValue) => AcceptBusinessAccountInviteResponseFromJSON(jsonValue));
405
+ }
406
+ /**
407
+ * Activates the authenticated user\'s pending RBAC membership and creates their business account member record atomically. The target user is always the authenticated JWT subject. Repeating a successful acceptance returns the same accepted invitation and active member.
408
+ * Accept a pending business account invitation
409
+ */
410
+ async acceptBusinessAccountInvite(requestParameters, initOverrides) {
411
+ const response = await this.acceptBusinessAccountInviteRaw(requestParameters, initOverrides);
412
+ return await response.value();
413
+ }
414
+ /**
415
+ * Options call for this endpoint
416
+ */
417
+ async acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides) {
418
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
419
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling acceptBusinessAccountInviteOptions.');
420
+ }
421
+ if (requestParameters.inviteId === null || requestParameters.inviteId === undefined) {
422
+ throw new RequiredError('inviteId', 'Required parameter requestParameters.inviteId was null or undefined when calling acceptBusinessAccountInviteOptions.');
423
+ }
424
+ const queryParameters = {};
425
+ const headerParameters = {};
426
+ const response = await this.request({
427
+ path: `/sdk/{environmentId}/businessAccounts/invites/{inviteId}/accept`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"inviteId"}}`, encodeURIComponent(String(requestParameters.inviteId))),
428
+ method: 'OPTIONS',
429
+ headers: headerParameters,
430
+ query: queryParameters,
431
+ }, initOverrides);
432
+ return new VoidApiResponse(response);
433
+ }
434
+ /**
435
+ * Options call for this endpoint
436
+ */
437
+ async acceptBusinessAccountInviteOptions(requestParameters, initOverrides) {
438
+ await this.acceptBusinessAccountInviteOptionsRaw(requestParameters, initOverrides);
439
+ }
375
440
  /**
376
441
  * Sets the source wallet address and chain on a flow and mints the capability sessionToken used to drive the rest of the lifecycle. No API key or token is required (the browser has neither at this point) — the endpoint is gated by the flow\'s state and by CORS. A source can be attached while the flow is initiated, source_attached, quoted or signing, so a payer can switch source before broadcasting. Unlike quote, prepare, broadcast and cancel, which always require the session token, attach needs no token for the first attach or while the flow is source_attached or quoted. From signing, the current session token must be supplied (X-Dynamic-Flow-Session-Token) to prove the caller is the original signer; otherwise the request is rejected with 403 session_token_invalid. Once the flow has been broadcasted or source_detected, or has reached a terminal state, the request is rejected with 409 flow_invalid_transition. Each attach mints a new session token and invalidates the previous one, so at most one live token exists per flow at a time.
377
442
  * Attach a source to a flow and mint a session token
@@ -1003,6 +1068,73 @@ class SDKApi extends BaseAPI {
1003
1068
  async broadcastWaasTransactionOptions(requestParameters, initOverrides) {
1004
1069
  await this.broadcastWaasTransactionOptionsRaw(requestParameters, initOverrides);
1005
1070
  }
1071
+ /**
1072
+ * 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.
1073
+ * Build Token-2022 confidential-transfer transactions
1074
+ */
1075
+ async buildWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
1076
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1077
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransaction.');
1078
+ }
1079
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1080
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransaction.');
1081
+ }
1082
+ if (requestParameters.waasSignConfidentialTransferRequest === null || requestParameters.waasSignConfidentialTransferRequest === undefined) {
1083
+ throw new RequiredError('waasSignConfidentialTransferRequest', 'Required parameter requestParameters.waasSignConfidentialTransferRequest was null or undefined when calling buildWaasConfidentialTransaction.');
1084
+ }
1085
+ const queryParameters = {};
1086
+ const headerParameters = {};
1087
+ headerParameters['Content-Type'] = 'application/json';
1088
+ if (this.configuration && this.configuration.accessToken) {
1089
+ const token = this.configuration.accessToken;
1090
+ const tokenString = await token("bearerAuth", []);
1091
+ if (tokenString) {
1092
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1093
+ }
1094
+ }
1095
+ const response = await this.request({
1096
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1097
+ method: 'POST',
1098
+ headers: headerParameters,
1099
+ query: queryParameters,
1100
+ body: WaasSignConfidentialTransferRequestToJSON(requestParameters.waasSignConfidentialTransferRequest),
1101
+ }, initOverrides);
1102
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
1103
+ }
1104
+ /**
1105
+ * 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.
1106
+ * Build Token-2022 confidential-transfer transactions
1107
+ */
1108
+ async buildWaasConfidentialTransaction(requestParameters, initOverrides) {
1109
+ const response = await this.buildWaasConfidentialTransactionRaw(requestParameters, initOverrides);
1110
+ return await response.value();
1111
+ }
1112
+ /**
1113
+ * Options call for this endpoint
1114
+ */
1115
+ async buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
1116
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1117
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1118
+ }
1119
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
1120
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling buildWaasConfidentialTransactionOptions.');
1121
+ }
1122
+ const queryParameters = {};
1123
+ const headerParameters = {};
1124
+ const response = await this.request({
1125
+ path: `/sdk/{environmentId}/waas/{walletId}/buildConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
1126
+ method: 'OPTIONS',
1127
+ headers: headerParameters,
1128
+ query: queryParameters,
1129
+ }, initOverrides);
1130
+ return new VoidApiResponse(response);
1131
+ }
1132
+ /**
1133
+ * Options call for this endpoint
1134
+ */
1135
+ async buildWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
1136
+ await this.buildWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
1137
+ }
1006
1138
  /**
1007
1139
  * Deprecated: use POST /sdk/{environmentId}/flow/{flowId}/cancel instead. Cancels a pre-broadcast transaction. Only allowed before the transaction is broadcasted.
1008
1140
  * Cancel a checkout transaction
@@ -3818,6 +3950,62 @@ class SDKApi extends BaseAPI {
3818
3950
  async getBackupTokenOptions(requestParameters, initOverrides) {
3819
3951
  await this.getBackupTokenOptionsRaw(requestParameters, initOverrides);
3820
3952
  }
3953
+ /**
3954
+ * Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
3955
+ * List the authenticated user\'s pending business account invitations
3956
+ */
3957
+ async getBusinessAccountInvitesRaw(requestParameters, initOverrides) {
3958
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3959
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvites.');
3960
+ }
3961
+ const queryParameters = {};
3962
+ const headerParameters = {};
3963
+ if (this.configuration && this.configuration.accessToken) {
3964
+ const token = this.configuration.accessToken;
3965
+ const tokenString = await token("bearerAuth", []);
3966
+ if (tokenString) {
3967
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3968
+ }
3969
+ }
3970
+ const response = await this.request({
3971
+ path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3972
+ method: 'GET',
3973
+ headers: headerParameters,
3974
+ query: queryParameters,
3975
+ }, initOverrides);
3976
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountInviteListResponseFromJSON(jsonValue));
3977
+ }
3978
+ /**
3979
+ * Returns unexpired invitations sent to the authenticated user in this environment. Invitee identity comes exclusively from the authenticated JWT and cannot be supplied in the request.
3980
+ * List the authenticated user\'s pending business account invitations
3981
+ */
3982
+ async getBusinessAccountInvites(requestParameters, initOverrides) {
3983
+ const response = await this.getBusinessAccountInvitesRaw(requestParameters, initOverrides);
3984
+ return await response.value();
3985
+ }
3986
+ /**
3987
+ * Options call for this endpoint
3988
+ */
3989
+ async getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides) {
3990
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3991
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getBusinessAccountInvitesOptions.');
3992
+ }
3993
+ const queryParameters = {};
3994
+ const headerParameters = {};
3995
+ const response = await this.request({
3996
+ path: `/sdk/{environmentId}/businessAccounts/invites`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3997
+ method: 'OPTIONS',
3998
+ headers: headerParameters,
3999
+ query: queryParameters,
4000
+ }, initOverrides);
4001
+ return new VoidApiResponse(response);
4002
+ }
4003
+ /**
4004
+ * Options call for this endpoint
4005
+ */
4006
+ async getBusinessAccountInvitesOptions(requestParameters, initOverrides) {
4007
+ await this.getBusinessAccountInvitesOptionsRaw(requestParameters, initOverrides);
4008
+ }
3821
4009
  /**
3822
4010
  * Returns the Composition account-Layer content for the business account — the Rules that apply to every wallet in the business account. BA owner/admin only. Returns 404 if the caller is not a qualifying owner/admin of the business account, or if the account-Layer has not been minted yet (it\'s created by the first PATCH to this path, or the first time a signer is added to a wallet in this business account with Composition enabled — see the PATCH docs on this same path).
3823
4011
  * Get the business account\'s account-Layer Rules
@@ -11573,6 +11761,73 @@ class SDKApi extends BaseAPI {
11573
11761
  async signMessageOptions(requestParameters, initOverrides) {
11574
11762
  await this.signMessageOptionsRaw(requestParameters, initOverrides);
11575
11763
  }
11764
+ /**
11765
+ * 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.
11766
+ * Co-sign enclave-built confidential-transfer transactions
11767
+ */
11768
+ async signWaasConfidentialTransactionRaw(requestParameters, initOverrides) {
11769
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11770
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransaction.');
11771
+ }
11772
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11773
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransaction.');
11774
+ }
11775
+ if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
11776
+ throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransaction.');
11777
+ }
11778
+ const queryParameters = {};
11779
+ const headerParameters = {};
11780
+ headerParameters['Content-Type'] = 'application/json';
11781
+ if (this.configuration && this.configuration.accessToken) {
11782
+ const token = this.configuration.accessToken;
11783
+ const tokenString = await token("bearerAuth", []);
11784
+ if (tokenString) {
11785
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
11786
+ }
11787
+ }
11788
+ const response = await this.request({
11789
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11790
+ method: 'POST',
11791
+ headers: headerParameters,
11792
+ query: queryParameters,
11793
+ body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
11794
+ }, initOverrides);
11795
+ return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
11796
+ }
11797
+ /**
11798
+ * 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.
11799
+ * Co-sign enclave-built confidential-transfer transactions
11800
+ */
11801
+ async signWaasConfidentialTransaction(requestParameters, initOverrides) {
11802
+ const response = await this.signWaasConfidentialTransactionRaw(requestParameters, initOverrides);
11803
+ return await response.value();
11804
+ }
11805
+ /**
11806
+ * Options call for this endpoint
11807
+ */
11808
+ async signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides) {
11809
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
11810
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionOptions.');
11811
+ }
11812
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
11813
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionOptions.');
11814
+ }
11815
+ const queryParameters = {};
11816
+ const headerParameters = {};
11817
+ const response = await this.request({
11818
+ path: `/sdk/{environmentId}/waas/{walletId}/signConfidentialTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
11819
+ method: 'OPTIONS',
11820
+ headers: headerParameters,
11821
+ query: queryParameters,
11822
+ }, initOverrides);
11823
+ return new VoidApiResponse(response);
11824
+ }
11825
+ /**
11826
+ * Options call for this endpoint
11827
+ */
11828
+ async signWaasConfidentialTransactionOptions(requestParameters, initOverrides) {
11829
+ await this.signWaasConfidentialTransactionOptionsRaw(requestParameters, initOverrides);
11830
+ }
11576
11831
  /**
11577
11832
  * 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.
11578
11833
  * Co-sign enclave-built confidential-transfer transactions