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

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.1069",
3
+ "version": "0.0.1071",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -155,6 +155,7 @@ var InlineResponse2003 = require('../models/InlineResponse2003.cjs');
155
155
  var InlineResponse2004 = require('../models/InlineResponse2004.cjs');
156
156
  var InlineResponse2005 = require('../models/InlineResponse2005.cjs');
157
157
  var InlineResponse2006 = require('../models/InlineResponse2006.cjs');
158
+ var InlineResponse2007 = require('../models/InlineResponse2007.cjs');
158
159
  var JwksResponse = require('../models/JwksResponse.cjs');
159
160
  require('../models/JwtScope.cjs');
160
161
  require('../models/MFAAction.cjs');
@@ -8434,6 +8435,38 @@ class SDKApi extends runtime.BaseAPI {
8434
8435
  async sdkBusinessAccountMembersOptions(requestParameters, initOverrides) {
8435
8436
  await this.sdkBusinessAccountMembersOptionsRaw(requestParameters, initOverrides);
8436
8437
  }
8438
+ /**
8439
+ * Options call for this endpoint
8440
+ */
8441
+ async sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides) {
8442
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8443
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
8444
+ }
8445
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8446
+ throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
8447
+ }
8448
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
8449
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
8450
+ }
8451
+ if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
8452
+ throw new runtime.RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkBusinessAccountWalletSignerOptions.');
8453
+ }
8454
+ const queryParameters = {};
8455
+ const headerParameters = {};
8456
+ const response = await this.request({
8457
+ 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))),
8458
+ method: 'OPTIONS',
8459
+ headers: headerParameters,
8460
+ query: queryParameters,
8461
+ }, initOverrides);
8462
+ return new runtime.VoidApiResponse(response);
8463
+ }
8464
+ /**
8465
+ * Options call for this endpoint
8466
+ */
8467
+ async sdkBusinessAccountWalletSignerOptions(requestParameters, initOverrides) {
8468
+ await this.sdkBusinessAccountWalletSignerOptionsRaw(requestParameters, initOverrides);
8469
+ }
8437
8470
  /**
8438
8471
  * Options call for this endpoint
8439
8472
  */
@@ -8626,6 +8659,48 @@ class SDKApi extends runtime.BaseAPI {
8626
8659
  const response = await this.sdkListBusinessAccountsRaw(requestParameters, initOverrides);
8627
8660
  return await response.value();
8628
8661
  }
8662
+ /**
8663
+ * 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.
8664
+ * SDK — remove a signer from a wallet in a business account
8665
+ */
8666
+ async sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides) {
8667
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8668
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
8669
+ }
8670
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8671
+ throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
8672
+ }
8673
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
8674
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
8675
+ }
8676
+ if (requestParameters.signerId === null || requestParameters.signerId === undefined) {
8677
+ throw new runtime.RequiredError('signerId', 'Required parameter requestParameters.signerId was null or undefined when calling sdkRemoveBusinessAccountSigner.');
8678
+ }
8679
+ const queryParameters = {};
8680
+ const headerParameters = {};
8681
+ if (this.configuration && this.configuration.accessToken) {
8682
+ const token = this.configuration.accessToken;
8683
+ const tokenString = await token("bearerAuth", []);
8684
+ if (tokenString) {
8685
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8686
+ }
8687
+ }
8688
+ const response = await this.request({
8689
+ 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))),
8690
+ method: 'DELETE',
8691
+ headers: headerParameters,
8692
+ query: queryParameters,
8693
+ }, initOverrides);
8694
+ return new runtime.JSONApiResponse(response, (jsonValue) => InlineResponse2007.InlineResponse2007FromJSON(jsonValue));
8695
+ }
8696
+ /**
8697
+ * 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.
8698
+ * SDK — remove a signer from a wallet in a business account
8699
+ */
8700
+ async sdkRemoveBusinessAccountSigner(requestParameters, initOverrides) {
8701
+ const response = await this.sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides);
8702
+ return await response.value();
8703
+ }
8629
8704
  /**
8630
8705
  */
8631
8706
  async sdkSettingsOptionsRaw(requestParameters, initOverrides) {