@dynamic-labs/sdk-api-core 0.7.0 → 0.9.0

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.
@@ -4982,15 +4982,15 @@ export declare class SDKApi extends runtime.BaseAPI {
4982
4982
  */
4983
4983
  walletsVerifyOptions(requestParameters: WalletsVerifyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4984
4984
  /**
4985
- * Reward claiming is not yet supported and currently always responds 422. Encoding a claim needs the Merkl distributor address and a per-user merkle proof; the rewards endpoint reads Merkl\'s active-opportunities API, which reports accrued amounts only and carries neither. Wiring up the Merkl claim data is a follow-up. This path reserves the contract so the SDK surface is stable.
4985
+ * Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now no reward campaign for this vault, or every attributable token is already fully claimed.
4986
4986
  * Build a vault reward-claim signing payload
4987
4987
  */
4988
- yieldVaultClaimRaw(requestParameters: YieldVaultClaimOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
4988
+ yieldVaultClaimRaw(requestParameters: YieldVaultClaimOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<YieldVaultActionResponse>>;
4989
4989
  /**
4990
- * Reward claiming is not yet supported and currently always responds 422. Encoding a claim needs the Merkl distributor address and a per-user merkle proof; the rewards endpoint reads Merkl\'s active-opportunities API, which reports accrued amounts only and carries neither. Wiring up the Merkl claim data is a follow-up. This path reserves the contract so the SDK surface is stable.
4990
+ * Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now no reward campaign for this vault, or every attributable token is already fully claimed.
4991
4991
  * Build a vault reward-claim signing payload
4992
4992
  */
4993
- yieldVaultClaim(requestParameters: YieldVaultClaimOperationRequest, initOverrides?: RequestInit): Promise<void>;
4993
+ yieldVaultClaim(requestParameters: YieldVaultClaimOperationRequest, initOverrides?: RequestInit): Promise<YieldVaultActionResponse>;
4994
4994
  /**
4995
4995
  * Options call for this endpoint
4996
4996
  */
@@ -5042,12 +5042,12 @@ export declare class SDKApi extends runtime.BaseAPI {
5042
5042
  */
5043
5043
  yieldVaultRewardsOptions(requestParameters: YieldVaultRewardsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
5044
5044
  /**
5045
- * Builds an unsigned ERC-4626 withdraw signing payload for the given vault and wallet address. No ERC-20 approval is needed for withdrawals the owner redeems shares they already hold, so the response never contains `evmApproval`.
5045
+ * Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
5046
5046
  * Build a vault withdraw signing payload
5047
5047
  */
5048
5048
  yieldVaultWithdrawRaw(requestParameters: YieldVaultWithdrawRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<YieldVaultActionResponse>>;
5049
5049
  /**
5050
- * Builds an unsigned ERC-4626 withdraw signing payload for the given vault and wallet address. No ERC-20 approval is needed for withdrawals the owner redeems shares they already hold, so the response never contains `evmApproval`.
5050
+ * Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
5051
5051
  * Build a vault withdraw signing payload
5052
5052
  */
5053
5053
  yieldVaultWithdraw(requestParameters: YieldVaultWithdrawRequest, initOverrides?: RequestInit): Promise<YieldVaultActionResponse>;
@@ -11858,7 +11858,7 @@ class SDKApi extends BaseAPI {
11858
11858
  await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
11859
11859
  }
11860
11860
  /**
11861
- * Reward claiming is not yet supported and currently always responds 422. Encoding a claim needs the Merkl distributor address and a per-user merkle proof; the rewards endpoint reads Merkl\'s active-opportunities API, which reports accrued amounts only and carries neither. Wiring up the Merkl claim data is a follow-up. This path reserves the contract so the SDK surface is stable.
11861
+ * Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now no reward campaign for this vault, or every attributable token is already fully claimed.
11862
11862
  * Build a vault reward-claim signing payload
11863
11863
  */
11864
11864
  async yieldVaultClaimRaw(requestParameters, initOverrides) {
@@ -11881,14 +11881,15 @@ class SDKApi extends BaseAPI {
11881
11881
  query: queryParameters,
11882
11882
  body: YieldVaultClaimRequestToJSON(requestParameters.yieldVaultClaimRequest),
11883
11883
  }, initOverrides);
11884
- return new VoidApiResponse(response);
11884
+ return new JSONApiResponse(response, (jsonValue) => YieldVaultActionResponseFromJSON(jsonValue));
11885
11885
  }
11886
11886
  /**
11887
- * Reward claiming is not yet supported and currently always responds 422. Encoding a claim needs the Merkl distributor address and a per-user merkle proof; the rewards endpoint reads Merkl\'s active-opportunities API, which reports accrued amounts only and carries neither. Wiring up the Merkl claim data is a follow-up. This path reserves the contract so the SDK surface is stable.
11887
+ * Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now no reward campaign for this vault, or every attributable token is already fully claimed.
11888
11888
  * Build a vault reward-claim signing payload
11889
11889
  */
11890
11890
  async yieldVaultClaim(requestParameters, initOverrides) {
11891
- await this.yieldVaultClaimRaw(requestParameters, initOverrides);
11891
+ const response = await this.yieldVaultClaimRaw(requestParameters, initOverrides);
11892
+ return await response.value();
11892
11893
  }
11893
11894
  /**
11894
11895
  * Options call for this endpoint
@@ -12055,7 +12056,7 @@ class SDKApi extends BaseAPI {
12055
12056
  await this.yieldVaultRewardsOptionsRaw(requestParameters, initOverrides);
12056
12057
  }
12057
12058
  /**
12058
- * Builds an unsigned ERC-4626 withdraw signing payload for the given vault and wallet address. No ERC-20 approval is needed for withdrawals the owner redeems shares they already hold, so the response never contains `evmApproval`.
12059
+ * Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
12059
12060
  * Build a vault withdraw signing payload
12060
12061
  */
12061
12062
  async yieldVaultWithdrawRaw(requestParameters, initOverrides) {
@@ -12081,7 +12082,7 @@ class SDKApi extends BaseAPI {
12081
12082
  return new JSONApiResponse(response, (jsonValue) => YieldVaultActionResponseFromJSON(jsonValue));
12082
12083
  }
12083
12084
  /**
12084
- * Builds an unsigned ERC-4626 withdraw signing payload for the given vault and wallet address. No ERC-20 approval is needed for withdrawals the owner redeems shares they already hold, so the response never contains `evmApproval`.
12085
+ * Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
12085
12086
  * Build a vault withdraw signing payload
12086
12087
  */
12087
12088
  async yieldVaultWithdraw(requestParameters, initOverrides) {