@dynamic-labs/sdk-api-core 0.0.940 → 0.0.941
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/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/Account.d.ts +1 -1
- package/src/models/AccountBalances.d.ts +1 -1
- package/src/models/Asset.d.ts +7 -7
- package/src/models/AssetDiff.d.ts +2 -2
- package/src/models/AssetExposure.d.ts +1 -1
- package/src/models/AssetTransfer.d.ts +4 -4
- package/src/models/AttachSourceRequest.cjs +3 -0
- package/src/models/AttachSourceRequest.d.ts +8 -1
- package/src/models/AttachSourceRequest.js +3 -0
- package/src/models/AuthSettings.d.ts +1 -1
- package/src/models/AuthenticationExtensionsClientInputs.d.ts +3 -3
- package/src/models/AuthenticationExtensionsClientOutputs.d.ts +3 -3
- package/src/models/AuthenticatorAssertionResponse.d.ts +1 -1
- package/src/models/AuthenticatorAttestationResponse.d.ts +1 -1
- package/src/models/AuthenticatorSelectionCriteria.d.ts +1 -1
- package/src/models/BackupKeySharesToLocationResponse.d.ts +1 -1
- package/src/models/BackupKeySharesToLocationsPendingResponse.d.ts +2 -2
- package/src/models/BackupKeySharesToLocationsRequest.d.ts +1 -1
- package/src/models/BackupKeySharesToLocationsResponse.d.ts +3 -3
- package/src/models/BackupMultipleClientKeySharesResponse.d.ts +1 -1
- package/src/models/BadGateway.d.ts +1 -1
- package/src/models/BadRequest.d.ts +1 -1
- package/src/models/BaseUser.d.ts +18 -18
- package/src/models/BlockaidValidation.d.ts +4 -4
- package/src/models/ChainConfiguration.d.ts +3 -3
- package/src/models/Checkout.d.ts +3 -3
- package/src/models/CheckoutFailure.d.ts +3 -3
- package/src/models/CheckoutFeeBreakdown.d.ts +1 -1
- package/src/models/CheckoutSettlementData.d.ts +1 -1
- package/src/models/CheckoutSourceTypeEnum.cjs +0 -1
- package/src/models/CheckoutSourceTypeEnum.d.ts +1 -2
- package/src/models/CheckoutSourceTypeEnum.js +0 -1
- package/src/models/CheckoutTransaction.cjs +3 -0
- package/src/models/CheckoutTransaction.d.ts +18 -11
- package/src/models/CheckoutTransaction.js +3 -0
- package/src/models/CheckoutTransactionCreateRequest.d.ts +3 -3
- package/src/models/CheckoutTransactionExchangeSource.cjs +45 -0
- package/src/models/CheckoutTransactionExchangeSource.d.ts +33 -0
- package/src/models/CheckoutTransactionExchangeSource.js +39 -0
- package/src/models/CheckoutTransactionQuote.d.ts +6 -6
- package/src/models/CheckoutsResponse.d.ts +1 -1
- package/src/models/CoinbaseOnrampGetBuyUrlRequest.d.ts +2 -2
- package/src/models/CoinbaseOnrampOrderResponsePaymentLink.d.ts +1 -1
- package/src/models/Conflict.d.ts +1 -1
- package/src/models/ConnectRequest.d.ts +1 -1
- package/src/models/CreateRoomsResponse.d.ts +1 -1
- package/src/models/CreateRoomsWithoutWalletIdResponse.d.ts +1 -1
- package/src/models/CreateWaasAccountRequest.d.ts +2 -2
- package/src/models/CryptoDotComPaymentResponse.d.ts +1 -1
- package/src/models/Currency.d.ts +4 -4
- package/src/models/DelegatedAccessEncryptionPublicKey.d.ts +2 -2
- package/src/models/DelegatedShareDeliveryRequestEncryptedDelegatedShare.d.ts +1 -1
- package/src/models/DepositAmountsConfigInput.d.ts +2 -2
- package/src/models/DestinationConfigInput.d.ts +1 -1
- package/src/models/DeviceRegistrationResponse.d.ts +4 -4
- package/src/models/DeviceRegistrationsResponse.d.ts +2 -2
- package/src/models/Duration.d.ts +1 -1
- package/src/models/DynamicJwt.d.ts +37 -37
- package/src/models/Eip712Domain.d.ts +3 -3
- package/src/models/Eip712TypeMember.d.ts +2 -2
- package/src/models/EmailVerificationCreateRequest.d.ts +1 -1
- package/src/models/EmailVerificationCreateResponse.d.ts +1 -1
- package/src/models/EmailVerificationRetryRequest.d.ts +1 -1
- package/src/models/EmbeddedWalletAuthToken.d.ts +1 -1
- package/src/models/EmbeddedWalletSecret.d.ts +1 -1
- package/src/models/EmbeddedWalletSecretWithUpdatedJwt.d.ts +2 -2
- package/src/models/EmbeddedWalletSecretWithUpdatedJwtAllOf.d.ts +1 -1
- package/src/models/ErrorMessageWithCode.d.ts +2 -2
- package/src/models/Exchange.d.ts +1 -1
- package/src/models/ExchangeTransaction.d.ts +1 -1
- package/src/models/ExchangeTransferResponse.d.ts +1 -1
- package/src/models/ExportEmbeddedWalletResponse.d.ts +1 -1
- package/src/models/ExportWaasWalletPrivateKeyRequest.d.ts +2 -2
- package/src/models/ExternalAuth.d.ts +1 -1
- package/src/models/ExternalWalletFundingDefaultSettingsToken.d.ts +1 -1
- package/src/models/FeatureFlags.d.ts +2 -2
- package/src/models/Forbidden.d.ts +1 -1
- package/src/models/ForbiddenErrorPayload.d.ts +1 -1
- package/src/models/Funding.d.ts +1 -1
- package/src/models/FundingExternalWallets.d.ts +1 -1
- package/src/models/GetPasskeyAuthenticationOptionsResponse.d.ts +1 -1
- package/src/models/GetPasskeyRegistrationOptionsResponse.d.ts +2 -2
- package/src/models/GetUserPasskeysResponse.d.ts +1 -1
- package/src/models/GlobalWalletConnection.d.ts +2 -2
- package/src/models/GlobalWalletConnectionCreateRequest.d.ts +1 -1
- package/src/models/GlobalWalletSettings.d.ts +2 -2
- package/src/models/HCaptchaSettings.d.ts +2 -2
- package/src/models/ImportWaasPrivateKeyRequest.d.ts +1 -1
- package/src/models/IntegrationSetting.d.ts +3 -3
- package/src/models/InternalServerError.d.ts +1 -1
- package/src/models/JwksKey.d.ts +6 -6
- package/src/models/JwksResponse.d.ts +1 -1
- package/src/models/JwtBlockchainAccount.d.ts +2 -2
- package/src/models/JwtPayloadDeprecatedInfo.d.ts +10 -10
- package/src/models/JwtVerifiedCredential.d.ts +10 -10
- package/src/models/JwtVerifiedCredentialHashes.d.ts +5 -5
- package/src/models/MFAAuthPasskeyDeviceGetResponseAssertion.d.ts +1 -1
- package/src/models/MFAListDevicesResponse.d.ts +1 -1
- package/src/models/MFAMethodsResponse.d.ts +2 -2
- package/src/models/MFARegisterPasskeyDeviceGetResponseRegistration.d.ts +1 -1
- package/src/models/MFASettings.d.ts +5 -5
- package/src/models/MFASettingsActions.d.ts +1 -1
- package/src/models/MFASettingsMethods.d.ts +1 -1
- package/src/models/MergeConflicts.d.ts +1 -1
- package/src/models/MergeUserConflictResolutions.d.ts +1 -1
- package/src/models/MethodNotAllowed.d.ts +1 -1
- package/src/models/MinifiedDynamicJwt.d.ts +3 -3
- package/src/models/MultichainAccountBalanceResponse.d.ts +1 -1
- package/src/models/MultichainAccountBalancesRequest.d.ts +1 -1
- package/src/models/NameService.d.ts +1 -1
- package/src/models/NameServiceData.d.ts +2 -2
- package/src/models/NameServiceSdkSettingsEvm.d.ts +1 -1
- package/src/models/NativeCurrency.d.ts +6 -6
- package/src/models/Network.d.ts +6 -6
- package/src/models/NetworkConfiguration.d.ts +14 -14
- package/src/models/NetworkConfigurationResponse.d.ts +2 -2
- package/src/models/NextJsSettings.d.ts +1 -1
- package/src/models/NonceResponse.d.ts +1 -1
- package/src/models/NoncesResponse.d.ts +1 -1
- package/src/models/NotFound.d.ts +2 -2
- package/src/models/OauthProviderLoginUrl.d.ts +1 -1
- package/src/models/OauthProviderRequest.d.ts +2 -2
- package/src/models/OpenRoomResponse.d.ts +3 -3
- package/src/models/OpenRoomResponseForReshare.d.ts +3 -3
- package/src/models/OpenRoomResponseWithServerKeygenIds.d.ts +3 -3
- package/src/models/PasskeyAllowCredential.d.ts +1 -1
- package/src/models/PasskeyExcludeCredential.d.ts +1 -1
- package/src/models/PasskeyRegistrationCredential.d.ts +1 -1
- package/src/models/PasskeyRegistrationCredentialV2.d.ts +1 -1
- package/src/models/PasskeyStorage.d.ts +3 -3
- package/src/models/PriceData.d.ts +1 -1
- package/src/models/ProjectSettingsChains.d.ts +3 -3
- package/src/models/ProjectSettingsDesignButton.d.ts +5 -5
- package/src/models/ProjectSettingsDesignModal.d.ts +13 -13
- package/src/models/ProjectSettingsDesignWidget.d.ts +5 -5
- package/src/models/ProjectSettingsGeneral.d.ts +8 -8
- package/src/models/ProjectSettingsKyc.d.ts +7 -7
- package/src/models/ProjectSettingsPrivacy.d.ts +1 -1
- package/src/models/ProjectSettingsSdk.d.ts +14 -14
- package/src/models/ProjectSettingsSdkAccountAbstraction.d.ts +1 -1
- package/src/models/ProjectSettingsSdkEmailSignIn.d.ts +1 -1
- package/src/models/ProjectSettingsSdkEmbeddedWallets.d.ts +1 -1
- package/src/models/ProjectSettingsSdkSocialSignIn.d.ts +1 -1
- package/src/models/ProjectSettingsSdkWaas.d.ts +1 -1
- package/src/models/ProjectSettingsSdkWalletConnect.d.ts +1 -1
- package/src/models/Provider.d.ts +2 -2
- package/src/models/ProviderAgreement.d.ts +2 -2
- package/src/models/PublicKeyCredentialDescriptor.d.ts +1 -1
- package/src/models/PublicKeyCredentialParameters.d.ts +1 -1
- package/src/models/PublishEvents.d.ts +1 -1
- package/src/models/RampConfiguration.d.ts +3 -3
- package/src/models/ReactSettings.d.ts +1 -1
- package/src/models/RecordBroadcastRequest.cjs +3 -13
- package/src/models/RecordBroadcastRequest.d.ts +2 -2
- package/src/models/RecordBroadcastRequest.js +3 -13
- package/src/models/RecoverMultipleClientKeySharesRequest.d.ts +1 -1
- package/src/models/RecoverMultipleClientKeySharesResponse.d.ts +1 -1
- package/src/models/RegisterEmbeddedWalletSessionKeyResponse.d.ts +2 -2
- package/src/models/ReshareRequest.d.ts +3 -3
- package/src/models/SdkSettingsRequest.d.ts +2 -2
- package/src/models/SdkUser.d.ts +18 -18
- package/src/models/SettlementConfigInput.d.ts +1 -1
- package/src/models/SignMessageEvmTypedData.d.ts +1 -1
- package/src/models/SignMessageWithWaasRequest.d.ts +2 -2
- package/src/models/SimulateSVMTransactionRequest.d.ts +1 -1
- package/src/models/SimulateTransactionResponse.d.ts +5 -5
- package/src/models/SimulateUserOpRequest.d.ts +1 -1
- package/src/models/SocialSignInProvider.d.ts +1 -1
- package/src/models/SolanaTransactionOptimizationRequest.d.ts +1 -1
- package/src/models/SolanaTransactionOptimizationResponse.d.ts +1 -1
- package/src/models/SsoProvider.d.ts +2 -2
- package/src/models/SupportedOfframpsResponse.d.ts +1 -1
- package/src/models/SupportedOnrampsResponse.d.ts +1 -1
- package/src/models/SupportedSecurityMethod.d.ts +4 -4
- package/src/models/SwapFee.d.ts +4 -4
- package/src/models/SwapGasCost.d.ts +2 -2
- package/src/models/SwapQuoteResponse.d.ts +4 -4
- package/src/models/SwapQuoteResponseSide.d.ts +3 -3
- package/src/models/SwapStatusResponse.d.ts +7 -7
- package/src/models/SwapStep.d.ts +5 -5
- package/src/models/SwapStepSide.d.ts +3 -3
- package/src/models/SwapToken.d.ts +8 -8
- package/src/models/TelegramUser.d.ts +7 -7
- package/src/models/TokenBalance.d.ts +12 -12
- package/src/models/TooManyRequests.d.ts +1 -1
- package/src/models/TransferDestination.d.ts +1 -1
- package/src/models/TurnkeyCreateWalletAccountsRequestBodyParameters.d.ts +1 -1
- package/src/models/TurnkeyDeleteEmbeddedWalletsRequestBodyParameters.d.ts +2 -2
- package/src/models/TurnkeySignedRequest.d.ts +1 -1
- package/src/models/TurnkeyStamp.d.ts +1 -1
- package/src/models/TurnkeyWalletAccount.d.ts +1 -1
- package/src/models/TurnkeyWalletProperties.d.ts +1 -1
- package/src/models/Unauthorized.d.ts +1 -1
- package/src/models/UnprocessableEntity.d.ts +1 -1
- package/src/models/UnprocessableEntityErrorPayload.d.ts +3 -3
- package/src/models/UpdateSelfResponse.d.ts +1 -1
- package/src/models/UserFieldsCheckResponse.d.ts +3 -3
- package/src/models/UserOauthAccessTokenResponse.d.ts +1 -1
- package/src/models/UserPasskey.d.ts +5 -5
- package/src/models/VerifyRequest.d.ts +3 -3
- package/src/models/VerifyResponse.d.ts +1 -1
- package/src/models/WaasWalletProperties.d.ts +1 -1
- package/src/models/WaasWalletSettings.d.ts +3 -3
- package/src/models/WalletBitcoinConfig.d.ts +2 -2
- package/src/models/WalletKeyShareInfo.d.ts +4 -4
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.d.ts +4 -4
- package/src/models/WalletProperties.d.ts +2 -2
- package/src/models/WalletTransaction.d.ts +3 -3
- package/src/models/WalletTransactionAssetTransferMetadata.d.ts +1 -1
- package/src/models/WalletTransactionsResponse.d.ts +1 -1
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -55,6 +55,7 @@ var CheckoutTransaction = require('./models/CheckoutTransaction.cjs');
|
|
|
55
55
|
var CheckoutTransactionCreateRequest = require('./models/CheckoutTransactionCreateRequest.cjs');
|
|
56
56
|
var CheckoutTransactionCreateResponse = require('./models/CheckoutTransactionCreateResponse.cjs');
|
|
57
57
|
var CheckoutTransactionDestinationAddress = require('./models/CheckoutTransactionDestinationAddress.cjs');
|
|
58
|
+
var CheckoutTransactionExchangeSource = require('./models/CheckoutTransactionExchangeSource.cjs');
|
|
58
59
|
var CheckoutTransactionQuote = require('./models/CheckoutTransactionQuote.cjs');
|
|
59
60
|
var CheckoutUpdateRequest = require('./models/CheckoutUpdateRequest.cjs');
|
|
60
61
|
var CheckoutsResponse = require('./models/CheckoutsResponse.cjs');
|
|
@@ -668,6 +669,9 @@ exports.CheckoutTransactionCreateResponseToJSON = CheckoutTransactionCreateRespo
|
|
|
668
669
|
exports.CheckoutTransactionDestinationAddressFromJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSON;
|
|
669
670
|
exports.CheckoutTransactionDestinationAddressFromJSONTyped = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSONTyped;
|
|
670
671
|
exports.CheckoutTransactionDestinationAddressToJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressToJSON;
|
|
672
|
+
exports.CheckoutTransactionExchangeSourceFromJSON = CheckoutTransactionExchangeSource.CheckoutTransactionExchangeSourceFromJSON;
|
|
673
|
+
exports.CheckoutTransactionExchangeSourceFromJSONTyped = CheckoutTransactionExchangeSource.CheckoutTransactionExchangeSourceFromJSONTyped;
|
|
674
|
+
exports.CheckoutTransactionExchangeSourceToJSON = CheckoutTransactionExchangeSource.CheckoutTransactionExchangeSourceToJSON;
|
|
671
675
|
exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSON;
|
|
672
676
|
exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSONTyped;
|
|
673
677
|
exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteToJSON;
|
package/src/index.js
CHANGED
|
@@ -51,6 +51,7 @@ export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, Checkout
|
|
|
51
51
|
export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
|
|
52
52
|
export { CheckoutTransactionCreateResponseFromJSON, CheckoutTransactionCreateResponseFromJSONTyped, CheckoutTransactionCreateResponseToJSON } from './models/CheckoutTransactionCreateResponse.js';
|
|
53
53
|
export { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressFromJSONTyped, CheckoutTransactionDestinationAddressToJSON } from './models/CheckoutTransactionDestinationAddress.js';
|
|
54
|
+
export { CheckoutTransactionExchangeSourceFromJSON, CheckoutTransactionExchangeSourceFromJSONTyped, CheckoutTransactionExchangeSourceToJSON } from './models/CheckoutTransactionExchangeSource.js';
|
|
54
55
|
export { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteFromJSONTyped, CheckoutTransactionQuoteToJSON } from './models/CheckoutTransactionQuote.js';
|
|
55
56
|
export { CheckoutUpdateRequestFromJSON, CheckoutUpdateRequestFromJSONTyped, CheckoutUpdateRequestToJSON } from './models/CheckoutUpdateRequest.js';
|
|
56
57
|
export { CheckoutsResponseFromJSON, CheckoutsResponseFromJSONTyped, CheckoutsResponseToJSON } from './models/CheckoutsResponse.js';
|
package/src/models/Account.d.ts
CHANGED
package/src/models/Asset.d.ts
CHANGED
|
@@ -22,43 +22,43 @@ export interface Asset {
|
|
|
22
22
|
*/
|
|
23
23
|
address: string | null;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Numeric identifier of the blockchain network
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof Asset
|
|
28
28
|
*/
|
|
29
29
|
chainId?: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Human-readable name of the blockchain network
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Asset
|
|
34
34
|
*/
|
|
35
35
|
chainName: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Number of decimal places used by the token
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof Asset
|
|
40
40
|
*/
|
|
41
41
|
decimals: number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* URL of the token logo image
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof Asset
|
|
46
46
|
*/
|
|
47
47
|
logoUrl: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Display name of the token or asset
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof Asset
|
|
52
52
|
*/
|
|
53
53
|
name: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Ticker symbol of the token (e.g. ETH, USDC)
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof Asset
|
|
58
58
|
*/
|
|
59
59
|
symbol: string;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Classification of the asset (e.g. ERC20, NATIVE)
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof Asset
|
|
64
64
|
*/
|
|
@@ -24,13 +24,13 @@ export interface AssetDiff {
|
|
|
24
24
|
*/
|
|
25
25
|
asset: Asset;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* List of incoming asset transfers
|
|
28
28
|
* @type {Array<AssetTransfer>}
|
|
29
29
|
* @memberof AssetDiff
|
|
30
30
|
*/
|
|
31
31
|
transferIn: Array<AssetTransfer>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* List of outgoing asset transfers
|
|
34
34
|
* @type {Array<AssetTransfer>}
|
|
35
35
|
* @memberof AssetDiff
|
|
36
36
|
*/
|
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface AssetTransfer {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Raw token amount before decimal adjustment
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AssetTransfer
|
|
22
22
|
*/
|
|
23
23
|
rawValue?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Human-readable summary of the transfer
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof AssetTransfer
|
|
28
28
|
*/
|
|
29
29
|
summary?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Estimated USD value of the transferred amount
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AssetTransfer
|
|
34
34
|
*/
|
|
35
35
|
usdPrice?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Decimal-adjusted token amount
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AssetTransfer
|
|
40
40
|
*/
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
7
|
var CheckoutSourceTypeEnum = require('./CheckoutSourceTypeEnum.cjs');
|
|
8
|
+
var ExchangeKeyEnum = require('./ExchangeKeyEnum.cjs');
|
|
8
9
|
|
|
9
10
|
/* tslint:disable */
|
|
10
11
|
function AttachSourceRequestFromJSON(json) {
|
|
@@ -19,6 +20,7 @@ function AttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
20
|
'fromAddress': !runtime.exists(json, 'fromAddress') ? undefined : json['fromAddress'],
|
|
20
21
|
'fromChainId': !runtime.exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
21
22
|
'fromChainName': !runtime.exists(json, 'fromChainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['fromChainName']),
|
|
23
|
+
'exchangeProvider': !runtime.exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnum.ExchangeKeyEnumFromJSON(json['exchangeProvider']),
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
function AttachSourceRequestToJSON(value) {
|
|
@@ -33,6 +35,7 @@ function AttachSourceRequestToJSON(value) {
|
|
|
33
35
|
'fromAddress': value.fromAddress,
|
|
34
36
|
'fromChainId': value.fromChainId,
|
|
35
37
|
'fromChainName': ChainEnum.ChainEnumToJSON(value.fromChainName),
|
|
38
|
+
'exchangeProvider': ExchangeKeyEnum.ExchangeKeyEnumToJSON(value.exchangeProvider),
|
|
36
39
|
};
|
|
37
40
|
}
|
|
38
41
|
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
13
|
import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
|
|
14
|
+
import { ExchangeKeyEnum } from './ExchangeKeyEnum';
|
|
14
15
|
/**
|
|
15
|
-
* fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'
|
|
16
|
+
* fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet' and optional when sourceType is 'exchange'. When sourceType is 'exchange', pass exchangeProvider to generate the buy URL and create the exchange source record server-side.
|
|
16
17
|
* @export
|
|
17
18
|
* @interface AttachSourceRequest
|
|
18
19
|
*/
|
|
@@ -41,6 +42,12 @@ export interface AttachSourceRequest {
|
|
|
41
42
|
* @memberof AttachSourceRequest
|
|
42
43
|
*/
|
|
43
44
|
fromChainName?: ChainEnum;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {ExchangeKeyEnum}
|
|
48
|
+
* @memberof AttachSourceRequest
|
|
49
|
+
*/
|
|
50
|
+
exchangeProvider?: ExchangeKeyEnum;
|
|
44
51
|
}
|
|
45
52
|
export declare function AttachSourceRequestFromJSON(json: any): AttachSourceRequest;
|
|
46
53
|
export declare function AttachSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachSourceRequest;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
3
|
import { CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumToJSON } from './CheckoutSourceTypeEnum.js';
|
|
4
|
+
import { ExchangeKeyEnumFromJSON, ExchangeKeyEnumToJSON } from './ExchangeKeyEnum.js';
|
|
4
5
|
|
|
5
6
|
/* tslint:disable */
|
|
6
7
|
function AttachSourceRequestFromJSON(json) {
|
|
@@ -15,6 +16,7 @@ function AttachSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
16
|
'fromAddress': !exists(json, 'fromAddress') ? undefined : json['fromAddress'],
|
|
16
17
|
'fromChainId': !exists(json, 'fromChainId') ? undefined : json['fromChainId'],
|
|
17
18
|
'fromChainName': !exists(json, 'fromChainName') ? undefined : ChainEnumFromJSON(json['fromChainName']),
|
|
19
|
+
'exchangeProvider': !exists(json, 'exchangeProvider') ? undefined : ExchangeKeyEnumFromJSON(json['exchangeProvider']),
|
|
18
20
|
};
|
|
19
21
|
}
|
|
20
22
|
function AttachSourceRequestToJSON(value) {
|
|
@@ -29,6 +31,7 @@ function AttachSourceRequestToJSON(value) {
|
|
|
29
31
|
'fromAddress': value.fromAddress,
|
|
30
32
|
'fromChainId': value.fromChainId,
|
|
31
33
|
'fromChainName': ChainEnumToJSON(value.fromChainName),
|
|
34
|
+
'exchangeProvider': ExchangeKeyEnumToJSON(value.exchangeProvider),
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface AuthenticationExtensionsClientInputs {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* FIDO AppID extension input for backward compatibility with U2F
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AuthenticationExtensionsClientInputs
|
|
22
22
|
*/
|
|
23
23
|
appid?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Whether to request credential properties from the authenticator
|
|
26
26
|
* @type {boolean}
|
|
27
27
|
* @memberof AuthenticationExtensionsClientInputs
|
|
28
28
|
*/
|
|
29
29
|
credProps?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Whether to create an HMAC secret with the authenticator
|
|
32
32
|
* @type {boolean}
|
|
33
33
|
* @memberof AuthenticationExtensionsClientInputs
|
|
34
34
|
*/
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface AuthenticationExtensionsClientOutputs {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Whether the FIDO AppID extension was used during the ceremony
|
|
20
20
|
* @type {boolean}
|
|
21
21
|
* @memberof AuthenticationExtensionsClientOutputs
|
|
22
22
|
*/
|
|
23
23
|
appid?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Properties of the created credential returned by the authenticator
|
|
26
26
|
* @type {object}
|
|
27
27
|
* @memberof AuthenticationExtensionsClientOutputs
|
|
28
28
|
*/
|
|
29
29
|
credProps?: object;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Whether an HMAC secret was successfully created
|
|
32
32
|
* @type {boolean}
|
|
33
33
|
* @memberof AuthenticationExtensionsClientOutputs
|
|
34
34
|
*/
|
|
@@ -17,7 +17,7 @@ import { WaasBackupOptionsEnum } from './WaasBackupOptionsEnum';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface BackupKeySharesToLocationResponse {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Human-readable status message for the backup operation
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof BackupKeySharesToLocationResponse
|
|
23
23
|
*/
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface BackupKeySharesToLocationsPendingResponse {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Human-readable status message for the pending backup operation
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof BackupKeySharesToLocationsPendingResponse
|
|
22
22
|
*/
|
|
@@ -28,7 +28,7 @@ export interface BackupKeySharesToLocationsPendingResponse {
|
|
|
28
28
|
*/
|
|
29
29
|
walletId: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Current status of the password update process
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof BackupKeySharesToLocationsPendingResponse
|
|
34
34
|
*/
|
|
@@ -23,7 +23,7 @@ export interface BackupKeySharesToLocationsRequest {
|
|
|
23
23
|
*/
|
|
24
24
|
passwordUpdateBatchId?: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* List of backup locations with their key share configuration
|
|
27
27
|
* @type {Array<BackupKeySharesToLocationsRequestLocations>}
|
|
28
28
|
* @memberof BackupKeySharesToLocationsRequest
|
|
29
29
|
*/
|
|
@@ -17,7 +17,7 @@ import { BackupKeySharesToLocationsResponseLocationsWithKeyShares } from './Back
|
|
|
17
17
|
*/
|
|
18
18
|
export interface BackupKeySharesToLocationsResponse {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Human-readable status message for the backup operation
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof BackupKeySharesToLocationsResponse
|
|
23
23
|
*/
|
|
@@ -29,13 +29,13 @@ export interface BackupKeySharesToLocationsResponse {
|
|
|
29
29
|
*/
|
|
30
30
|
walletId: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Current status of the password update process
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof BackupKeySharesToLocationsResponse
|
|
35
35
|
*/
|
|
36
36
|
passwordUpdateStatus?: BackupKeySharesToLocationsResponsePasswordUpdateStatusEnum;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* List of backup locations paired with their key share identifiers
|
|
39
39
|
* @type {Array<BackupKeySharesToLocationsResponseLocationsWithKeyShares>}
|
|
40
40
|
* @memberof BackupKeySharesToLocationsResponse
|
|
41
41
|
*/
|
|
@@ -17,7 +17,7 @@ import { WalletKeyShareInfo } from './WalletKeyShareInfo';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface BackupMultipleClientKeySharesResponse {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* List of key share information for each backed-up wallet
|
|
21
21
|
* @type {Array<WalletKeyShareInfo>}
|
|
22
22
|
* @memberof BackupMultipleClientKeySharesResponse
|
|
23
23
|
*/
|
package/src/models/BaseUser.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface BaseUser {
|
|
|
31
31
|
*/
|
|
32
32
|
projectEnvironmentId: string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* List of verified credentials (wallets, emails, social accounts) linked to the user
|
|
35
35
|
* @type {Array<JwtVerifiedCredential>}
|
|
36
36
|
* @memberof BaseUser
|
|
37
37
|
*/
|
|
@@ -61,7 +61,7 @@ export interface BaseUser {
|
|
|
61
61
|
*/
|
|
62
62
|
country?: string | null;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Primary email address of the user
|
|
65
65
|
* @type {string}
|
|
66
66
|
* @memberof BaseUser
|
|
67
67
|
*/
|
|
@@ -85,13 +85,13 @@ export interface BaseUser {
|
|
|
85
85
|
*/
|
|
86
86
|
lastName?: string | null;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Phone number of the user
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof BaseUser
|
|
91
91
|
*/
|
|
92
92
|
phoneNumber?: string | null;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* Whether the user has accepted the terms of service and privacy policy
|
|
95
95
|
* @type {boolean}
|
|
96
96
|
* @memberof BaseUser
|
|
97
97
|
*/
|
|
@@ -115,25 +115,25 @@ export interface BaseUser {
|
|
|
115
115
|
*/
|
|
116
116
|
username?: string | null;
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* ISO 8601 timestamp of when the user first visited
|
|
119
119
|
* @type {Date}
|
|
120
120
|
* @memberof BaseUser
|
|
121
121
|
*/
|
|
122
122
|
firstVisit?: Date;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* ISO 8601 timestamp of when the user last visited
|
|
125
125
|
* @type {Date}
|
|
126
126
|
* @memberof BaseUser
|
|
127
127
|
*/
|
|
128
128
|
lastVisit?: Date;
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
130
|
+
* Whether this is a newly created user
|
|
131
131
|
* @type {boolean}
|
|
132
132
|
* @memberof BaseUser
|
|
133
133
|
*/
|
|
134
134
|
newUser?: boolean;
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
136
|
+
* Arbitrary key-value metadata associated with the user
|
|
137
137
|
* @type {object}
|
|
138
138
|
* @memberof BaseUser
|
|
139
139
|
*/
|
|
@@ -145,55 +145,55 @@ export interface BaseUser {
|
|
|
145
145
|
*/
|
|
146
146
|
mfaBackupCodeAcknowledgement?: MfaBackupCodeAcknowledgement | null;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Bitcoin wallet address of the user
|
|
149
149
|
* @type {string}
|
|
150
150
|
* @memberof BaseUser
|
|
151
151
|
*/
|
|
152
152
|
btcWallet?: string | null;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* Kadena wallet address of the user
|
|
155
155
|
* @type {string}
|
|
156
156
|
* @memberof BaseUser
|
|
157
157
|
*/
|
|
158
158
|
kdaWallet?: string | null;
|
|
159
159
|
/**
|
|
160
|
-
*
|
|
160
|
+
* Litecoin wallet address of the user
|
|
161
161
|
* @type {string}
|
|
162
162
|
* @memberof BaseUser
|
|
163
163
|
*/
|
|
164
164
|
ltcWallet?: string | null;
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Nervos CKB wallet address of the user
|
|
167
167
|
* @type {string}
|
|
168
168
|
* @memberof BaseUser
|
|
169
169
|
*/
|
|
170
170
|
ckbWallet?: string | null;
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
172
|
+
* Kaspa wallet address of the user
|
|
173
173
|
* @type {string}
|
|
174
174
|
* @memberof BaseUser
|
|
175
175
|
*/
|
|
176
176
|
kasWallet?: string | null;
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* Dogecoin wallet address of the user
|
|
179
179
|
* @type {string}
|
|
180
180
|
* @memberof BaseUser
|
|
181
181
|
*/
|
|
182
182
|
dogeWallet?: string | null;
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* Whether the user has opted in to email notifications
|
|
185
185
|
* @type {boolean}
|
|
186
186
|
* @memberof BaseUser
|
|
187
187
|
*/
|
|
188
188
|
emailNotification?: boolean | null;
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* Whether the user has opted in to Discord notifications
|
|
191
191
|
* @type {boolean}
|
|
192
192
|
* @memberof BaseUser
|
|
193
193
|
*/
|
|
194
194
|
discordNotification?: boolean | null;
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
196
|
+
* Whether the user has opted in to newsletter notifications
|
|
197
197
|
* @type {boolean}
|
|
198
198
|
* @memberof BaseUser
|
|
199
199
|
*/
|
|
@@ -211,7 +211,7 @@ export interface BaseUser {
|
|
|
211
211
|
*/
|
|
212
212
|
scope?: string;
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
214
|
+
* List of required user fields that have not yet been provided
|
|
215
215
|
* @type {Array<ProjectSettingsKyc>}
|
|
216
216
|
* @memberof BaseUser
|
|
217
217
|
*/
|
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface BlockaidValidation {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Overall validation result indicating the threat level
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof BlockaidValidation
|
|
22
22
|
*/
|
|
23
23
|
result: string | null;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Human-readable explanation of the validation findings
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof BlockaidValidation
|
|
28
28
|
*/
|
|
29
29
|
description?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Machine-readable reason code for the validation result
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof BlockaidValidation
|
|
34
34
|
*/
|
|
35
35
|
reason: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Category of the detected threat or risk
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof BlockaidValidation
|
|
40
40
|
*/
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ChainConfiguration {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Name of the blockchain network
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ChainConfiguration
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Whether this chain is enabled for embedded wallets
|
|
26
26
|
* @type {boolean}
|
|
27
27
|
* @memberof ChainConfiguration
|
|
28
28
|
*/
|
|
29
29
|
enabled: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Whether this is the primary chain for the environment
|
|
32
32
|
* @type {boolean}
|
|
33
33
|
* @memberof ChainConfiguration
|
|
34
34
|
*/
|
package/src/models/Checkout.d.ts
CHANGED
|
@@ -50,19 +50,19 @@ export interface Checkout {
|
|
|
50
50
|
*/
|
|
51
51
|
depositConfig?: DepositAmountsConfigInput;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Whether Dynamic handles quote optimization, fee collection, and fund settlement automatically
|
|
54
54
|
* @type {boolean}
|
|
55
55
|
* @memberof Checkout
|
|
56
56
|
*/
|
|
57
57
|
enableOrchestration: boolean;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* ISO 8601 timestamp of when the checkout was created
|
|
60
60
|
* @type {Date}
|
|
61
61
|
* @memberof Checkout
|
|
62
62
|
*/
|
|
63
63
|
createdAt: Date;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* ISO 8601 timestamp of when the checkout was last updated
|
|
66
66
|
* @type {Date}
|
|
67
67
|
* @memberof Checkout
|
|
68
68
|
*/
|
|
@@ -22,7 +22,7 @@ export interface CheckoutFailure {
|
|
|
22
22
|
*/
|
|
23
23
|
code: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Human-readable error message describing the failure
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CheckoutFailure
|
|
28
28
|
*/
|
|
@@ -40,13 +40,13 @@ export interface CheckoutFailure {
|
|
|
40
40
|
*/
|
|
41
41
|
stage: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Whether the failed operation can be retried
|
|
44
44
|
* @type {boolean}
|
|
45
45
|
* @memberof CheckoutFailure
|
|
46
46
|
*/
|
|
47
47
|
retryable: boolean;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Additional structured details about the failure
|
|
50
50
|
* @type {object}
|
|
51
51
|
* @memberof CheckoutFailure
|
|
52
52
|
*/
|