@dynamic-labs/sdk-api-core 0.0.968 → 0.0.970

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.968",
3
+ "version": "0.0.970",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
6
  var Account = require('../models/Account.cjs');
7
+ var AleoCuratedPricesResponse = require('../models/AleoCuratedPricesResponse.cjs');
7
8
  var AttachSourceRequest = require('../models/AttachSourceRequest.cjs');
8
9
  require('../models/AttestationConveyancePreference.cjs');
9
10
  require('../models/AuthModeEnum.cjs');
@@ -106,6 +107,8 @@ require('../models/ExternalWalletFundingTokenRule.cjs');
106
107
  var FarcasterSignInRequest = require('../models/FarcasterSignInRequest.cjs');
107
108
  require('../models/OnrampProviders.cjs');
108
109
  var GeneratedTokenResponse = require('../models/GeneratedTokenResponse.cjs');
110
+ var GetAvailableEVMGaslessRelayerResponse = require('../models/GetAvailableEVMGaslessRelayerResponse.cjs');
111
+ var GetEVMSponsoredTransactionStatusResponse = require('../models/GetEVMSponsoredTransactionStatusResponse.cjs');
109
112
  var GetPasskeyAuthenticationOptionsResponse = require('../models/GetPasskeyAuthenticationOptionsResponse.cjs');
110
113
  var GetPasskeyRegistrationOptionsResponse = require('../models/GetPasskeyRegistrationOptionsResponse.cjs');
111
114
  var GetUserPasskeysResponse = require('../models/GetUserPasskeysResponse.cjs');
@@ -3071,6 +3074,68 @@ class SDKApi extends runtime.BaseAPI {
3071
3074
  async getAccountBalancesOptions(requestParameters, initOverrides) {
3072
3075
  await this.getAccountBalancesOptionsRaw(requestParameters, initOverrides);
3073
3076
  }
3077
+ /**
3078
+ * Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
3079
+ * Get curated Aleo token prices for the given network
3080
+ */
3081
+ async getAleoCuratedPricesRaw(requestParameters, initOverrides) {
3082
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3083
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPrices.');
3084
+ }
3085
+ if (requestParameters.network === null || requestParameters.network === undefined) {
3086
+ throw new runtime.RequiredError('network', 'Required parameter requestParameters.network was null or undefined when calling getAleoCuratedPrices.');
3087
+ }
3088
+ const queryParameters = {};
3089
+ if (requestParameters.network !== undefined) {
3090
+ queryParameters['network'] = requestParameters.network;
3091
+ }
3092
+ const headerParameters = {};
3093
+ if (this.configuration && this.configuration.accessToken) {
3094
+ const token = this.configuration.accessToken;
3095
+ const tokenString = await token("bearerAuth", []);
3096
+ if (tokenString) {
3097
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3098
+ }
3099
+ }
3100
+ const response = await this.request({
3101
+ path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3102
+ method: 'GET',
3103
+ headers: headerParameters,
3104
+ query: queryParameters,
3105
+ }, initOverrides);
3106
+ return new runtime.JSONApiResponse(response, (jsonValue) => AleoCuratedPricesResponse.AleoCuratedPricesResponseFromJSON(jsonValue));
3107
+ }
3108
+ /**
3109
+ * Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
3110
+ * Get curated Aleo token prices for the given network
3111
+ */
3112
+ async getAleoCuratedPrices(requestParameters, initOverrides) {
3113
+ const response = await this.getAleoCuratedPricesRaw(requestParameters, initOverrides);
3114
+ return await response.value();
3115
+ }
3116
+ /**
3117
+ * Options call for this endpoint
3118
+ */
3119
+ async getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides) {
3120
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3121
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPricesOptions.');
3122
+ }
3123
+ const queryParameters = {};
3124
+ const headerParameters = {};
3125
+ const response = await this.request({
3126
+ path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3127
+ method: 'OPTIONS',
3128
+ headers: headerParameters,
3129
+ query: queryParameters,
3130
+ }, initOverrides);
3131
+ return new runtime.VoidApiResponse(response);
3132
+ }
3133
+ /**
3134
+ * Options call for this endpoint
3135
+ */
3136
+ async getAleoCuratedPricesOptions(requestParameters, initOverrides) {
3137
+ await this.getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides);
3138
+ }
3074
3139
  /**
3075
3140
  * Returns the ANF-issued Feemaster policy for the given Aleo network. The policy lists which (programId, functionName) pairs the configured Bearer key sponsors. Forwarded server-side; the iframe never sees the Bearer key directly.
3076
3141
  * Get the ANF Feemaster sponsorship policy for Aleo
@@ -3287,6 +3352,61 @@ class SDKApi extends runtime.BaseAPI {
3287
3352
  const response = await this.getAuthenticatedUserRaw(requestParameters, initOverrides);
3288
3353
  return await response.value();
3289
3354
  }
3355
+ /**
3356
+ * Returns the relayer EOA that should be embedded in the EIP-712 sponsored transaction intent for the given chain. The address is owned by the project\'s relay backend and is the eventual `from` of the on-chain broadcast. Today a single relayer is returned; future implementations will round-robin across multiple workspace relayers.
3357
+ * Get an available EVM gasless relayer address
3358
+ */
3359
+ async getAvailableEVMGaslessRelayerRaw(requestParameters, initOverrides) {
3360
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3361
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAvailableEVMGaslessRelayer.');
3362
+ }
3363
+ if (requestParameters.chainId === null || requestParameters.chainId === undefined) {
3364
+ throw new runtime.RequiredError('chainId', 'Required parameter requestParameters.chainId was null or undefined when calling getAvailableEVMGaslessRelayer.');
3365
+ }
3366
+ const queryParameters = {};
3367
+ if (requestParameters.chainId !== undefined) {
3368
+ queryParameters['chainId'] = requestParameters.chainId;
3369
+ }
3370
+ const headerParameters = {};
3371
+ const response = await this.request({
3372
+ path: `/sdk/{environmentId}/evm/availableGaslessRelayer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3373
+ method: 'GET',
3374
+ headers: headerParameters,
3375
+ query: queryParameters,
3376
+ }, initOverrides);
3377
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetAvailableEVMGaslessRelayerResponse.GetAvailableEVMGaslessRelayerResponseFromJSON(jsonValue));
3378
+ }
3379
+ /**
3380
+ * Returns the relayer EOA that should be embedded in the EIP-712 sponsored transaction intent for the given chain. The address is owned by the project\'s relay backend and is the eventual `from` of the on-chain broadcast. Today a single relayer is returned; future implementations will round-robin across multiple workspace relayers.
3381
+ * Get an available EVM gasless relayer address
3382
+ */
3383
+ async getAvailableEVMGaslessRelayer(requestParameters, initOverrides) {
3384
+ const response = await this.getAvailableEVMGaslessRelayerRaw(requestParameters, initOverrides);
3385
+ return await response.value();
3386
+ }
3387
+ /**
3388
+ * Options call for this endpoint
3389
+ */
3390
+ async getAvailableEVMGaslessRelayerOptionsRaw(requestParameters, initOverrides) {
3391
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3392
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAvailableEVMGaslessRelayerOptions.');
3393
+ }
3394
+ const queryParameters = {};
3395
+ const headerParameters = {};
3396
+ const response = await this.request({
3397
+ path: `/sdk/{environmentId}/evm/availableGaslessRelayer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3398
+ method: 'OPTIONS',
3399
+ headers: headerParameters,
3400
+ query: queryParameters,
3401
+ }, initOverrides);
3402
+ return new runtime.VoidApiResponse(response);
3403
+ }
3404
+ /**
3405
+ * Options call for this endpoint
3406
+ */
3407
+ async getAvailableEVMGaslessRelayerOptions(requestParameters, initOverrides) {
3408
+ await this.getAvailableEVMGaslessRelayerOptionsRaw(requestParameters, initOverrides);
3409
+ }
3290
3410
  /**
3291
3411
  * This endpoint generates a short-lived JWT token for use with WAAS client backups. The token is valid for 1 minute and can only be used for storing and retrieving client keyshare backups. A Dynamic Auth user must be authenticated and have a Dynamic JWT to use this endpoint.
3292
3412
  * Generate a short-lived JWT token for use with WAAS client backups.
@@ -3503,6 +3623,61 @@ class SDKApi extends runtime.BaseAPI {
3503
3623
  async getCurrencyExchangeRatesOptions(requestParameters, initOverrides) {
3504
3624
  await this.getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides);
3505
3625
  }
3626
+ /**
3627
+ * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
3628
+ * Get the status of a sponsored EVM transaction
3629
+ */
3630
+ async getEVMSponsoredTransactionStatusRaw(requestParameters, initOverrides) {
3631
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3632
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEVMSponsoredTransactionStatus.');
3633
+ }
3634
+ if (requestParameters.requestId === null || requestParameters.requestId === undefined) {
3635
+ throw new runtime.RequiredError('requestId', 'Required parameter requestParameters.requestId was null or undefined when calling getEVMSponsoredTransactionStatus.');
3636
+ }
3637
+ const queryParameters = {};
3638
+ const headerParameters = {};
3639
+ const response = await this.request({
3640
+ path: `/sdk/{environmentId}/evm/sponsorTransaction/{requestId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"requestId"}}`, encodeURIComponent(String(requestParameters.requestId))),
3641
+ method: 'GET',
3642
+ headers: headerParameters,
3643
+ query: queryParameters,
3644
+ }, initOverrides);
3645
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetEVMSponsoredTransactionStatusResponse.GetEVMSponsoredTransactionStatusResponseFromJSON(jsonValue));
3646
+ }
3647
+ /**
3648
+ * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
3649
+ * Get the status of a sponsored EVM transaction
3650
+ */
3651
+ async getEVMSponsoredTransactionStatus(requestParameters, initOverrides) {
3652
+ const response = await this.getEVMSponsoredTransactionStatusRaw(requestParameters, initOverrides);
3653
+ return await response.value();
3654
+ }
3655
+ /**
3656
+ * Options call for this endpoint
3657
+ */
3658
+ async getEVMSponsoredTransactionStatusOptionsRaw(requestParameters, initOverrides) {
3659
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3660
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEVMSponsoredTransactionStatusOptions.');
3661
+ }
3662
+ if (requestParameters.requestId === null || requestParameters.requestId === undefined) {
3663
+ throw new runtime.RequiredError('requestId', 'Required parameter requestParameters.requestId was null or undefined when calling getEVMSponsoredTransactionStatusOptions.');
3664
+ }
3665
+ const queryParameters = {};
3666
+ const headerParameters = {};
3667
+ const response = await this.request({
3668
+ path: `/sdk/{environmentId}/evm/sponsorTransaction/{requestId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"requestId"}}`, encodeURIComponent(String(requestParameters.requestId))),
3669
+ method: 'OPTIONS',
3670
+ headers: headerParameters,
3671
+ query: queryParameters,
3672
+ }, initOverrides);
3673
+ return new runtime.VoidApiResponse(response);
3674
+ }
3675
+ /**
3676
+ * Options call for this endpoint
3677
+ */
3678
+ async getEVMSponsoredTransactionStatusOptions(requestParameters, initOverrides) {
3679
+ await this.getEVMSponsoredTransactionStatusOptionsRaw(requestParameters, initOverrides);
3680
+ }
3506
3681
  /**
3507
3682
  * Return the email provider to be used for signing in with a given email. If an external provider such as magicLink is disabled, this endpoint would return emailOnly. If an external provider such as magicLink is enabled, it will return emailOnly when the email already exists in Dynamic and it is associated with a wallet, otherwise it will return magicLink.
3508
3683
  * Get the sign-in email provider
@@ -9765,6 +9940,15 @@ class SDKApi extends runtime.BaseAPI {
9765
9940
  await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
9766
9941
  }
9767
9942
  }
9943
+ /**
9944
+ * @export
9945
+ * @enum {string}
9946
+ */
9947
+ exports.GetAleoCuratedPricesNetworkEnum = void 0;
9948
+ (function (GetAleoCuratedPricesNetworkEnum) {
9949
+ GetAleoCuratedPricesNetworkEnum["Testnet"] = "testnet";
9950
+ GetAleoCuratedPricesNetworkEnum["Mainnet"] = "mainnet";
9951
+ })(exports.GetAleoCuratedPricesNetworkEnum || (exports.GetAleoCuratedPricesNetworkEnum = {}));
9768
9952
  /**
9769
9953
  * @export
9770
9954
  * @enum {string}
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
13
+ import { Account, AleoCuratedPricesResponse, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
14
14
  export interface AttachSourceOperationRequest {
15
15
  environmentId: string;
16
16
  transactionId: string;
@@ -373,6 +373,13 @@ export interface GetAccountBalancesOptionsRequest {
373
373
  accountAddress: string;
374
374
  transactionHash?: string;
375
375
  }
376
+ export interface GetAleoCuratedPricesRequest {
377
+ environmentId: string;
378
+ network: GetAleoCuratedPricesNetworkEnum;
379
+ }
380
+ export interface GetAleoCuratedPricesOptionsRequest {
381
+ environmentId: string;
382
+ }
376
383
  export interface GetAleoFeemasterPolicyRequest {
377
384
  environmentId: string;
378
385
  network: GetAleoFeemasterPolicyNetworkEnum;
@@ -397,6 +404,13 @@ export interface GetAuthTokenOptsRequest {
397
404
  export interface GetAuthenticatedUserRequest {
398
405
  environmentId: string;
399
406
  }
407
+ export interface GetAvailableEVMGaslessRelayerRequest {
408
+ environmentId: string;
409
+ chainId: number;
410
+ }
411
+ export interface GetAvailableEVMGaslessRelayerOptionsRequest {
412
+ environmentId: string;
413
+ }
400
414
  export interface GetBackupTokenRequest {
401
415
  environmentId: string;
402
416
  }
@@ -424,6 +438,14 @@ export interface GetCurrencyExchangeRatesRequest {
424
438
  export interface GetCurrencyExchangeRatesOptionsRequest {
425
439
  environmentId: string;
426
440
  }
441
+ export interface GetEVMSponsoredTransactionStatusRequest {
442
+ environmentId: string;
443
+ requestId: string;
444
+ }
445
+ export interface GetEVMSponsoredTransactionStatusOptionsRequest {
446
+ environmentId: string;
447
+ requestId: string;
448
+ }
427
449
  export interface GetEmailProviderRequest {
428
450
  environmentId: string;
429
451
  email: string;
@@ -2046,6 +2068,24 @@ export declare class SDKApi extends runtime.BaseAPI {
2046
2068
  * Options call for this endpoint
2047
2069
  */
2048
2070
  getAccountBalancesOptions(requestParameters: GetAccountBalancesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2071
+ /**
2072
+ * Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
2073
+ * Get curated Aleo token prices for the given network
2074
+ */
2075
+ getAleoCuratedPricesRaw(requestParameters: GetAleoCuratedPricesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AleoCuratedPricesResponse>>;
2076
+ /**
2077
+ * Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
2078
+ * Get curated Aleo token prices for the given network
2079
+ */
2080
+ getAleoCuratedPrices(requestParameters: GetAleoCuratedPricesRequest, initOverrides?: RequestInit): Promise<AleoCuratedPricesResponse>;
2081
+ /**
2082
+ * Options call for this endpoint
2083
+ */
2084
+ getAleoCuratedPricesOptionsRaw(requestParameters: GetAleoCuratedPricesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2085
+ /**
2086
+ * Options call for this endpoint
2087
+ */
2088
+ getAleoCuratedPricesOptions(requestParameters: GetAleoCuratedPricesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2049
2089
  /**
2050
2090
  * Returns the ANF-issued Feemaster policy for the given Aleo network. The policy lists which (programId, functionName) pairs the configured Bearer key sponsors. Forwarded server-side; the iframe never sees the Bearer key directly.
2051
2091
  * Get the ANF Feemaster sponsorship policy for Aleo
@@ -2110,6 +2150,24 @@ export declare class SDKApi extends runtime.BaseAPI {
2110
2150
  * Get the current user\'s profile
2111
2151
  */
2112
2152
  getAuthenticatedUser(requestParameters: GetAuthenticatedUserRequest, initOverrides?: RequestInit): Promise<SdkUser>;
2153
+ /**
2154
+ * Returns the relayer EOA that should be embedded in the EIP-712 sponsored transaction intent for the given chain. The address is owned by the project\'s relay backend and is the eventual `from` of the on-chain broadcast. Today a single relayer is returned; future implementations will round-robin across multiple workspace relayers.
2155
+ * Get an available EVM gasless relayer address
2156
+ */
2157
+ getAvailableEVMGaslessRelayerRaw(requestParameters: GetAvailableEVMGaslessRelayerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<GetAvailableEVMGaslessRelayerResponse>>;
2158
+ /**
2159
+ * Returns the relayer EOA that should be embedded in the EIP-712 sponsored transaction intent for the given chain. The address is owned by the project\'s relay backend and is the eventual `from` of the on-chain broadcast. Today a single relayer is returned; future implementations will round-robin across multiple workspace relayers.
2160
+ * Get an available EVM gasless relayer address
2161
+ */
2162
+ getAvailableEVMGaslessRelayer(requestParameters: GetAvailableEVMGaslessRelayerRequest, initOverrides?: RequestInit): Promise<GetAvailableEVMGaslessRelayerResponse>;
2163
+ /**
2164
+ * Options call for this endpoint
2165
+ */
2166
+ getAvailableEVMGaslessRelayerOptionsRaw(requestParameters: GetAvailableEVMGaslessRelayerOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2167
+ /**
2168
+ * Options call for this endpoint
2169
+ */
2170
+ getAvailableEVMGaslessRelayerOptions(requestParameters: GetAvailableEVMGaslessRelayerOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2113
2171
  /**
2114
2172
  * This endpoint generates a short-lived JWT token for use with WAAS client backups. The token is valid for 1 minute and can only be used for storing and retrieving client keyshare backups. A Dynamic Auth user must be authenticated and have a Dynamic JWT to use this endpoint.
2115
2173
  * Generate a short-lived JWT token for use with WAAS client backups.
@@ -2182,6 +2240,24 @@ export declare class SDKApi extends runtime.BaseAPI {
2182
2240
  * Options call for this endpoint
2183
2241
  */
2184
2242
  getCurrencyExchangeRatesOptions(requestParameters: GetCurrencyExchangeRatesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2243
+ /**
2244
+ * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
2245
+ * Get the status of a sponsored EVM transaction
2246
+ */
2247
+ getEVMSponsoredTransactionStatusRaw(requestParameters: GetEVMSponsoredTransactionStatusRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<GetEVMSponsoredTransactionStatusResponse>>;
2248
+ /**
2249
+ * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
2250
+ * Get the status of a sponsored EVM transaction
2251
+ */
2252
+ getEVMSponsoredTransactionStatus(requestParameters: GetEVMSponsoredTransactionStatusRequest, initOverrides?: RequestInit): Promise<GetEVMSponsoredTransactionStatusResponse>;
2253
+ /**
2254
+ * Options call for this endpoint
2255
+ */
2256
+ getEVMSponsoredTransactionStatusOptionsRaw(requestParameters: GetEVMSponsoredTransactionStatusOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2257
+ /**
2258
+ * Options call for this endpoint
2259
+ */
2260
+ getEVMSponsoredTransactionStatusOptions(requestParameters: GetEVMSponsoredTransactionStatusOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2185
2261
  /**
2186
2262
  * Return the email provider to be used for signing in with a given email. If an external provider such as magicLink is disabled, this endpoint would return emailOnly. If an external provider such as magicLink is enabled, it will return emailOnly when the email already exists in Dynamic and it is associated with a wallet, otherwise it will return magicLink.
2187
2263
  * Get the sign-in email provider
@@ -4085,6 +4161,14 @@ export declare class SDKApi extends runtime.BaseAPI {
4085
4161
  */
4086
4162
  walletsVerifyOptions(requestParameters: WalletsVerifyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4087
4163
  }
4164
+ /**
4165
+ * @export
4166
+ * @enum {string}
4167
+ */
4168
+ export declare enum GetAleoCuratedPricesNetworkEnum {
4169
+ Testnet = "testnet",
4170
+ Mainnet = "mainnet"
4171
+ }
4088
4172
  /**
4089
4173
  * @export
4090
4174
  * @enum {string}
@@ -1,5 +1,6 @@
1
1
  import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse, TextApiResponse, canConsumeForm } from '../runtime.js';
2
2
  import { AccountFromJSON } from '../models/Account.js';
3
+ import { AleoCuratedPricesResponseFromJSON } from '../models/AleoCuratedPricesResponse.js';
3
4
  import { AttachSourceRequestToJSON } from '../models/AttachSourceRequest.js';
4
5
  import '../models/AttestationConveyancePreference.js';
5
6
  import '../models/AuthModeEnum.js';
@@ -102,6 +103,8 @@ import '../models/ExternalWalletFundingTokenRule.js';
102
103
  import { FarcasterSignInRequestToJSON } from '../models/FarcasterSignInRequest.js';
103
104
  import '../models/OnrampProviders.js';
104
105
  import { GeneratedTokenResponseFromJSON } from '../models/GeneratedTokenResponse.js';
106
+ import { GetAvailableEVMGaslessRelayerResponseFromJSON } from '../models/GetAvailableEVMGaslessRelayerResponse.js';
107
+ import { GetEVMSponsoredTransactionStatusResponseFromJSON } from '../models/GetEVMSponsoredTransactionStatusResponse.js';
105
108
  import { GetPasskeyAuthenticationOptionsResponseFromJSON } from '../models/GetPasskeyAuthenticationOptionsResponse.js';
106
109
  import { GetPasskeyRegistrationOptionsResponseFromJSON } from '../models/GetPasskeyRegistrationOptionsResponse.js';
107
110
  import { GetUserPasskeysResponseFromJSON } from '../models/GetUserPasskeysResponse.js';
@@ -3067,6 +3070,68 @@ class SDKApi extends BaseAPI {
3067
3070
  async getAccountBalancesOptions(requestParameters, initOverrides) {
3068
3071
  await this.getAccountBalancesOptionsRaw(requestParameters, initOverrides);
3069
3072
  }
3073
+ /**
3074
+ * Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
3075
+ * Get curated Aleo token prices for the given network
3076
+ */
3077
+ async getAleoCuratedPricesRaw(requestParameters, initOverrides) {
3078
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3079
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPrices.');
3080
+ }
3081
+ if (requestParameters.network === null || requestParameters.network === undefined) {
3082
+ throw new RequiredError('network', 'Required parameter requestParameters.network was null or undefined when calling getAleoCuratedPrices.');
3083
+ }
3084
+ const queryParameters = {};
3085
+ if (requestParameters.network !== undefined) {
3086
+ queryParameters['network'] = requestParameters.network;
3087
+ }
3088
+ const headerParameters = {};
3089
+ if (this.configuration && this.configuration.accessToken) {
3090
+ const token = this.configuration.accessToken;
3091
+ const tokenString = await token("bearerAuth", []);
3092
+ if (tokenString) {
3093
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3094
+ }
3095
+ }
3096
+ const response = await this.request({
3097
+ path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3098
+ method: 'GET',
3099
+ headers: headerParameters,
3100
+ query: queryParameters,
3101
+ }, initOverrides);
3102
+ return new JSONApiResponse(response, (jsonValue) => AleoCuratedPricesResponseFromJSON(jsonValue));
3103
+ }
3104
+ /**
3105
+ * Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
3106
+ * Get curated Aleo token prices for the given network
3107
+ */
3108
+ async getAleoCuratedPrices(requestParameters, initOverrides) {
3109
+ const response = await this.getAleoCuratedPricesRaw(requestParameters, initOverrides);
3110
+ return await response.value();
3111
+ }
3112
+ /**
3113
+ * Options call for this endpoint
3114
+ */
3115
+ async getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides) {
3116
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3117
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPricesOptions.');
3118
+ }
3119
+ const queryParameters = {};
3120
+ const headerParameters = {};
3121
+ const response = await this.request({
3122
+ path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3123
+ method: 'OPTIONS',
3124
+ headers: headerParameters,
3125
+ query: queryParameters,
3126
+ }, initOverrides);
3127
+ return new VoidApiResponse(response);
3128
+ }
3129
+ /**
3130
+ * Options call for this endpoint
3131
+ */
3132
+ async getAleoCuratedPricesOptions(requestParameters, initOverrides) {
3133
+ await this.getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides);
3134
+ }
3070
3135
  /**
3071
3136
  * Returns the ANF-issued Feemaster policy for the given Aleo network. The policy lists which (programId, functionName) pairs the configured Bearer key sponsors. Forwarded server-side; the iframe never sees the Bearer key directly.
3072
3137
  * Get the ANF Feemaster sponsorship policy for Aleo
@@ -3283,6 +3348,61 @@ class SDKApi extends BaseAPI {
3283
3348
  const response = await this.getAuthenticatedUserRaw(requestParameters, initOverrides);
3284
3349
  return await response.value();
3285
3350
  }
3351
+ /**
3352
+ * Returns the relayer EOA that should be embedded in the EIP-712 sponsored transaction intent for the given chain. The address is owned by the project\'s relay backend and is the eventual `from` of the on-chain broadcast. Today a single relayer is returned; future implementations will round-robin across multiple workspace relayers.
3353
+ * Get an available EVM gasless relayer address
3354
+ */
3355
+ async getAvailableEVMGaslessRelayerRaw(requestParameters, initOverrides) {
3356
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3357
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAvailableEVMGaslessRelayer.');
3358
+ }
3359
+ if (requestParameters.chainId === null || requestParameters.chainId === undefined) {
3360
+ throw new RequiredError('chainId', 'Required parameter requestParameters.chainId was null or undefined when calling getAvailableEVMGaslessRelayer.');
3361
+ }
3362
+ const queryParameters = {};
3363
+ if (requestParameters.chainId !== undefined) {
3364
+ queryParameters['chainId'] = requestParameters.chainId;
3365
+ }
3366
+ const headerParameters = {};
3367
+ const response = await this.request({
3368
+ path: `/sdk/{environmentId}/evm/availableGaslessRelayer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3369
+ method: 'GET',
3370
+ headers: headerParameters,
3371
+ query: queryParameters,
3372
+ }, initOverrides);
3373
+ return new JSONApiResponse(response, (jsonValue) => GetAvailableEVMGaslessRelayerResponseFromJSON(jsonValue));
3374
+ }
3375
+ /**
3376
+ * Returns the relayer EOA that should be embedded in the EIP-712 sponsored transaction intent for the given chain. The address is owned by the project\'s relay backend and is the eventual `from` of the on-chain broadcast. Today a single relayer is returned; future implementations will round-robin across multiple workspace relayers.
3377
+ * Get an available EVM gasless relayer address
3378
+ */
3379
+ async getAvailableEVMGaslessRelayer(requestParameters, initOverrides) {
3380
+ const response = await this.getAvailableEVMGaslessRelayerRaw(requestParameters, initOverrides);
3381
+ return await response.value();
3382
+ }
3383
+ /**
3384
+ * Options call for this endpoint
3385
+ */
3386
+ async getAvailableEVMGaslessRelayerOptionsRaw(requestParameters, initOverrides) {
3387
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3388
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAvailableEVMGaslessRelayerOptions.');
3389
+ }
3390
+ const queryParameters = {};
3391
+ const headerParameters = {};
3392
+ const response = await this.request({
3393
+ path: `/sdk/{environmentId}/evm/availableGaslessRelayer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3394
+ method: 'OPTIONS',
3395
+ headers: headerParameters,
3396
+ query: queryParameters,
3397
+ }, initOverrides);
3398
+ return new VoidApiResponse(response);
3399
+ }
3400
+ /**
3401
+ * Options call for this endpoint
3402
+ */
3403
+ async getAvailableEVMGaslessRelayerOptions(requestParameters, initOverrides) {
3404
+ await this.getAvailableEVMGaslessRelayerOptionsRaw(requestParameters, initOverrides);
3405
+ }
3286
3406
  /**
3287
3407
  * This endpoint generates a short-lived JWT token for use with WAAS client backups. The token is valid for 1 minute and can only be used for storing and retrieving client keyshare backups. A Dynamic Auth user must be authenticated and have a Dynamic JWT to use this endpoint.
3288
3408
  * Generate a short-lived JWT token for use with WAAS client backups.
@@ -3499,6 +3619,61 @@ class SDKApi extends BaseAPI {
3499
3619
  async getCurrencyExchangeRatesOptions(requestParameters, initOverrides) {
3500
3620
  await this.getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides);
3501
3621
  }
3622
+ /**
3623
+ * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
3624
+ * Get the status of a sponsored EVM transaction
3625
+ */
3626
+ async getEVMSponsoredTransactionStatusRaw(requestParameters, initOverrides) {
3627
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3628
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEVMSponsoredTransactionStatus.');
3629
+ }
3630
+ if (requestParameters.requestId === null || requestParameters.requestId === undefined) {
3631
+ throw new RequiredError('requestId', 'Required parameter requestParameters.requestId was null or undefined when calling getEVMSponsoredTransactionStatus.');
3632
+ }
3633
+ const queryParameters = {};
3634
+ const headerParameters = {};
3635
+ const response = await this.request({
3636
+ path: `/sdk/{environmentId}/evm/sponsorTransaction/{requestId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"requestId"}}`, encodeURIComponent(String(requestParameters.requestId))),
3637
+ method: 'GET',
3638
+ headers: headerParameters,
3639
+ query: queryParameters,
3640
+ }, initOverrides);
3641
+ return new JSONApiResponse(response, (jsonValue) => GetEVMSponsoredTransactionStatusResponseFromJSON(jsonValue));
3642
+ }
3643
+ /**
3644
+ * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
3645
+ * Get the status of a sponsored EVM transaction
3646
+ */
3647
+ async getEVMSponsoredTransactionStatus(requestParameters, initOverrides) {
3648
+ const response = await this.getEVMSponsoredTransactionStatusRaw(requestParameters, initOverrides);
3649
+ return await response.value();
3650
+ }
3651
+ /**
3652
+ * Options call for this endpoint
3653
+ */
3654
+ async getEVMSponsoredTransactionStatusOptionsRaw(requestParameters, initOverrides) {
3655
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3656
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEVMSponsoredTransactionStatusOptions.');
3657
+ }
3658
+ if (requestParameters.requestId === null || requestParameters.requestId === undefined) {
3659
+ throw new RequiredError('requestId', 'Required parameter requestParameters.requestId was null or undefined when calling getEVMSponsoredTransactionStatusOptions.');
3660
+ }
3661
+ const queryParameters = {};
3662
+ const headerParameters = {};
3663
+ const response = await this.request({
3664
+ path: `/sdk/{environmentId}/evm/sponsorTransaction/{requestId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"requestId"}}`, encodeURIComponent(String(requestParameters.requestId))),
3665
+ method: 'OPTIONS',
3666
+ headers: headerParameters,
3667
+ query: queryParameters,
3668
+ }, initOverrides);
3669
+ return new VoidApiResponse(response);
3670
+ }
3671
+ /**
3672
+ * Options call for this endpoint
3673
+ */
3674
+ async getEVMSponsoredTransactionStatusOptions(requestParameters, initOverrides) {
3675
+ await this.getEVMSponsoredTransactionStatusOptionsRaw(requestParameters, initOverrides);
3676
+ }
3502
3677
  /**
3503
3678
  * Return the email provider to be used for signing in with a given email. If an external provider such as magicLink is disabled, this endpoint would return emailOnly. If an external provider such as magicLink is enabled, it will return emailOnly when the email already exists in Dynamic and it is associated with a wallet, otherwise it will return magicLink.
3504
3679
  * Get the sign-in email provider
@@ -9761,6 +9936,15 @@ class SDKApi extends BaseAPI {
9761
9936
  await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
9762
9937
  }
9763
9938
  }
9939
+ /**
9940
+ * @export
9941
+ * @enum {string}
9942
+ */
9943
+ var GetAleoCuratedPricesNetworkEnum;
9944
+ (function (GetAleoCuratedPricesNetworkEnum) {
9945
+ GetAleoCuratedPricesNetworkEnum["Testnet"] = "testnet";
9946
+ GetAleoCuratedPricesNetworkEnum["Mainnet"] = "mainnet";
9947
+ })(GetAleoCuratedPricesNetworkEnum || (GetAleoCuratedPricesNetworkEnum = {}));
9764
9948
  /**
9765
9949
  * @export
9766
9950
  * @enum {string}
@@ -9789,4 +9973,4 @@ var IsAleoFeemasterCoveredNetworkEnum;
9789
9973
  IsAleoFeemasterCoveredNetworkEnum["Mainnet"] = "mainnet";
9790
9974
  })(IsAleoFeemasterCoveredNetworkEnum || (IsAleoFeemasterCoveredNetworkEnum = {}));
9791
9975
 
9792
- export { GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi };
9976
+ export { GetAleoCuratedPricesNetworkEnum, GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi };
@@ -59,6 +59,7 @@ require('../models/EnvironmentEnum.cjs');
59
59
  require('../models/ExternalWalletFundingDefaultChain.cjs');
60
60
  require('../models/ExternalWalletFundingTokenRule.cjs');
61
61
  require('../models/OnrampProviders.cjs');
62
+ require('../models/GetEVMSponsoredTransactionStatusResponse.cjs');
62
63
  require('../models/PasskeyTransport.cjs');
63
64
  require('../models/PasskeyCredentialHint.cjs');
64
65
  require('../models/PasskeyCredentialType.cjs');
@@ -55,6 +55,7 @@ import '../models/EnvironmentEnum.js';
55
55
  import '../models/ExternalWalletFundingDefaultChain.js';
56
56
  import '../models/ExternalWalletFundingTokenRule.js';
57
57
  import '../models/OnrampProviders.js';
58
+ import '../models/GetEVMSponsoredTransactionStatusResponse.js';
58
59
  import '../models/PasskeyTransport.js';
59
60
  import '../models/PasskeyCredentialHint.js';
60
61
  import '../models/PasskeyCredentialType.js';