@dynamic-labs/sdk-api 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/InlineObject1.cjs +43 -0
- package/src/models/InlineObject1.d.ts +27 -0
- package/src/models/InlineObject1.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
|
@@ -79,6 +79,7 @@ var DelegatedShareDeliveryRequest = require('../models/DelegatedShareDeliveryReq
|
|
|
79
79
|
var DelegatedShareDeliveryResponse = require('../models/DelegatedShareDeliveryResponse.cjs');
|
|
80
80
|
var DeleteEmbeddedWalletsRequest = require('../models/DeleteEmbeddedWalletsRequest.cjs');
|
|
81
81
|
var DeleteUserPasskeyRequest = require('../models/DeleteUserPasskeyRequest.cjs');
|
|
82
|
+
var DeviceRegistrationRequest = require('../models/DeviceRegistrationRequest.cjs');
|
|
82
83
|
var EmailProviderResponse = require('../models/EmailProviderResponse.cjs');
|
|
83
84
|
var EmailVerificationCreateRequest = require('../models/EmailVerificationCreateRequest.cjs');
|
|
84
85
|
var EmailVerificationCreateResponse = require('../models/EmailVerificationCreateResponse.cjs');
|
|
@@ -123,6 +124,7 @@ var InitEmailAuthRequest = require('../models/InitEmailAuthRequest.cjs');
|
|
|
123
124
|
var InitEmailAuthResponse = require('../models/InitEmailAuthResponse.cjs');
|
|
124
125
|
var InitPasskeyRecoveryRequest = require('../models/InitPasskeyRecoveryRequest.cjs');
|
|
125
126
|
var InitPasskeyRecoveryResponse = require('../models/InitPasskeyRecoveryResponse.cjs');
|
|
127
|
+
var InlineObject1 = require('../models/InlineObject1.cjs');
|
|
126
128
|
require('../models/InviteStatusEnum.cjs');
|
|
127
129
|
require('../models/RoleEnum.cjs');
|
|
128
130
|
var JwksResponse = require('../models/JwksResponse.cjs');
|
|
@@ -202,6 +204,7 @@ var SupportedOfframpsResponse = require('../models/SupportedOfframpsResponse.cjs
|
|
|
202
204
|
var SupportedOnrampsResponse = require('../models/SupportedOnrampsResponse.cjs');
|
|
203
205
|
var TelegramPostRequest = require('../models/TelegramPostRequest.cjs');
|
|
204
206
|
require('../models/TokenScope.cjs');
|
|
207
|
+
var TransactionFeeEstimateResponse = require('../models/TransactionFeeEstimateResponse.cjs');
|
|
205
208
|
var TransferDestinationResponse = require('../models/TransferDestinationResponse.cjs');
|
|
206
209
|
var TurnkeyCreateWalletAccountsRequestBody = require('../models/TurnkeyCreateWalletAccountsRequestBody.cjs');
|
|
207
210
|
var TurnkeyDeleteEmbeddedWalletsRequestBody = require('../models/TurnkeyDeleteEmbeddedWalletsRequestBody.cjs');
|
|
@@ -2085,6 +2088,72 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2085
2088
|
yield this.deliverDelegatedShareOptionsRaw(requestParameters, initOverrides);
|
|
2086
2089
|
});
|
|
2087
2090
|
}
|
|
2091
|
+
/**
|
|
2092
|
+
* 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.
|
|
2093
|
+
* Register a new device for an authenticated user
|
|
2094
|
+
*/
|
|
2095
|
+
deviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2096
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2097
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2098
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistration.');
|
|
2099
|
+
}
|
|
2100
|
+
const queryParameters = {};
|
|
2101
|
+
const headerParameters = {};
|
|
2102
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2103
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2104
|
+
const token = this.configuration.accessToken;
|
|
2105
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2106
|
+
if (tokenString) {
|
|
2107
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
const response = yield this.request({
|
|
2111
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2112
|
+
method: 'POST',
|
|
2113
|
+
headers: headerParameters,
|
|
2114
|
+
query: queryParameters,
|
|
2115
|
+
body: DeviceRegistrationRequest.DeviceRegistrationRequestToJSON(requestParameters.deviceRegistrationRequest),
|
|
2116
|
+
}, initOverrides);
|
|
2117
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VerifyResponse.VerifyResponseFromJSON(jsonValue));
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* 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.
|
|
2122
|
+
* Register a new device for an authenticated user
|
|
2123
|
+
*/
|
|
2124
|
+
deviceRegistration(requestParameters, initOverrides) {
|
|
2125
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2126
|
+
const response = yield this.deviceRegistrationRaw(requestParameters, initOverrides);
|
|
2127
|
+
return yield response.value();
|
|
2128
|
+
});
|
|
2129
|
+
}
|
|
2130
|
+
/**
|
|
2131
|
+
* Options call for this endpoint
|
|
2132
|
+
*/
|
|
2133
|
+
deviceRegistrationOptionsRaw(requestParameters, initOverrides) {
|
|
2134
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2135
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2136
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationOptions.');
|
|
2137
|
+
}
|
|
2138
|
+
const queryParameters = {};
|
|
2139
|
+
const headerParameters = {};
|
|
2140
|
+
const response = yield this.request({
|
|
2141
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2142
|
+
method: 'OPTIONS',
|
|
2143
|
+
headers: headerParameters,
|
|
2144
|
+
query: queryParameters,
|
|
2145
|
+
}, initOverrides);
|
|
2146
|
+
return new runtime.VoidApiResponse(response);
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2150
|
+
* Options call for this endpoint
|
|
2151
|
+
*/
|
|
2152
|
+
deviceRegistrationOptions(requestParameters, initOverrides) {
|
|
2153
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2154
|
+
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2155
|
+
});
|
|
2156
|
+
}
|
|
2088
2157
|
/**
|
|
2089
2158
|
* Disconnects the specified global wallet connection.
|
|
2090
2159
|
* Disconnect a global wallet connection
|
|
@@ -2315,6 +2384,87 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2315
2384
|
yield this.embeddedWalletExportOptionsRaw(requestParameters, initOverrides);
|
|
2316
2385
|
});
|
|
2317
2386
|
}
|
|
2387
|
+
/**
|
|
2388
|
+
* Estimates the gas fees for a given raw transaction.
|
|
2389
|
+
* Estimate transaction fees
|
|
2390
|
+
*/
|
|
2391
|
+
estimateTransactionFeeRaw(requestParameters, initOverrides) {
|
|
2392
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2393
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2394
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFee.');
|
|
2395
|
+
}
|
|
2396
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
2397
|
+
throw new runtime.RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFee.');
|
|
2398
|
+
}
|
|
2399
|
+
if (requestParameters.inlineObject1 === null || requestParameters.inlineObject1 === undefined) {
|
|
2400
|
+
throw new runtime.RequiredError('inlineObject1', 'Required parameter requestParameters.inlineObject1 was null or undefined when calling estimateTransactionFee.');
|
|
2401
|
+
}
|
|
2402
|
+
const queryParameters = {};
|
|
2403
|
+
const headerParameters = {};
|
|
2404
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2405
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2406
|
+
const token = this.configuration.accessToken;
|
|
2407
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2408
|
+
if (tokenString) {
|
|
2409
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
const response = yield this.request({
|
|
2413
|
+
path: `/sdk/{environmentId}/chains/{chainName}/transactions/estimate`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
2414
|
+
method: 'POST',
|
|
2415
|
+
headers: headerParameters,
|
|
2416
|
+
query: queryParameters,
|
|
2417
|
+
body: InlineObject1.InlineObject1ToJSON(requestParameters.inlineObject1),
|
|
2418
|
+
}, initOverrides);
|
|
2419
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TransactionFeeEstimateResponse.TransactionFeeEstimateResponseFromJSON(jsonValue));
|
|
2420
|
+
});
|
|
2421
|
+
}
|
|
2422
|
+
/**
|
|
2423
|
+
* Estimates the gas fees for a given raw transaction.
|
|
2424
|
+
* Estimate transaction fees
|
|
2425
|
+
*/
|
|
2426
|
+
estimateTransactionFee(requestParameters, initOverrides) {
|
|
2427
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2428
|
+
const response = yield this.estimateTransactionFeeRaw(requestParameters, initOverrides);
|
|
2429
|
+
return yield response.value();
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
/**
|
|
2433
|
+
* Options call for this endpoint
|
|
2434
|
+
*/
|
|
2435
|
+
estimateTransactionFeeOptionsRaw(requestParameters, initOverrides) {
|
|
2436
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2437
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2438
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2439
|
+
}
|
|
2440
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
2441
|
+
throw new runtime.RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2442
|
+
}
|
|
2443
|
+
if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
|
|
2444
|
+
throw new runtime.RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2445
|
+
}
|
|
2446
|
+
const queryParameters = {};
|
|
2447
|
+
if (requestParameters.networkId !== undefined) {
|
|
2448
|
+
queryParameters['networkId'] = requestParameters.networkId;
|
|
2449
|
+
}
|
|
2450
|
+
const headerParameters = {};
|
|
2451
|
+
const response = yield this.request({
|
|
2452
|
+
path: `/sdk/{environmentId}/chains/{chainName}/transactions/estimate`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
2453
|
+
method: 'OPTIONS',
|
|
2454
|
+
headers: headerParameters,
|
|
2455
|
+
query: queryParameters,
|
|
2456
|
+
}, initOverrides);
|
|
2457
|
+
return new runtime.VoidApiResponse(response);
|
|
2458
|
+
});
|
|
2459
|
+
}
|
|
2460
|
+
/**
|
|
2461
|
+
* Options call for this endpoint
|
|
2462
|
+
*/
|
|
2463
|
+
estimateTransactionFeeOptions(requestParameters, initOverrides) {
|
|
2464
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2465
|
+
yield this.estimateTransactionFeeOptionsRaw(requestParameters, initOverrides);
|
|
2466
|
+
});
|
|
2467
|
+
}
|
|
2318
2468
|
/**
|
|
2319
2469
|
*/
|
|
2320
2470
|
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, InlineObject1, 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
|
+
inlineObject1: InlineObject1;
|
|
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
|
}
|
|
@@ -1502,6 +1519,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1502
1519
|
* Options call for this endpoint
|
|
1503
1520
|
*/
|
|
1504
1521
|
deliverDelegatedShareOptions(requestParameters: DeliverDelegatedShareOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
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
|
+
deviceRegistrationRaw(requestParameters: DeviceRegistrationOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
|
|
1527
|
+
/**
|
|
1528
|
+
* 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.
|
|
1529
|
+
* Register a new device for an authenticated user
|
|
1530
|
+
*/
|
|
1531
|
+
deviceRegistration(requestParameters: DeviceRegistrationOperationRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
|
|
1532
|
+
/**
|
|
1533
|
+
* Options call for this endpoint
|
|
1534
|
+
*/
|
|
1535
|
+
deviceRegistrationOptionsRaw(requestParameters: DeviceRegistrationOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1536
|
+
/**
|
|
1537
|
+
* Options call for this endpoint
|
|
1538
|
+
*/
|
|
1539
|
+
deviceRegistrationOptions(requestParameters: DeviceRegistrationOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1505
1540
|
/**
|
|
1506
1541
|
* Disconnects the specified global wallet connection.
|
|
1507
1542
|
* Disconnect a global wallet connection
|
|
@@ -1562,6 +1597,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1562
1597
|
* Options call for this endpoint
|
|
1563
1598
|
*/
|
|
1564
1599
|
embeddedWalletExportOptions(requestParameters: EmbeddedWalletExportOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1600
|
+
/**
|
|
1601
|
+
* Estimates the gas fees for a given raw transaction.
|
|
1602
|
+
* Estimate transaction fees
|
|
1603
|
+
*/
|
|
1604
|
+
estimateTransactionFeeRaw(requestParameters: EstimateTransactionFeeRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<TransactionFeeEstimateResponse>>;
|
|
1605
|
+
/**
|
|
1606
|
+
* Estimates the gas fees for a given raw transaction.
|
|
1607
|
+
* Estimate transaction fees
|
|
1608
|
+
*/
|
|
1609
|
+
estimateTransactionFee(requestParameters: EstimateTransactionFeeRequest, initOverrides?: RequestInit): Promise<TransactionFeeEstimateResponse>;
|
|
1610
|
+
/**
|
|
1611
|
+
* Options call for this endpoint
|
|
1612
|
+
*/
|
|
1613
|
+
estimateTransactionFeeOptionsRaw(requestParameters: EstimateTransactionFeeOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Options call for this endpoint
|
|
1616
|
+
*/
|
|
1617
|
+
estimateTransactionFeeOptions(requestParameters: EstimateTransactionFeeOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1565
1618
|
/**
|
|
1566
1619
|
*/
|
|
1567
1620
|
eventsOptionsRaw(requestParameters: EventsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -75,6 +75,7 @@ import { DelegatedShareDeliveryRequestToJSON } from '../models/DelegatedShareDel
|
|
|
75
75
|
import { DelegatedShareDeliveryResponseFromJSON } from '../models/DelegatedShareDeliveryResponse.js';
|
|
76
76
|
import { DeleteEmbeddedWalletsRequestToJSON } from '../models/DeleteEmbeddedWalletsRequest.js';
|
|
77
77
|
import { DeleteUserPasskeyRequestToJSON } from '../models/DeleteUserPasskeyRequest.js';
|
|
78
|
+
import { DeviceRegistrationRequestToJSON } from '../models/DeviceRegistrationRequest.js';
|
|
78
79
|
import { EmailProviderResponseFromJSON } from '../models/EmailProviderResponse.js';
|
|
79
80
|
import { EmailVerificationCreateRequestToJSON } from '../models/EmailVerificationCreateRequest.js';
|
|
80
81
|
import { EmailVerificationCreateResponseFromJSON } from '../models/EmailVerificationCreateResponse.js';
|
|
@@ -119,6 +120,7 @@ import { InitEmailAuthRequestToJSON } from '../models/InitEmailAuthRequest.js';
|
|
|
119
120
|
import { InitEmailAuthResponseFromJSON } from '../models/InitEmailAuthResponse.js';
|
|
120
121
|
import { InitPasskeyRecoveryRequestToJSON } from '../models/InitPasskeyRecoveryRequest.js';
|
|
121
122
|
import { InitPasskeyRecoveryResponseFromJSON } from '../models/InitPasskeyRecoveryResponse.js';
|
|
123
|
+
import { InlineObject1ToJSON } from '../models/InlineObject1.js';
|
|
122
124
|
import '../models/InviteStatusEnum.js';
|
|
123
125
|
import '../models/RoleEnum.js';
|
|
124
126
|
import { JwksResponseFromJSON } from '../models/JwksResponse.js';
|
|
@@ -198,6 +200,7 @@ import { SupportedOfframpsResponseFromJSON } from '../models/SupportedOfframpsRe
|
|
|
198
200
|
import { SupportedOnrampsResponseFromJSON } from '../models/SupportedOnrampsResponse.js';
|
|
199
201
|
import { TelegramPostRequestToJSON } from '../models/TelegramPostRequest.js';
|
|
200
202
|
import '../models/TokenScope.js';
|
|
203
|
+
import { TransactionFeeEstimateResponseFromJSON } from '../models/TransactionFeeEstimateResponse.js';
|
|
201
204
|
import { TransferDestinationResponseFromJSON } from '../models/TransferDestinationResponse.js';
|
|
202
205
|
import { TurnkeyCreateWalletAccountsRequestBodyFromJSON } from '../models/TurnkeyCreateWalletAccountsRequestBody.js';
|
|
203
206
|
import { TurnkeyDeleteEmbeddedWalletsRequestBodyFromJSON } from '../models/TurnkeyDeleteEmbeddedWalletsRequestBody.js';
|
|
@@ -2081,6 +2084,72 @@ class SDKApi extends BaseAPI {
|
|
|
2081
2084
|
yield this.deliverDelegatedShareOptionsRaw(requestParameters, initOverrides);
|
|
2082
2085
|
});
|
|
2083
2086
|
}
|
|
2087
|
+
/**
|
|
2088
|
+
* 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.
|
|
2089
|
+
* Register a new device for an authenticated user
|
|
2090
|
+
*/
|
|
2091
|
+
deviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2093
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2094
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistration.');
|
|
2095
|
+
}
|
|
2096
|
+
const queryParameters = {};
|
|
2097
|
+
const headerParameters = {};
|
|
2098
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2099
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2100
|
+
const token = this.configuration.accessToken;
|
|
2101
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2102
|
+
if (tokenString) {
|
|
2103
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
const response = yield this.request({
|
|
2107
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2108
|
+
method: 'POST',
|
|
2109
|
+
headers: headerParameters,
|
|
2110
|
+
query: queryParameters,
|
|
2111
|
+
body: DeviceRegistrationRequestToJSON(requestParameters.deviceRegistrationRequest),
|
|
2112
|
+
}, initOverrides);
|
|
2113
|
+
return new JSONApiResponse(response, (jsonValue) => VerifyResponseFromJSON(jsonValue));
|
|
2114
|
+
});
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* 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.
|
|
2118
|
+
* Register a new device for an authenticated user
|
|
2119
|
+
*/
|
|
2120
|
+
deviceRegistration(requestParameters, initOverrides) {
|
|
2121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2122
|
+
const response = yield this.deviceRegistrationRaw(requestParameters, initOverrides);
|
|
2123
|
+
return yield response.value();
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
/**
|
|
2127
|
+
* Options call for this endpoint
|
|
2128
|
+
*/
|
|
2129
|
+
deviceRegistrationOptionsRaw(requestParameters, initOverrides) {
|
|
2130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2131
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2132
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationOptions.');
|
|
2133
|
+
}
|
|
2134
|
+
const queryParameters = {};
|
|
2135
|
+
const headerParameters = {};
|
|
2136
|
+
const response = yield this.request({
|
|
2137
|
+
path: `/sdk/{environmentId}/deviceRegistration`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2138
|
+
method: 'OPTIONS',
|
|
2139
|
+
headers: headerParameters,
|
|
2140
|
+
query: queryParameters,
|
|
2141
|
+
}, initOverrides);
|
|
2142
|
+
return new VoidApiResponse(response);
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
2145
|
+
/**
|
|
2146
|
+
* Options call for this endpoint
|
|
2147
|
+
*/
|
|
2148
|
+
deviceRegistrationOptions(requestParameters, initOverrides) {
|
|
2149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2150
|
+
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2151
|
+
});
|
|
2152
|
+
}
|
|
2084
2153
|
/**
|
|
2085
2154
|
* Disconnects the specified global wallet connection.
|
|
2086
2155
|
* Disconnect a global wallet connection
|
|
@@ -2311,6 +2380,87 @@ class SDKApi extends BaseAPI {
|
|
|
2311
2380
|
yield this.embeddedWalletExportOptionsRaw(requestParameters, initOverrides);
|
|
2312
2381
|
});
|
|
2313
2382
|
}
|
|
2383
|
+
/**
|
|
2384
|
+
* Estimates the gas fees for a given raw transaction.
|
|
2385
|
+
* Estimate transaction fees
|
|
2386
|
+
*/
|
|
2387
|
+
estimateTransactionFeeRaw(requestParameters, initOverrides) {
|
|
2388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2389
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2390
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFee.');
|
|
2391
|
+
}
|
|
2392
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
2393
|
+
throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFee.');
|
|
2394
|
+
}
|
|
2395
|
+
if (requestParameters.inlineObject1 === null || requestParameters.inlineObject1 === undefined) {
|
|
2396
|
+
throw new RequiredError('inlineObject1', 'Required parameter requestParameters.inlineObject1 was null or undefined when calling estimateTransactionFee.');
|
|
2397
|
+
}
|
|
2398
|
+
const queryParameters = {};
|
|
2399
|
+
const headerParameters = {};
|
|
2400
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2401
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2402
|
+
const token = this.configuration.accessToken;
|
|
2403
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2404
|
+
if (tokenString) {
|
|
2405
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
const response = yield this.request({
|
|
2409
|
+
path: `/sdk/{environmentId}/chains/{chainName}/transactions/estimate`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
2410
|
+
method: 'POST',
|
|
2411
|
+
headers: headerParameters,
|
|
2412
|
+
query: queryParameters,
|
|
2413
|
+
body: InlineObject1ToJSON(requestParameters.inlineObject1),
|
|
2414
|
+
}, initOverrides);
|
|
2415
|
+
return new JSONApiResponse(response, (jsonValue) => TransactionFeeEstimateResponseFromJSON(jsonValue));
|
|
2416
|
+
});
|
|
2417
|
+
}
|
|
2418
|
+
/**
|
|
2419
|
+
* Estimates the gas fees for a given raw transaction.
|
|
2420
|
+
* Estimate transaction fees
|
|
2421
|
+
*/
|
|
2422
|
+
estimateTransactionFee(requestParameters, initOverrides) {
|
|
2423
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2424
|
+
const response = yield this.estimateTransactionFeeRaw(requestParameters, initOverrides);
|
|
2425
|
+
return yield response.value();
|
|
2426
|
+
});
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
* Options call for this endpoint
|
|
2430
|
+
*/
|
|
2431
|
+
estimateTransactionFeeOptionsRaw(requestParameters, initOverrides) {
|
|
2432
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2433
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2434
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2435
|
+
}
|
|
2436
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
2437
|
+
throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2438
|
+
}
|
|
2439
|
+
if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
|
|
2440
|
+
throw new RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling estimateTransactionFeeOptions.');
|
|
2441
|
+
}
|
|
2442
|
+
const queryParameters = {};
|
|
2443
|
+
if (requestParameters.networkId !== undefined) {
|
|
2444
|
+
queryParameters['networkId'] = requestParameters.networkId;
|
|
2445
|
+
}
|
|
2446
|
+
const headerParameters = {};
|
|
2447
|
+
const response = yield this.request({
|
|
2448
|
+
path: `/sdk/{environmentId}/chains/{chainName}/transactions/estimate`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))),
|
|
2449
|
+
method: 'OPTIONS',
|
|
2450
|
+
headers: headerParameters,
|
|
2451
|
+
query: queryParameters,
|
|
2452
|
+
}, initOverrides);
|
|
2453
|
+
return new VoidApiResponse(response);
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
/**
|
|
2457
|
+
* Options call for this endpoint
|
|
2458
|
+
*/
|
|
2459
|
+
estimateTransactionFeeOptions(requestParameters, initOverrides) {
|
|
2460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2461
|
+
yield this.estimateTransactionFeeOptionsRaw(requestParameters, initOverrides);
|
|
2462
|
+
});
|
|
2463
|
+
}
|
|
2314
2464
|
/**
|
|
2315
2465
|
*/
|
|
2316
2466
|
eventsOptionsRaw(requestParameters, initOverrides) {
|
package/src/index.cjs
CHANGED
|
@@ -180,6 +180,7 @@ var DelegatedShareDeliveryRequestEncryptedDelegatedShare = require('./models/Del
|
|
|
180
180
|
var DelegatedShareDeliveryResponse = require('./models/DelegatedShareDeliveryResponse.cjs');
|
|
181
181
|
var DeleteEmbeddedWalletsRequest = require('./models/DeleteEmbeddedWalletsRequest.cjs');
|
|
182
182
|
var DeleteUserPasskeyRequest = require('./models/DeleteUserPasskeyRequest.cjs');
|
|
183
|
+
var DeviceRegistrationRequest = require('./models/DeviceRegistrationRequest.cjs');
|
|
183
184
|
var DnsRecordType = require('./models/DnsRecordType.cjs');
|
|
184
185
|
var Duration = require('./models/Duration.cjs');
|
|
185
186
|
var DynamicJwt = require('./models/DynamicJwt.cjs');
|
|
@@ -280,6 +281,7 @@ var InitEmailAuthResponse = require('./models/InitEmailAuthResponse.cjs');
|
|
|
280
281
|
var InitPasskeyRecoveryRequest = require('./models/InitPasskeyRecoveryRequest.cjs');
|
|
281
282
|
var InitPasskeyRecoveryResponse = require('./models/InitPasskeyRecoveryResponse.cjs');
|
|
282
283
|
var InlineObject = require('./models/InlineObject.cjs');
|
|
284
|
+
var InlineObject1 = require('./models/InlineObject1.cjs');
|
|
283
285
|
var InlineResponse200 = require('./models/InlineResponse200.cjs');
|
|
284
286
|
var InlineResponse201 = require('./models/InlineResponse201.cjs');
|
|
285
287
|
var InlineResponse400 = require('./models/InlineResponse400.cjs');
|
|
@@ -536,6 +538,7 @@ var TokenWithRaw = require('./models/TokenWithRaw.cjs');
|
|
|
536
538
|
var TokenWithRawProjectEnvironment = require('./models/TokenWithRawProjectEnvironment.cjs');
|
|
537
539
|
var TokensResponse = require('./models/TokensResponse.cjs');
|
|
538
540
|
var TooManyRequests = require('./models/TooManyRequests.cjs');
|
|
541
|
+
var TransactionFeeEstimateResponse = require('./models/TransactionFeeEstimateResponse.cjs');
|
|
539
542
|
var TransferDestination = require('./models/TransferDestination.cjs');
|
|
540
543
|
var TransferDestinationResponse = require('./models/TransferDestinationResponse.cjs');
|
|
541
544
|
var TurnkeyCreateWalletAccountsRequestBody = require('./models/TurnkeyCreateWalletAccountsRequestBody.cjs');
|
|
@@ -1212,6 +1215,9 @@ exports.DeleteEmbeddedWalletsRequestToJSON = DeleteEmbeddedWalletsRequest.Delete
|
|
|
1212
1215
|
exports.DeleteUserPasskeyRequestFromJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSON;
|
|
1213
1216
|
exports.DeleteUserPasskeyRequestFromJSONTyped = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestFromJSONTyped;
|
|
1214
1217
|
exports.DeleteUserPasskeyRequestToJSON = DeleteUserPasskeyRequest.DeleteUserPasskeyRequestToJSON;
|
|
1218
|
+
exports.DeviceRegistrationRequestFromJSON = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSON;
|
|
1219
|
+
exports.DeviceRegistrationRequestFromJSONTyped = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSONTyped;
|
|
1220
|
+
exports.DeviceRegistrationRequestToJSON = DeviceRegistrationRequest.DeviceRegistrationRequestToJSON;
|
|
1215
1221
|
Object.defineProperty(exports, 'DnsRecordType', {
|
|
1216
1222
|
enumerable: true,
|
|
1217
1223
|
get: function () { return DnsRecordType.DnsRecordType; }
|
|
@@ -1588,6 +1594,9 @@ exports.InitPasskeyRecoveryResponseToJSON = InitPasskeyRecoveryResponse.InitPass
|
|
|
1588
1594
|
exports.InlineObjectFromJSON = InlineObject.InlineObjectFromJSON;
|
|
1589
1595
|
exports.InlineObjectFromJSONTyped = InlineObject.InlineObjectFromJSONTyped;
|
|
1590
1596
|
exports.InlineObjectToJSON = InlineObject.InlineObjectToJSON;
|
|
1597
|
+
exports.InlineObject1FromJSON = InlineObject1.InlineObject1FromJSON;
|
|
1598
|
+
exports.InlineObject1FromJSONTyped = InlineObject1.InlineObject1FromJSONTyped;
|
|
1599
|
+
exports.InlineObject1ToJSON = InlineObject1.InlineObject1ToJSON;
|
|
1591
1600
|
exports.InlineResponse200FromJSON = InlineResponse200.InlineResponse200FromJSON;
|
|
1592
1601
|
exports.InlineResponse200FromJSONTyped = InlineResponse200.InlineResponse200FromJSONTyped;
|
|
1593
1602
|
exports.InlineResponse200ToJSON = InlineResponse200.InlineResponse200ToJSON;
|
|
@@ -2500,6 +2509,9 @@ exports.TokensResponseToJSON = TokensResponse.TokensResponseToJSON;
|
|
|
2500
2509
|
exports.TooManyRequestsFromJSON = TooManyRequests.TooManyRequestsFromJSON;
|
|
2501
2510
|
exports.TooManyRequestsFromJSONTyped = TooManyRequests.TooManyRequestsFromJSONTyped;
|
|
2502
2511
|
exports.TooManyRequestsToJSON = TooManyRequests.TooManyRequestsToJSON;
|
|
2512
|
+
exports.TransactionFeeEstimateResponseFromJSON = TransactionFeeEstimateResponse.TransactionFeeEstimateResponseFromJSON;
|
|
2513
|
+
exports.TransactionFeeEstimateResponseFromJSONTyped = TransactionFeeEstimateResponse.TransactionFeeEstimateResponseFromJSONTyped;
|
|
2514
|
+
exports.TransactionFeeEstimateResponseToJSON = TransactionFeeEstimateResponse.TransactionFeeEstimateResponseToJSON;
|
|
2503
2515
|
exports.TransferDestinationFromJSON = TransferDestination.TransferDestinationFromJSON;
|
|
2504
2516
|
exports.TransferDestinationFromJSONTyped = TransferDestination.TransferDestinationFromJSONTyped;
|
|
2505
2517
|
exports.TransferDestinationToJSON = TransferDestination.TransferDestinationToJSON;
|
package/src/index.js
CHANGED
|
@@ -176,6 +176,7 @@ export { DelegatedShareDeliveryRequestEncryptedDelegatedShareFromJSON, Delegated
|
|
|
176
176
|
export { DelegatedShareDeliveryResponseFromJSON, DelegatedShareDeliveryResponseFromJSONTyped, DelegatedShareDeliveryResponseStatusEnum, DelegatedShareDeliveryResponseToJSON } from './models/DelegatedShareDeliveryResponse.js';
|
|
177
177
|
export { DeleteEmbeddedWalletsRequestFromJSON, DeleteEmbeddedWalletsRequestFromJSONTyped, DeleteEmbeddedWalletsRequestToJSON } from './models/DeleteEmbeddedWalletsRequest.js';
|
|
178
178
|
export { DeleteUserPasskeyRequestFromJSON, DeleteUserPasskeyRequestFromJSONTyped, DeleteUserPasskeyRequestToJSON } from './models/DeleteUserPasskeyRequest.js';
|
|
179
|
+
export { DeviceRegistrationRequestFromJSON, DeviceRegistrationRequestFromJSONTyped, DeviceRegistrationRequestToJSON } from './models/DeviceRegistrationRequest.js';
|
|
179
180
|
export { DnsRecordType, DnsRecordTypeFromJSON, DnsRecordTypeFromJSONTyped, DnsRecordTypeToJSON } from './models/DnsRecordType.js';
|
|
180
181
|
export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
|
|
181
182
|
export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.js';
|
|
@@ -276,6 +277,7 @@ export { InitEmailAuthResponseFromJSON, InitEmailAuthResponseFromJSONTyped, Init
|
|
|
276
277
|
export { InitPasskeyRecoveryRequestFromJSON, InitPasskeyRecoveryRequestFromJSONTyped, InitPasskeyRecoveryRequestToJSON } from './models/InitPasskeyRecoveryRequest.js';
|
|
277
278
|
export { InitPasskeyRecoveryResponseFromJSON, InitPasskeyRecoveryResponseFromJSONTyped, InitPasskeyRecoveryResponseToJSON } from './models/InitPasskeyRecoveryResponse.js';
|
|
278
279
|
export { InlineObjectFromJSON, InlineObjectFromJSONTyped, InlineObjectToJSON } from './models/InlineObject.js';
|
|
280
|
+
export { InlineObject1FromJSON, InlineObject1FromJSONTyped, InlineObject1ToJSON } from './models/InlineObject1.js';
|
|
279
281
|
export { InlineResponse200FromJSON, InlineResponse200FromJSONTyped, InlineResponse200ToJSON } from './models/InlineResponse200.js';
|
|
280
282
|
export { InlineResponse201FromJSON, InlineResponse201FromJSONTyped, InlineResponse201ToJSON } from './models/InlineResponse201.js';
|
|
281
283
|
export { InlineResponse400FromJSON, InlineResponse400FromJSONTyped, InlineResponse400ToJSON } from './models/InlineResponse400.js';
|
|
@@ -532,6 +534,7 @@ export { TokenWithRawFromJSON, TokenWithRawFromJSONTyped, TokenWithRawToJSON } f
|
|
|
532
534
|
export { TokenWithRawProjectEnvironmentFromJSON, TokenWithRawProjectEnvironmentFromJSONTyped, TokenWithRawProjectEnvironmentToJSON } from './models/TokenWithRawProjectEnvironment.js';
|
|
533
535
|
export { TokensResponseFromJSON, TokensResponseFromJSONTyped, TokensResponseToJSON } from './models/TokensResponse.js';
|
|
534
536
|
export { TooManyRequestsFromJSON, TooManyRequestsFromJSONTyped, TooManyRequestsToJSON } from './models/TooManyRequests.js';
|
|
537
|
+
export { TransactionFeeEstimateResponseFromJSON, TransactionFeeEstimateResponseFromJSONTyped, TransactionFeeEstimateResponseToJSON } from './models/TransactionFeeEstimateResponse.js';
|
|
535
538
|
export { TransferDestinationFromJSON, TransferDestinationFromJSONTyped, TransferDestinationToJSON } from './models/TransferDestination.js';
|
|
536
539
|
export { TransferDestinationResponseFromJSON, TransferDestinationResponseFromJSONTyped, TransferDestinationResponseToJSON } from './models/TransferDestinationResponse.js';
|
|
537
540
|
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 InlineObject1FromJSON(json) {
|
|
19
|
+
return InlineObject1FromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function InlineObject1FromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'base64RawTransaction': json['base64RawTransaction'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function InlineObject1ToJSON(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.InlineObject1FromJSON = InlineObject1FromJSON;
|
|
42
|
+
exports.InlineObject1FromJSONTyped = InlineObject1FromJSONTyped;
|
|
43
|
+
exports.InlineObject1ToJSON = InlineObject1ToJSON;
|
|
@@ -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 InlineObject1
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineObject1 {
|
|
18
|
+
/**
|
|
19
|
+
* The raw transaction to estimate gas fees for
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineObject1
|
|
22
|
+
*/
|
|
23
|
+
base64RawTransaction: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function InlineObject1FromJSON(json: any): InlineObject1;
|
|
26
|
+
export declare function InlineObject1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject1;
|
|
27
|
+
export declare function InlineObject1ToJSON(value?: InlineObject1 | 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 InlineObject1FromJSON(json) {
|
|
15
|
+
return InlineObject1FromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function InlineObject1FromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'base64RawTransaction': json['base64RawTransaction'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function InlineObject1ToJSON(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 { InlineObject1FromJSON, InlineObject1FromJSONTyped, InlineObject1ToJSON };
|
|
@@ -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
|
@@ -138,6 +138,7 @@ export * from './DelegatedShareDeliveryRequestEncryptedDelegatedShare';
|
|
|
138
138
|
export * from './DelegatedShareDeliveryResponse';
|
|
139
139
|
export * from './DeleteEmbeddedWalletsRequest';
|
|
140
140
|
export * from './DeleteUserPasskeyRequest';
|
|
141
|
+
export * from './DeviceRegistrationRequest';
|
|
141
142
|
export * from './DnsRecordType';
|
|
142
143
|
export * from './Duration';
|
|
143
144
|
export * from './DynamicJwt';
|
|
@@ -238,6 +239,7 @@ export * from './InitEmailAuthResponse';
|
|
|
238
239
|
export * from './InitPasskeyRecoveryRequest';
|
|
239
240
|
export * from './InitPasskeyRecoveryResponse';
|
|
240
241
|
export * from './InlineObject';
|
|
242
|
+
export * from './InlineObject1';
|
|
241
243
|
export * from './InlineResponse200';
|
|
242
244
|
export * from './InlineResponse201';
|
|
243
245
|
export * from './InlineResponse400';
|
|
@@ -494,6 +496,7 @@ export * from './TokenWithRaw';
|
|
|
494
496
|
export * from './TokenWithRawProjectEnvironment';
|
|
495
497
|
export * from './TokensResponse';
|
|
496
498
|
export * from './TooManyRequests';
|
|
499
|
+
export * from './TransactionFeeEstimateResponse';
|
|
497
500
|
export * from './TransferDestination';
|
|
498
501
|
export * from './TransferDestinationResponse';
|
|
499
502
|
export * from './TurnkeyCreateWalletAccountsRequestBody';
|