@dynamic-labs/sdk-api-core 0.0.1069 → 0.0.1070
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/apis/SDKApi.cjs +75 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +31 -1
- package/src/apis/SDKApi.js +75 -0
- package/src/apis/SDKApi.js.map +1 -1
- package/src/index.cjs +4 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/models/InlineResponse2007.cjs +33 -0
- package/src/models/InlineResponse2007.cjs.map +1 -0
- package/src/models/InlineResponse2007.d.ts +28 -0
- package/src/models/InlineResponse2007.js +27 -0
- package/src/models/InlineResponse2007.js.map +1 -0
- package/src/models/index.d.ts +1 -0
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -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, 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, 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;
|
|
@@ -1080,6 +1080,12 @@ export interface SdkBusinessAccountMembersOptionsRequest {
|
|
|
1080
1080
|
environmentId: string;
|
|
1081
1081
|
businessAccountId: string;
|
|
1082
1082
|
}
|
|
1083
|
+
export interface SdkBusinessAccountWalletSignerOptionsRequest {
|
|
1084
|
+
environmentId: string;
|
|
1085
|
+
businessAccountId: string;
|
|
1086
|
+
walletId: string;
|
|
1087
|
+
signerId: string;
|
|
1088
|
+
}
|
|
1083
1089
|
export interface SdkBusinessAccountWalletSignersOptionsRequest {
|
|
1084
1090
|
environmentId: string;
|
|
1085
1091
|
businessAccountId: string;
|
|
@@ -1103,6 +1109,12 @@ export interface SdkLinkBusinessAccountWalletRequest {
|
|
|
1103
1109
|
export interface SdkListBusinessAccountsRequest {
|
|
1104
1110
|
environmentId: string;
|
|
1105
1111
|
}
|
|
1112
|
+
export interface SdkRemoveBusinessAccountSignerRequest {
|
|
1113
|
+
environmentId: string;
|
|
1114
|
+
businessAccountId: string;
|
|
1115
|
+
walletId: string;
|
|
1116
|
+
signerId: string;
|
|
1117
|
+
}
|
|
1106
1118
|
export interface SdkSettingsOptionsRequest {
|
|
1107
1119
|
environmentId: string;
|
|
1108
1120
|
}
|
|
@@ -3794,6 +3806,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3794
3806
|
* Options call for this endpoint
|
|
3795
3807
|
*/
|
|
3796
3808
|
sdkBusinessAccountMembersOptions(requestParameters: SdkBusinessAccountMembersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3809
|
+
/**
|
|
3810
|
+
* Options call for this endpoint
|
|
3811
|
+
*/
|
|
3812
|
+
sdkBusinessAccountWalletSignerOptionsRaw(requestParameters: SdkBusinessAccountWalletSignerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3813
|
+
/**
|
|
3814
|
+
* Options call for this endpoint
|
|
3815
|
+
*/
|
|
3816
|
+
sdkBusinessAccountWalletSignerOptions(requestParameters: SdkBusinessAccountWalletSignerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3797
3817
|
/**
|
|
3798
3818
|
* Options call for this endpoint
|
|
3799
3819
|
*/
|
|
@@ -3848,6 +3868,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3848
3868
|
* SDK — list business accounts the caller is a member of
|
|
3849
3869
|
*/
|
|
3850
3870
|
sdkListBusinessAccounts(requestParameters: SdkListBusinessAccountsRequest, initOverrides?: RequestInit): Promise<BusinessAccountList>;
|
|
3871
|
+
/**
|
|
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.
|
|
3873
|
+
* SDK — remove a signer from a wallet in a business account
|
|
3874
|
+
*/
|
|
3875
|
+
sdkRemoveBusinessAccountSignerRaw(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InlineResponse2007>>;
|
|
3876
|
+
/**
|
|
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.
|
|
3878
|
+
* SDK — remove a signer from a wallet in a business account
|
|
3879
|
+
*/
|
|
3880
|
+
sdkRemoveBusinessAccountSigner(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<InlineResponse2007>;
|
|
3851
3881
|
/**
|
|
3852
3882
|
*/
|
|
3853
3883
|
sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -151,6 +151,7 @@ import { InlineResponse2003FromJSON } from '../models/InlineResponse2003.js';
|
|
|
151
151
|
import { InlineResponse2004FromJSON } from '../models/InlineResponse2004.js';
|
|
152
152
|
import { InlineResponse2005FromJSON } from '../models/InlineResponse2005.js';
|
|
153
153
|
import { InlineResponse2006FromJSON } from '../models/InlineResponse2006.js';
|
|
154
|
+
import { InlineResponse2007FromJSON } from '../models/InlineResponse2007.js';
|
|
154
155
|
import { JwksResponseFromJSON } from '../models/JwksResponse.js';
|
|
155
156
|
import '../models/JwtScope.js';
|
|
156
157
|
import '../models/MFAAction.js';
|
|
@@ -8430,6 +8431,38 @@ class SDKApi extends BaseAPI {
|
|
|
8430
8431
|
async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
|
|
8431
8432
|
await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
|
|
8432
8433
|
}
|
|
8434
|
+
/**
|
|
8435
|
+
* Options call for this endpoint
|
|
8436
|
+
*/
|
|
8437
|
+
async sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides) {
|
|
8438
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8439
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8440
|
+
}
|
|
8441
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8442
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8443
|
+
}
|
|
8444
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8445
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8446
|
+
}
|
|
8447
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8448
|
+
throw new RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8449
|
+
}
|
|
8450
|
+
const queryParameters = {};
|
|
8451
|
+
const headerParameters = {};
|
|
8452
|
+
const response = await this.request({
|
|
8453
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers/{signerId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"signerId"}}`, encodeURIComponent(String(requestParameters.signerId))),
|
|
8454
|
+
method: 'OPTIONS',
|
|
8455
|
+
headers: headerParameters,
|
|
8456
|
+
query: queryParameters,
|
|
8457
|
+
}, initOverrides);
|
|
8458
|
+
return new VoidApiResponse(response);
|
|
8459
|
+
}
|
|
8460
|
+
/**
|
|
8461
|
+
* Options call for this endpoint
|
|
8462
|
+
*/
|
|
8463
|
+
async sdkBusinessAccountWalletSignerOptions(requestParameters, initOverrides) {
|
|
8464
|
+
await this.sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides);
|
|
8465
|
+
}
|
|
8433
8466
|
/**
|
|
8434
8467
|
* Options call for this endpoint
|
|
8435
8468
|
*/
|
|
@@ -8622,6 +8655,48 @@ class SDKApi extends BaseAPI {
|
|
|
8622
8655
|
const response = await this.sdkListBusinessAccountsRaw(requestParameters, initOverrides);
|
|
8623
8656
|
return await response.value();
|
|
8624
8657
|
}
|
|
8658
|
+
/**
|
|
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.
|
|
8660
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8661
|
+
*/
|
|
8662
|
+
async sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8663
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8664
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8665
|
+
}
|
|
8666
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8667
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8668
|
+
}
|
|
8669
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8670
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8671
|
+
}
|
|
8672
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8673
|
+
throw new RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8674
|
+
}
|
|
8675
|
+
const queryParameters = {};
|
|
8676
|
+
const headerParameters = {};
|
|
8677
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8678
|
+
const token = this.configuration.accessToken;
|
|
8679
|
+
const tokenString = await token("bearerAuth", []);
|
|
8680
|
+
if (tokenString) {
|
|
8681
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8682
|
+
}
|
|
8683
|
+
}
|
|
8684
|
+
const response = await this.request({
|
|
8685
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}/signers/{signerId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))).replace(`{${"signerId"}}`, encodeURIComponent(String(requestParameters.signerId))),
|
|
8686
|
+
method: 'DELETE',
|
|
8687
|
+
headers: headerParameters,
|
|
8688
|
+
query: queryParameters,
|
|
8689
|
+
}, initOverrides);
|
|
8690
|
+
return new JSONApiResponse(response, (jsonValue) => InlineResponse2007FromJSON(jsonValue));
|
|
8691
|
+
}
|
|
8692
|
+
/**
|
|
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.
|
|
8694
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8695
|
+
*/
|
|
8696
|
+
async sdkRemoveBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8697
|
+
const response = await this.sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
8698
|
+
return await response.value();
|
|
8699
|
+
}
|
|
8625
8700
|
/**
|
|
8626
8701
|
*/
|
|
8627
8702
|
async sdkSettingsOptionsRaw(requestParameters, initOverrides) {
|