@dynamic-labs/sdk-api-core 0.0.1075 → 0.0.1077

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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +187 -5
  3. package/src/apis/SDKApi.cjs.map +1 -1
  4. package/src/apis/SDKApi.d.ts +78 -7
  5. package/src/apis/SDKApi.js +187 -5
  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 +16 -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/InlineResponse2007.cjs +3 -3
  16. package/src/models/InlineResponse2007.cjs.map +1 -1
  17. package/src/models/InlineResponse2007.d.ts +3 -3
  18. package/src/models/InlineResponse2007.js +3 -3
  19. package/src/models/InlineResponse2008.cjs +33 -0
  20. package/src/models/InlineResponse2008.cjs.map +1 -0
  21. package/src/models/InlineResponse2008.d.ts +28 -0
  22. package/src/models/InlineResponse2008.js +27 -0
  23. package/src/models/InlineResponse2008.js.map +1 -0
  24. package/src/models/TransferBusinessAccountOwnershipSdkRequest.cjs +43 -0
  25. package/src/models/TransferBusinessAccountOwnershipSdkRequest.cjs.map +1 -0
  26. package/src/models/TransferBusinessAccountOwnershipSdkRequest.d.ts +27 -0
  27. package/src/models/TransferBusinessAccountOwnershipSdkRequest.js +37 -0
  28. package/src/models/TransferBusinessAccountOwnershipSdkRequest.js.map +1 -0
  29. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.cjs +52 -0
  30. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.cjs.map +1 -0
  31. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.d.ts +35 -0
  32. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.js +46 -0
  33. package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.js.map +1 -0
  34. package/src/models/index.d.ts +3 -0
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, BusinessAccountSigner, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, 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, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, 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, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, 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, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
13
+ import { Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, BusinessAccountSigner, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, 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, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, JwksResponse, 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, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, 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, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
14
14
  export interface AttachFlowSourceRequest {
15
15
  environmentId: string;
16
16
  flowId: string;
@@ -1076,10 +1076,19 @@ export interface SdkBusinessAccountByIdOptionsRequest {
1076
1076
  export interface SdkBusinessAccountLinkWalletOptionsRequest {
1077
1077
  environmentId: string;
1078
1078
  }
1079
+ export interface SdkBusinessAccountMemberByUserOptionsRequest {
1080
+ environmentId: string;
1081
+ businessAccountId: string;
1082
+ userId: string;
1083
+ }
1079
1084
  export interface SdkBusinessAccountMembersOptionsRequest {
1080
1085
  environmentId: string;
1081
1086
  businessAccountId: string;
1082
1087
  }
1088
+ export interface SdkBusinessAccountTransferOwnershipOptionsRequest {
1089
+ environmentId: string;
1090
+ businessAccountId: string;
1091
+ }
1083
1092
  export interface SdkBusinessAccountWalletSignerOptionsRequest {
1084
1093
  environmentId: string;
1085
1094
  businessAccountId: string;
@@ -1109,6 +1118,11 @@ export interface SdkLinkBusinessAccountWalletRequest {
1109
1118
  export interface SdkListBusinessAccountsRequest {
1110
1119
  environmentId: string;
1111
1120
  }
1121
+ export interface SdkRemoveBusinessAccountMemberRequest {
1122
+ environmentId: string;
1123
+ businessAccountId: string;
1124
+ userId: string;
1125
+ }
1112
1126
  export interface SdkRemoveBusinessAccountSignerRequest {
1113
1127
  environmentId: string;
1114
1128
  businessAccountId: string;
@@ -1118,6 +1132,17 @@ export interface SdkRemoveBusinessAccountSignerRequest {
1118
1132
  export interface SdkSettingsOptionsRequest {
1119
1133
  environmentId: string;
1120
1134
  }
1135
+ export interface SdkTransferBusinessAccountOwnershipRequest {
1136
+ environmentId: string;
1137
+ businessAccountId: string;
1138
+ transferBusinessAccountOwnershipSdkRequest: TransferBusinessAccountOwnershipSdkRequest;
1139
+ }
1140
+ export interface SdkUpdateBusinessAccountMemberRoleRequest {
1141
+ environmentId: string;
1142
+ businessAccountId: string;
1143
+ userId: string;
1144
+ updateBusinessAccountMemberRoleSdkRequest: UpdateBusinessAccountMemberRoleSdkRequest;
1145
+ }
1121
1146
  export interface SelectUserWalletRequest {
1122
1147
  environmentId: string;
1123
1148
  userWalletSelectionRequest: UserWalletSelectionRequest;
@@ -1619,12 +1644,12 @@ export declare class SDKApi extends runtime.BaseAPI {
1619
1644
  */
1620
1645
  checkSsoProvider(requestParameters: CheckSsoProviderRequest, initOverrides?: RequestInit): Promise<SsoProviderCheckResponse>;
1621
1646
  /**
1622
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1647
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1623
1648
  * Check if a wallet address is sanctioned
1624
1649
  */
1625
1650
  checkWalletSanctionsRaw(requestParameters: CheckWalletSanctionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WalletSanctionsResponse>>;
1626
1651
  /**
1627
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1652
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1628
1653
  * Check if a wallet address is sanctioned
1629
1654
  */
1630
1655
  checkWalletSanctions(requestParameters: CheckWalletSanctionsRequest, initOverrides?: RequestInit): Promise<WalletSanctionsResponse>;
@@ -3798,6 +3823,14 @@ export declare class SDKApi extends runtime.BaseAPI {
3798
3823
  * Options call for this endpoint
3799
3824
  */
3800
3825
  sdkBusinessAccountLinkWalletOptions(requestParameters: SdkBusinessAccountLinkWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3826
+ /**
3827
+ * Options call for this endpoint
3828
+ */
3829
+ sdkBusinessAccountMemberByUserOptionsRaw(requestParameters: SdkBusinessAccountMemberByUserOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3830
+ /**
3831
+ * Options call for this endpoint
3832
+ */
3833
+ sdkBusinessAccountMemberByUserOptions(requestParameters: SdkBusinessAccountMemberByUserOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3801
3834
  /**
3802
3835
  * Options call for this endpoint
3803
3836
  */
@@ -3806,6 +3839,14 @@ export declare class SDKApi extends runtime.BaseAPI {
3806
3839
  * Options call for this endpoint
3807
3840
  */
3808
3841
  sdkBusinessAccountMembersOptions(requestParameters: SdkBusinessAccountMembersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3842
+ /**
3843
+ * Options call for this endpoint
3844
+ */
3845
+ sdkBusinessAccountTransferOwnershipOptionsRaw(requestParameters: SdkBusinessAccountTransferOwnershipOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3846
+ /**
3847
+ * Options call for this endpoint
3848
+ */
3849
+ sdkBusinessAccountTransferOwnershipOptions(requestParameters: SdkBusinessAccountTransferOwnershipOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3809
3850
  /**
3810
3851
  * Options call for this endpoint
3811
3852
  */
@@ -3869,21 +3910,51 @@ export declare class SDKApi extends runtime.BaseAPI {
3869
3910
  */
3870
3911
  sdkListBusinessAccounts(requestParameters: SdkListBusinessAccountsRequest, initOverrides?: RequestInit): Promise<BusinessAccountList>;
3871
3912
  /**
3872
- * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
3913
+ * Owner-only. Removes the member and cascades: every one of that user\'s signer rows + share sets across the business account\'s wallets is soft-deleted in one transaction. Returns 409 if removing the member would leave any wallet with zero active signers.
3914
+ * SDK — remove a member from a business account
3915
+ */
3916
+ sdkRemoveBusinessAccountMemberRaw(requestParameters: SdkRemoveBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InlineResponse2007>>;
3917
+ /**
3918
+ * Owner-only. Removes the member and cascades: every one of that user\'s signer rows + share sets across the business account\'s wallets is soft-deleted in one transaction. Returns 409 if removing the member would leave any wallet with zero active signers.
3919
+ * SDK — remove a member from a business account
3920
+ */
3921
+ sdkRemoveBusinessAccountMember(requestParameters: SdkRemoveBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<InlineResponse2007>;
3922
+ /**
3923
+ * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
3873
3924
  * SDK — remove a signer from a wallet in a business account
3874
3925
  */
3875
- sdkRemoveBusinessAccountSignerRaw(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InlineResponse2007>>;
3926
+ sdkRemoveBusinessAccountSignerRaw(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InlineResponse2008>>;
3876
3927
  /**
3877
- * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
3928
+ * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
3878
3929
  * SDK — remove a signer from a wallet in a business account
3879
3930
  */
3880
- sdkRemoveBusinessAccountSigner(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<InlineResponse2007>;
3931
+ sdkRemoveBusinessAccountSigner(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<InlineResponse2008>;
3881
3932
  /**
3882
3933
  */
3883
3934
  sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3884
3935
  /**
3885
3936
  */
3886
3937
  sdkSettingsOptions(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3938
+ /**
3939
+ * Owner-only. Promotes the target user (must already be a member) to owner and demotes the current owner to admin, atomically. The signed RBAC doc always has exactly one owner.
3940
+ * SDK — transfer ownership of a business account
3941
+ */
3942
+ sdkTransferBusinessAccountOwnershipRaw(requestParameters: SdkTransferBusinessAccountOwnershipRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
3943
+ /**
3944
+ * Owner-only. Promotes the target user (must already be a member) to owner and demotes the current owner to admin, atomically. The signed RBAC doc always has exactly one owner.
3945
+ * SDK — transfer ownership of a business account
3946
+ */
3947
+ sdkTransferBusinessAccountOwnership(requestParameters: SdkTransferBusinessAccountOwnershipRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
3948
+ /**
3949
+ * Owner-only. Changes the member\'s role between admin and viewer. Owner is never a target — ownership moves via transferOwnership.
3950
+ * SDK — change a member\'s role (admin ↔ viewer)
3951
+ */
3952
+ sdkUpdateBusinessAccountMemberRoleRaw(requestParameters: SdkUpdateBusinessAccountMemberRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMember>>;
3953
+ /**
3954
+ * Owner-only. Changes the member\'s role between admin and viewer. Owner is never a target — ownership moves via transferOwnership.
3955
+ * SDK — change a member\'s role (admin ↔ viewer)
3956
+ */
3957
+ sdkUpdateBusinessAccountMemberRole(requestParameters: SdkUpdateBusinessAccountMemberRoleRequest, initOverrides?: RequestInit): Promise<BusinessAccountMember>;
3887
3958
  /**
3888
3959
  * When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
3889
3960
  * Update primary wallet selection
@@ -152,6 +152,7 @@ import { InlineResponse2004FromJSON } from '../models/InlineResponse2004.js';
152
152
  import { InlineResponse2005FromJSON } from '../models/InlineResponse2005.js';
153
153
  import { InlineResponse2006FromJSON } from '../models/InlineResponse2006.js';
154
154
  import { InlineResponse2007FromJSON } from '../models/InlineResponse2007.js';
155
+ import { InlineResponse2008FromJSON } from '../models/InlineResponse2008.js';
155
156
  import { JwksResponseFromJSON } from '../models/JwksResponse.js';
156
157
  import '../models/JwtScope.js';
157
158
  import '../models/MFAAction.js';
@@ -253,10 +254,12 @@ import { TelegramPostRequestToJSON } from '../models/TelegramPostRequest.js';
253
254
  import '../models/TokenScope.js';
254
255
  import { TransactionFeeEstimateRequestToJSON } from '../models/TransactionFeeEstimateRequest.js';
255
256
  import { TransactionFeeEstimateResponseFromJSON } from '../models/TransactionFeeEstimateResponse.js';
257
+ import { TransferBusinessAccountOwnershipSdkRequestToJSON } from '../models/TransferBusinessAccountOwnershipSdkRequest.js';
256
258
  import { TransferDestinationResponseFromJSON } from '../models/TransferDestinationResponse.js';
257
259
  import { TurnkeyCreateWalletAccountsRequestBodyFromJSON } from '../models/TurnkeyCreateWalletAccountsRequestBody.js';
258
260
  import { TurnkeyDeleteEmbeddedWalletsRequestBodyFromJSON } from '../models/TurnkeyDeleteEmbeddedWalletsRequestBody.js';
259
261
  import '../models/UnprocessableEntityErrorCode.js';
262
+ import { UpdateBusinessAccountMemberRoleSdkRequestToJSON } from '../models/UpdateBusinessAccountMemberRoleSdkRequest.js';
260
263
  import { UpdateRecoveryEmailRequestToJSON } from '../models/UpdateRecoveryEmailRequest.js';
261
264
  import { UpdateSelfResponseFromJSON } from '../models/UpdateSelfResponse.js';
262
265
  import { UpdateUserPasskeyRequestToJSON } from '../models/UpdateUserPasskeyRequest.js';
@@ -1061,7 +1064,7 @@ class SDKApi extends BaseAPI {
1061
1064
  return await response.value();
1062
1065
  }
1063
1066
  /**
1064
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1067
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1065
1068
  * Check if a wallet address is sanctioned
1066
1069
  */
1067
1070
  async checkWalletSanctionsRaw(requestParameters, initOverrides) {
@@ -1098,7 +1101,7 @@ class SDKApi extends BaseAPI {
1098
1101
  return new JSONApiResponse(response, (jsonValue) => WalletSanctionsResponseFromJSON(jsonValue));
1099
1102
  }
1100
1103
  /**
1101
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1104
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1102
1105
  * Check if a wallet address is sanctioned
1103
1106
  */
1104
1107
  async checkWalletSanctions(requestParameters, initOverrides) {
@@ -8405,6 +8408,35 @@ class SDKApi extends BaseAPI {
8405
8408
  async sdkBusinessAccountLinkWalletOptions(requestParameters, initOverrides) {
8406
8409
  await this.sdkBusinessAccountLinkWalletOptionsRaw(requestParameters, initOverrides);
8407
8410
  }
8411
+ /**
8412
+ * Options call for this endpoint
8413
+ */
8414
+ async sdkBusinessAccountMemberByUserOptionsRaw(requestParameters, initOverrides) {
8415
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8416
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberByUserOptions.');
8417
+ }
8418
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8419
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberByUserOptions.');
8420
+ }
8421
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
8422
+ throw new RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling sdkBusinessAccountMemberByUserOptions.');
8423
+ }
8424
+ const queryParameters = {};
8425
+ const headerParameters = {};
8426
+ const response = await this.request({
8427
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members/{userId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
8428
+ method: 'OPTIONS',
8429
+ headers: headerParameters,
8430
+ query: queryParameters,
8431
+ }, initOverrides);
8432
+ return new VoidApiResponse(response);
8433
+ }
8434
+ /**
8435
+ * Options call for this endpoint
8436
+ */
8437
+ async sdkBusinessAccountMemberByUserOptions(requestParameters, initOverrides) {
8438
+ await this.sdkBusinessAccountMemberByUserOptionsRaw(requestParameters, initOverrides);
8439
+ }
8408
8440
  /**
8409
8441
  * Options call for this endpoint
8410
8442
  */
@@ -8431,6 +8463,32 @@ class SDKApi extends BaseAPI {
8431
8463
  async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
8432
8464
  await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
8433
8465
  }
8466
+ /**
8467
+ * Options call for this endpoint
8468
+ */
8469
+ async sdkBusinessAccountTransferOwnershipOptionsRaw(requestParameters, initOverrides) {
8470
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8471
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountTransferOwnershipOptions.');
8472
+ }
8473
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8474
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountTransferOwnershipOptions.');
8475
+ }
8476
+ const queryParameters = {};
8477
+ const headerParameters = {};
8478
+ const response = await this.request({
8479
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/transferOwnership`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
8480
+ method: 'OPTIONS',
8481
+ headers: headerParameters,
8482
+ query: queryParameters,
8483
+ }, initOverrides);
8484
+ return new VoidApiResponse(response);
8485
+ }
8486
+ /**
8487
+ * Options call for this endpoint
8488
+ */
8489
+ async sdkBusinessAccountTransferOwnershipOptions(requestParameters, initOverrides) {
8490
+ await this.sdkBusinessAccountTransferOwnershipOptionsRaw(requestParameters, initOverrides);
8491
+ }
8434
8492
  /**
8435
8493
  * Options call for this endpoint
8436
8494
  */
@@ -8656,7 +8714,46 @@ class SDKApi extends BaseAPI {
8656
8714
  return await response.value();
8657
8715
  }
8658
8716
  /**
8659
- * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
8717
+ * Owner-only. Removes the member and cascades: every one of that user\'s signer rows + share sets across the business account\'s wallets is soft-deleted in one transaction. Returns 409 if removing the member would leave any wallet with zero active signers.
8718
+ * SDK — remove a member from a business account
8719
+ */
8720
+ async sdkRemoveBusinessAccountMemberRaw(requestParameters, initOverrides) {
8721
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8722
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountMember.');
8723
+ }
8724
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8725
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountMember.');
8726
+ }
8727
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
8728
+ throw new RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling sdkRemoveBusinessAccountMember.');
8729
+ }
8730
+ const queryParameters = {};
8731
+ const headerParameters = {};
8732
+ if (this.configuration && this.configuration.accessToken) {
8733
+ const token = this.configuration.accessToken;
8734
+ const tokenString = await token("bearerAuth", []);
8735
+ if (tokenString) {
8736
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8737
+ }
8738
+ }
8739
+ const response = await this.request({
8740
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members/{userId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
8741
+ method: 'DELETE',
8742
+ headers: headerParameters,
8743
+ query: queryParameters,
8744
+ }, initOverrides);
8745
+ return new JSONApiResponse(response, (jsonValue) => InlineResponse2007FromJSON(jsonValue));
8746
+ }
8747
+ /**
8748
+ * Owner-only. Removes the member and cascades: every one of that user\'s signer rows + share sets across the business account\'s wallets is soft-deleted in one transaction. Returns 409 if removing the member would leave any wallet with zero active signers.
8749
+ * SDK — remove a member from a business account
8750
+ */
8751
+ async sdkRemoveBusinessAccountMember(requestParameters, initOverrides) {
8752
+ const response = await this.sdkRemoveBusinessAccountMemberRaw(requestParameters, initOverrides);
8753
+ return await response.value();
8754
+ }
8755
+ /**
8756
+ * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
8660
8757
  * SDK — remove a signer from a wallet in a business account
8661
8758
  */
8662
8759
  async sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides) {
@@ -8687,10 +8784,10 @@ class SDKApi extends BaseAPI {
8687
8784
  headers: headerParameters,
8688
8785
  query: queryParameters,
8689
8786
  }, initOverrides);
8690
- return new JSONApiResponse(response, (jsonValue) => InlineResponse2007FromJSON(jsonValue));
8787
+ return new JSONApiResponse(response, (jsonValue) => InlineResponse2008FromJSON(jsonValue));
8691
8788
  }
8692
8789
  /**
8693
- * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorized callers: business-account owner or admin, OR the signer themselves (self-removal). Returns 409 if removing the signer would leave the wallet with zero active signers.
8790
+ * Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
8694
8791
  * SDK — remove a signer from a wallet in a business account
8695
8792
  */
8696
8793
  async sdkRemoveBusinessAccountSigner(requestParameters, initOverrides) {
@@ -8718,6 +8815,91 @@ class SDKApi extends BaseAPI {
8718
8815
  async sdkSettingsOptions(requestParameters, initOverrides) {
8719
8816
  await this.sdkSettingsOptionsRaw(requestParameters, initOverrides);
8720
8817
  }
8818
+ /**
8819
+ * Owner-only. Promotes the target user (must already be a member) to owner and demotes the current owner to admin, atomically. The signed RBAC doc always has exactly one owner.
8820
+ * SDK — transfer ownership of a business account
8821
+ */
8822
+ async sdkTransferBusinessAccountOwnershipRaw(requestParameters, initOverrides) {
8823
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8824
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkTransferBusinessAccountOwnership.');
8825
+ }
8826
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8827
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkTransferBusinessAccountOwnership.');
8828
+ }
8829
+ if (requestParameters.transferBusinessAccountOwnershipSdkRequest === null || requestParameters.transferBusinessAccountOwnershipSdkRequest === undefined) {
8830
+ throw new RequiredError('transferBusinessAccountOwnershipSdkRequest', 'Required parameter requestParameters.transferBusinessAccountOwnershipSdkRequest was null or undefined when calling sdkTransferBusinessAccountOwnership.');
8831
+ }
8832
+ const queryParameters = {};
8833
+ const headerParameters = {};
8834
+ headerParameters['Content-Type'] = 'application/json';
8835
+ if (this.configuration && this.configuration.accessToken) {
8836
+ const token = this.configuration.accessToken;
8837
+ const tokenString = await token("bearerAuth", []);
8838
+ if (tokenString) {
8839
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8840
+ }
8841
+ }
8842
+ const response = await this.request({
8843
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/transferOwnership`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
8844
+ method: 'POST',
8845
+ headers: headerParameters,
8846
+ query: queryParameters,
8847
+ body: TransferBusinessAccountOwnershipSdkRequestToJSON(requestParameters.transferBusinessAccountOwnershipSdkRequest),
8848
+ }, initOverrides);
8849
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountDetailFromJSON(jsonValue));
8850
+ }
8851
+ /**
8852
+ * Owner-only. Promotes the target user (must already be a member) to owner and demotes the current owner to admin, atomically. The signed RBAC doc always has exactly one owner.
8853
+ * SDK — transfer ownership of a business account
8854
+ */
8855
+ async sdkTransferBusinessAccountOwnership(requestParameters, initOverrides) {
8856
+ const response = await this.sdkTransferBusinessAccountOwnershipRaw(requestParameters, initOverrides);
8857
+ return await response.value();
8858
+ }
8859
+ /**
8860
+ * Owner-only. Changes the member\'s role between admin and viewer. Owner is never a target — ownership moves via transferOwnership.
8861
+ * SDK — change a member\'s role (admin ↔ viewer)
8862
+ */
8863
+ async sdkUpdateBusinessAccountMemberRoleRaw(requestParameters, initOverrides) {
8864
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8865
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkUpdateBusinessAccountMemberRole.');
8866
+ }
8867
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8868
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkUpdateBusinessAccountMemberRole.');
8869
+ }
8870
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
8871
+ throw new RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling sdkUpdateBusinessAccountMemberRole.');
8872
+ }
8873
+ if (requestParameters.updateBusinessAccountMemberRoleSdkRequest === null || requestParameters.updateBusinessAccountMemberRoleSdkRequest === undefined) {
8874
+ throw new RequiredError('updateBusinessAccountMemberRoleSdkRequest', 'Required parameter requestParameters.updateBusinessAccountMemberRoleSdkRequest was null or undefined when calling sdkUpdateBusinessAccountMemberRole.');
8875
+ }
8876
+ const queryParameters = {};
8877
+ const headerParameters = {};
8878
+ headerParameters['Content-Type'] = 'application/json';
8879
+ if (this.configuration && this.configuration.accessToken) {
8880
+ const token = this.configuration.accessToken;
8881
+ const tokenString = await token("bearerAuth", []);
8882
+ if (tokenString) {
8883
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8884
+ }
8885
+ }
8886
+ const response = await this.request({
8887
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members/{userId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
8888
+ method: 'PATCH',
8889
+ headers: headerParameters,
8890
+ query: queryParameters,
8891
+ body: UpdateBusinessAccountMemberRoleSdkRequestToJSON(requestParameters.updateBusinessAccountMemberRoleSdkRequest),
8892
+ }, initOverrides);
8893
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberFromJSON(jsonValue));
8894
+ }
8895
+ /**
8896
+ * Owner-only. Changes the member\'s role between admin and viewer. Owner is never a target — ownership moves via transferOwnership.
8897
+ * SDK — change a member\'s role (admin ↔ viewer)
8898
+ */
8899
+ async sdkUpdateBusinessAccountMemberRole(requestParameters, initOverrides) {
8900
+ const response = await this.sdkUpdateBusinessAccountMemberRoleRaw(requestParameters, initOverrides);
8901
+ return await response.value();
8902
+ }
8721
8903
  /**
8722
8904
  * When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
8723
8905
  * Update primary wallet selection