@dynamic-labs/sdk-api-core 0.0.939 → 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/apis/SDKApi.cjs +8 -2
- package/src/apis/SDKApi.d.ts +4 -2
- package/src/apis/SDKApi.js +8 -2
- 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
|
@@ -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
|
*/
|
|
@@ -24,7 +24,6 @@ exports.CheckoutSourceTypeEnum = void 0;
|
|
|
24
24
|
(function (CheckoutSourceTypeEnum) {
|
|
25
25
|
CheckoutSourceTypeEnum["Wallet"] = "wallet";
|
|
26
26
|
CheckoutSourceTypeEnum["Exchange"] = "exchange";
|
|
27
|
-
CheckoutSourceTypeEnum["DepositAddress"] = "deposit_address";
|
|
28
27
|
})(exports.CheckoutSourceTypeEnum || (exports.CheckoutSourceTypeEnum = {}));
|
|
29
28
|
function CheckoutSourceTypeEnumFromJSON(json) {
|
|
30
29
|
return CheckoutSourceTypeEnumFromJSONTyped(json);
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export declare enum CheckoutSourceTypeEnum {
|
|
18
18
|
Wallet = "wallet",
|
|
19
|
-
Exchange = "exchange"
|
|
20
|
-
DepositAddress = "deposit_address"
|
|
19
|
+
Exchange = "exchange"
|
|
21
20
|
}
|
|
22
21
|
export declare function CheckoutSourceTypeEnumFromJSON(json: any): CheckoutSourceTypeEnum;
|
|
23
22
|
export declare function CheckoutSourceTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutSourceTypeEnum;
|
|
@@ -20,7 +20,6 @@ var CheckoutSourceTypeEnum;
|
|
|
20
20
|
(function (CheckoutSourceTypeEnum) {
|
|
21
21
|
CheckoutSourceTypeEnum["Wallet"] = "wallet";
|
|
22
22
|
CheckoutSourceTypeEnum["Exchange"] = "exchange";
|
|
23
|
-
CheckoutSourceTypeEnum["DepositAddress"] = "deposit_address";
|
|
24
23
|
})(CheckoutSourceTypeEnum || (CheckoutSourceTypeEnum = {}));
|
|
25
24
|
function CheckoutSourceTypeEnumFromJSON(json) {
|
|
26
25
|
return CheckoutSourceTypeEnumFromJSONTyped(json);
|
|
@@ -11,6 +11,7 @@ var CheckoutSettlementData = require('./CheckoutSettlementData.cjs');
|
|
|
11
11
|
var CheckoutSettlementStateEnum = require('./CheckoutSettlementStateEnum.cjs');
|
|
12
12
|
var CheckoutSourceTypeEnum = require('./CheckoutSourceTypeEnum.cjs');
|
|
13
13
|
var CheckoutTransactionDestinationAddress = require('./CheckoutTransactionDestinationAddress.cjs');
|
|
14
|
+
var CheckoutTransactionExchangeSource = require('./CheckoutTransactionExchangeSource.cjs');
|
|
14
15
|
var CheckoutTransactionQuote = require('./CheckoutTransactionQuote.cjs');
|
|
15
16
|
|
|
16
17
|
/* tslint:disable */
|
|
@@ -53,6 +54,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
54
|
'expiresAt': !runtime.exists(json, 'expiresAt') ? undefined : (new Date(json['expiresAt'])),
|
|
54
55
|
'createdAt': (new Date(json['createdAt'])),
|
|
55
56
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
57
|
+
'exchangeSource': !runtime.exists(json, 'exchangeSource') ? undefined : CheckoutTransactionExchangeSource.CheckoutTransactionExchangeSourceFromJSON(json['exchangeSource']),
|
|
56
58
|
};
|
|
57
59
|
}
|
|
58
60
|
function CheckoutTransactionToJSON(value) {
|
|
@@ -94,6 +96,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
94
96
|
'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt.toISOString()),
|
|
95
97
|
'createdAt': (value.createdAt.toISOString()),
|
|
96
98
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
99
|
+
'exchangeSource': CheckoutTransactionExchangeSource.CheckoutTransactionExchangeSourceToJSON(value.exchangeSource),
|
|
97
100
|
};
|
|
98
101
|
}
|
|
99
102
|
|
|
@@ -17,6 +17,7 @@ import { CheckoutSettlementData } from './CheckoutSettlementData';
|
|
|
17
17
|
import { CheckoutSettlementStateEnum } from './CheckoutSettlementStateEnum';
|
|
18
18
|
import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
|
|
19
19
|
import { CheckoutTransactionDestinationAddress } from './CheckoutTransactionDestinationAddress';
|
|
20
|
+
import { CheckoutTransactionExchangeSource } from './CheckoutTransactionExchangeSource';
|
|
20
21
|
import { CheckoutTransactionQuote } from './CheckoutTransactionQuote';
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
@@ -37,7 +38,7 @@ export interface CheckoutTransaction {
|
|
|
37
38
|
*/
|
|
38
39
|
checkoutId: string;
|
|
39
40
|
/**
|
|
40
|
-
*
|
|
41
|
+
* Arbitrary metadata attached to the transaction
|
|
41
42
|
* @type {object}
|
|
42
43
|
* @memberof CheckoutTransaction
|
|
43
44
|
*/
|
|
@@ -49,7 +50,7 @@ export interface CheckoutTransaction {
|
|
|
49
50
|
*/
|
|
50
51
|
userId?: string;
|
|
51
52
|
/**
|
|
52
|
-
*
|
|
53
|
+
* Deposit amount in the specified currency
|
|
53
54
|
* @type {string}
|
|
54
55
|
* @memberof CheckoutTransaction
|
|
55
56
|
*/
|
|
@@ -61,7 +62,7 @@ export interface CheckoutTransaction {
|
|
|
61
62
|
*/
|
|
62
63
|
currency: string;
|
|
63
64
|
/**
|
|
64
|
-
*
|
|
65
|
+
* List of destination wallet addresses for fund delivery
|
|
65
66
|
* @type {Array<CheckoutTransactionDestinationAddress>}
|
|
66
67
|
* @memberof CheckoutTransaction
|
|
67
68
|
*/
|
|
@@ -139,7 +140,7 @@ export interface CheckoutTransaction {
|
|
|
139
140
|
*/
|
|
140
141
|
toToken?: string;
|
|
141
142
|
/**
|
|
142
|
-
*
|
|
143
|
+
* Version number of the quote used for this transaction
|
|
143
144
|
* @type {number}
|
|
144
145
|
* @memberof CheckoutTransaction
|
|
145
146
|
*/
|
|
@@ -157,19 +158,19 @@ export interface CheckoutTransaction {
|
|
|
157
158
|
*/
|
|
158
159
|
txHash?: string;
|
|
159
160
|
/**
|
|
160
|
-
*
|
|
161
|
+
* ISO 8601 timestamp of when the transaction was broadcast to the network
|
|
161
162
|
* @type {Date}
|
|
162
163
|
* @memberof CheckoutTransaction
|
|
163
164
|
*/
|
|
164
165
|
broadcastedAt?: Date;
|
|
165
166
|
/**
|
|
166
|
-
*
|
|
167
|
+
* ISO 8601 timestamp of when the source chain confirmed the transaction
|
|
167
168
|
* @type {Date}
|
|
168
169
|
* @memberof CheckoutTransaction
|
|
169
170
|
*/
|
|
170
171
|
sourceConfirmedAt?: Date;
|
|
171
172
|
/**
|
|
172
|
-
*
|
|
173
|
+
* Number of blockchain confirmations received
|
|
173
174
|
* @type {number}
|
|
174
175
|
* @memberof CheckoutTransaction
|
|
175
176
|
*/
|
|
@@ -181,7 +182,7 @@ export interface CheckoutTransaction {
|
|
|
181
182
|
*/
|
|
182
183
|
settlement?: CheckoutSettlementData;
|
|
183
184
|
/**
|
|
184
|
-
*
|
|
185
|
+
* ISO 8601 timestamp of when the transaction was completed
|
|
185
186
|
* @type {Date}
|
|
186
187
|
* @memberof CheckoutTransaction
|
|
187
188
|
*/
|
|
@@ -193,23 +194,29 @@ export interface CheckoutTransaction {
|
|
|
193
194
|
*/
|
|
194
195
|
failure?: CheckoutFailure;
|
|
195
196
|
/**
|
|
196
|
-
*
|
|
197
|
+
* ISO 8601 timestamp of when the transaction expires
|
|
197
198
|
* @type {Date}
|
|
198
199
|
* @memberof CheckoutTransaction
|
|
199
200
|
*/
|
|
200
201
|
expiresAt?: Date;
|
|
201
202
|
/**
|
|
202
|
-
*
|
|
203
|
+
* ISO 8601 timestamp of when the transaction was created
|
|
203
204
|
* @type {Date}
|
|
204
205
|
* @memberof CheckoutTransaction
|
|
205
206
|
*/
|
|
206
207
|
createdAt: Date;
|
|
207
208
|
/**
|
|
208
|
-
*
|
|
209
|
+
* ISO 8601 timestamp of when the transaction was last updated
|
|
209
210
|
* @type {Date}
|
|
210
211
|
* @memberof CheckoutTransaction
|
|
211
212
|
*/
|
|
212
213
|
updatedAt: Date;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {CheckoutTransactionExchangeSource}
|
|
217
|
+
* @memberof CheckoutTransaction
|
|
218
|
+
*/
|
|
219
|
+
exchangeSource?: CheckoutTransactionExchangeSource;
|
|
213
220
|
}
|
|
214
221
|
export declare function CheckoutTransactionFromJSON(json: any): CheckoutTransaction;
|
|
215
222
|
export declare function CheckoutTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutTransaction;
|
|
@@ -7,6 +7,7 @@ import { CheckoutSettlementDataFromJSON, CheckoutSettlementDataToJSON } from './
|
|
|
7
7
|
import { CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumToJSON } from './CheckoutSettlementStateEnum.js';
|
|
8
8
|
import { CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumToJSON } from './CheckoutSourceTypeEnum.js';
|
|
9
9
|
import { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressToJSON } from './CheckoutTransactionDestinationAddress.js';
|
|
10
|
+
import { CheckoutTransactionExchangeSourceFromJSON, CheckoutTransactionExchangeSourceToJSON } from './CheckoutTransactionExchangeSource.js';
|
|
10
11
|
import { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteToJSON } from './CheckoutTransactionQuote.js';
|
|
11
12
|
|
|
12
13
|
/* tslint:disable */
|
|
@@ -49,6 +50,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
50
|
'expiresAt': !exists(json, 'expiresAt') ? undefined : (new Date(json['expiresAt'])),
|
|
50
51
|
'createdAt': (new Date(json['createdAt'])),
|
|
51
52
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
53
|
+
'exchangeSource': !exists(json, 'exchangeSource') ? undefined : CheckoutTransactionExchangeSourceFromJSON(json['exchangeSource']),
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
function CheckoutTransactionToJSON(value) {
|
|
@@ -90,6 +92,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
90
92
|
'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt.toISOString()),
|
|
91
93
|
'createdAt': (value.createdAt.toISOString()),
|
|
92
94
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
95
|
+
'exchangeSource': CheckoutTransactionExchangeSourceToJSON(value.exchangeSource),
|
|
93
96
|
};
|
|
94
97
|
}
|
|
95
98
|
|
|
@@ -17,7 +17,7 @@ import { CheckoutTransactionDestinationAddress } from './CheckoutTransactionDest
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CheckoutTransactionCreateRequest {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Deposit amount in the specified currency
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof CheckoutTransactionCreateRequest
|
|
23
23
|
*/
|
|
@@ -29,7 +29,7 @@ export interface CheckoutTransactionCreateRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
currency: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* List of destination wallet addresses for fund delivery
|
|
33
33
|
* @type {Array<CheckoutTransactionDestinationAddress>}
|
|
34
34
|
* @memberof CheckoutTransactionCreateRequest
|
|
35
35
|
*/
|
|
@@ -41,7 +41,7 @@ export interface CheckoutTransactionCreateRequest {
|
|
|
41
41
|
*/
|
|
42
42
|
expiresIn?: number;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Arbitrary metadata attached to the transaction
|
|
45
45
|
* @type {object}
|
|
46
46
|
* @memberof CheckoutTransactionCreateRequest
|
|
47
47
|
*/
|
|
@@ -0,0 +1,45 @@
|
|
|
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 CheckoutTransactionExchangeSourceFromJSON(json) {
|
|
19
|
+
return CheckoutTransactionExchangeSourceFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function CheckoutTransactionExchangeSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'exchangeId': json['exchangeId'],
|
|
27
|
+
'metadata': json['metadata'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function CheckoutTransactionExchangeSourceToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'exchangeId': value.exchangeId,
|
|
39
|
+
'metadata': value.metadata,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.CheckoutTransactionExchangeSourceFromJSON = CheckoutTransactionExchangeSourceFromJSON;
|
|
44
|
+
exports.CheckoutTransactionExchangeSourceFromJSONTyped = CheckoutTransactionExchangeSourceFromJSONTyped;
|
|
45
|
+
exports.CheckoutTransactionExchangeSourceToJSON = CheckoutTransactionExchangeSourceToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
* Present when sourceType is 'exchange'. Contains the exchange reference and provider-specific metadata (e.g. buyUrl for Coinbase).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CheckoutTransactionExchangeSource
|
|
16
|
+
*/
|
|
17
|
+
export interface CheckoutTransactionExchangeSource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CheckoutTransactionExchangeSource
|
|
22
|
+
*/
|
|
23
|
+
exchangeId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Provider-specific data. Shape varies by exchange.
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof CheckoutTransactionExchangeSource
|
|
28
|
+
*/
|
|
29
|
+
metadata: object;
|
|
30
|
+
}
|
|
31
|
+
export declare function CheckoutTransactionExchangeSourceFromJSON(json: any): CheckoutTransactionExchangeSource;
|
|
32
|
+
export declare function CheckoutTransactionExchangeSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutTransactionExchangeSource;
|
|
33
|
+
export declare function CheckoutTransactionExchangeSourceToJSON(value?: CheckoutTransactionExchangeSource | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 CheckoutTransactionExchangeSourceFromJSON(json) {
|
|
15
|
+
return CheckoutTransactionExchangeSourceFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function CheckoutTransactionExchangeSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'exchangeId': json['exchangeId'],
|
|
23
|
+
'metadata': json['metadata'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function CheckoutTransactionExchangeSourceToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'exchangeId': value.exchangeId,
|
|
35
|
+
'metadata': value.metadata,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { CheckoutTransactionExchangeSourceFromJSON, CheckoutTransactionExchangeSourceFromJSONTyped, CheckoutTransactionExchangeSourceToJSON };
|
|
@@ -18,19 +18,19 @@ import { SwapSigningPayload } from './SwapSigningPayload';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface CheckoutTransactionQuote {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Monotonically increasing version number for this quote
|
|
22
22
|
* @type {number}
|
|
23
23
|
* @memberof CheckoutTransactionQuote
|
|
24
24
|
*/
|
|
25
25
|
version: number;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Amount being sent in the source token
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof CheckoutTransactionQuote
|
|
30
30
|
*/
|
|
31
31
|
fromAmount: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Amount to be received in the destination token
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof CheckoutTransactionQuote
|
|
36
36
|
*/
|
|
@@ -42,7 +42,7 @@ export interface CheckoutTransactionQuote {
|
|
|
42
42
|
*/
|
|
43
43
|
fees?: CheckoutFeeBreakdown;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Estimated time in seconds for the swap to complete
|
|
46
46
|
* @type {number}
|
|
47
47
|
* @memberof CheckoutTransactionQuote
|
|
48
48
|
*/
|
|
@@ -60,13 +60,13 @@ export interface CheckoutTransactionQuote {
|
|
|
60
60
|
*/
|
|
61
61
|
signingPayload?: SwapSigningPayload;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* ISO 8601 timestamp of when the quote was created
|
|
64
64
|
* @type {Date}
|
|
65
65
|
* @memberof CheckoutTransactionQuote
|
|
66
66
|
*/
|
|
67
67
|
createdAt: Date;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* ISO 8601 timestamp of when the quote expires
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof CheckoutTransactionQuote
|
|
72
72
|
*/
|
|
@@ -17,7 +17,7 @@ import { CoinbaseOnrampBuyUrlExperience } from './CoinbaseOnrampBuyUrlExperience
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CoinbaseOnrampGetBuyUrlRequest {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* List of asset symbols available for purchase
|
|
21
21
|
* @type {Array<string>}
|
|
22
22
|
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
23
23
|
*/
|
|
@@ -65,7 +65,7 @@ export interface CoinbaseOnrampGetBuyUrlRequest {
|
|
|
65
65
|
*/
|
|
66
66
|
handlingRequestedUrls?: boolean;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* List of blockchain networks available for delivery
|
|
69
69
|
* @type {Array<string>}
|
|
70
70
|
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
71
71
|
*/
|
package/src/models/Conflict.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface CreateWaasAccountRequest {
|
|
|
24
24
|
*/
|
|
25
25
|
chain: WaasChainEnum;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* List of client-side key generation identifiers
|
|
28
28
|
* @type {Array<string>}
|
|
29
29
|
* @memberof CreateWaasAccountRequest
|
|
30
30
|
*/
|
|
@@ -42,7 +42,7 @@ export interface CreateWaasAccountRequest {
|
|
|
42
42
|
*/
|
|
43
43
|
skipLock?: boolean;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Address derivation type for the new account
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof CreateWaasAccountRequest
|
|
48
48
|
*/
|
package/src/models/Currency.d.ts
CHANGED
|
@@ -17,13 +17,13 @@ import { CurrencyType } from './CurrencyType';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface Currency {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Display name of the currency
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Currency
|
|
23
23
|
*/
|
|
24
24
|
name: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Symbol used when displaying the currency
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof Currency
|
|
29
29
|
*/
|
|
@@ -35,13 +35,13 @@ export interface Currency {
|
|
|
35
35
|
*/
|
|
36
36
|
type: CurrencyType;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* ISO currency code or token symbol
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof Currency
|
|
41
41
|
*/
|
|
42
42
|
code: string;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Exchange rate value relative to the base currency
|
|
45
45
|
* @type {number}
|
|
46
46
|
* @memberof Currency
|
|
47
47
|
*/
|
|
@@ -71,13 +71,13 @@ export interface DelegatedAccessEncryptionPublicKey {
|
|
|
71
71
|
*/
|
|
72
72
|
revokedAt?: Date | null;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* ISO 8601 timestamp of when the key was created
|
|
75
75
|
* @type {Date}
|
|
76
76
|
* @memberof DelegatedAccessEncryptionPublicKey
|
|
77
77
|
*/
|
|
78
78
|
createdAt: Date;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* ISO 8601 timestamp of when the key was last updated
|
|
81
81
|
* @type {Date}
|
|
82
82
|
* @memberof DelegatedAccessEncryptionPublicKey
|
|
83
83
|
*/
|