@dynamic-labs/sdk-api-core 0.0.1068 → 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 +137 -0
- package/src/apis/SDKApi.cjs.map +1 -1
- package/src/apis/SDKApi.d.ts +56 -1
- package/src/apis/SDKApi.js +137 -0
- package/src/apis/SDKApi.js.map +1 -1
- package/src/apis/WaasApi.cjs +1 -1
- package/src/apis/WaasApi.js +1 -1
- package/src/index.cjs +8 -0
- package/src/index.cjs.map +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs +7 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.cjs.map +1 -1
- package/src/models/AddBusinessAccountSignerSdkRequest.d.ts +20 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js +7 -0
- package/src/models/AddBusinessAccountSignerSdkRequest.js.map +1 -1
- package/src/models/InlineObject5.cjs +35 -0
- package/src/models/InlineObject5.cjs.map +1 -0
- package/src/models/InlineObject5.d.ts +33 -0
- package/src/models/InlineObject5.js +29 -0
- package/src/models/InlineObject5.js.map +1 -0
- 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 +2 -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, 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;
|
|
@@ -1073,10 +1073,19 @@ 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;
|
|
1079
1082
|
}
|
|
1083
|
+
export interface SdkBusinessAccountWalletSignerOptionsRequest {
|
|
1084
|
+
environmentId: string;
|
|
1085
|
+
businessAccountId: string;
|
|
1086
|
+
walletId: string;
|
|
1087
|
+
signerId: string;
|
|
1088
|
+
}
|
|
1080
1089
|
export interface SdkBusinessAccountWalletSignersOptionsRequest {
|
|
1081
1090
|
environmentId: string;
|
|
1082
1091
|
businessAccountId: string;
|
|
@@ -1093,9 +1102,19 @@ export interface SdkGetBusinessAccountByIdRequest {
|
|
|
1093
1102
|
environmentId: string;
|
|
1094
1103
|
businessAccountId: string;
|
|
1095
1104
|
}
|
|
1105
|
+
export interface SdkLinkBusinessAccountWalletRequest {
|
|
1106
|
+
environmentId: string;
|
|
1107
|
+
inlineObject5: InlineObject5;
|
|
1108
|
+
}
|
|
1096
1109
|
export interface SdkListBusinessAccountsRequest {
|
|
1097
1110
|
environmentId: string;
|
|
1098
1111
|
}
|
|
1112
|
+
export interface SdkRemoveBusinessAccountSignerRequest {
|
|
1113
|
+
environmentId: string;
|
|
1114
|
+
businessAccountId: string;
|
|
1115
|
+
walletId: string;
|
|
1116
|
+
signerId: string;
|
|
1117
|
+
}
|
|
1099
1118
|
export interface SdkSettingsOptionsRequest {
|
|
1100
1119
|
environmentId: string;
|
|
1101
1120
|
}
|
|
@@ -3771,6 +3790,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3771
3790
|
* Options call for this endpoint
|
|
3772
3791
|
*/
|
|
3773
3792
|
sdkBusinessAccountByIdOptions(requestParameters: SdkBusinessAccountByIdOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3793
|
+
/**
|
|
3794
|
+
* Options call for this endpoint
|
|
3795
|
+
*/
|
|
3796
|
+
sdkBusinessAccountLinkWalletOptionsRaw(requestParameters: SdkBusinessAccountLinkWalletOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3797
|
+
/**
|
|
3798
|
+
* Options call for this endpoint
|
|
3799
|
+
*/
|
|
3800
|
+
sdkBusinessAccountLinkWalletOptions(requestParameters: SdkBusinessAccountLinkWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3774
3801
|
/**
|
|
3775
3802
|
* Options call for this endpoint
|
|
3776
3803
|
*/
|
|
@@ -3779,6 +3806,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3779
3806
|
* Options call for this endpoint
|
|
3780
3807
|
*/
|
|
3781
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>;
|
|
3782
3817
|
/**
|
|
3783
3818
|
* Options call for this endpoint
|
|
3784
3819
|
*/
|
|
@@ -3815,6 +3850,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3815
3850
|
* SDK — get a business account with embedded members and signers
|
|
3816
3851
|
*/
|
|
3817
3852
|
sdkGetBusinessAccountById(requestParameters: SdkGetBusinessAccountByIdRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
|
3853
|
+
/**
|
|
3854
|
+
* 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.
|
|
3855
|
+
* SDK — add an existing wallet to a business account
|
|
3856
|
+
*/
|
|
3857
|
+
sdkLinkBusinessAccountWalletRaw(requestParameters: SdkLinkBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
|
|
3858
|
+
/**
|
|
3859
|
+
* 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.
|
|
3860
|
+
* SDK — add an existing wallet to a business account
|
|
3861
|
+
*/
|
|
3862
|
+
sdkLinkBusinessAccountWallet(requestParameters: SdkLinkBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
|
3818
3863
|
/**
|
|
3819
3864
|
* SDK — list business accounts the caller is a member of
|
|
3820
3865
|
*/
|
|
@@ -3823,6 +3868,16 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3823
3868
|
* SDK — list business accounts the caller is a member of
|
|
3824
3869
|
*/
|
|
3825
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>;
|
|
3826
3881
|
/**
|
|
3827
3882
|
*/
|
|
3828
3883
|
sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -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';
|
|
@@ -150,6 +151,7 @@ import { InlineResponse2003FromJSON } from '../models/InlineResponse2003.js';
|
|
|
150
151
|
import { InlineResponse2004FromJSON } from '../models/InlineResponse2004.js';
|
|
151
152
|
import { InlineResponse2005FromJSON } from '../models/InlineResponse2005.js';
|
|
152
153
|
import { InlineResponse2006FromJSON } from '../models/InlineResponse2006.js';
|
|
154
|
+
import { InlineResponse2007FromJSON } from '../models/InlineResponse2007.js';
|
|
153
155
|
import { JwksResponseFromJSON } from '../models/JwksResponse.js';
|
|
154
156
|
import '../models/JwtScope.js';
|
|
155
157
|
import '../models/MFAAction.js';
|
|
@@ -8380,6 +8382,29 @@ class SDKApi extends BaseAPI {
|
|
|
8380
8382
|
async sdkBusinessAccountByIdOptions(requestParameters, initOverrides) {
|
|
8381
8383
|
await this.sdkBusinessAccountByIdOptionsRaw(requestParameters, initOverrides);
|
|
8382
8384
|
}
|
|
8385
|
+
/**
|
|
8386
|
+
* Options call for this endpoint
|
|
8387
|
+
*/
|
|
8388
|
+
async sdkBusinessAccountLinkWalletOptionsRaw(requestParameters, initOverrides) {
|
|
8389
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8390
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountLinkWalletOptions.');
|
|
8391
|
+
}
|
|
8392
|
+
const queryParameters = {};
|
|
8393
|
+
const headerParameters = {};
|
|
8394
|
+
const response = await this.request({
|
|
8395
|
+
path: `/sdk/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8396
|
+
method: 'OPTIONS',
|
|
8397
|
+
headers: headerParameters,
|
|
8398
|
+
query: queryParameters,
|
|
8399
|
+
}, initOverrides);
|
|
8400
|
+
return new VoidApiResponse(response);
|
|
8401
|
+
}
|
|
8402
|
+
/**
|
|
8403
|
+
* Options call for this endpoint
|
|
8404
|
+
*/
|
|
8405
|
+
async sdkBusinessAccountLinkWalletOptions(requestParameters, initOverrides) {
|
|
8406
|
+
await this.sdkBusinessAccountLinkWalletOptionsRaw(requestParameters, initOverrides);
|
|
8407
|
+
}
|
|
8383
8408
|
/**
|
|
8384
8409
|
* Options call for this endpoint
|
|
8385
8410
|
*/
|
|
@@ -8406,6 +8431,38 @@ class SDKApi extends BaseAPI {
|
|
|
8406
8431
|
async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
|
|
8407
8432
|
await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
|
|
8408
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
|
+
}
|
|
8409
8466
|
/**
|
|
8410
8467
|
* Options call for this endpoint
|
|
8411
8468
|
*/
|
|
@@ -8529,6 +8586,44 @@ class SDKApi extends BaseAPI {
|
|
|
8529
8586
|
const response = await this.sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides);
|
|
8530
8587
|
return await response.value();
|
|
8531
8588
|
}
|
|
8589
|
+
/**
|
|
8590
|
+
* 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.
|
|
8591
|
+
* SDK — add an existing wallet to a business account
|
|
8592
|
+
*/
|
|
8593
|
+
async sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides) {
|
|
8594
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8595
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkLinkBusinessAccountWallet.');
|
|
8596
|
+
}
|
|
8597
|
+
if (requestParameters.inlineObject5 === null || requestParameters.inlineObject5 === undefined) {
|
|
8598
|
+
throw new RequiredError('inlineObject5', 'Required parameter requestParameters.inlineObject5 was null or undefined when calling sdkLinkBusinessAccountWallet.');
|
|
8599
|
+
}
|
|
8600
|
+
const queryParameters = {};
|
|
8601
|
+
const headerParameters = {};
|
|
8602
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8603
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8604
|
+
const token = this.configuration.accessToken;
|
|
8605
|
+
const tokenString = await token("bearerAuth", []);
|
|
8606
|
+
if (tokenString) {
|
|
8607
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8608
|
+
}
|
|
8609
|
+
}
|
|
8610
|
+
const response = await this.request({
|
|
8611
|
+
path: `/sdk/{environmentId}/businessAccounts/linkWallet`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
8612
|
+
method: 'POST',
|
|
8613
|
+
headers: headerParameters,
|
|
8614
|
+
query: queryParameters,
|
|
8615
|
+
body: InlineObject5ToJSON(requestParameters.inlineObject5),
|
|
8616
|
+
}, initOverrides);
|
|
8617
|
+
return new JSONApiResponse(response, (jsonValue) => BusinessAccountDetailFromJSON(jsonValue));
|
|
8618
|
+
}
|
|
8619
|
+
/**
|
|
8620
|
+
* 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.
|
|
8621
|
+
* SDK — add an existing wallet to a business account
|
|
8622
|
+
*/
|
|
8623
|
+
async sdkLinkBusinessAccountWallet(requestParameters, initOverrides) {
|
|
8624
|
+
const response = await this.sdkLinkBusinessAccountWalletRaw(requestParameters, initOverrides);
|
|
8625
|
+
return await response.value();
|
|
8626
|
+
}
|
|
8532
8627
|
/**
|
|
8533
8628
|
* SDK — list business accounts the caller is a member of
|
|
8534
8629
|
*/
|
|
@@ -8560,6 +8655,48 @@ class SDKApi extends BaseAPI {
|
|
|
8560
8655
|
const response = await this.sdkListBusinessAccountsRaw(requestParameters, initOverrides);
|
|
8561
8656
|
return await response.value();
|
|
8562
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
|
+
}
|
|
8563
8700
|
/**
|
|
8564
8701
|
*/
|
|
8565
8702
|
async sdkSettingsOptionsRaw(requestParameters, initOverrides) {
|