@dynamic-labs/sdk-api-core 0.10.0 → 0.12.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.
@@ -477,6 +477,7 @@ export interface GetCurrencyExchangeRatesOptionsRequest {
477
477
  export interface GetEVMSponsoredTransactionStatusRequest {
478
478
  environmentId: string;
479
479
  requestId: string;
480
+ wait?: number;
480
481
  }
481
482
  export interface GetEVMSponsoredTransactionStatusOptionsRequest {
482
483
  environmentId: string;
@@ -2606,12 +2607,12 @@ export declare class SDKApi extends runtime.BaseAPI {
2606
2607
  */
2607
2608
  getCurrencyExchangeRatesOptions(requestParameters: GetCurrencyExchangeRatesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2608
2609
  /**
2609
- * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
2610
+ * Returns the current status of a previously sponsored EVM transaction from the stored record, which is kept in sync with the relay provider. Pass `wait` to hold the response open until the transaction resolves.
2610
2611
  * Get the status of a sponsored EVM transaction
2611
2612
  */
2612
2613
  getEVMSponsoredTransactionStatusRaw(requestParameters: GetEVMSponsoredTransactionStatusRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<GetEVMSponsoredTransactionStatusResponse>>;
2613
2614
  /**
2614
- * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
2615
+ * Returns the current status of a previously sponsored EVM transaction from the stored record, which is kept in sync with the relay provider. Pass `wait` to hold the response open until the transaction resolves.
2615
2616
  * Get the status of a sponsored EVM transaction
2616
2617
  */
2617
2618
  getEVMSponsoredTransactionStatus(requestParameters: GetEVMSponsoredTransactionStatusRequest, initOverrides?: RequestInit): Promise<GetEVMSponsoredTransactionStatusResponse>;
@@ -3906,7 +3906,7 @@ class SDKApi extends BaseAPI {
3906
3906
  await this.getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides);
3907
3907
  }
3908
3908
  /**
3909
- * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
3909
+ * Returns the current status of a previously sponsored EVM transaction from the stored record, which is kept in sync with the relay provider. Pass `wait` to hold the response open until the transaction resolves.
3910
3910
  * Get the status of a sponsored EVM transaction
3911
3911
  */
3912
3912
  async getEVMSponsoredTransactionStatusRaw(requestParameters, initOverrides) {
@@ -3917,6 +3917,9 @@ class SDKApi extends BaseAPI {
3917
3917
  throw new RequiredError('requestId', 'Required parameter requestParameters.requestId was null or undefined when calling getEVMSponsoredTransactionStatus.');
3918
3918
  }
3919
3919
  const queryParameters = {};
3920
+ if (requestParameters.wait !== undefined) {
3921
+ queryParameters['wait'] = requestParameters.wait;
3922
+ }
3920
3923
  const headerParameters = {};
3921
3924
  const response = await this.request({
3922
3925
  path: `/sdk/{environmentId}/evm/sponsorTransaction/{requestId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"requestId"}}`, encodeURIComponent(String(requestParameters.requestId))),
@@ -3927,7 +3930,7 @@ class SDKApi extends BaseAPI {
3927
3930
  return new JSONApiResponse(response, (jsonValue) => GetEVMSponsoredTransactionStatusResponseFromJSON(jsonValue));
3928
3931
  }
3929
3932
  /**
3930
- * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
3933
+ * Returns the current status of a previously sponsored EVM transaction from the stored record, which is kept in sync with the relay provider. Pass `wait` to hold the response open until the transaction resolves.
3931
3934
  * Get the status of a sponsored EVM transaction
3932
3935
  */
3933
3936
  async getEVMSponsoredTransactionStatus(requestParameters, initOverrides) {