@dynamic-labs/sdk-api-core 0.0.1078 → 0.0.1080

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.1078",
3
+ "version": "0.0.1080",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -8494,6 +8494,35 @@ class SDKApi extends runtime.BaseAPI {
8494
8494
  async sdkBusinessAccountTransferOwnershipOptions(requestParameters, initOverrides) {
8495
8495
  await this.sdkBusinessAccountTransferOwnershipOptionsRaw(requestParameters, initOverrides);
8496
8496
  }
8497
+ /**
8498
+ * Options call for this endpoint
8499
+ */
8500
+ async sdkBusinessAccountWalletOptionsRaw(requestParameters, initOverrides) {
8501
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8502
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletOptions.');
8503
+ }
8504
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8505
+ throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletOptions.');
8506
+ }
8507
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
8508
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletOptions.');
8509
+ }
8510
+ const queryParameters = {};
8511
+ const headerParameters = {};
8512
+ const response = await this.request({
8513
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
8514
+ method: 'OPTIONS',
8515
+ headers: headerParameters,
8516
+ query: queryParameters,
8517
+ }, initOverrides);
8518
+ return new runtime.VoidApiResponse(response);
8519
+ }
8520
+ /**
8521
+ * Options call for this endpoint
8522
+ */
8523
+ async sdkBusinessAccountWalletOptions(requestParameters, initOverrides) {
8524
+ await this.sdkBusinessAccountWalletOptionsRaw(requestParameters, initOverrides);
8525
+ }
8497
8526
  /**
8498
8527
  * Options call for this endpoint
8499
8528
  */
@@ -8799,6 +8828,45 @@ class SDKApi extends runtime.BaseAPI {
8799
8828
  const response = await this.sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides);
8800
8829
  return await response.value();
8801
8830
  }
8831
+ /**
8832
+ * Owner/admin only. Removes the wallet from the business account and cascades: every signer + share set on the wallet is soft-deleted and the wallet itself is soft-deleted, in one transaction. Returns 404 when the wallet isn\'t part of this business account.
8833
+ * SDK — remove a wallet from a business account
8834
+ */
8835
+ async sdkRemoveBusinessAccountWalletRaw(requestParameters, initOverrides) {
8836
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8837
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountWallet.');
8838
+ }
8839
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8840
+ throw new runtime.RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountWallet.');
8841
+ }
8842
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
8843
+ throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkRemoveBusinessAccountWallet.');
8844
+ }
8845
+ const queryParameters = {};
8846
+ const headerParameters = {};
8847
+ if (this.configuration && this.configuration.accessToken) {
8848
+ const token = this.configuration.accessToken;
8849
+ const tokenString = await token("bearerAuth", []);
8850
+ if (tokenString) {
8851
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8852
+ }
8853
+ }
8854
+ const response = await this.request({
8855
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
8856
+ method: 'DELETE',
8857
+ headers: headerParameters,
8858
+ query: queryParameters,
8859
+ }, initOverrides);
8860
+ return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountDetail.BusinessAccountDetailFromJSON(jsonValue));
8861
+ }
8862
+ /**
8863
+ * Owner/admin only. Removes the wallet from the business account and cascades: every signer + share set on the wallet is soft-deleted and the wallet itself is soft-deleted, in one transaction. Returns 404 when the wallet isn\'t part of this business account.
8864
+ * SDK — remove a wallet from a business account
8865
+ */
8866
+ async sdkRemoveBusinessAccountWallet(requestParameters, initOverrides) {
8867
+ const response = await this.sdkRemoveBusinessAccountWalletRaw(requestParameters, initOverrides);
8868
+ return await response.value();
8869
+ }
8802
8870
  /**
8803
8871
  */
8804
8872
  async sdkSettingsOptionsRaw(requestParameters, initOverrides) {