@dfns/sdk 0.8.7 → 0.8.8
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.
|
@@ -230,6 +230,22 @@ export type ArchivePolicyResponse = {
|
|
|
230
230
|
skipChainalysisFailure: boolean;
|
|
231
231
|
};
|
|
232
232
|
};
|
|
233
|
+
} | {
|
|
234
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
235
|
+
configuration: {
|
|
236
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
237
|
+
riskScoreThreshold: number;
|
|
238
|
+
fallbackBehaviours: {
|
|
239
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
240
|
+
skipUnscreenableTransaction: boolean;
|
|
241
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
242
|
+
skipUnsupportedNetwork: boolean;
|
|
243
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
244
|
+
skipUnsupportedAsset: boolean;
|
|
245
|
+
/** skips any errors from GlobalLedger API request */
|
|
246
|
+
skipGlobalLedgerFailure: boolean;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
233
249
|
} | {
|
|
234
250
|
kind: "TravelRuleTransactionPrescreening";
|
|
235
251
|
configuration: {
|
|
@@ -344,7 +360,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
344
360
|
to: string;
|
|
345
361
|
/** The amount of native tokens to transfer in minimum denomination. */
|
|
346
362
|
amount: string;
|
|
347
|
-
/** The memo or destination tag
|
|
363
|
+
/** The memo or destination tag (supported networks only). */
|
|
348
364
|
memo?: string | undefined;
|
|
349
365
|
/** The priority that determines the fees paid for the transfer. All EVM compatible networks and Bitcoin support `priority`. Not supported for other networks. It uses the [estimate fees](https://docs.dfns.co/api-reference/networks/estimate-fees) API to calculate the transfer fees. When not specified, defaults to `Standard` priority. */
|
|
350
366
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
@@ -905,7 +921,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
905
921
|
};
|
|
906
922
|
};
|
|
907
923
|
/** Transfer status.
|
|
908
|
-
|
|
924
|
+
|
|
909
925
|
| Status | Definition |
|
|
910
926
|
| --- | --- |
|
|
911
927
|
| `Pending` | The request is pending approval due to a policy applied to the wallet. |
|
|
@@ -933,11 +949,15 @@ export type CreateApprovalDecisionResponse = {
|
|
|
933
949
|
feeSponsorId?: string | undefined;
|
|
934
950
|
} | undefined;
|
|
935
951
|
transactionRequest?: {
|
|
952
|
+
/** Transaction id. */
|
|
936
953
|
id: string;
|
|
954
|
+
/** Wallet id. */
|
|
937
955
|
walletId: string;
|
|
938
956
|
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TempoAndantino" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet";
|
|
939
957
|
requester: {
|
|
958
|
+
/** User id. */
|
|
940
959
|
userId: string;
|
|
960
|
+
/** Token id. */
|
|
941
961
|
tokenId?: string | undefined;
|
|
942
962
|
};
|
|
943
963
|
requestBody: {
|
|
@@ -1015,7 +1035,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
1015
1035
|
externalId?: string | undefined;
|
|
1016
1036
|
} | {
|
|
1017
1037
|
kind: "CancelTransaction";
|
|
1018
|
-
txHash
|
|
1038
|
+
txHash?: string | undefined;
|
|
1019
1039
|
signedTx: string;
|
|
1020
1040
|
/** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
|
|
1021
1041
|
externalId?: string | undefined;
|
|
@@ -1038,10 +1058,14 @@ export type CreateApprovalDecisionResponse = {
|
|
|
1038
1058
|
externalId?: string | undefined;
|
|
1039
1059
|
} | undefined;
|
|
1040
1060
|
signatureRequest?: {
|
|
1061
|
+
/** Signature id. */
|
|
1041
1062
|
id: string;
|
|
1063
|
+
/** Key id. */
|
|
1042
1064
|
keyId: string;
|
|
1043
1065
|
requester: {
|
|
1066
|
+
/** User id. */
|
|
1044
1067
|
userId: string;
|
|
1068
|
+
/** Token id. */
|
|
1045
1069
|
tokenId?: string | undefined;
|
|
1046
1070
|
};
|
|
1047
1071
|
requestBody: {
|
|
@@ -1171,7 +1195,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
1171
1195
|
} | {
|
|
1172
1196
|
kind: "SignerPayload";
|
|
1173
1197
|
/** The unsigned Signer Payload formatted as JSON, or as a serialized hex-encoded buffer.
|
|
1174
|
-
|
|
1198
|
+
|
|
1175
1199
|
Please refer to the original Polkadot definition for more details: [SignerPayloadJson](https://github.com/polkadot-js/api/blob/v16.2.2/packages/types/src/types/extrinsic.ts#L32). Note that additional fields will be rejected.
|
|
1176
1200
|
|
|
1177
1201
|
| Field | Description | Type - Optional |
|
|
@@ -2458,6 +2482,22 @@ export type CreateApprovalDecisionResponse = {
|
|
|
2458
2482
|
skipChainalysisFailure: boolean;
|
|
2459
2483
|
};
|
|
2460
2484
|
};
|
|
2485
|
+
} | {
|
|
2486
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
2487
|
+
configuration: {
|
|
2488
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
2489
|
+
riskScoreThreshold: number;
|
|
2490
|
+
fallbackBehaviours: {
|
|
2491
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
2492
|
+
skipUnscreenableTransaction: boolean;
|
|
2493
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
2494
|
+
skipUnsupportedNetwork: boolean;
|
|
2495
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
2496
|
+
skipUnsupportedAsset: boolean;
|
|
2497
|
+
/** skips any errors from GlobalLedger API request */
|
|
2498
|
+
skipGlobalLedgerFailure: boolean;
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
2461
2501
|
} | {
|
|
2462
2502
|
kind: "TravelRuleTransactionPrescreening";
|
|
2463
2503
|
configuration: {
|
|
@@ -2653,6 +2693,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
2653
2693
|
policyId: string;
|
|
2654
2694
|
triggered: boolean;
|
|
2655
2695
|
reason: string;
|
|
2696
|
+
context?: any | undefined;
|
|
2656
2697
|
}[];
|
|
2657
2698
|
decisions: {
|
|
2658
2699
|
userId: string;
|
|
@@ -2869,6 +2910,22 @@ export type CreatePolicyBody = {
|
|
|
2869
2910
|
skipChainalysisFailure: boolean;
|
|
2870
2911
|
};
|
|
2871
2912
|
};
|
|
2913
|
+
} | {
|
|
2914
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
2915
|
+
configuration: {
|
|
2916
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
2917
|
+
riskScoreThreshold: number;
|
|
2918
|
+
fallbackBehaviours: {
|
|
2919
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
2920
|
+
skipUnscreenableTransaction: boolean;
|
|
2921
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
2922
|
+
skipUnsupportedNetwork: boolean;
|
|
2923
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
2924
|
+
skipUnsupportedAsset: boolean;
|
|
2925
|
+
/** skips any errors from GlobalLedger API request */
|
|
2926
|
+
skipGlobalLedgerFailure: boolean;
|
|
2927
|
+
};
|
|
2928
|
+
};
|
|
2872
2929
|
} | {
|
|
2873
2930
|
kind: "TravelRuleTransactionPrescreening";
|
|
2874
2931
|
configuration: {
|
|
@@ -3175,6 +3232,22 @@ export type CreatePolicyResponse = {
|
|
|
3175
3232
|
skipChainalysisFailure: boolean;
|
|
3176
3233
|
};
|
|
3177
3234
|
};
|
|
3235
|
+
} | {
|
|
3236
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
3237
|
+
configuration: {
|
|
3238
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
3239
|
+
riskScoreThreshold: number;
|
|
3240
|
+
fallbackBehaviours: {
|
|
3241
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
3242
|
+
skipUnscreenableTransaction: boolean;
|
|
3243
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
3244
|
+
skipUnsupportedNetwork: boolean;
|
|
3245
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
3246
|
+
skipUnsupportedAsset: boolean;
|
|
3247
|
+
/** skips any errors from GlobalLedger API request */
|
|
3248
|
+
skipGlobalLedgerFailure: boolean;
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3178
3251
|
} | {
|
|
3179
3252
|
kind: "TravelRuleTransactionPrescreening";
|
|
3180
3253
|
configuration: {
|
|
@@ -3287,7 +3360,7 @@ export type GetApprovalResponse = {
|
|
|
3287
3360
|
to: string;
|
|
3288
3361
|
/** The amount of native tokens to transfer in minimum denomination. */
|
|
3289
3362
|
amount: string;
|
|
3290
|
-
/** The memo or destination tag
|
|
3363
|
+
/** The memo or destination tag (supported networks only). */
|
|
3291
3364
|
memo?: string | undefined;
|
|
3292
3365
|
/** The priority that determines the fees paid for the transfer. All EVM compatible networks and Bitcoin support `priority`. Not supported for other networks. It uses the [estimate fees](https://docs.dfns.co/api-reference/networks/estimate-fees) API to calculate the transfer fees. When not specified, defaults to `Standard` priority. */
|
|
3293
3366
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
@@ -3848,7 +3921,7 @@ export type GetApprovalResponse = {
|
|
|
3848
3921
|
};
|
|
3849
3922
|
};
|
|
3850
3923
|
/** Transfer status.
|
|
3851
|
-
|
|
3924
|
+
|
|
3852
3925
|
| Status | Definition |
|
|
3853
3926
|
| --- | --- |
|
|
3854
3927
|
| `Pending` | The request is pending approval due to a policy applied to the wallet. |
|
|
@@ -3876,11 +3949,15 @@ export type GetApprovalResponse = {
|
|
|
3876
3949
|
feeSponsorId?: string | undefined;
|
|
3877
3950
|
} | undefined;
|
|
3878
3951
|
transactionRequest?: {
|
|
3952
|
+
/** Transaction id. */
|
|
3879
3953
|
id: string;
|
|
3954
|
+
/** Wallet id. */
|
|
3880
3955
|
walletId: string;
|
|
3881
3956
|
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TempoAndantino" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet";
|
|
3882
3957
|
requester: {
|
|
3958
|
+
/** User id. */
|
|
3883
3959
|
userId: string;
|
|
3960
|
+
/** Token id. */
|
|
3884
3961
|
tokenId?: string | undefined;
|
|
3885
3962
|
};
|
|
3886
3963
|
requestBody: {
|
|
@@ -3958,7 +4035,7 @@ export type GetApprovalResponse = {
|
|
|
3958
4035
|
externalId?: string | undefined;
|
|
3959
4036
|
} | {
|
|
3960
4037
|
kind: "CancelTransaction";
|
|
3961
|
-
txHash
|
|
4038
|
+
txHash?: string | undefined;
|
|
3962
4039
|
signedTx: string;
|
|
3963
4040
|
/** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
|
|
3964
4041
|
externalId?: string | undefined;
|
|
@@ -3981,10 +4058,14 @@ export type GetApprovalResponse = {
|
|
|
3981
4058
|
externalId?: string | undefined;
|
|
3982
4059
|
} | undefined;
|
|
3983
4060
|
signatureRequest?: {
|
|
4061
|
+
/** Signature id. */
|
|
3984
4062
|
id: string;
|
|
4063
|
+
/** Key id. */
|
|
3985
4064
|
keyId: string;
|
|
3986
4065
|
requester: {
|
|
4066
|
+
/** User id. */
|
|
3987
4067
|
userId: string;
|
|
4068
|
+
/** Token id. */
|
|
3988
4069
|
tokenId?: string | undefined;
|
|
3989
4070
|
};
|
|
3990
4071
|
requestBody: {
|
|
@@ -4114,7 +4195,7 @@ export type GetApprovalResponse = {
|
|
|
4114
4195
|
} | {
|
|
4115
4196
|
kind: "SignerPayload";
|
|
4116
4197
|
/** The unsigned Signer Payload formatted as JSON, or as a serialized hex-encoded buffer.
|
|
4117
|
-
|
|
4198
|
+
|
|
4118
4199
|
Please refer to the original Polkadot definition for more details: [SignerPayloadJson](https://github.com/polkadot-js/api/blob/v16.2.2/packages/types/src/types/extrinsic.ts#L32). Note that additional fields will be rejected.
|
|
4119
4200
|
|
|
4120
4201
|
| Field | Description | Type - Optional |
|
|
@@ -5401,6 +5482,22 @@ export type GetApprovalResponse = {
|
|
|
5401
5482
|
skipChainalysisFailure: boolean;
|
|
5402
5483
|
};
|
|
5403
5484
|
};
|
|
5485
|
+
} | {
|
|
5486
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
5487
|
+
configuration: {
|
|
5488
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
5489
|
+
riskScoreThreshold: number;
|
|
5490
|
+
fallbackBehaviours: {
|
|
5491
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
5492
|
+
skipUnscreenableTransaction: boolean;
|
|
5493
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
5494
|
+
skipUnsupportedNetwork: boolean;
|
|
5495
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
5496
|
+
skipUnsupportedAsset: boolean;
|
|
5497
|
+
/** skips any errors from GlobalLedger API request */
|
|
5498
|
+
skipGlobalLedgerFailure: boolean;
|
|
5499
|
+
};
|
|
5500
|
+
};
|
|
5404
5501
|
} | {
|
|
5405
5502
|
kind: "TravelRuleTransactionPrescreening";
|
|
5406
5503
|
configuration: {
|
|
@@ -5596,6 +5693,7 @@ export type GetApprovalResponse = {
|
|
|
5596
5693
|
policyId: string;
|
|
5597
5694
|
triggered: boolean;
|
|
5598
5695
|
reason: string;
|
|
5696
|
+
context?: any | undefined;
|
|
5599
5697
|
}[];
|
|
5600
5698
|
decisions: {
|
|
5601
5699
|
userId: string;
|
|
@@ -5837,6 +5935,22 @@ export type GetPolicyResponse = ({
|
|
|
5837
5935
|
skipChainalysisFailure: boolean;
|
|
5838
5936
|
};
|
|
5839
5937
|
};
|
|
5938
|
+
} | {
|
|
5939
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
5940
|
+
configuration: {
|
|
5941
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
5942
|
+
riskScoreThreshold: number;
|
|
5943
|
+
fallbackBehaviours: {
|
|
5944
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
5945
|
+
skipUnscreenableTransaction: boolean;
|
|
5946
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
5947
|
+
skipUnsupportedNetwork: boolean;
|
|
5948
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
5949
|
+
skipUnsupportedAsset: boolean;
|
|
5950
|
+
/** skips any errors from GlobalLedger API request */
|
|
5951
|
+
skipGlobalLedgerFailure: boolean;
|
|
5952
|
+
};
|
|
5953
|
+
};
|
|
5840
5954
|
} | {
|
|
5841
5955
|
kind: "TravelRuleTransactionPrescreening";
|
|
5842
5956
|
configuration: {
|
|
@@ -6161,6 +6275,22 @@ export type GetPolicyResponse = ({
|
|
|
6161
6275
|
skipChainalysisFailure: boolean;
|
|
6162
6276
|
};
|
|
6163
6277
|
};
|
|
6278
|
+
} | {
|
|
6279
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
6280
|
+
configuration: {
|
|
6281
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
6282
|
+
riskScoreThreshold: number;
|
|
6283
|
+
fallbackBehaviours: {
|
|
6284
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
6285
|
+
skipUnscreenableTransaction: boolean;
|
|
6286
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
6287
|
+
skipUnsupportedNetwork: boolean;
|
|
6288
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
6289
|
+
skipUnsupportedAsset: boolean;
|
|
6290
|
+
/** skips any errors from GlobalLedger API request */
|
|
6291
|
+
skipGlobalLedgerFailure: boolean;
|
|
6292
|
+
};
|
|
6293
|
+
};
|
|
6164
6294
|
} | {
|
|
6165
6295
|
kind: "TravelRuleTransactionPrescreening";
|
|
6166
6296
|
configuration: {
|
|
@@ -6278,7 +6408,7 @@ export type ListApprovalsResponse = {
|
|
|
6278
6408
|
to: string;
|
|
6279
6409
|
/** The amount of native tokens to transfer in minimum denomination. */
|
|
6280
6410
|
amount: string;
|
|
6281
|
-
/** The memo or destination tag
|
|
6411
|
+
/** The memo or destination tag (supported networks only). */
|
|
6282
6412
|
memo?: string | undefined;
|
|
6283
6413
|
/** The priority that determines the fees paid for the transfer. All EVM compatible networks and Bitcoin support `priority`. Not supported for other networks. It uses the [estimate fees](https://docs.dfns.co/api-reference/networks/estimate-fees) API to calculate the transfer fees. When not specified, defaults to `Standard` priority. */
|
|
6284
6414
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
@@ -6839,7 +6969,7 @@ export type ListApprovalsResponse = {
|
|
|
6839
6969
|
};
|
|
6840
6970
|
};
|
|
6841
6971
|
/** Transfer status.
|
|
6842
|
-
|
|
6972
|
+
|
|
6843
6973
|
| Status | Definition |
|
|
6844
6974
|
| --- | --- |
|
|
6845
6975
|
| `Pending` | The request is pending approval due to a policy applied to the wallet. |
|
|
@@ -6867,11 +6997,15 @@ export type ListApprovalsResponse = {
|
|
|
6867
6997
|
feeSponsorId?: string | undefined;
|
|
6868
6998
|
} | undefined;
|
|
6869
6999
|
transactionRequest?: {
|
|
7000
|
+
/** Transaction id. */
|
|
6870
7001
|
id: string;
|
|
7002
|
+
/** Wallet id. */
|
|
6871
7003
|
walletId: string;
|
|
6872
7004
|
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TempoAndantino" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet";
|
|
6873
7005
|
requester: {
|
|
7006
|
+
/** User id. */
|
|
6874
7007
|
userId: string;
|
|
7008
|
+
/** Token id. */
|
|
6875
7009
|
tokenId?: string | undefined;
|
|
6876
7010
|
};
|
|
6877
7011
|
requestBody: {
|
|
@@ -6949,7 +7083,7 @@ export type ListApprovalsResponse = {
|
|
|
6949
7083
|
externalId?: string | undefined;
|
|
6950
7084
|
} | {
|
|
6951
7085
|
kind: "CancelTransaction";
|
|
6952
|
-
txHash
|
|
7086
|
+
txHash?: string | undefined;
|
|
6953
7087
|
signedTx: string;
|
|
6954
7088
|
/** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
|
|
6955
7089
|
externalId?: string | undefined;
|
|
@@ -6972,10 +7106,14 @@ export type ListApprovalsResponse = {
|
|
|
6972
7106
|
externalId?: string | undefined;
|
|
6973
7107
|
} | undefined;
|
|
6974
7108
|
signatureRequest?: {
|
|
7109
|
+
/** Signature id. */
|
|
6975
7110
|
id: string;
|
|
7111
|
+
/** Key id. */
|
|
6976
7112
|
keyId: string;
|
|
6977
7113
|
requester: {
|
|
7114
|
+
/** User id. */
|
|
6978
7115
|
userId: string;
|
|
7116
|
+
/** Token id. */
|
|
6979
7117
|
tokenId?: string | undefined;
|
|
6980
7118
|
};
|
|
6981
7119
|
requestBody: {
|
|
@@ -7105,7 +7243,7 @@ export type ListApprovalsResponse = {
|
|
|
7105
7243
|
} | {
|
|
7106
7244
|
kind: "SignerPayload";
|
|
7107
7245
|
/** The unsigned Signer Payload formatted as JSON, or as a serialized hex-encoded buffer.
|
|
7108
|
-
|
|
7246
|
+
|
|
7109
7247
|
Please refer to the original Polkadot definition for more details: [SignerPayloadJson](https://github.com/polkadot-js/api/blob/v16.2.2/packages/types/src/types/extrinsic.ts#L32). Note that additional fields will be rejected.
|
|
7110
7248
|
|
|
7111
7249
|
| Field | Description | Type - Optional |
|
|
@@ -8392,6 +8530,22 @@ export type ListApprovalsResponse = {
|
|
|
8392
8530
|
skipChainalysisFailure: boolean;
|
|
8393
8531
|
};
|
|
8394
8532
|
};
|
|
8533
|
+
} | {
|
|
8534
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
8535
|
+
configuration: {
|
|
8536
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
8537
|
+
riskScoreThreshold: number;
|
|
8538
|
+
fallbackBehaviours: {
|
|
8539
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
8540
|
+
skipUnscreenableTransaction: boolean;
|
|
8541
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
8542
|
+
skipUnsupportedNetwork: boolean;
|
|
8543
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
8544
|
+
skipUnsupportedAsset: boolean;
|
|
8545
|
+
/** skips any errors from GlobalLedger API request */
|
|
8546
|
+
skipGlobalLedgerFailure: boolean;
|
|
8547
|
+
};
|
|
8548
|
+
};
|
|
8395
8549
|
} | {
|
|
8396
8550
|
kind: "TravelRuleTransactionPrescreening";
|
|
8397
8551
|
configuration: {
|
|
@@ -8587,6 +8741,7 @@ export type ListApprovalsResponse = {
|
|
|
8587
8741
|
policyId: string;
|
|
8588
8742
|
triggered: boolean;
|
|
8589
8743
|
reason: string;
|
|
8744
|
+
context?: any | undefined;
|
|
8590
8745
|
}[];
|
|
8591
8746
|
decisions: {
|
|
8592
8747
|
userId: string;
|
|
@@ -8835,6 +8990,22 @@ export type ListPoliciesResponse = {
|
|
|
8835
8990
|
skipChainalysisFailure: boolean;
|
|
8836
8991
|
};
|
|
8837
8992
|
};
|
|
8993
|
+
} | {
|
|
8994
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
8995
|
+
configuration: {
|
|
8996
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
8997
|
+
riskScoreThreshold: number;
|
|
8998
|
+
fallbackBehaviours: {
|
|
8999
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
9000
|
+
skipUnscreenableTransaction: boolean;
|
|
9001
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
9002
|
+
skipUnsupportedNetwork: boolean;
|
|
9003
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
9004
|
+
skipUnsupportedAsset: boolean;
|
|
9005
|
+
/** skips any errors from GlobalLedger API request */
|
|
9006
|
+
skipGlobalLedgerFailure: boolean;
|
|
9007
|
+
};
|
|
9008
|
+
};
|
|
8838
9009
|
} | {
|
|
8839
9010
|
kind: "TravelRuleTransactionPrescreening";
|
|
8840
9011
|
configuration: {
|
|
@@ -9159,6 +9330,22 @@ export type ListPoliciesResponse = {
|
|
|
9159
9330
|
skipChainalysisFailure: boolean;
|
|
9160
9331
|
};
|
|
9161
9332
|
};
|
|
9333
|
+
} | {
|
|
9334
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
9335
|
+
configuration: {
|
|
9336
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
9337
|
+
riskScoreThreshold: number;
|
|
9338
|
+
fallbackBehaviours: {
|
|
9339
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
9340
|
+
skipUnscreenableTransaction: boolean;
|
|
9341
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
9342
|
+
skipUnsupportedNetwork: boolean;
|
|
9343
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
9344
|
+
skipUnsupportedAsset: boolean;
|
|
9345
|
+
/** skips any errors from GlobalLedger API request */
|
|
9346
|
+
skipGlobalLedgerFailure: boolean;
|
|
9347
|
+
};
|
|
9348
|
+
};
|
|
9162
9349
|
} | {
|
|
9163
9350
|
kind: "TravelRuleTransactionPrescreening";
|
|
9164
9351
|
configuration: {
|
|
@@ -9452,6 +9639,22 @@ export type UpdatePolicyBody = {
|
|
|
9452
9639
|
skipChainalysisFailure: boolean;
|
|
9453
9640
|
};
|
|
9454
9641
|
};
|
|
9642
|
+
} | {
|
|
9643
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
9644
|
+
configuration: {
|
|
9645
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
9646
|
+
riskScoreThreshold: number;
|
|
9647
|
+
fallbackBehaviours: {
|
|
9648
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
9649
|
+
skipUnscreenableTransaction: boolean;
|
|
9650
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
9651
|
+
skipUnsupportedNetwork: boolean;
|
|
9652
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
9653
|
+
skipUnsupportedAsset: boolean;
|
|
9654
|
+
/** skips any errors from GlobalLedger API request */
|
|
9655
|
+
skipGlobalLedgerFailure: boolean;
|
|
9656
|
+
};
|
|
9657
|
+
};
|
|
9455
9658
|
} | {
|
|
9456
9659
|
kind: "TravelRuleTransactionPrescreening";
|
|
9457
9660
|
configuration: {
|
|
@@ -9761,6 +9964,22 @@ export type UpdatePolicyResponse = {
|
|
|
9761
9964
|
skipChainalysisFailure: boolean;
|
|
9762
9965
|
};
|
|
9763
9966
|
};
|
|
9967
|
+
} | {
|
|
9968
|
+
kind: "GlobalLedgerTransactionPrescreening";
|
|
9969
|
+
configuration: {
|
|
9970
|
+
/** Risk score threshold (0-100). Policy triggers if address/transaction risk score >= threshold */
|
|
9971
|
+
riskScoreThreshold: number;
|
|
9972
|
+
fallbackBehaviours: {
|
|
9973
|
+
/** skip all wallet requests that cannot be screened (eg. raw signatures) */
|
|
9974
|
+
skipUnscreenableTransaction: boolean;
|
|
9975
|
+
/** skip transfer requests to a network not supported yet in our GlobalLedger integration */
|
|
9976
|
+
skipUnsupportedNetwork: boolean;
|
|
9977
|
+
/** skip transfer requests of an asset not supported by our GlobalLedger integration */
|
|
9978
|
+
skipUnsupportedAsset: boolean;
|
|
9979
|
+
/** skips any errors from GlobalLedger API request */
|
|
9980
|
+
skipGlobalLedgerFailure: boolean;
|
|
9981
|
+
};
|
|
9982
|
+
};
|
|
9764
9983
|
} | {
|
|
9765
9984
|
kind: "TravelRuleTransactionPrescreening";
|
|
9766
9985
|
configuration: {
|