@dynamic-labs/sdk-api-core 0.0.1067 → 0.0.1069

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 (53) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +62 -0
  3. package/src/apis/SDKApi.cjs.map +1 -1
  4. package/src/apis/SDKApi.d.ts +26 -1
  5. package/src/apis/SDKApi.js +62 -0
  6. package/src/apis/SDKApi.js.map +1 -1
  7. package/src/apis/WaasApi.cjs +1 -1
  8. package/src/apis/WaasApi.js +1 -1
  9. package/src/index.cjs +28 -0
  10. package/src/index.cjs.map +1 -1
  11. package/src/index.js +7 -0
  12. package/src/index.js.map +1 -1
  13. package/src/models/AddBusinessAccountSignerSdkRequest.cjs +7 -0
  14. package/src/models/AddBusinessAccountSignerSdkRequest.cjs.map +1 -1
  15. package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +20 -0
  16. package/src/models/AddBusinessAccountSignerSdkRequest.js +7 -0
  17. package/src/models/AddBusinessAccountSignerSdkRequest.js.map +1 -1
  18. package/src/models/FlowFeeClaimRequest.cjs +37 -0
  19. package/src/models/FlowFeeClaimRequest.cjs.map +1 -0
  20. package/src/models/FlowFeeClaimRequest.d.ts +39 -0
  21. package/src/models/FlowFeeClaimRequest.js +31 -0
  22. package/src/models/FlowFeeClaimRequest.js.map +1 -0
  23. package/src/models/FlowFeeClaimResponse.cjs +35 -0
  24. package/src/models/FlowFeeClaimResponse.cjs.map +1 -0
  25. package/src/models/FlowFeeClaimResponse.d.ts +34 -0
  26. package/src/models/FlowFeeClaimResponse.js +29 -0
  27. package/src/models/FlowFeeClaimResponse.js.map +1 -0
  28. package/src/models/FlowFeeClaimSignature.cjs +45 -0
  29. package/src/models/FlowFeeClaimSignature.cjs.map +1 -0
  30. package/src/models/FlowFeeClaimSignature.d.ts +33 -0
  31. package/src/models/FlowFeeClaimSignature.js +39 -0
  32. package/src/models/FlowFeeClaimSignature.js.map +1 -0
  33. package/src/models/FlowFeeClaimStep.cjs +49 -0
  34. package/src/models/FlowFeeClaimStep.cjs.map +1 -0
  35. package/src/models/FlowFeeClaimStep.d.ts +45 -0
  36. package/src/models/FlowFeeClaimStep.js +43 -0
  37. package/src/models/FlowFeeClaimStep.js.map +1 -0
  38. package/src/models/FlowFeeClaimSubmitRequest.cjs +35 -0
  39. package/src/models/FlowFeeClaimSubmitRequest.cjs.map +1 -0
  40. package/src/models/FlowFeeClaimSubmitRequest.d.ts +34 -0
  41. package/src/models/FlowFeeClaimSubmitRequest.js +29 -0
  42. package/src/models/FlowFeeClaimSubmitRequest.js.map +1 -0
  43. package/src/models/FlowFeeClaimSubmitResponse.cjs +35 -0
  44. package/src/models/FlowFeeClaimSubmitResponse.cjs.map +1 -0
  45. package/src/models/FlowFeeClaimSubmitResponse.d.ts +33 -0
  46. package/src/models/FlowFeeClaimSubmitResponse.js +29 -0
  47. package/src/models/FlowFeeClaimSubmitResponse.js.map +1 -0
  48. package/src/models/InlineObject5.cjs +35 -0
  49. package/src/models/InlineObject5.cjs.map +1 -0
  50. package/src/models/InlineObject5.d.ts +33 -0
  51. package/src/models/InlineObject5.js +29 -0
  52. package/src/models/InlineObject5.js.map +1 -0
  53. package/src/models/index.d.ts +7 -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, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, 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, 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';
14
14
  export interface AttachFlowSourceRequest {
15
15
  environmentId: string;
16
16
  flowId: string;
@@ -1073,6 +1073,9 @@ export interface SdkBusinessAccountByIdOptionsRequest {
1073
1073
  environmentId: string;
1074
1074
  businessAccountId: string;
1075
1075
  }
1076
+ export interface SdkBusinessAccountLinkWalletOptionsRequest {
1077
+ environmentId: string;
1078
+ }
1076
1079
  export interface SdkBusinessAccountMembersOptionsRequest {
1077
1080
  environmentId: string;
1078
1081
  businessAccountId: string;
@@ -1093,6 +1096,10 @@ export interface SdkGetBusinessAccountByIdRequest {
1093
1096
  environmentId: string;
1094
1097
  businessAccountId: string;
1095
1098
  }
1099
+ export interface SdkLinkBusinessAccountWalletRequest {
1100
+ environmentId: string;
1101
+ inlineObject5: InlineObject5;
1102
+ }
1096
1103
  export interface SdkListBusinessAccountsRequest {
1097
1104
  environmentId: string;
1098
1105
  }
@@ -3771,6 +3778,14 @@ export declare class SDKApi extends runtime.BaseAPI {
3771
3778
  * Options call for this endpoint
3772
3779
  */
3773
3780
  sdkBusinessAccountByIdOptions(requestParameters: SdkBusinessAccountByIdOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3781
+ /**
3782
+ * Options call for this endpoint
3783
+ */
3784
+ sdkBusinessAccountLinkWalletOptionsRaw(requestParameters: SdkBusinessAccountLinkWalletOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3785
+ /**
3786
+ * Options call for this endpoint
3787
+ */
3788
+ sdkBusinessAccountLinkWalletOptions(requestParameters: SdkBusinessAccountLinkWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3774
3789
  /**
3775
3790
  * Options call for this endpoint
3776
3791
  */
@@ -3815,6 +3830,16 @@ export declare class SDKApi extends runtime.BaseAPI {
3815
3830
  * SDK — get a business account with embedded members and signers
3816
3831
  */
3817
3832
  sdkGetBusinessAccountById(requestParameters: SdkGetBusinessAccountByIdRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
3833
+ /**
3834
+ * Brings an existing user wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account (`businessAccountId` set, `userId` cleared) and registers the caller as an owner member + `endUser` signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
3835
+ * SDK — add an existing wallet to a business account
3836
+ */
3837
+ sdkLinkBusinessAccountWalletRaw(requestParameters: SdkLinkBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
3838
+ /**
3839
+ * Brings an existing user wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account (`businessAccountId` set, `userId` cleared) and registers the caller as an owner member + `endUser` signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
3840
+ * SDK — add an existing wallet to a business account
3841
+ */
3842
+ sdkLinkBusinessAccountWallet(requestParameters: SdkLinkBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
3818
3843
  /**
3819
3844
  * SDK — list business accounts the caller is a member of
3820
3845
  */
@@ -143,6 +143,7 @@ import { InlineObject1ToJSON } from '../models/InlineObject1.js';
143
143
  import { InlineObject2ToJSON } from '../models/InlineObject2.js';
144
144
  import { InlineObject3ToJSON } from '../models/InlineObject3.js';
145
145
  import { InlineObject4ToJSON } from '../models/InlineObject4.js';
146
+ import { InlineObject5ToJSON } from '../models/InlineObject5.js';
146
147
  import { InlineResponse200FromJSON } from '../models/InlineResponse200.js';
147
148
  import { InlineResponse2001FromJSON } from '../models/InlineResponse2001.js';
148
149
  import { InlineResponse2002FromJSON } from '../models/InlineResponse2002.js';
@@ -8380,6 +8381,29 @@ class SDKApi extends BaseAPI {
8380
8381
  async sdkBusinessAccountByIdOptions(requestParameters, initOverrides) {
8381
8382
  await this.sdkBusinessAccountByIdOptionsRaw(requestParameters, initOverrides);
8382
8383
  }
8384
+ /**
8385
+ * Options call for this endpoint
8386
+ */
8387
+ async sdkBusinessAccountLinkWalletOptionsRaw(requestParameters, initOverrides) {
8388
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8389
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountLinkWalletOptions.');
8390
+ }
8391
+ const queryParameters = {};
8392
+ const headerParameters = {};
8393
+ const response = await this.request({
8394
+ path: `/sdk/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
8395
+ method: 'OPTIONS',
8396
+ headers: headerParameters,
8397
+ query: queryParameters,
8398
+ }, initOverrides);
8399
+ return new VoidApiResponse(response);
8400
+ }
8401
+ /**
8402
+ * Options call for this endpoint
8403
+ */
8404
+ async sdkBusinessAccountLinkWalletOptions(requestParameters, initOverrides) {
8405
+ await this.sdkBusinessAccountLinkWalletOptionsRaw(requestParameters, initOverrides);
8406
+ }
8383
8407
  /**
8384
8408
  * Options call for this endpoint
8385
8409
  */
@@ -8529,6 +8553,44 @@ class SDKApi extends BaseAPI {
8529
8553
  const response = await this.sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides);
8530
8554
  return await response.value();
8531
8555
  }
8556
+ /**
8557
+ * Brings an existing user wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account (`businessAccountId` set, `userId` cleared) and registers the caller as an owner member + `endUser` signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
8558
+ * SDK — add an existing wallet to a business account
8559
+ */
8560
+ async sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides) {
8561
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8562
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkLinkBusinessAccountWallet.');
8563
+ }
8564
+ if (requestParameters.inlineObject5 === null || requestParameters.inlineObject5 === undefined) {
8565
+ throw new RequiredError('inlineObject5', 'Required parameter requestParameters.inlineObject5 was null or undefined when calling sdkLinkBusinessAccountWallet.');
8566
+ }
8567
+ const queryParameters = {};
8568
+ const headerParameters = {};
8569
+ headerParameters['Content-Type'] = 'application/json';
8570
+ if (this.configuration && this.configuration.accessToken) {
8571
+ const token = this.configuration.accessToken;
8572
+ const tokenString = await token("bearerAuth", []);
8573
+ if (tokenString) {
8574
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8575
+ }
8576
+ }
8577
+ const response = await this.request({
8578
+ path: `/sdk/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
8579
+ method: 'POST',
8580
+ headers: headerParameters,
8581
+ query: queryParameters,
8582
+ body: InlineObject5ToJSON(requestParameters.inlineObject5),
8583
+ }, initOverrides);
8584
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountDetailFromJSON(jsonValue));
8585
+ }
8586
+ /**
8587
+ * Brings an existing user wallet under a business account so signers can be added to it. No MPC ceremony — the owner already holds a valid share set, so this transfers the wallet\'s ownership to the business account (`businessAccountId` set, `userId` cleared) and registers the caller as an owner member + `endUser` signer bound to their existing share set. When `businessAccountId` is omitted, the per-wallet business account is found-or-created (unnamed). Idempotent.
8588
+ * SDK — add an existing wallet to a business account
8589
+ */
8590
+ async sdkLinkBusinessAccountWallet(requestParameters, initOverrides) {
8591
+ const response = await this.sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides);
8592
+ return await response.value();
8593
+ }
8532
8594
  /**
8533
8595
  * SDK — list business accounts the caller is a member of
8534
8596
  */