@dynamic-labs/sdk-api 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.d.ts +31 -1
- package/src/apis/SDKApi.js +75 -0
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/InlineResponse2008.cjs +33 -0
- package/src/models/InlineResponse2008.d.ts +28 -0
- package/src/models/InlineResponse2008.js +27 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -181,6 +181,7 @@ var InlineResponse2004 = require('../models/InlineResponse2004.cjs');
|
|
|
181
181
|
var InlineResponse2005 = require('../models/InlineResponse2005.cjs');
|
|
182
182
|
var InlineResponse2006 = require('../models/InlineResponse2006.cjs');
|
|
183
183
|
var InlineResponse2007 = require('../models/InlineResponse2007.cjs');
|
|
184
|
+
var InlineResponse2008 = require('../models/InlineResponse2008.cjs');
|
|
184
185
|
require('../models/InviteStatusEnum.cjs');
|
|
185
186
|
require('../models/RoleEnum.cjs');
|
|
186
187
|
var JwksResponse = require('../models/JwksResponse.cjs');
|
|
@@ -8542,6 +8543,38 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8542
8543
|
async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
|
|
8543
8544
|
await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
|
|
8544
8545
|
}
|
|
8546
|
+
/**
|
|
8547
|
+
* Options call for this endpoint
|
|
8548
|
+
*/
|
|
8549
|
+
async sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides) {
|
|
8550
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8551
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8552
|
+
}
|
|
8553
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8554
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8555
|
+
}
|
|
8556
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8557
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8558
|
+
}
|
|
8559
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8560
|
+
throw new runtime.RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8561
|
+
}
|
|
8562
|
+
const queryParameters = {};
|
|
8563
|
+
const headerParameters = {};
|
|
8564
|
+
const response = await this.request({
|
|
8565
|
+
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))),
|
|
8566
|
+
method: 'OPTIONS',
|
|
8567
|
+
headers: headerParameters,
|
|
8568
|
+
query: queryParameters,
|
|
8569
|
+
}, initOverrides);
|
|
8570
|
+
return new runtime.VoidApiResponse(response);
|
|
8571
|
+
}
|
|
8572
|
+
/**
|
|
8573
|
+
* Options call for this endpoint
|
|
8574
|
+
*/
|
|
8575
|
+
async sdkBusinessAccountWalletSignerOptions(requestParameters, initOverrides) {
|
|
8576
|
+
await this.sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides);
|
|
8577
|
+
}
|
|
8545
8578
|
/**
|
|
8546
8579
|
* Options call for this endpoint
|
|
8547
8580
|
*/
|
|
@@ -8734,6 +8767,48 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8734
8767
|
const response = await this.sdkListBusinessAccountsRaw(requestParameters, initOverrides);
|
|
8735
8768
|
return await response.value();
|
|
8736
8769
|
}
|
|
8770
|
+
/**
|
|
8771
|
+
* 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.
|
|
8772
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8773
|
+
*/
|
|
8774
|
+
async sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8775
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8776
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8777
|
+
}
|
|
8778
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8779
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8780
|
+
}
|
|
8781
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8782
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8783
|
+
}
|
|
8784
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8785
|
+
throw new runtime.RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8786
|
+
}
|
|
8787
|
+
const queryParameters = {};
|
|
8788
|
+
const headerParameters = {};
|
|
8789
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8790
|
+
const token = this.configuration.accessToken;
|
|
8791
|
+
const tokenString = await token("bearerAuth", []);
|
|
8792
|
+
if (tokenString) {
|
|
8793
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8794
|
+
}
|
|
8795
|
+
}
|
|
8796
|
+
const response = await this.request({
|
|
8797
|
+
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))),
|
|
8798
|
+
method: 'DELETE',
|
|
8799
|
+
headers: headerParameters,
|
|
8800
|
+
query: queryParameters,
|
|
8801
|
+
}, initOverrides);
|
|
8802
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InlineResponse2008.InlineResponse2008FromJSON(jsonValue));
|
|
8803
|
+
}
|
|
8804
|
+
/**
|
|
8805
|
+
* 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.
|
|
8806
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8807
|
+
*/
|
|
8808
|
+
async sdkRemoveBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8809
|
+
const response = await this.sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
8810
|
+
return await response.value();
|
|
8811
|
+
}
|
|
8737
8812
|
/**
|
|
8738
8813
|
*/
|
|
8739
8814
|
async sdkSettingsOptionsRaw(requestParameters, initOverrides) {
|
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, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineObject6, 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, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineObject6, 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, 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;
|
|
@@ -1085,6 +1085,12 @@ export interface SdkBusinessAccountMembersOptionsRequest {
|
|
|
1085
1085
|
environmentId: string;
|
|
1086
1086
|
businessAccountId: string;
|
|
1087
1087
|
}
|
|
1088
|
+
export interface SdkBusinessAccountWalletSignerOptionsRequest {
|
|
1089
|
+
environmentId: string;
|
|
1090
|
+
businessAccountId: string;
|
|
1091
|
+
walletId: string;
|
|
1092
|
+
signerId: string;
|
|
1093
|
+
}
|
|
1088
1094
|
export interface SdkBusinessAccountWalletSignersOptionsRequest {
|
|
1089
1095
|
environmentId: string;
|
|
1090
1096
|
businessAccountId: string;
|
|
@@ -1108,6 +1114,12 @@ export interface SdkLinkBusinessAccountWalletRequest {
|
|
|
1108
1114
|
export interface SdkListBusinessAccountsRequest {
|
|
1109
1115
|
environmentId: string;
|
|
1110
1116
|
}
|
|
1117
|
+
export interface SdkRemoveBusinessAccountSignerRequest {
|
|
1118
|
+
environmentId: string;
|
|
1119
|
+
businessAccountId: string;
|
|
1120
|
+
walletId: string;
|
|
1121
|
+
signerId: string;
|
|
1122
|
+
}
|
|
1111
1123
|
export interface SdkSettingsOptionsRequest {
|
|
1112
1124
|
environmentId: string;
|
|
1113
1125
|
}
|
|
@@ -3827,6 +3839,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3827
3839
|
* Options call for this endpoint
|
|
3828
3840
|
*/
|
|
3829
3841
|
sdkBusinessAccountMembersOptions(requestParameters: SdkBusinessAccountMembersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3842
|
+
/**
|
|
3843
|
+
* Options call for this endpoint
|
|
3844
|
+
*/
|
|
3845
|
+
sdkBusinessAccountWalletSignerOptionsRaw(requestParameters: SdkBusinessAccountWalletSignerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3846
|
+
/**
|
|
3847
|
+
* Options call for this endpoint
|
|
3848
|
+
*/
|
|
3849
|
+
sdkBusinessAccountWalletSignerOptions(requestParameters: SdkBusinessAccountWalletSignerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3830
3850
|
/**
|
|
3831
3851
|
* Options call for this endpoint
|
|
3832
3852
|
*/
|
|
@@ -3881,6 +3901,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3881
3901
|
* SDK — list business accounts the caller is a member of
|
|
3882
3902
|
*/
|
|
3883
3903
|
sdkListBusinessAccounts(requestParameters: SdkListBusinessAccountsRequest, initOverrides?: RequestInit): Promise<BusinessAccountList>;
|
|
3904
|
+
/**
|
|
3905
|
+
* 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.
|
|
3906
|
+
* SDK — remove a signer from a wallet in a business account
|
|
3907
|
+
*/
|
|
3908
|
+
sdkRemoveBusinessAccountSignerRaw(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InlineResponse2008>>;
|
|
3909
|
+
/**
|
|
3910
|
+
* 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.
|
|
3911
|
+
* SDK — remove a signer from a wallet in a business account
|
|
3912
|
+
*/
|
|
3913
|
+
sdkRemoveBusinessAccountSigner(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<InlineResponse2008>;
|
|
3884
3914
|
/**
|
|
3885
3915
|
*/
|
|
3886
3916
|
sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -177,6 +177,7 @@ import { InlineResponse2004FromJSON } from '../models/InlineResponse2004.js';
|
|
|
177
177
|
import { InlineResponse2005FromJSON } from '../models/InlineResponse2005.js';
|
|
178
178
|
import { InlineResponse2006FromJSON } from '../models/InlineResponse2006.js';
|
|
179
179
|
import { InlineResponse2007FromJSON } from '../models/InlineResponse2007.js';
|
|
180
|
+
import { InlineResponse2008FromJSON } from '../models/InlineResponse2008.js';
|
|
180
181
|
import '../models/InviteStatusEnum.js';
|
|
181
182
|
import '../models/RoleEnum.js';
|
|
182
183
|
import { JwksResponseFromJSON } from '../models/JwksResponse.js';
|
|
@@ -8538,6 +8539,38 @@ class SDKApi extends BaseAPI {
|
|
|
8538
8539
|
async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
|
|
8539
8540
|
await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
|
|
8540
8541
|
}
|
|
8542
|
+
/**
|
|
8543
|
+
* Options call for this endpoint
|
|
8544
|
+
*/
|
|
8545
|
+
async sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides) {
|
|
8546
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8547
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8548
|
+
}
|
|
8549
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8550
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8551
|
+
}
|
|
8552
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8553
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8554
|
+
}
|
|
8555
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8556
|
+
throw new RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
|
|
8557
|
+
}
|
|
8558
|
+
const queryParameters = {};
|
|
8559
|
+
const headerParameters = {};
|
|
8560
|
+
const response = await this.request({
|
|
8561
|
+
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))),
|
|
8562
|
+
method: 'OPTIONS',
|
|
8563
|
+
headers: headerParameters,
|
|
8564
|
+
query: queryParameters,
|
|
8565
|
+
}, initOverrides);
|
|
8566
|
+
return new VoidApiResponse(response);
|
|
8567
|
+
}
|
|
8568
|
+
/**
|
|
8569
|
+
* Options call for this endpoint
|
|
8570
|
+
*/
|
|
8571
|
+
async sdkBusinessAccountWalletSignerOptions(requestParameters, initOverrides) {
|
|
8572
|
+
await this.sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides);
|
|
8573
|
+
}
|
|
8541
8574
|
/**
|
|
8542
8575
|
* Options call for this endpoint
|
|
8543
8576
|
*/
|
|
@@ -8730,6 +8763,48 @@ class SDKApi extends BaseAPI {
|
|
|
8730
8763
|
const response = await this.sdkListBusinessAccountsRaw(requestParameters, initOverrides);
|
|
8731
8764
|
return await response.value();
|
|
8732
8765
|
}
|
|
8766
|
+
/**
|
|
8767
|
+
* 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.
|
|
8768
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8769
|
+
*/
|
|
8770
|
+
async sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8771
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8772
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8773
|
+
}
|
|
8774
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8775
|
+
throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8776
|
+
}
|
|
8777
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
8778
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8779
|
+
}
|
|
8780
|
+
if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
|
|
8781
|
+
throw new RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
|
|
8782
|
+
}
|
|
8783
|
+
const queryParameters = {};
|
|
8784
|
+
const headerParameters = {};
|
|
8785
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8786
|
+
const token = this.configuration.accessToken;
|
|
8787
|
+
const tokenString = await token("bearerAuth", []);
|
|
8788
|
+
if (tokenString) {
|
|
8789
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8790
|
+
}
|
|
8791
|
+
}
|
|
8792
|
+
const response = await this.request({
|
|
8793
|
+
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))),
|
|
8794
|
+
method: 'DELETE',
|
|
8795
|
+
headers: headerParameters,
|
|
8796
|
+
query: queryParameters,
|
|
8797
|
+
}, initOverrides);
|
|
8798
|
+
return new JSONApiResponse(response, (jsonValue) => InlineResponse2008FromJSON(jsonValue));
|
|
8799
|
+
}
|
|
8800
|
+
/**
|
|
8801
|
+
* 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.
|
|
8802
|
+
* SDK — remove a signer from a wallet in a business account
|
|
8803
|
+
*/
|
|
8804
|
+
async sdkRemoveBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8805
|
+
const response = await this.sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
8806
|
+
return await response.value();
|
|
8807
|
+
}
|
|
8733
8808
|
/**
|
|
8734
8809
|
*/
|
|
8735
8810
|
async sdkSettingsOptionsRaw(requestParameters, initOverrides) {
|
package/src/index.cjs
CHANGED
|
@@ -410,6 +410,7 @@ var InlineResponse2004 = require('./models/InlineResponse2004.cjs');
|
|
|
410
410
|
var InlineResponse2005 = require('./models/InlineResponse2005.cjs');
|
|
411
411
|
var InlineResponse2006 = require('./models/InlineResponse2006.cjs');
|
|
412
412
|
var InlineResponse2007 = require('./models/InlineResponse2007.cjs');
|
|
413
|
+
var InlineResponse2008 = require('./models/InlineResponse2008.cjs');
|
|
413
414
|
var InlineResponse201 = require('./models/InlineResponse201.cjs');
|
|
414
415
|
var InlineResponse400 = require('./models/InlineResponse400.cjs');
|
|
415
416
|
var IntegrationSetting = require('./models/IntegrationSetting.cjs');
|
|
@@ -2280,6 +2281,9 @@ exports.InlineResponse2006ToJSON = InlineResponse2006.InlineResponse2006ToJSON;
|
|
|
2280
2281
|
exports.InlineResponse2007FromJSON = InlineResponse2007.InlineResponse2007FromJSON;
|
|
2281
2282
|
exports.InlineResponse2007FromJSONTyped = InlineResponse2007.InlineResponse2007FromJSONTyped;
|
|
2282
2283
|
exports.InlineResponse2007ToJSON = InlineResponse2007.InlineResponse2007ToJSON;
|
|
2284
|
+
exports.InlineResponse2008FromJSON = InlineResponse2008.InlineResponse2008FromJSON;
|
|
2285
|
+
exports.InlineResponse2008FromJSONTyped = InlineResponse2008.InlineResponse2008FromJSONTyped;
|
|
2286
|
+
exports.InlineResponse2008ToJSON = InlineResponse2008.InlineResponse2008ToJSON;
|
|
2283
2287
|
exports.InlineResponse201FromJSON = InlineResponse201.InlineResponse201FromJSON;
|
|
2284
2288
|
exports.InlineResponse201FromJSONTyped = InlineResponse201.InlineResponse201FromJSONTyped;
|
|
2285
2289
|
exports.InlineResponse201ToJSON = InlineResponse201.InlineResponse201ToJSON;
|
package/src/index.js
CHANGED
|
@@ -406,6 +406,7 @@ export { InlineResponse2004FromJSON, InlineResponse2004FromJSONTyped, InlineResp
|
|
|
406
406
|
export { InlineResponse2005FromJSON, InlineResponse2005FromJSONTyped, InlineResponse2005ToJSON } from './models/InlineResponse2005.js';
|
|
407
407
|
export { InlineResponse2006FromJSON, InlineResponse2006FromJSONTyped, InlineResponse2006ToJSON } from './models/InlineResponse2006.js';
|
|
408
408
|
export { InlineResponse2007FromJSON, InlineResponse2007FromJSONTyped, InlineResponse2007ToJSON } from './models/InlineResponse2007.js';
|
|
409
|
+
export { InlineResponse2008FromJSON, InlineResponse2008FromJSONTyped, InlineResponse2008ToJSON } from './models/InlineResponse2008.js';
|
|
409
410
|
export { InlineResponse201FromJSON, InlineResponse201FromJSONTyped, InlineResponse201ToJSON } from './models/InlineResponse201.js';
|
|
410
411
|
export { InlineResponse400FromJSON, InlineResponse400FromJSONTyped, InlineResponse400ToJSON } from './models/InlineResponse400.js';
|
|
411
412
|
export { IntegrationSettingFromJSON, IntegrationSettingFromJSONTyped, IntegrationSettingToJSON } from './models/IntegrationSetting.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var BusinessAccountSigner = require('./BusinessAccountSigner.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function InlineResponse2008FromJSON(json) {
|
|
9
|
+
return InlineResponse2008FromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function InlineResponse2008FromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'signer': BusinessAccountSigner.BusinessAccountSignerFromJSON(json['signer']),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function InlineResponse2008ToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'signer': BusinessAccountSigner.BusinessAccountSignerToJSON(value.signer),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.InlineResponse2008FromJSON = InlineResponse2008FromJSON;
|
|
32
|
+
exports.InlineResponse2008FromJSONTyped = InlineResponse2008FromJSONTyped;
|
|
33
|
+
exports.InlineResponse2008ToJSON = InlineResponse2008ToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { BusinessAccountSigner } from './BusinessAccountSigner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InlineResponse2008
|
|
17
|
+
*/
|
|
18
|
+
export interface InlineResponse2008 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {BusinessAccountSigner}
|
|
22
|
+
* @memberof InlineResponse2008
|
|
23
|
+
*/
|
|
24
|
+
signer: BusinessAccountSigner;
|
|
25
|
+
}
|
|
26
|
+
export declare function InlineResponse2008FromJSON(json: any): InlineResponse2008;
|
|
27
|
+
export declare function InlineResponse2008FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineResponse2008;
|
|
28
|
+
export declare function InlineResponse2008ToJSON(value?: InlineResponse2008 | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BusinessAccountSignerFromJSON, BusinessAccountSignerToJSON } from './BusinessAccountSigner.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function InlineResponse2008FromJSON(json) {
|
|
5
|
+
return InlineResponse2008FromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function InlineResponse2008FromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'signer': BusinessAccountSignerFromJSON(json['signer']),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function InlineResponse2008ToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'signer': BusinessAccountSignerToJSON(value.signer),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { InlineResponse2008FromJSON, InlineResponse2008FromJSONTyped, InlineResponse2008ToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -360,6 +360,7 @@ export * from './InlineResponse2004';
|
|
|
360
360
|
export * from './InlineResponse2005';
|
|
361
361
|
export * from './InlineResponse2006';
|
|
362
362
|
export * from './InlineResponse2007';
|
|
363
|
+
export * from './InlineResponse2008';
|
|
363
364
|
export * from './InlineResponse201';
|
|
364
365
|
export * from './InlineResponse400';
|
|
365
366
|
export * from './IntegrationSetting';
|