@dynamic-labs/sdk-api-core 0.0.1079 → 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.
@@ -1089,6 +1089,11 @@ export interface SdkBusinessAccountTransferOwnershipOptionsRequest {
1089
1089
  environmentId: string;
1090
1090
  businessAccountId: string;
1091
1091
  }
1092
+ export interface SdkBusinessAccountWalletOptionsRequest {
1093
+ environmentId: string;
1094
+ businessAccountId: string;
1095
+ walletId: string;
1096
+ }
1092
1097
  export interface SdkBusinessAccountWalletSignerOptionsRequest {
1093
1098
  environmentId: string;
1094
1099
  businessAccountId: string;
@@ -1129,6 +1134,11 @@ export interface SdkRemoveBusinessAccountSignerRequest {
1129
1134
  walletId: string;
1130
1135
  signerId: string;
1131
1136
  }
1137
+ export interface SdkRemoveBusinessAccountWalletRequest {
1138
+ environmentId: string;
1139
+ businessAccountId: string;
1140
+ walletId: string;
1141
+ }
1132
1142
  export interface SdkSettingsOptionsRequest {
1133
1143
  environmentId: string;
1134
1144
  }
@@ -3847,6 +3857,14 @@ export declare class SDKApi extends runtime.BaseAPI {
3847
3857
  * Options call for this endpoint
3848
3858
  */
3849
3859
  sdkBusinessAccountTransferOwnershipOptions(requestParameters: SdkBusinessAccountTransferOwnershipOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3860
+ /**
3861
+ * Options call for this endpoint
3862
+ */
3863
+ sdkBusinessAccountWalletOptionsRaw(requestParameters: SdkBusinessAccountWalletOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3864
+ /**
3865
+ * Options call for this endpoint
3866
+ */
3867
+ sdkBusinessAccountWalletOptions(requestParameters: SdkBusinessAccountWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3850
3868
  /**
3851
3869
  * Options call for this endpoint
3852
3870
  */
@@ -3929,6 +3947,16 @@ export declare class SDKApi extends runtime.BaseAPI {
3929
3947
  * SDK — remove a signer from a wallet in a business account
3930
3948
  */
3931
3949
  sdkRemoveBusinessAccountSigner(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<InlineResponse2008>;
3950
+ /**
3951
+ * 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.
3952
+ * SDK — remove a wallet from a business account
3953
+ */
3954
+ sdkRemoveBusinessAccountWalletRaw(requestParameters: SdkRemoveBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
3955
+ /**
3956
+ * 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.
3957
+ * SDK — remove a wallet from a business account
3958
+ */
3959
+ sdkRemoveBusinessAccountWallet(requestParameters: SdkRemoveBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
3932
3960
  /**
3933
3961
  */
3934
3962
  sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
@@ -8490,6 +8490,35 @@ class SDKApi extends BaseAPI {
8490
8490
  async sdkBusinessAccountTransferOwnershipOptions(requestParameters, initOverrides) {
8491
8491
  await this.sdkBusinessAccountTransferOwnershipOptionsRaw(requestParameters, initOverrides);
8492
8492
  }
8493
+ /**
8494
+ * Options call for this endpoint
8495
+ */
8496
+ async sdkBusinessAccountWalletOptionsRaw(requestParameters, initOverrides) {
8497
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8498
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletOptions.');
8499
+ }
8500
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8501
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletOptions.');
8502
+ }
8503
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
8504
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletOptions.');
8505
+ }
8506
+ const queryParameters = {};
8507
+ const headerParameters = {};
8508
+ const response = await this.request({
8509
+ 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))),
8510
+ method: 'OPTIONS',
8511
+ headers: headerParameters,
8512
+ query: queryParameters,
8513
+ }, initOverrides);
8514
+ return new VoidApiResponse(response);
8515
+ }
8516
+ /**
8517
+ * Options call for this endpoint
8518
+ */
8519
+ async sdkBusinessAccountWalletOptions(requestParameters, initOverrides) {
8520
+ await this.sdkBusinessAccountWalletOptionsRaw(requestParameters, initOverrides);
8521
+ }
8493
8522
  /**
8494
8523
  * Options call for this endpoint
8495
8524
  */
@@ -8795,6 +8824,45 @@ class SDKApi extends BaseAPI {
8795
8824
  const response = await this.sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides);
8796
8825
  return await response.value();
8797
8826
  }
8827
+ /**
8828
+ * 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.
8829
+ * SDK — remove a wallet from a business account
8830
+ */
8831
+ async sdkRemoveBusinessAccountWalletRaw(requestParameters, initOverrides) {
8832
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8833
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountWallet.');
8834
+ }
8835
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8836
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountWallet.');
8837
+ }
8838
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
8839
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkRemoveBusinessAccountWallet.');
8840
+ }
8841
+ const queryParameters = {};
8842
+ const headerParameters = {};
8843
+ if (this.configuration && this.configuration.accessToken) {
8844
+ const token = this.configuration.accessToken;
8845
+ const tokenString = await token("bearerAuth", []);
8846
+ if (tokenString) {
8847
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8848
+ }
8849
+ }
8850
+ const response = await this.request({
8851
+ 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))),
8852
+ method: 'DELETE',
8853
+ headers: headerParameters,
8854
+ query: queryParameters,
8855
+ }, initOverrides);
8856
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountDetailFromJSON(jsonValue));
8857
+ }
8858
+ /**
8859
+ * 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.
8860
+ * SDK — remove a wallet from a business account
8861
+ */
8862
+ async sdkRemoveBusinessAccountWallet(requestParameters, initOverrides) {
8863
+ const response = await this.sdkRemoveBusinessAccountWalletRaw(requestParameters, initOverrides);
8864
+ return await response.value();
8865
+ }
8798
8866
  /**
8799
8867
  */
8800
8868
  async sdkSettingsOptionsRaw(requestParameters, initOverrides) {