@dynamic-labs/sdk-api-core 0.0.869 → 0.0.871
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 +1 -1
- package/src/apis/SDKApi.cjs +150 -0
- package/src/apis/SDKApi.d.ts +54 -1
- package/src/apis/SDKApi.js +150 -0
- package/src/index.cjs +12 -0
- package/src/index.js +3 -0
- package/src/models/DeviceRegistrationRequest.cjs +37 -0
- package/src/models/DeviceRegistrationRequest.d.ts +39 -0
- package/src/models/DeviceRegistrationRequest.js +31 -0
- package/src/models/InlineObject.cjs +43 -0
- package/src/models/InlineObject.d.ts +27 -0
- package/src/models/InlineObject.js +37 -0
- package/src/models/TransactionFeeEstimateResponse.cjs +47 -0
- package/src/models/TransactionFeeEstimateResponse.d.ts +69 -0
- package/src/models/TransactionFeeEstimateResponse.js +41 -0
- package/src/models/index.d.ts +3 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -66,6 +66,7 @@ var DelegatedShareDeliveryRequest = require('../models/DelegatedShareDeliveryReq
|
|
|
66
66
|
var DelegatedShareDeliveryResponse = require('../models/DelegatedShareDeliveryResponse.cjs');
|
|
67
67
|
var DeleteEmbeddedWalletsRequest = require('../models/DeleteEmbeddedWalletsRequest.cjs');
|
|
68
68
|
var DeleteUserPasskeyRequest = require('../models/DeleteUserPasskeyRequest.cjs');
|
|
69
|
+
var DeviceRegistrationRequest = require('../models/DeviceRegistrationRequest.cjs');
|
|
69
70
|
require('../models/TimeUnitEnum.cjs');
|
|
70
71
|
var EmailProviderResponse = require('../models/EmailProviderResponse.cjs');
|
|
71
72
|
var EmailVerificationCreateRequest = require('../models/EmailVerificationCreateRequest.cjs');
|
|
@@ -106,6 +107,7 @@ var InitEmailAuthRequest = require('../models/InitEmailAuthRequest.cjs');
|
|
|
106
107
|
var InitEmailAuthResponse = require('../models/InitEmailAuthResponse.cjs');
|
|
107
108
|
var InitPasskeyRecoveryRequest = require('../models/InitPasskeyRecoveryRequest.cjs');
|
|
108
109
|
var InitPasskeyRecoveryResponse = require('../models/InitPasskeyRecoveryResponse.cjs');
|
|
110
|
+
var InlineObject = require('../models/InlineObject.cjs');
|
|
109
111
|
var JwksResponse = require('../models/JwksResponse.cjs');
|
|
110
112
|
require('../models/MFAAction.cjs');
|
|
111
113
|
require('../models/PublicKeyCredentialType.cjs');
|
|
@@ -184,6 +186,7 @@ var SupportedOfframpsResponse = require('../models/SupportedOfframpsResponse.cjs
|
|
|
184
186
|
var SupportedOnrampsResponse = require('../models/SupportedOnrampsResponse.cjs');
|
|
185
187
|
var TelegramPostRequest = require('../models/TelegramPostRequest.cjs');
|
|
186
188
|
require('../models/TokenScope.cjs');
|
|
189
|
+
var TransactionFeeEstimateResponse = require('../models/TransactionFeeEstimateResponse.cjs');
|
|
187
190
|
var TransferDestinationResponse = require('../models/TransferDestinationResponse.cjs');
|
|
188
191
|
var TurnkeyCreateWalletAccountsRequestBody = require('../models/TurnkeyCreateWalletAccountsRequestBody.cjs');
|
|
189
192
|
var TurnkeyDeleteEmbeddedWalletsRequestBody = require('../models/TurnkeyDeleteEmbeddedWalletsRequestBody.cjs');
|
|
@@ -2063,6 +2066,72 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2063
2066
|
yield this.deliverDelegatedShareOptionsRaw(requestParameters, initOverrides);
|
|
2064
2067
|
});
|
|
2065
2068
|
}
|
|
2069
|
+
/**
|
|
2070
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
2071
|
+
* Register a new device for an authenticated user
|
|
2072
|
+
*/
|
|
2073
|
+
deviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2074
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2075
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2076
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistration.');
|
|
2077
|
+
}
|
|
2078
|
+
const queryParameters = {};
|
|
2079
|
+
const headerParameters = {};
|
|
2080
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2081
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2082
|
+
const token = this.configuration.accessToken;
|
|
2083
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2084
|
+
if (tokenString) {
|
|
2085
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
const response = yield this.request({
|
|
2089
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2090
|
+
method: 'POST',
|
|
2091
|
+
headers: headerParameters,
|
|
2092
|
+
query: queryParameters,
|
|
2093
|
+
body: DeviceRegistrationRequest.DeviceRegistrationRequestToJSON(requestParameters.deviceRegistrationRequest),
|
|
2094
|
+
}, initOverrides);
|
|
2095
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VerifyResponse.VerifyResponseFromJSON(jsonValue));
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
2100
|
+
* Register a new device for an authenticated user
|
|
2101
|
+
*/
|
|
2102
|
+
deviceRegistration(requestParameters, initOverrides) {
|
|
2103
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2104
|
+
const response = yield this.deviceRegistrationRaw(requestParameters, initOverrides);
|
|
2105
|
+
return yield response.value();
|
|
2106
|
+
});
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Options call for this endpoint
|
|
2110
|
+
*/
|
|
2111
|
+
deviceRegistrationOptionsRaw(requestParameters, initOverrides) {
|
|
2112
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2113
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2114
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationOptions.');
|
|
2115
|
+
}
|
|
2116
|
+
const queryParameters = {};
|
|
2117
|
+
const headerParameters = {};
|
|
2118
|
+
const response = yield this.request({
|
|
2119
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2120
|
+
method: 'OPTIONS',
|
|
2121
|
+
headers: headerParameters,
|
|
2122
|
+
query: queryParameters,
|
|
2123
|
+
}, initOverrides);
|
|
2124
|
+
return new runtime.VoidApiResponse(response);
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Options call for this endpoint
|
|
2129
|
+
*/
|
|
2130
|
+
deviceRegistrationOptions(requestParameters, initOverrides) {
|
|
2131
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2132
|
+
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2133
|
+
});
|
|
2134
|
+
}
|
|
2066
2135
|
/**
|
|
2067
2136
|
* Disconnects the specified global wallet connection.
|
|
2068
2137
|
* Disconnect a global wallet connection
|
|
@@ -2293,6 +2362,87 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2293
2362
|
yield this.embeddedWalletExportOptionsRaw(requestParameters, initOverrides);
|
|
2294
2363
|
});
|
|
2295
2364
|
}
|
|
2365
|
+
/**
|
|
2366
|
+
* Estimates the gas fees for a given raw transaction.
|
|
2367
|
+
* Estimate transaction fees
|
|
2368
|
+
*/
|
|
2369
|
+
estimateTransactionFeeRaw(requestParameters, initOverrides) {
|
|
2370
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2371
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2372
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFee.');
|
|
2373
|
+
}
|
|
2374
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
2375
|
+
throw new runtime.RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFee.');
|
|
2376
|
+
}
|
|
2377
|
+
if (requestParameters.inlineObject === null || requestParameters.inlineObject === undefined) {
|
|
2378
|
+
throw new runtime.RequiredError('inlineObject', 'Required parameter requestParameters.inlineObject was null or undefined when calling estimateTransactionFee.');
|
|
2379
|
+
}
|
|
2380
|
+
const queryParameters = {};
|
|
2381
|
+
const headerParameters = {};
|
|
2382
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2383
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2384
|
+
const token = this.configuration.accessToken;
|
|
2385
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2386
|
+
if (tokenString) {
|
|
2387
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
const response = yield this.request({
|
|
2391
|
+
path: `/sdk/{environmentId}/chains/{chainName}/transactions/estimate`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
2392
|
+
method: 'POST',
|
|
2393
|
+
headers: headerParameters,
|
|
2394
|
+
query: queryParameters,
|
|
2395
|
+
body: InlineObject.InlineObjectToJSON(requestParameters.inlineObject),
|
|
2396
|
+
}, initOverrides);
|
|
2397
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TransactionFeeEstimateResponse.TransactionFeeEstimateResponseFromJSON(jsonValue));
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
/**
|
|
2401
|
+
* Estimates the gas fees for a given raw transaction.
|
|
2402
|
+
* Estimate transaction fees
|
|
2403
|
+
*/
|
|
2404
|
+
estimateTransactionFee(requestParameters, initOverrides) {
|
|
2405
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2406
|
+
const response = yield this.estimateTransactionFeeRaw(requestParameters, initOverrides);
|
|
2407
|
+
return yield response.value();
|
|
2408
|
+
});
|
|
2409
|
+
}
|
|
2410
|
+
/**
|
|
2411
|
+
* Options call for this endpoint
|
|
2412
|
+
*/
|
|
2413
|
+
estimateTransactionFeeOptionsRaw(requestParameters, initOverrides) {
|
|
2414
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2415
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2416
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2417
|
+
}
|
|
2418
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
2419
|
+
throw new runtime.RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2420
|
+
}
|
|
2421
|
+
if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
|
|
2422
|
+
throw new runtime.RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2423
|
+
}
|
|
2424
|
+
const queryParameters = {};
|
|
2425
|
+
if (requestParameters.networkId !== undefined) {
|
|
2426
|
+
queryParameters['networkId'] = requestParameters.networkId;
|
|
2427
|
+
}
|
|
2428
|
+
const headerParameters = {};
|
|
2429
|
+
const response = yield this.request({
|
|
2430
|
+
path: `/sdk/{environmentId}/chains/{chainName}/transactions/estimate`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
2431
|
+
method: 'OPTIONS',
|
|
2432
|
+
headers: headerParameters,
|
|
2433
|
+
query: queryParameters,
|
|
2434
|
+
}, initOverrides);
|
|
2435
|
+
return new runtime.VoidApiResponse(response);
|
|
2436
|
+
});
|
|
2437
|
+
}
|
|
2438
|
+
/**
|
|
2439
|
+
* Options call for this endpoint
|
|
2440
|
+
*/
|
|
2441
|
+
estimateTransactionFeeOptions(requestParameters, initOverrides) {
|
|
2442
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2443
|
+
yield this.estimateTransactionFeeOptionsRaw(requestParameters, initOverrides);
|
|
2444
|
+
});
|
|
2445
|
+
}
|
|
2296
2446
|
/**
|
|
2297
2447
|
*/
|
|
2298
2448
|
eventsOptionsRaw(requestParameters, initOverrides) {
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, 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, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, 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 AuthMfaEmailDeviceOptionsRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
@@ -214,6 +214,13 @@ export interface DeliverDelegatedShareOptionsRequest {
|
|
|
214
214
|
environmentId: string;
|
|
215
215
|
walletId: string;
|
|
216
216
|
}
|
|
217
|
+
export interface DeviceRegistrationOperationRequest {
|
|
218
|
+
environmentId: string;
|
|
219
|
+
deviceRegistrationRequest?: DeviceRegistrationRequest;
|
|
220
|
+
}
|
|
221
|
+
export interface DeviceRegistrationOptionsRequest {
|
|
222
|
+
environmentId: string;
|
|
223
|
+
}
|
|
217
224
|
export interface DisconnectGlobalWalletConnectionRequest {
|
|
218
225
|
environmentId: string;
|
|
219
226
|
globalWalletConnectionId: string;
|
|
@@ -242,6 +249,16 @@ export interface EmbeddedWalletExportOptionsRequest {
|
|
|
242
249
|
walletId: string;
|
|
243
250
|
activityId: string;
|
|
244
251
|
}
|
|
252
|
+
export interface EstimateTransactionFeeRequest {
|
|
253
|
+
environmentId: string;
|
|
254
|
+
chainName: ChainEnum;
|
|
255
|
+
inlineObject: InlineObject;
|
|
256
|
+
}
|
|
257
|
+
export interface EstimateTransactionFeeOptionsRequest {
|
|
258
|
+
environmentId: string;
|
|
259
|
+
chainName: ChainEnum;
|
|
260
|
+
networkId: number;
|
|
261
|
+
}
|
|
245
262
|
export interface EventsOptionsRequest {
|
|
246
263
|
environmentId: string;
|
|
247
264
|
}
|
|
@@ -1497,6 +1514,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1497
1514
|
* Options call for this endpoint
|
|
1498
1515
|
*/
|
|
1499
1516
|
deliverDelegatedShareOptions(requestParameters: DeliverDelegatedShareOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1517
|
+
/**
|
|
1518
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
1519
|
+
* Register a new device for an authenticated user
|
|
1520
|
+
*/
|
|
1521
|
+
deviceRegistrationRaw(requestParameters: DeviceRegistrationOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
|
|
1522
|
+
/**
|
|
1523
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
1524
|
+
* Register a new device for an authenticated user
|
|
1525
|
+
*/
|
|
1526
|
+
deviceRegistration(requestParameters: DeviceRegistrationOperationRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Options call for this endpoint
|
|
1529
|
+
*/
|
|
1530
|
+
deviceRegistrationOptionsRaw(requestParameters: DeviceRegistrationOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1531
|
+
/**
|
|
1532
|
+
* Options call for this endpoint
|
|
1533
|
+
*/
|
|
1534
|
+
deviceRegistrationOptions(requestParameters: DeviceRegistrationOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1500
1535
|
/**
|
|
1501
1536
|
* Disconnects the specified global wallet connection.
|
|
1502
1537
|
* Disconnect a global wallet connection
|
|
@@ -1557,6 +1592,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1557
1592
|
* Options call for this endpoint
|
|
1558
1593
|
*/
|
|
1559
1594
|
embeddedWalletExportOptions(requestParameters: EmbeddedWalletExportOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1595
|
+
/**
|
|
1596
|
+
* Estimates the gas fees for a given raw transaction.
|
|
1597
|
+
* Estimate transaction fees
|
|
1598
|
+
*/
|
|
1599
|
+
estimateTransactionFeeRaw(requestParameters: EstimateTransactionFeeRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<TransactionFeeEstimateResponse>>;
|
|
1600
|
+
/**
|
|
1601
|
+
* Estimates the gas fees for a given raw transaction.
|
|
1602
|
+
* Estimate transaction fees
|
|
1603
|
+
*/
|
|
1604
|
+
estimateTransactionFee(requestParameters: EstimateTransactionFeeRequest, initOverrides?: RequestInit): Promise<TransactionFeeEstimateResponse>;
|
|
1605
|
+
/**
|
|
1606
|
+
* Options call for this endpoint
|
|
1607
|
+
*/
|
|
1608
|
+
estimateTransactionFeeOptionsRaw(requestParameters: EstimateTransactionFeeOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1609
|
+
/**
|
|
1610
|
+
* Options call for this endpoint
|
|
1611
|
+
*/
|
|
1612
|
+
estimateTransactionFeeOptions(requestParameters: EstimateTransactionFeeOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1560
1613
|
/**
|
|
1561
1614
|
*/
|
|
1562
1615
|
eventsOptionsRaw(requestParameters: EventsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -62,6 +62,7 @@ import { DelegatedShareDeliveryRequestToJSON } from '../models/DelegatedShareDel
|
|
|
62
62
|
import { DelegatedShareDeliveryResponseFromJSON } from '../models/DelegatedShareDeliveryResponse.js';
|
|
63
63
|
import { DeleteEmbeddedWalletsRequestToJSON } from '../models/DeleteEmbeddedWalletsRequest.js';
|
|
64
64
|
import { DeleteUserPasskeyRequestToJSON } from '../models/DeleteUserPasskeyRequest.js';
|
|
65
|
+
import { DeviceRegistrationRequestToJSON } from '../models/DeviceRegistrationRequest.js';
|
|
65
66
|
import '../models/TimeUnitEnum.js';
|
|
66
67
|
import { EmailProviderResponseFromJSON } from '../models/EmailProviderResponse.js';
|
|
67
68
|
import { EmailVerificationCreateRequestToJSON } from '../models/EmailVerificationCreateRequest.js';
|
|
@@ -102,6 +103,7 @@ import { InitEmailAuthRequestToJSON } from '../models/InitEmailAuthRequest.js';
|
|
|
102
103
|
import { InitEmailAuthResponseFromJSON } from '../models/InitEmailAuthResponse.js';
|
|
103
104
|
import { InitPasskeyRecoveryRequestToJSON } from '../models/InitPasskeyRecoveryRequest.js';
|
|
104
105
|
import { InitPasskeyRecoveryResponseFromJSON } from '../models/InitPasskeyRecoveryResponse.js';
|
|
106
|
+
import { InlineObjectToJSON } from '../models/InlineObject.js';
|
|
105
107
|
import { JwksResponseFromJSON } from '../models/JwksResponse.js';
|
|
106
108
|
import '../models/MFAAction.js';
|
|
107
109
|
import '../models/PublicKeyCredentialType.js';
|
|
@@ -180,6 +182,7 @@ import { SupportedOfframpsResponseFromJSON } from '../models/SupportedOfframpsRe
|
|
|
180
182
|
import { SupportedOnrampsResponseFromJSON } from '../models/SupportedOnrampsResponse.js';
|
|
181
183
|
import { TelegramPostRequestToJSON } from '../models/TelegramPostRequest.js';
|
|
182
184
|
import '../models/TokenScope.js';
|
|
185
|
+
import { TransactionFeeEstimateResponseFromJSON } from '../models/TransactionFeeEstimateResponse.js';
|
|
183
186
|
import { TransferDestinationResponseFromJSON } from '../models/TransferDestinationResponse.js';
|
|
184
187
|
import { TurnkeyCreateWalletAccountsRequestBodyFromJSON } from '../models/TurnkeyCreateWalletAccountsRequestBody.js';
|
|
185
188
|
import { TurnkeyDeleteEmbeddedWalletsRequestBodyFromJSON } from '../models/TurnkeyDeleteEmbeddedWalletsRequestBody.js';
|
|
@@ -2059,6 +2062,72 @@ class SDKApi extends BaseAPI {
|
|
|
2059
2062
|
yield this.deliverDelegatedShareOptionsRaw(requestParameters, initOverrides);
|
|
2060
2063
|
});
|
|
2061
2064
|
}
|
|
2065
|
+
/**
|
|
2066
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
2067
|
+
* Register a new device for an authenticated user
|
|
2068
|
+
*/
|
|
2069
|
+
deviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2070
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2071
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2072
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistration.');
|
|
2073
|
+
}
|
|
2074
|
+
const queryParameters = {};
|
|
2075
|
+
const headerParameters = {};
|
|
2076
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2077
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2078
|
+
const token = this.configuration.accessToken;
|
|
2079
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2080
|
+
if (tokenString) {
|
|
2081
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
const response = yield this.request({
|
|
2085
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2086
|
+
method: 'POST',
|
|
2087
|
+
headers: headerParameters,
|
|
2088
|
+
query: queryParameters,
|
|
2089
|
+
body: DeviceRegistrationRequestToJSON(requestParameters.deviceRegistrationRequest),
|
|
2090
|
+
}, initOverrides);
|
|
2091
|
+
return new JSONApiResponse(response, (jsonValue) => VerifyResponseFromJSON(jsonValue));
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* This endpoint allows registering a new device using a device registration token. The token is passed via the x-dynamic-device-token-registration header. Optionally accepts mobile registration parameters (nonce, signedNonce, publicKey) for mobile device verification.
|
|
2096
|
+
* Register a new device for an authenticated user
|
|
2097
|
+
*/
|
|
2098
|
+
deviceRegistration(requestParameters, initOverrides) {
|
|
2099
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2100
|
+
const response = yield this.deviceRegistrationRaw(requestParameters, initOverrides);
|
|
2101
|
+
return yield response.value();
|
|
2102
|
+
});
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Options call for this endpoint
|
|
2106
|
+
*/
|
|
2107
|
+
deviceRegistrationOptionsRaw(requestParameters, initOverrides) {
|
|
2108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2109
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2110
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationOptions.');
|
|
2111
|
+
}
|
|
2112
|
+
const queryParameters = {};
|
|
2113
|
+
const headerParameters = {};
|
|
2114
|
+
const response = yield this.request({
|
|
2115
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2116
|
+
method: 'OPTIONS',
|
|
2117
|
+
headers: headerParameters,
|
|
2118
|
+
query: queryParameters,
|
|
2119
|
+
}, initOverrides);
|
|
2120
|
+
return new VoidApiResponse(response);
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2123
|
+
/**
|
|
2124
|
+
* Options call for this endpoint
|
|
2125
|
+
*/
|
|
2126
|
+
deviceRegistrationOptions(requestParameters, initOverrides) {
|
|
2127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2128
|
+
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2062
2131
|
/**
|
|
2063
2132
|
* Disconnects the specified global wallet connection.
|
|
2064
2133
|
* Disconnect a global wallet connection
|
|
@@ -2289,6 +2358,87 @@ class SDKApi extends BaseAPI {
|
|
|
2289
2358
|
yield this.embeddedWalletExportOptionsRaw(requestParameters, initOverrides);
|
|
2290
2359
|
});
|
|
2291
2360
|
}
|
|
2361
|
+
/**
|
|
2362
|
+
* Estimates the gas fees for a given raw transaction.
|
|
2363
|
+
* Estimate transaction fees
|
|
2364
|
+
*/
|
|
2365
|
+
estimateTransactionFeeRaw(requestParameters, initOverrides) {
|
|
2366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2367
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2368
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFee.');
|
|
2369
|
+
}
|
|
2370
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
2371
|
+
throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFee.');
|
|
2372
|
+
}
|
|
2373
|
+
if (requestParameters.inlineObject === null || requestParameters.inlineObject === undefined) {
|
|
2374
|
+
throw new RequiredError('inlineObject', 'Required parameter requestParameters.inlineObject was null or undefined when calling estimateTransactionFee.');
|
|
2375
|
+
}
|
|
2376
|
+
const queryParameters = {};
|
|
2377
|
+
const headerParameters = {};
|
|
2378
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2379
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2380
|
+
const token = this.configuration.accessToken;
|
|
2381
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2382
|
+
if (tokenString) {
|
|
2383
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
const response = yield this.request({
|
|
2387
|
+
path: `/sdk/{environmentId}/chains/{chainName}/transactions/estimate`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
2388
|
+
method: 'POST',
|
|
2389
|
+
headers: headerParameters,
|
|
2390
|
+
query: queryParameters,
|
|
2391
|
+
body: InlineObjectToJSON(requestParameters.inlineObject),
|
|
2392
|
+
}, initOverrides);
|
|
2393
|
+
return new JSONApiResponse(response, (jsonValue) => TransactionFeeEstimateResponseFromJSON(jsonValue));
|
|
2394
|
+
});
|
|
2395
|
+
}
|
|
2396
|
+
/**
|
|
2397
|
+
* Estimates the gas fees for a given raw transaction.
|
|
2398
|
+
* Estimate transaction fees
|
|
2399
|
+
*/
|
|
2400
|
+
estimateTransactionFee(requestParameters, initOverrides) {
|
|
2401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2402
|
+
const response = yield this.estimateTransactionFeeRaw(requestParameters, initOverrides);
|
|
2403
|
+
return yield response.value();
|
|
2404
|
+
});
|
|
2405
|
+
}
|
|
2406
|
+
/**
|
|
2407
|
+
* Options call for this endpoint
|
|
2408
|
+
*/
|
|
2409
|
+
estimateTransactionFeeOptionsRaw(requestParameters, initOverrides) {
|
|
2410
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2411
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2412
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2413
|
+
}
|
|
2414
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
2415
|
+
throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2416
|
+
}
|
|
2417
|
+
if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
|
|
2418
|
+
throw new RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2419
|
+
}
|
|
2420
|
+
const queryParameters = {};
|
|
2421
|
+
if (requestParameters.networkId !== undefined) {
|
|
2422
|
+
queryParameters['networkId'] = requestParameters.networkId;
|
|
2423
|
+
}
|
|
2424
|
+
const headerParameters = {};
|
|
2425
|
+
const response = yield this.request({
|
|
2426
|
+
path: `/sdk/{environmentId}/chains/{chainName}/transactions/estimate`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
2427
|
+
method: 'OPTIONS',
|
|
2428
|
+
headers: headerParameters,
|
|
2429
|
+
query: queryParameters,
|
|
2430
|
+
}, initOverrides);
|
|
2431
|
+
return new VoidApiResponse(response);
|
|
2432
|
+
});
|
|
2433
|
+
}
|
|
2434
|
+
/**
|
|
2435
|
+
* Options call for this endpoint
|
|
2436
|
+
*/
|
|
2437
|
+
estimateTransactionFeeOptions(requestParameters, initOverrides) {
|
|
2438
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2439
|
+
yield this.estimateTransactionFeeOptionsRaw(requestParameters, initOverrides);
|
|
2440
|
+
});
|
|
2441
|
+
}
|
|
2292
2442
|
/**
|
|
2293
2443
|
*/
|
|
2294
2444
|
eventsOptionsRaw(requestParameters, initOverrides) {
|
package/src/index.cjs
CHANGED
|
@@ -82,6 +82,7 @@ var DelegatedShareDeliveryRequestEncryptedDelegatedShare = require('./models/Del
|
|
|
82
82
|
var DelegatedShareDeliveryResponse = require('./models/DelegatedShareDeliveryResponse.cjs');
|
|
83
83
|
var DeleteEmbeddedWalletsRequest = require('./models/DeleteEmbeddedWalletsRequest.cjs');
|
|
84
84
|
var DeleteUserPasskeyRequest = require('./models/DeleteUserPasskeyRequest.cjs');
|
|
85
|
+
var DeviceRegistrationRequest = require('./models/DeviceRegistrationRequest.cjs');
|
|
85
86
|
var Duration = require('./models/Duration.cjs');
|
|
86
87
|
var DynamicJwt = require('./models/DynamicJwt.cjs');
|
|
87
88
|
var EcdsaValidatorOptions = require('./models/EcdsaValidatorOptions.cjs');
|
|
@@ -148,6 +149,7 @@ var InitEmailAuthRequest = require('./models/InitEmailAuthRequest.cjs');
|
|
|
148
149
|
var InitEmailAuthResponse = require('./models/InitEmailAuthResponse.cjs');
|
|
149
150
|
var InitPasskeyRecoveryRequest = require('./models/InitPasskeyRecoveryRequest.cjs');
|
|
150
151
|
var InitPasskeyRecoveryResponse = require('./models/InitPasskeyRecoveryResponse.cjs');
|
|
152
|
+
var InlineObject = require('./models/InlineObject.cjs');
|
|
151
153
|
var IntegrationSetting = require('./models/IntegrationSetting.cjs');
|
|
152
154
|
var InternalServerError = require('./models/InternalServerError.cjs');
|
|
153
155
|
var JwksKey = require('./models/JwksKey.cjs');
|
|
@@ -334,6 +336,7 @@ var TimeUnitEnum = require('./models/TimeUnitEnum.cjs');
|
|
|
334
336
|
var TokenBalance = require('./models/TokenBalance.cjs');
|
|
335
337
|
var TokenScope = require('./models/TokenScope.cjs');
|
|
336
338
|
var TooManyRequests = require('./models/TooManyRequests.cjs');
|
|
339
|
+
var TransactionFeeEstimateResponse = require('./models/TransactionFeeEstimateResponse.cjs');
|
|
337
340
|
var TransferDestination = require('./models/TransferDestination.cjs');
|
|
338
341
|
var TransferDestinationResponse = require('./models/TransferDestinationResponse.cjs');
|
|
339
342
|
var TurnkeyCreateWalletAccountsRequestBody = require('./models/TurnkeyCreateWalletAccountsRequestBody.cjs');
|
|
@@ -702,6 +705,9 @@ exports.DeleteEmbeddedWalletsRequestToJSON = DeleteEmbeddedWalletsRequest.Delete
|
|
|
702
705
|
exports.DeleteUserPasskeyRequestFromJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSON;
|
|
703
706
|
exports.DeleteUserPasskeyRequestFromJSONTyped = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSONTyped;
|
|
704
707
|
exports.DeleteUserPasskeyRequestToJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestToJSON;
|
|
708
|
+
exports.DeviceRegistrationRequestFromJSON = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSON;
|
|
709
|
+
exports.DeviceRegistrationRequestFromJSONTyped = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSONTyped;
|
|
710
|
+
exports.DeviceRegistrationRequestToJSON = DeviceRegistrationRequest.DeviceRegistrationRequestToJSON;
|
|
705
711
|
exports.DurationFromJSON = Duration.DurationFromJSON;
|
|
706
712
|
exports.DurationFromJSONTyped = Duration.DurationFromJSONTyped;
|
|
707
713
|
exports.DurationToJSON = Duration.DurationToJSON;
|
|
@@ -956,6 +962,9 @@ exports.InitPasskeyRecoveryRequestToJSON = InitPasskeyRecoveryRequest.InitPasske
|
|
|
956
962
|
exports.InitPasskeyRecoveryResponseFromJSON = InitPasskeyRecoveryResponse.InitPasskeyRecoveryResponseFromJSON;
|
|
957
963
|
exports.InitPasskeyRecoveryResponseFromJSONTyped = InitPasskeyRecoveryResponse.InitPasskeyRecoveryResponseFromJSONTyped;
|
|
958
964
|
exports.InitPasskeyRecoveryResponseToJSON = InitPasskeyRecoveryResponse.InitPasskeyRecoveryResponseToJSON;
|
|
965
|
+
exports.InlineObjectFromJSON = InlineObject.InlineObjectFromJSON;
|
|
966
|
+
exports.InlineObjectFromJSONTyped = InlineObject.InlineObjectFromJSONTyped;
|
|
967
|
+
exports.InlineObjectToJSON = InlineObject.InlineObjectToJSON;
|
|
959
968
|
exports.IntegrationSettingFromJSON = IntegrationSetting.IntegrationSettingFromJSON;
|
|
960
969
|
exports.IntegrationSettingFromJSONTyped = IntegrationSetting.IntegrationSettingFromJSONTyped;
|
|
961
970
|
exports.IntegrationSettingToJSON = IntegrationSetting.IntegrationSettingToJSON;
|
|
@@ -1638,6 +1647,9 @@ exports.TokenScopeToJSON = TokenScope.TokenScopeToJSON;
|
|
|
1638
1647
|
exports.TooManyRequestsFromJSON = TooManyRequests.TooManyRequestsFromJSON;
|
|
1639
1648
|
exports.TooManyRequestsFromJSONTyped = TooManyRequests.TooManyRequestsFromJSONTyped;
|
|
1640
1649
|
exports.TooManyRequestsToJSON = TooManyRequests.TooManyRequestsToJSON;
|
|
1650
|
+
exports.TransactionFeeEstimateResponseFromJSON = TransactionFeeEstimateResponse.TransactionFeeEstimateResponseFromJSON;
|
|
1651
|
+
exports.TransactionFeeEstimateResponseFromJSONTyped = TransactionFeeEstimateResponse.TransactionFeeEstimateResponseFromJSONTyped;
|
|
1652
|
+
exports.TransactionFeeEstimateResponseToJSON = TransactionFeeEstimateResponse.TransactionFeeEstimateResponseToJSON;
|
|
1641
1653
|
exports.TransferDestinationFromJSON = TransferDestination.TransferDestinationFromJSON;
|
|
1642
1654
|
exports.TransferDestinationFromJSONTyped = TransferDestination.TransferDestinationFromJSONTyped;
|
|
1643
1655
|
exports.TransferDestinationToJSON = TransferDestination.TransferDestinationToJSON;
|
package/src/index.js
CHANGED
|
@@ -78,6 +78,7 @@ export { DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSON, Delegated
|
|
|
78
78
|
export { DelegatedShareDeliveryResponseFromJSON, DelegatedShareDeliveryResponseFromJSONTyped, DelegatedShareDeliveryResponseStatusEnum, DelegatedShareDeliveryResponseToJSON } from './models/DelegatedShareDeliveryResponse.js';
|
|
79
79
|
export { DeleteEmbeddedWalletsRequestFromJSON, DeleteEmbeddedWalletsRequestFromJSONTyped, DeleteEmbeddedWalletsRequestToJSON } from './models/DeleteEmbeddedWalletsRequest.js';
|
|
80
80
|
export { DeleteUserPasskeyRequestFromJSON, DeleteUserPasskeyRequestFromJSONTyped, DeleteUserPasskeyRequestToJSON } from './models/DeleteUserPasskeyRequest.js';
|
|
81
|
+
export { DeviceRegistrationRequestFromJSON, DeviceRegistrationRequestFromJSONTyped, DeviceRegistrationRequestToJSON } from './models/DeviceRegistrationRequest.js';
|
|
81
82
|
export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
|
|
82
83
|
export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.js';
|
|
83
84
|
export { EcdsaValidatorOptions, EcdsaValidatorOptionsFromJSON, EcdsaValidatorOptionsFromJSONTyped, EcdsaValidatorOptionsToJSON } from './models/EcdsaValidatorOptions.js';
|
|
@@ -144,6 +145,7 @@ export { InitEmailAuthRequestFromJSON, InitEmailAuthRequestFromJSONTyped, InitEm
|
|
|
144
145
|
export { InitEmailAuthResponseFromJSON, InitEmailAuthResponseFromJSONTyped, InitEmailAuthResponseToJSON } from './models/InitEmailAuthResponse.js';
|
|
145
146
|
export { InitPasskeyRecoveryRequestFromJSON, InitPasskeyRecoveryRequestFromJSONTyped, InitPasskeyRecoveryRequestToJSON } from './models/InitPasskeyRecoveryRequest.js';
|
|
146
147
|
export { InitPasskeyRecoveryResponseFromJSON, InitPasskeyRecoveryResponseFromJSONTyped, InitPasskeyRecoveryResponseToJSON } from './models/InitPasskeyRecoveryResponse.js';
|
|
148
|
+
export { InlineObjectFromJSON, InlineObjectFromJSONTyped, InlineObjectToJSON } from './models/InlineObject.js';
|
|
147
149
|
export { IntegrationSettingFromJSON, IntegrationSettingFromJSONTyped, IntegrationSettingToJSON } from './models/IntegrationSetting.js';
|
|
148
150
|
export { InternalServerErrorFromJSON, InternalServerErrorFromJSONTyped, InternalServerErrorToJSON } from './models/InternalServerError.js';
|
|
149
151
|
export { JwksKeyFromJSON, JwksKeyFromJSONTyped, JwksKeyToJSON } from './models/JwksKey.js';
|
|
@@ -330,6 +332,7 @@ export { TimeUnitEnum, TimeUnitEnumFromJSON, TimeUnitEnumFromJSONTyped, TimeUnit
|
|
|
330
332
|
export { TokenBalanceFromJSON, TokenBalanceFromJSONTyped, TokenBalanceToJSON } from './models/TokenBalance.js';
|
|
331
333
|
export { TokenScope, TokenScopeFromJSON, TokenScopeFromJSONTyped, TokenScopeToJSON } from './models/TokenScope.js';
|
|
332
334
|
export { TooManyRequestsFromJSON, TooManyRequestsFromJSONTyped, TooManyRequestsToJSON } from './models/TooManyRequests.js';
|
|
335
|
+
export { TransactionFeeEstimateResponseFromJSON, TransactionFeeEstimateResponseFromJSONTyped, TransactionFeeEstimateResponseToJSON } from './models/TransactionFeeEstimateResponse.js';
|
|
333
336
|
export { TransferDestinationFromJSON, TransferDestinationFromJSONTyped, TransferDestinationToJSON } from './models/TransferDestination.js';
|
|
334
337
|
export { TransferDestinationResponseFromJSON, TransferDestinationResponseFromJSONTyped, TransferDestinationResponseToJSON } from './models/TransferDestinationResponse.js';
|
|
335
338
|
export { TurnkeyCreateWalletAccountsRequestBodyFromJSON, TurnkeyCreateWalletAccountsRequestBodyFromJSONTyped, TurnkeyCreateWalletAccountsRequestBodyToJSON } from './models/TurnkeyCreateWalletAccountsRequestBody.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function DeviceRegistrationRequestFromJSON(json) {
|
|
9
|
+
return DeviceRegistrationRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function DeviceRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
|
|
17
|
+
'signedNonce': !runtime.exists(json, 'signedNonce') ? undefined : json['signedNonce'],
|
|
18
|
+
'publicKey': !runtime.exists(json, 'publicKey') ? undefined : json['publicKey'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function DeviceRegistrationRequestToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'nonce': value.nonce,
|
|
30
|
+
'signedNonce': value.signedNonce,
|
|
31
|
+
'publicKey': value.publicKey,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.DeviceRegistrationRequestFromJSON = DeviceRegistrationRequestFromJSON;
|
|
36
|
+
exports.DeviceRegistrationRequestFromJSONTyped = DeviceRegistrationRequestFromJSONTyped;
|
|
37
|
+
exports.DeviceRegistrationRequestToJSON = DeviceRegistrationRequestToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Request body for device registration with optional mobile registration fields
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeviceRegistrationRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DeviceRegistrationRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Nonce for mobile device registration
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeviceRegistrationRequest
|
|
22
|
+
*/
|
|
23
|
+
nonce?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Signed nonce for mobile device registration verification
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DeviceRegistrationRequest
|
|
28
|
+
*/
|
|
29
|
+
signedNonce?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Public key for mobile device registration
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DeviceRegistrationRequest
|
|
34
|
+
*/
|
|
35
|
+
publicKey?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function DeviceRegistrationRequestFromJSON(json: any): DeviceRegistrationRequest;
|
|
38
|
+
export declare function DeviceRegistrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceRegistrationRequest;
|
|
39
|
+
export declare function DeviceRegistrationRequestToJSON(value?: DeviceRegistrationRequest | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function DeviceRegistrationRequestFromJSON(json) {
|
|
5
|
+
return DeviceRegistrationRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function DeviceRegistrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
|
13
|
+
'signedNonce': !exists(json, 'signedNonce') ? undefined : json['signedNonce'],
|
|
14
|
+
'publicKey': !exists(json, 'publicKey') ? undefined : json['publicKey'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function DeviceRegistrationRequestToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'nonce': value.nonce,
|
|
26
|
+
'signedNonce': value.signedNonce,
|
|
27
|
+
'publicKey': value.publicKey,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { DeviceRegistrationRequestFromJSON, DeviceRegistrationRequestFromJSONTyped, DeviceRegistrationRequestToJSON };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function InlineObjectFromJSON(json) {
|
|
19
|
+
return InlineObjectFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function InlineObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'base64RawTransaction': json['base64RawTransaction'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function InlineObjectToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'base64RawTransaction': value.base64RawTransaction,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.InlineObjectFromJSON = InlineObjectFromJSON;
|
|
42
|
+
exports.InlineObjectFromJSONTyped = InlineObjectFromJSONTyped;
|
|
43
|
+
exports.InlineObjectToJSON = InlineObjectToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InlineObject
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineObject {
|
|
18
|
+
/**
|
|
19
|
+
* The raw transaction to estimate gas fees for
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineObject
|
|
22
|
+
*/
|
|
23
|
+
base64RawTransaction: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function InlineObjectFromJSON(json: any): InlineObject;
|
|
26
|
+
export declare function InlineObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject;
|
|
27
|
+
export declare function InlineObjectToJSON(value?: InlineObject | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function InlineObjectFromJSON(json) {
|
|
15
|
+
return InlineObjectFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function InlineObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'base64RawTransaction': json['base64RawTransaction'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function InlineObjectToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'base64RawTransaction': value.base64RawTransaction,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { InlineObjectFromJSON, InlineObjectFromJSONTyped, InlineObjectToJSON };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function TransactionFeeEstimateResponseFromJSON(json) {
|
|
9
|
+
return TransactionFeeEstimateResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function TransactionFeeEstimateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'estimatedFee': json['estimatedFee'],
|
|
17
|
+
'currency': json['currency'],
|
|
18
|
+
'decimals': json['decimals'],
|
|
19
|
+
'units': !runtime.exists(json, 'units') ? undefined : json['units'],
|
|
20
|
+
'unitPrice': !runtime.exists(json, 'unitPrice') ? undefined : json['unitPrice'],
|
|
21
|
+
'baseFee': !runtime.exists(json, 'baseFee') ? undefined : json['baseFee'],
|
|
22
|
+
'priorityFee': !runtime.exists(json, 'priorityFee') ? undefined : json['priorityFee'],
|
|
23
|
+
'maxFee': !runtime.exists(json, 'maxFee') ? undefined : json['maxFee'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function TransactionFeeEstimateResponseToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'estimatedFee': value.estimatedFee,
|
|
35
|
+
'currency': value.currency,
|
|
36
|
+
'decimals': value.decimals,
|
|
37
|
+
'units': value.units,
|
|
38
|
+
'unitPrice': value.unitPrice,
|
|
39
|
+
'baseFee': value.baseFee,
|
|
40
|
+
'priorityFee': value.priorityFee,
|
|
41
|
+
'maxFee': value.maxFee,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.TransactionFeeEstimateResponseFromJSON = TransactionFeeEstimateResponseFromJSON;
|
|
46
|
+
exports.TransactionFeeEstimateResponseFromJSONTyped = TransactionFeeEstimateResponseFromJSONTyped;
|
|
47
|
+
exports.TransactionFeeEstimateResponseToJSON = TransactionFeeEstimateResponseToJSON;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TransactionFeeEstimateResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface TransactionFeeEstimateResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Total estimated fee in the smallest unit of the native currency
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TransactionFeeEstimateResponse
|
|
22
|
+
*/
|
|
23
|
+
estimatedFee: string;
|
|
24
|
+
/**
|
|
25
|
+
* Native currency symbol (ETH, SOL, BTC, SUI, etc.)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TransactionFeeEstimateResponse
|
|
28
|
+
*/
|
|
29
|
+
currency: string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of decimals for the native currency
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TransactionFeeEstimateResponse
|
|
34
|
+
*/
|
|
35
|
+
decimals: number;
|
|
36
|
+
/**
|
|
37
|
+
* Estimated units of compute/space required (gas, compute units, vBytes, etc.)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TransactionFeeEstimateResponse
|
|
40
|
+
*/
|
|
41
|
+
units?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Price per unit in the smallest denomination
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TransactionFeeEstimateResponse
|
|
46
|
+
*/
|
|
47
|
+
unitPrice?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Base fee component
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TransactionFeeEstimateResponse
|
|
52
|
+
*/
|
|
53
|
+
baseFee?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Priority/tip fee component
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TransactionFeeEstimateResponse
|
|
58
|
+
*/
|
|
59
|
+
priorityFee?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Maximum possible fee (for chains with variable pricing)
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof TransactionFeeEstimateResponse
|
|
64
|
+
*/
|
|
65
|
+
maxFee?: string;
|
|
66
|
+
}
|
|
67
|
+
export declare function TransactionFeeEstimateResponseFromJSON(json: any): TransactionFeeEstimateResponse;
|
|
68
|
+
export declare function TransactionFeeEstimateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionFeeEstimateResponse;
|
|
69
|
+
export declare function TransactionFeeEstimateResponseToJSON(value?: TransactionFeeEstimateResponse | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function TransactionFeeEstimateResponseFromJSON(json) {
|
|
5
|
+
return TransactionFeeEstimateResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function TransactionFeeEstimateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'estimatedFee': json['estimatedFee'],
|
|
13
|
+
'currency': json['currency'],
|
|
14
|
+
'decimals': json['decimals'],
|
|
15
|
+
'units': !exists(json, 'units') ? undefined : json['units'],
|
|
16
|
+
'unitPrice': !exists(json, 'unitPrice') ? undefined : json['unitPrice'],
|
|
17
|
+
'baseFee': !exists(json, 'baseFee') ? undefined : json['baseFee'],
|
|
18
|
+
'priorityFee': !exists(json, 'priorityFee') ? undefined : json['priorityFee'],
|
|
19
|
+
'maxFee': !exists(json, 'maxFee') ? undefined : json['maxFee'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function TransactionFeeEstimateResponseToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'estimatedFee': value.estimatedFee,
|
|
31
|
+
'currency': value.currency,
|
|
32
|
+
'decimals': value.decimals,
|
|
33
|
+
'units': value.units,
|
|
34
|
+
'unitPrice': value.unitPrice,
|
|
35
|
+
'baseFee': value.baseFee,
|
|
36
|
+
'priorityFee': value.priorityFee,
|
|
37
|
+
'maxFee': value.maxFee,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { TransactionFeeEstimateResponseFromJSON, TransactionFeeEstimateResponseFromJSONTyped, TransactionFeeEstimateResponseToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export * from './DelegatedShareDeliveryRequestEncryptedDelegatedShare';
|
|
|
75
75
|
export * from './DelegatedShareDeliveryResponse';
|
|
76
76
|
export * from './DeleteEmbeddedWalletsRequest';
|
|
77
77
|
export * from './DeleteUserPasskeyRequest';
|
|
78
|
+
export * from './DeviceRegistrationRequest';
|
|
78
79
|
export * from './Duration';
|
|
79
80
|
export * from './DynamicJwt';
|
|
80
81
|
export * from './EcdsaValidatorOptions';
|
|
@@ -141,6 +142,7 @@ export * from './InitEmailAuthRequest';
|
|
|
141
142
|
export * from './InitEmailAuthResponse';
|
|
142
143
|
export * from './InitPasskeyRecoveryRequest';
|
|
143
144
|
export * from './InitPasskeyRecoveryResponse';
|
|
145
|
+
export * from './InlineObject';
|
|
144
146
|
export * from './IntegrationSetting';
|
|
145
147
|
export * from './InternalServerError';
|
|
146
148
|
export * from './JwksKey';
|
|
@@ -327,6 +329,7 @@ export * from './TimeUnitEnum';
|
|
|
327
329
|
export * from './TokenBalance';
|
|
328
330
|
export * from './TokenScope';
|
|
329
331
|
export * from './TooManyRequests';
|
|
332
|
+
export * from './TransactionFeeEstimateResponse';
|
|
330
333
|
export * from './TransferDestination';
|
|
331
334
|
export * from './TransferDestinationResponse';
|
|
332
335
|
export * from './TurnkeyCreateWalletAccountsRequestBody';
|