@dynamic-labs/sdk-api 0.0.1075 → 0.0.1076
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/AdminActionsApi.cjs +1 -0
- package/src/apis/AdminActionsApi.js +1 -0
- package/src/apis/AllowlistsApi.cjs +1 -0
- package/src/apis/AllowlistsApi.js +1 -0
- package/src/apis/AnalyticsApi.cjs +1 -0
- package/src/apis/AnalyticsApi.js +1 -0
- package/src/apis/AuthorizedClientsApi.cjs +1 -0
- package/src/apis/AuthorizedClientsApi.js +1 -0
- package/src/apis/CaptchaApi.cjs +1 -0
- package/src/apis/CaptchaApi.js +1 -0
- package/src/apis/ChainalysisApi.cjs +1 -0
- package/src/apis/ChainalysisApi.js +1 -0
- package/src/apis/ChainsApi.cjs +1 -0
- package/src/apis/ChainsApi.js +1 -0
- package/src/apis/CheckoutApi.cjs +1 -0
- package/src/apis/CheckoutApi.js +1 -0
- package/src/apis/ClientGrantApi.cjs +1 -0
- package/src/apis/ClientGrantApi.js +1 -0
- package/src/apis/CustomFieldsApi.cjs +1 -0
- package/src/apis/CustomFieldsApi.js +1 -0
- package/src/apis/CustomHostnamesApi.cjs +1 -0
- package/src/apis/CustomHostnamesApi.js +1 -0
- package/src/apis/CustomNetworksApi.cjs +1 -0
- package/src/apis/CustomNetworksApi.js +1 -0
- package/src/apis/DeeplinkUrlsApi.cjs +1 -0
- package/src/apis/DeeplinkUrlsApi.js +1 -0
- package/src/apis/EnvironmentsApi.cjs +1 -0
- package/src/apis/EnvironmentsApi.js +1 -0
- package/src/apis/EventsApi.cjs +1 -0
- package/src/apis/EventsApi.js +1 -0
- package/src/apis/ExchangesApi.cjs +1 -0
- package/src/apis/ExchangesApi.js +1 -0
- package/src/apis/ExportsApi.cjs +1 -0
- package/src/apis/ExportsApi.js +1 -0
- package/src/apis/ExternalJwtApi.cjs +1 -0
- package/src/apis/ExternalJwtApi.js +1 -0
- package/src/apis/FlowAnalyticsApi.cjs +1 -0
- package/src/apis/FlowAnalyticsApi.js +1 -0
- package/src/apis/GatesApi.cjs +1 -0
- package/src/apis/GatesApi.js +1 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
- package/src/apis/GlobalWalletAccessControlApi.js +1 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
- package/src/apis/GlobalWalletConnectionsApi.js +1 -0
- package/src/apis/GlobalWalletsApi.cjs +1 -0
- package/src/apis/GlobalWalletsApi.js +1 -0
- package/src/apis/InvitesApi.cjs +1 -0
- package/src/apis/InvitesApi.js +1 -0
- package/src/apis/MembersApi.cjs +1 -0
- package/src/apis/MembersApi.js +1 -0
- package/src/apis/MfaSettingsApi.cjs +1 -0
- package/src/apis/MfaSettingsApi.js +1 -0
- package/src/apis/NameServicesApi.cjs +1 -0
- package/src/apis/NameServicesApi.js +1 -0
- package/src/apis/OrganizationSettingsApi.cjs +1 -0
- package/src/apis/OrganizationSettingsApi.js +1 -0
- package/src/apis/OrganizationsApi.cjs +1 -0
- package/src/apis/OrganizationsApi.js +1 -0
- package/src/apis/OriginsApi.cjs +1 -0
- package/src/apis/OriginsApi.js +1 -0
- package/src/apis/ProjectsApi.cjs +1 -0
- package/src/apis/ProjectsApi.js +1 -0
- package/src/apis/ProvidersApi.cjs +1 -0
- package/src/apis/ProvidersApi.js +1 -0
- package/src/apis/SDKApi.cjs +185 -3
- package/src/apis/SDKApi.d.ts +76 -5
- package/src/apis/SDKApi.js +185 -3
- package/src/apis/SDKViewsApi.cjs +1 -0
- package/src/apis/SDKViewsApi.js +1 -0
- package/src/apis/SessionsApi.cjs +1 -0
- package/src/apis/SessionsApi.js +1 -0
- package/src/apis/TestAccountApi.cjs +1 -0
- package/src/apis/TestAccountApi.js +1 -0
- package/src/apis/TokensApi.cjs +1 -0
- package/src/apis/TokensApi.js +1 -0
- package/src/apis/UserApiTokensApi.cjs +1 -0
- package/src/apis/UserApiTokensApi.js +1 -0
- package/src/apis/UsersApi.cjs +1 -0
- package/src/apis/UsersApi.js +1 -0
- package/src/apis/VisitsApi.cjs +1 -0
- package/src/apis/VisitsApi.js +1 -0
- package/src/apis/WaasApi.cjs +30 -0
- package/src/apis/WaasApi.d.ts +14 -0
- package/src/apis/WaasApi.js +30 -0
- package/src/apis/WalletConnectApi.cjs +1 -0
- package/src/apis/WalletConnectApi.js +1 -0
- package/src/apis/WalletsApi.cjs +1 -0
- package/src/apis/WalletsApi.js +1 -0
- package/src/apis/WebhooksApi.cjs +1 -0
- package/src/apis/WebhooksApi.js +1 -0
- package/src/index.cjs +16 -0
- package/src/index.js +3 -0
- package/src/models/InlineResponse2008.cjs +3 -3
- package/src/models/InlineResponse2008.d.ts +3 -3
- package/src/models/InlineResponse2008.js +3 -3
- package/src/models/InlineResponse2009.cjs +33 -0
- package/src/models/InlineResponse2009.d.ts +28 -0
- package/src/models/InlineResponse2009.js +27 -0
- package/src/models/TransferBusinessAccountOwnershipSdkRequest.cjs +43 -0
- package/src/models/TransferBusinessAccountOwnershipSdkRequest.d.ts +27 -0
- package/src/models/TransferBusinessAccountOwnershipSdkRequest.js +37 -0
- package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.cjs +52 -0
- package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.d.ts +35 -0
- package/src/models/UpdateBusinessAccountMemberRoleSdkRequest.js +46 -0
- package/src/models/index.d.ts +3 -0
package/src/apis/ProvidersApi.js
CHANGED
|
@@ -126,6 +126,7 @@ import '../models/SubscriptionAdvancedScopeEnum.js';
|
|
|
126
126
|
import '../models/SubscriptionFreeScopeEnum.js';
|
|
127
127
|
import '../models/SwapQuoteRequest.js';
|
|
128
128
|
import '../models/SwapStatusResponse.js';
|
|
129
|
+
import '../models/UpdateBusinessAccountMemberRoleSdkRequest.js';
|
|
129
130
|
import '../models/UserFieldsCheckEnum.js';
|
|
130
131
|
import '../models/UserFilterableFieldsEnum.js';
|
|
131
132
|
import '../models/VisitorFilterableFieldsEnum.js';
|
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -182,6 +182,7 @@ var InlineResponse2005 = require('../models/InlineResponse2005.cjs');
|
|
|
182
182
|
var InlineResponse2006 = require('../models/InlineResponse2006.cjs');
|
|
183
183
|
var InlineResponse2007 = require('../models/InlineResponse2007.cjs');
|
|
184
184
|
var InlineResponse2008 = require('../models/InlineResponse2008.cjs');
|
|
185
|
+
var InlineResponse2009 = require('../models/InlineResponse2009.cjs');
|
|
185
186
|
require('../models/InviteStatusEnum.cjs');
|
|
186
187
|
require('../models/RoleEnum.cjs');
|
|
187
188
|
var JwksResponse = require('../models/JwksResponse.cjs');
|
|
@@ -284,9 +285,11 @@ var TelegramPostRequest = require('../models/TelegramPostRequest.cjs');
|
|
|
284
285
|
require('../models/TokenScope.cjs');
|
|
285
286
|
var TransactionFeeEstimateRequest = require('../models/TransactionFeeEstimateRequest.cjs');
|
|
286
287
|
var TransactionFeeEstimateResponse = require('../models/TransactionFeeEstimateResponse.cjs');
|
|
288
|
+
var TransferBusinessAccountOwnershipSdkRequest = require('../models/TransferBusinessAccountOwnershipSdkRequest.cjs');
|
|
287
289
|
var TransferDestinationResponse = require('../models/TransferDestinationResponse.cjs');
|
|
288
290
|
var TurnkeyCreateWalletAccountsRequestBody = require('../models/TurnkeyCreateWalletAccountsRequestBody.cjs');
|
|
289
291
|
var TurnkeyDeleteEmbeddedWalletsRequestBody = require('../models/TurnkeyDeleteEmbeddedWalletsRequestBody.cjs');
|
|
292
|
+
var UpdateBusinessAccountMemberRoleSdkRequest = require('../models/UpdateBusinessAccountMemberRoleSdkRequest.cjs');
|
|
290
293
|
var UpdateRecoveryEmailRequest = require('../models/UpdateRecoveryEmailRequest.cjs');
|
|
291
294
|
var UpdateSelfResponse = require('../models/UpdateSelfResponse.cjs');
|
|
292
295
|
var UpdateUserPasskeyRequest = require('../models/UpdateUserPasskeyRequest.cjs');
|
|
@@ -8521,6 +8524,35 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8521
8524
|
async sdkBusinessAccountLinkWalletOptions(requestParameters, initOverrides) {
|
|
8522
8525
|
await this.sdkBusinessAccountLinkWalletOptionsRaw(requestParameters, initOverrides);
|
|
8523
8526
|
}
|
|
8527
|
+
/**
|
|
8528
|
+
* Options call for this endpoint
|
|
8529
|
+
*/
|
|
8530
|
+
async sdkBusinessAccountMemberByUserOptionsRaw(requestParameters, initOverrides) {
|
|
8531
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8532
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountMemberByUserOptions.');
|
|
8533
|
+
}
|
|
8534
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8535
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountMemberByUserOptions.');
|
|
8536
|
+
}
|
|
8537
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
8538
|
+
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling sdkBusinessAccountMemberByUserOptions.');
|
|
8539
|
+
}
|
|
8540
|
+
const queryParameters = {};
|
|
8541
|
+
const headerParameters = {};
|
|
8542
|
+
const response = await this.request({
|
|
8543
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members/{userId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
8544
|
+
method: 'OPTIONS',
|
|
8545
|
+
headers: headerParameters,
|
|
8546
|
+
query: queryParameters,
|
|
8547
|
+
}, initOverrides);
|
|
8548
|
+
return new runtime.VoidApiResponse(response);
|
|
8549
|
+
}
|
|
8550
|
+
/**
|
|
8551
|
+
* Options call for this endpoint
|
|
8552
|
+
*/
|
|
8553
|
+
async sdkBusinessAccountMemberByUserOptions(requestParameters, initOverrides) {
|
|
8554
|
+
await this.sdkBusinessAccountMemberByUserOptionsRaw(requestParameters, initOverrides);
|
|
8555
|
+
}
|
|
8524
8556
|
/**
|
|
8525
8557
|
* Options call for this endpoint
|
|
8526
8558
|
*/
|
|
@@ -8547,6 +8579,32 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8547
8579
|
async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
|
|
8548
8580
|
await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
|
|
8549
8581
|
}
|
|
8582
|
+
/**
|
|
8583
|
+
* Options call for this endpoint
|
|
8584
|
+
*/
|
|
8585
|
+
async sdkBusinessAccountTransferOwnershipOptionsRaw(requestParameters, initOverrides) {
|
|
8586
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8587
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountTransferOwnershipOptions.');
|
|
8588
|
+
}
|
|
8589
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8590
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountTransferOwnershipOptions.');
|
|
8591
|
+
}
|
|
8592
|
+
const queryParameters = {};
|
|
8593
|
+
const headerParameters = {};
|
|
8594
|
+
const response = await this.request({
|
|
8595
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/transferOwnership`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8596
|
+
method: 'OPTIONS',
|
|
8597
|
+
headers: headerParameters,
|
|
8598
|
+
query: queryParameters,
|
|
8599
|
+
}, initOverrides);
|
|
8600
|
+
return new runtime.VoidApiResponse(response);
|
|
8601
|
+
}
|
|
8602
|
+
/**
|
|
8603
|
+
* Options call for this endpoint
|
|
8604
|
+
*/
|
|
8605
|
+
async sdkBusinessAccountTransferOwnershipOptions(requestParameters, initOverrides) {
|
|
8606
|
+
await this.sdkBusinessAccountTransferOwnershipOptionsRaw(requestParameters, initOverrides);
|
|
8607
|
+
}
|
|
8550
8608
|
/**
|
|
8551
8609
|
* Options call for this endpoint
|
|
8552
8610
|
*/
|
|
@@ -8772,7 +8830,46 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8772
8830
|
return await response.value();
|
|
8773
8831
|
}
|
|
8774
8832
|
/**
|
|
8775
|
-
*
|
|
8833
|
+
* Owner-only. Removes the member and cascades: every one of that user\'s signer rows + share sets across the business account\'s wallets is soft-deleted in one transaction. Returns 409 if removing the member would leave any wallet with zero active signers.
|
|
8834
|
+
* SDK — remove a member from a business account
|
|
8835
|
+
*/
|
|
8836
|
+
async sdkRemoveBusinessAccountMemberRaw(requestParameters, initOverrides) {
|
|
8837
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8838
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountMember.');
|
|
8839
|
+
}
|
|
8840
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8841
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountMember.');
|
|
8842
|
+
}
|
|
8843
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
8844
|
+
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling sdkRemoveBusinessAccountMember.');
|
|
8845
|
+
}
|
|
8846
|
+
const queryParameters = {};
|
|
8847
|
+
const headerParameters = {};
|
|
8848
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8849
|
+
const token = this.configuration.accessToken;
|
|
8850
|
+
const tokenString = await token("bearerAuth", []);
|
|
8851
|
+
if (tokenString) {
|
|
8852
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8853
|
+
}
|
|
8854
|
+
}
|
|
8855
|
+
const response = await this.request({
|
|
8856
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members/{userId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
8857
|
+
method: 'DELETE',
|
|
8858
|
+
headers: headerParameters,
|
|
8859
|
+
query: queryParameters,
|
|
8860
|
+
}, initOverrides);
|
|
8861
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InlineResponse2008.InlineResponse2008FromJSON(jsonValue));
|
|
8862
|
+
}
|
|
8863
|
+
/**
|
|
8864
|
+
* Owner-only. Removes the member and cascades: every one of that user\'s signer rows + share sets across the business account\'s wallets is soft-deleted in one transaction. Returns 409 if removing the member would leave any wallet with zero active signers.
|
|
8865
|
+
* SDK — remove a member from a business account
|
|
8866
|
+
*/
|
|
8867
|
+
async sdkRemoveBusinessAccountMember(requestParameters, initOverrides) {
|
|
8868
|
+
const response = await this.sdkRemoveBusinessAccountMemberRaw(requestParameters, initOverrides);
|
|
8869
|
+
return await response.value();
|
|
8870
|
+
}
|
|
8871
|
+
/**
|
|
8872
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
8776
8873
|
* SDK — remove a signer from a wallet in a business account
|
|
8777
8874
|
*/
|
|
8778
8875
|
async sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
@@ -8803,10 +8900,10 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8803
8900
|
headers: headerParameters,
|
|
8804
8901
|
query: queryParameters,
|
|
8805
8902
|
}, initOverrides);
|
|
8806
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
8903
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InlineResponse2009.InlineResponse2009FromJSON(jsonValue));
|
|
8807
8904
|
}
|
|
8808
8905
|
/**
|
|
8809
|
-
* 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.
|
|
8906
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
8810
8907
|
* SDK — remove a signer from a wallet in a business account
|
|
8811
8908
|
*/
|
|
8812
8909
|
async sdkRemoveBusinessAccountSigner(requestParameters, initOverrides) {
|
|
@@ -8834,6 +8931,91 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8834
8931
|
async sdkSettingsOptions(requestParameters, initOverrides) {
|
|
8835
8932
|
await this.sdkSettingsOptionsRaw(requestParameters, initOverrides);
|
|
8836
8933
|
}
|
|
8934
|
+
/**
|
|
8935
|
+
* Owner-only. Promotes the target user (must already be a member) to owner and demotes the current owner to admin, atomically. The signed RBAC doc always has exactly one owner.
|
|
8936
|
+
* SDK — transfer ownership of a business account
|
|
8937
|
+
*/
|
|
8938
|
+
async sdkTransferBusinessAccountOwnershipRaw(requestParameters, initOverrides) {
|
|
8939
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8940
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkTransferBusinessAccountOwnership.');
|
|
8941
|
+
}
|
|
8942
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8943
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkTransferBusinessAccountOwnership.');
|
|
8944
|
+
}
|
|
8945
|
+
if (requestParameters.transferBusinessAccountOwnershipSdkRequest === null || requestParameters.transferBusinessAccountOwnershipSdkRequest === undefined) {
|
|
8946
|
+
throw new runtime.RequiredError('transferBusinessAccountOwnershipSdkRequest', 'Required parameter requestParameters.transferBusinessAccountOwnershipSdkRequest was null or undefined when calling sdkTransferBusinessAccountOwnership.');
|
|
8947
|
+
}
|
|
8948
|
+
const queryParameters = {};
|
|
8949
|
+
const headerParameters = {};
|
|
8950
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8951
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8952
|
+
const token = this.configuration.accessToken;
|
|
8953
|
+
const tokenString = await token("bearerAuth", []);
|
|
8954
|
+
if (tokenString) {
|
|
8955
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
8956
|
+
}
|
|
8957
|
+
}
|
|
8958
|
+
const response = await this.request({
|
|
8959
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/transferOwnership`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))),
|
|
8960
|
+
method: 'POST',
|
|
8961
|
+
headers: headerParameters,
|
|
8962
|
+
query: queryParameters,
|
|
8963
|
+
body: TransferBusinessAccountOwnershipSdkRequest.TransferBusinessAccountOwnershipSdkRequestToJSON(requestParameters.transferBusinessAccountOwnershipSdkRequest),
|
|
8964
|
+
}, initOverrides);
|
|
8965
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountDetail.BusinessAccountDetailFromJSON(jsonValue));
|
|
8966
|
+
}
|
|
8967
|
+
/**
|
|
8968
|
+
* Owner-only. Promotes the target user (must already be a member) to owner and demotes the current owner to admin, atomically. The signed RBAC doc always has exactly one owner.
|
|
8969
|
+
* SDK — transfer ownership of a business account
|
|
8970
|
+
*/
|
|
8971
|
+
async sdkTransferBusinessAccountOwnership(requestParameters, initOverrides) {
|
|
8972
|
+
const response = await this.sdkTransferBusinessAccountOwnershipRaw(requestParameters, initOverrides);
|
|
8973
|
+
return await response.value();
|
|
8974
|
+
}
|
|
8975
|
+
/**
|
|
8976
|
+
* Owner-only. Changes the member\'s role between admin and viewer. Owner is never a target — ownership moves via transferOwnership.
|
|
8977
|
+
* SDK — change a member\'s role (admin ↔ viewer)
|
|
8978
|
+
*/
|
|
8979
|
+
async sdkUpdateBusinessAccountMemberRoleRaw(requestParameters, initOverrides) {
|
|
8980
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
8981
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkUpdateBusinessAccountMemberRole.');
|
|
8982
|
+
}
|
|
8983
|
+
if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
|
|
8984
|
+
throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkUpdateBusinessAccountMemberRole.');
|
|
8985
|
+
}
|
|
8986
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
8987
|
+
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling sdkUpdateBusinessAccountMemberRole.');
|
|
8988
|
+
}
|
|
8989
|
+
if (requestParameters.updateBusinessAccountMemberRoleSdkRequest === null || requestParameters.updateBusinessAccountMemberRoleSdkRequest === undefined) {
|
|
8990
|
+
throw new runtime.RequiredError('updateBusinessAccountMemberRoleSdkRequest', 'Required parameter requestParameters.updateBusinessAccountMemberRoleSdkRequest was null or undefined when calling sdkUpdateBusinessAccountMemberRole.');
|
|
8991
|
+
}
|
|
8992
|
+
const queryParameters = {};
|
|
8993
|
+
const headerParameters = {};
|
|
8994
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
8995
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
8996
|
+
const token = this.configuration.accessToken;
|
|
8997
|
+
const tokenString = await token("bearerAuth", []);
|
|
8998
|
+
if (tokenString) {
|
|
8999
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
9000
|
+
}
|
|
9001
|
+
}
|
|
9002
|
+
const response = await this.request({
|
|
9003
|
+
path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/members/{userId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
9004
|
+
method: 'PATCH',
|
|
9005
|
+
headers: headerParameters,
|
|
9006
|
+
query: queryParameters,
|
|
9007
|
+
body: UpdateBusinessAccountMemberRoleSdkRequest.UpdateBusinessAccountMemberRoleSdkRequestToJSON(requestParameters.updateBusinessAccountMemberRoleSdkRequest),
|
|
9008
|
+
}, initOverrides);
|
|
9009
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMember.BusinessAccountMemberFromJSON(jsonValue));
|
|
9010
|
+
}
|
|
9011
|
+
/**
|
|
9012
|
+
* Owner-only. Changes the member\'s role between admin and viewer. Owner is never a target — ownership moves via transferOwnership.
|
|
9013
|
+
* SDK — change a member\'s role (admin ↔ viewer)
|
|
9014
|
+
*/
|
|
9015
|
+
async sdkUpdateBusinessAccountMemberRole(requestParameters, initOverrides) {
|
|
9016
|
+
const response = await this.sdkUpdateBusinessAccountMemberRoleRaw(requestParameters, initOverrides);
|
|
9017
|
+
return await response.value();
|
|
9018
|
+
}
|
|
8837
9019
|
/**
|
|
8838
9020
|
* When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
|
|
8839
9021
|
* Update primary wallet selection
|
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, 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';
|
|
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, InlineResponse2009, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
14
14
|
export interface AttachFlowSourceRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
flowId: string;
|
|
@@ -1081,10 +1081,19 @@ export interface SdkBusinessAccountByIdOptionsRequest {
|
|
|
1081
1081
|
export interface SdkBusinessAccountLinkWalletOptionsRequest {
|
|
1082
1082
|
environmentId: string;
|
|
1083
1083
|
}
|
|
1084
|
+
export interface SdkBusinessAccountMemberByUserOptionsRequest {
|
|
1085
|
+
environmentId: string;
|
|
1086
|
+
businessAccountId: string;
|
|
1087
|
+
userId: string;
|
|
1088
|
+
}
|
|
1084
1089
|
export interface SdkBusinessAccountMembersOptionsRequest {
|
|
1085
1090
|
environmentId: string;
|
|
1086
1091
|
businessAccountId: string;
|
|
1087
1092
|
}
|
|
1093
|
+
export interface SdkBusinessAccountTransferOwnershipOptionsRequest {
|
|
1094
|
+
environmentId: string;
|
|
1095
|
+
businessAccountId: string;
|
|
1096
|
+
}
|
|
1088
1097
|
export interface SdkBusinessAccountWalletSignerOptionsRequest {
|
|
1089
1098
|
environmentId: string;
|
|
1090
1099
|
businessAccountId: string;
|
|
@@ -1114,6 +1123,11 @@ export interface SdkLinkBusinessAccountWalletRequest {
|
|
|
1114
1123
|
export interface SdkListBusinessAccountsRequest {
|
|
1115
1124
|
environmentId: string;
|
|
1116
1125
|
}
|
|
1126
|
+
export interface SdkRemoveBusinessAccountMemberRequest {
|
|
1127
|
+
environmentId: string;
|
|
1128
|
+
businessAccountId: string;
|
|
1129
|
+
userId: string;
|
|
1130
|
+
}
|
|
1117
1131
|
export interface SdkRemoveBusinessAccountSignerRequest {
|
|
1118
1132
|
environmentId: string;
|
|
1119
1133
|
businessAccountId: string;
|
|
@@ -1123,6 +1137,17 @@ export interface SdkRemoveBusinessAccountSignerRequest {
|
|
|
1123
1137
|
export interface SdkSettingsOptionsRequest {
|
|
1124
1138
|
environmentId: string;
|
|
1125
1139
|
}
|
|
1140
|
+
export interface SdkTransferBusinessAccountOwnershipRequest {
|
|
1141
|
+
environmentId: string;
|
|
1142
|
+
businessAccountId: string;
|
|
1143
|
+
transferBusinessAccountOwnershipSdkRequest: TransferBusinessAccountOwnershipSdkRequest;
|
|
1144
|
+
}
|
|
1145
|
+
export interface SdkUpdateBusinessAccountMemberRoleRequest {
|
|
1146
|
+
environmentId: string;
|
|
1147
|
+
businessAccountId: string;
|
|
1148
|
+
userId: string;
|
|
1149
|
+
updateBusinessAccountMemberRoleSdkRequest: UpdateBusinessAccountMemberRoleSdkRequest;
|
|
1150
|
+
}
|
|
1126
1151
|
export interface SelectUserWalletRequest {
|
|
1127
1152
|
environmentId: string;
|
|
1128
1153
|
userWalletSelectionRequest: UserWalletSelectionRequest;
|
|
@@ -3831,6 +3856,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3831
3856
|
* Options call for this endpoint
|
|
3832
3857
|
*/
|
|
3833
3858
|
sdkBusinessAccountLinkWalletOptions(requestParameters: SdkBusinessAccountLinkWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3859
|
+
/**
|
|
3860
|
+
* Options call for this endpoint
|
|
3861
|
+
*/
|
|
3862
|
+
sdkBusinessAccountMemberByUserOptionsRaw(requestParameters: SdkBusinessAccountMemberByUserOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3863
|
+
/**
|
|
3864
|
+
* Options call for this endpoint
|
|
3865
|
+
*/
|
|
3866
|
+
sdkBusinessAccountMemberByUserOptions(requestParameters: SdkBusinessAccountMemberByUserOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3834
3867
|
/**
|
|
3835
3868
|
* Options call for this endpoint
|
|
3836
3869
|
*/
|
|
@@ -3839,6 +3872,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3839
3872
|
* Options call for this endpoint
|
|
3840
3873
|
*/
|
|
3841
3874
|
sdkBusinessAccountMembersOptions(requestParameters: SdkBusinessAccountMembersOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3875
|
+
/**
|
|
3876
|
+
* Options call for this endpoint
|
|
3877
|
+
*/
|
|
3878
|
+
sdkBusinessAccountTransferOwnershipOptionsRaw(requestParameters: SdkBusinessAccountTransferOwnershipOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3879
|
+
/**
|
|
3880
|
+
* Options call for this endpoint
|
|
3881
|
+
*/
|
|
3882
|
+
sdkBusinessAccountTransferOwnershipOptions(requestParameters: SdkBusinessAccountTransferOwnershipOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3842
3883
|
/**
|
|
3843
3884
|
* Options call for this endpoint
|
|
3844
3885
|
*/
|
|
@@ -3902,21 +3943,51 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3902
3943
|
*/
|
|
3903
3944
|
sdkListBusinessAccounts(requestParameters: SdkListBusinessAccountsRequest, initOverrides?: RequestInit): Promise<BusinessAccountList>;
|
|
3904
3945
|
/**
|
|
3905
|
-
*
|
|
3946
|
+
* Owner-only. Removes the member and cascades: every one of that user\'s signer rows + share sets across the business account\'s wallets is soft-deleted in one transaction. Returns 409 if removing the member would leave any wallet with zero active signers.
|
|
3947
|
+
* SDK — remove a member from a business account
|
|
3948
|
+
*/
|
|
3949
|
+
sdkRemoveBusinessAccountMemberRaw(requestParameters: SdkRemoveBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InlineResponse2008>>;
|
|
3950
|
+
/**
|
|
3951
|
+
* Owner-only. Removes the member and cascades: every one of that user\'s signer rows + share sets across the business account\'s wallets is soft-deleted in one transaction. Returns 409 if removing the member would leave any wallet with zero active signers.
|
|
3952
|
+
* SDK — remove a member from a business account
|
|
3953
|
+
*/
|
|
3954
|
+
sdkRemoveBusinessAccountMember(requestParameters: SdkRemoveBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<InlineResponse2008>;
|
|
3955
|
+
/**
|
|
3956
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
3906
3957
|
* SDK — remove a signer from a wallet in a business account
|
|
3907
3958
|
*/
|
|
3908
|
-
sdkRemoveBusinessAccountSignerRaw(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
3959
|
+
sdkRemoveBusinessAccountSignerRaw(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<InlineResponse2009>>;
|
|
3909
3960
|
/**
|
|
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.
|
|
3961
|
+
* Severs the signer\'s MPC pair on this wallet by soft-deleting the server share + the share set + the signer row in one transaction. No reshare ceremony is run — surviving signers\' share sets are independent MPC pairs and remain intact. Authorization is enforced by auth-service (owner or admin). Returns 409 if removing the signer would leave the wallet with zero active signers.
|
|
3911
3962
|
* SDK — remove a signer from a wallet in a business account
|
|
3912
3963
|
*/
|
|
3913
|
-
sdkRemoveBusinessAccountSigner(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<
|
|
3964
|
+
sdkRemoveBusinessAccountSigner(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<InlineResponse2009>;
|
|
3914
3965
|
/**
|
|
3915
3966
|
*/
|
|
3916
3967
|
sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3917
3968
|
/**
|
|
3918
3969
|
*/
|
|
3919
3970
|
sdkSettingsOptions(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3971
|
+
/**
|
|
3972
|
+
* Owner-only. Promotes the target user (must already be a member) to owner and demotes the current owner to admin, atomically. The signed RBAC doc always has exactly one owner.
|
|
3973
|
+
* SDK — transfer ownership of a business account
|
|
3974
|
+
*/
|
|
3975
|
+
sdkTransferBusinessAccountOwnershipRaw(requestParameters: SdkTransferBusinessAccountOwnershipRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
|
|
3976
|
+
/**
|
|
3977
|
+
* Owner-only. Promotes the target user (must already be a member) to owner and demotes the current owner to admin, atomically. The signed RBAC doc always has exactly one owner.
|
|
3978
|
+
* SDK — transfer ownership of a business account
|
|
3979
|
+
*/
|
|
3980
|
+
sdkTransferBusinessAccountOwnership(requestParameters: SdkTransferBusinessAccountOwnershipRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
|
3981
|
+
/**
|
|
3982
|
+
* Owner-only. Changes the member\'s role between admin and viewer. Owner is never a target — ownership moves via transferOwnership.
|
|
3983
|
+
* SDK — change a member\'s role (admin ↔ viewer)
|
|
3984
|
+
*/
|
|
3985
|
+
sdkUpdateBusinessAccountMemberRoleRaw(requestParameters: SdkUpdateBusinessAccountMemberRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMember>>;
|
|
3986
|
+
/**
|
|
3987
|
+
* Owner-only. Changes the member\'s role between admin and viewer. Owner is never a target — ownership moves via transferOwnership.
|
|
3988
|
+
* SDK — change a member\'s role (admin ↔ viewer)
|
|
3989
|
+
*/
|
|
3990
|
+
sdkUpdateBusinessAccountMemberRole(requestParameters: SdkUpdateBusinessAccountMemberRoleRequest, initOverrides?: RequestInit): Promise<BusinessAccountMember>;
|
|
3920
3991
|
/**
|
|
3921
3992
|
* When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
|
|
3922
3993
|
* Update primary wallet selection
|