@dynamic-labs/sdk-api 0.27.0 → 0.29.0
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/AdminActionsApi.cjs +4 -0
- package/src/apis/AdminActionsApi.js +4 -0
- package/src/apis/AllowlistsApi.cjs +4 -0
- package/src/apis/AllowlistsApi.js +4 -0
- package/src/apis/AnalyticsApi.cjs +4 -0
- package/src/apis/AnalyticsApi.js +4 -0
- package/src/apis/AuthorizedClientsApi.cjs +4 -0
- package/src/apis/AuthorizedClientsApi.js +4 -0
- package/src/apis/BusinessAccountsApi.cjs +4 -0
- package/src/apis/BusinessAccountsApi.js +4 -0
- package/src/apis/CaptchaApi.cjs +4 -0
- package/src/apis/CaptchaApi.js +4 -0
- package/src/apis/ChainalysisApi.cjs +4 -0
- package/src/apis/ChainalysisApi.js +4 -0
- package/src/apis/ChainsApi.cjs +4 -0
- package/src/apis/ChainsApi.js +4 -0
- package/src/apis/CheckoutApi.cjs +4 -0
- package/src/apis/CheckoutApi.js +4 -0
- package/src/apis/ClientGrantApi.cjs +4 -0
- package/src/apis/ClientGrantApi.js +4 -0
- package/src/apis/CustomFieldsApi.cjs +4 -0
- package/src/apis/CustomFieldsApi.js +4 -0
- package/src/apis/CustomHostnamesApi.cjs +4 -0
- package/src/apis/CustomHostnamesApi.js +4 -0
- package/src/apis/CustomNetworksApi.cjs +4 -0
- package/src/apis/CustomNetworksApi.js +4 -0
- package/src/apis/DeeplinkUrlsApi.cjs +4 -0
- package/src/apis/DeeplinkUrlsApi.js +4 -0
- package/src/apis/EnvironmentsApi.cjs +4 -0
- package/src/apis/EnvironmentsApi.js +4 -0
- package/src/apis/EventsApi.cjs +4 -0
- package/src/apis/EventsApi.js +4 -0
- package/src/apis/ExchangesApi.cjs +4 -0
- package/src/apis/ExchangesApi.js +4 -0
- package/src/apis/ExportsApi.cjs +4 -0
- package/src/apis/ExportsApi.js +4 -0
- package/src/apis/ExternalJwtApi.cjs +4 -0
- package/src/apis/ExternalJwtApi.js +4 -0
- package/src/apis/FlowAnalyticsApi.cjs +4 -0
- package/src/apis/FlowAnalyticsApi.js +4 -0
- package/src/apis/GaslessApi.cjs +4 -0
- package/src/apis/GaslessApi.js +4 -0
- package/src/apis/GatesApi.cjs +4 -0
- package/src/apis/GatesApi.js +4 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +4 -0
- package/src/apis/GlobalWalletAccessControlApi.js +4 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +4 -0
- package/src/apis/GlobalWalletConnectionsApi.js +4 -0
- package/src/apis/GlobalWalletsApi.cjs +4 -0
- package/src/apis/GlobalWalletsApi.js +4 -0
- package/src/apis/InvitesApi.cjs +4 -0
- package/src/apis/InvitesApi.js +4 -0
- package/src/apis/KybApi.cjs +4 -0
- package/src/apis/KybApi.js +4 -0
- package/src/apis/MembersApi.cjs +4 -0
- package/src/apis/MembersApi.js +4 -0
- package/src/apis/MfaSettingsApi.cjs +4 -0
- package/src/apis/MfaSettingsApi.js +4 -0
- package/src/apis/NameServicesApi.cjs +4 -0
- package/src/apis/NameServicesApi.js +4 -0
- package/src/apis/OrganizationSettingsApi.cjs +4 -0
- package/src/apis/OrganizationSettingsApi.js +4 -0
- package/src/apis/OrganizationsApi.cjs +4 -0
- package/src/apis/OrganizationsApi.js +4 -0
- package/src/apis/OriginsApi.cjs +4 -0
- package/src/apis/OriginsApi.js +4 -0
- package/src/apis/ProjectsApi.cjs +4 -0
- package/src/apis/ProjectsApi.js +4 -0
- package/src/apis/ProvidersApi.cjs +4 -0
- package/src/apis/ProvidersApi.js +4 -0
- package/src/apis/SDKApi.cjs +4 -0
- package/src/apis/SDKApi.js +4 -0
- package/src/apis/SDKViewsApi.cjs +4 -0
- package/src/apis/SDKViewsApi.js +4 -0
- package/src/apis/ScreeningPoliciesApi.cjs +4 -0
- package/src/apis/ScreeningPoliciesApi.js +4 -0
- package/src/apis/ServerApi.cjs +4 -0
- package/src/apis/ServerApi.js +4 -0
- package/src/apis/SessionsApi.cjs +4 -0
- package/src/apis/SessionsApi.js +4 -0
- package/src/apis/TestAccountApi.cjs +4 -0
- package/src/apis/TestAccountApi.js +4 -0
- package/src/apis/TokensApi.cjs +4 -0
- package/src/apis/TokensApi.js +4 -0
- package/src/apis/UserApiTokensApi.cjs +4 -0
- package/src/apis/UserApiTokensApi.js +4 -0
- package/src/apis/UsersApi.cjs +4 -0
- package/src/apis/UsersApi.js +4 -0
- package/src/apis/VisitsApi.cjs +4 -0
- package/src/apis/VisitsApi.js +4 -0
- package/src/apis/WaasApi.cjs +4 -0
- package/src/apis/WaasApi.js +4 -0
- package/src/apis/WalletConnectApi.cjs +4 -0
- package/src/apis/WalletConnectApi.js +4 -0
- package/src/apis/WalletsApi.cjs +4 -0
- package/src/apis/WalletsApi.js +4 -0
- package/src/apis/WebhooksApi.cjs +4 -0
- package/src/apis/WebhooksApi.js +4 -0
- package/src/apis/YieldApi.cjs +4 -0
- package/src/apis/YieldApi.js +4 -0
- package/src/apis/ZendeskApi.cjs +4 -0
- package/src/apis/ZendeskApi.js +4 -0
- package/src/index.cjs +64 -0
- package/src/index.js +5 -0
- package/src/models/SanctionsWalletBlockedEventPayload.d.ts +9 -1
- package/src/models/ScreenTransactionResponse.cjs +3 -0
- package/src/models/ScreenTransactionResponse.d.ts +7 -0
- package/src/models/ScreenTransactionResponse.js +3 -0
- package/src/models/ScreeningActionEnum.cjs +41 -0
- package/src/models/ScreeningActionEnum.d.ts +24 -0
- package/src/models/ScreeningActionEnum.js +35 -0
- package/src/models/ScreeningReason.cjs +69 -0
- package/src/models/ScreeningReason.d.ts +112 -0
- package/src/models/ScreeningReason.js +63 -0
- package/src/models/ScreeningTransactionContext.cjs +35 -0
- package/src/models/ScreeningTransactionContext.d.ts +37 -0
- package/src/models/ScreeningTransactionContext.js +29 -0
- package/src/models/WalletAddressScreeningAlertedEventPayload.cjs +96 -0
- package/src/models/WalletAddressScreeningAlertedEventPayload.d.ts +156 -0
- package/src/models/WalletAddressScreeningAlertedEventPayload.js +90 -0
- package/src/models/WalletAddressScreeningBlockedEventPayload.cjs +96 -0
- package/src/models/WalletAddressScreeningBlockedEventPayload.d.ts +156 -0
- package/src/models/WalletAddressScreeningBlockedEventPayload.js +90 -0
- package/src/models/index.d.ts +5 -0
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Payload of the `sanctions.
|
|
13
|
+
* Payload of the `wallet.sanctions.blocked` webhook event, and of its
|
|
14
|
+
* deprecated `sanctions.wallet.blocked` alias.
|
|
15
|
+
*
|
|
16
|
+
* Scope: the sanctions floor only. A block produced by a customer's own
|
|
17
|
+
* screening policy emits `wallet.addressScreening.blocked` instead, which
|
|
18
|
+
* carries a `reason` explaining which rule matched. A block with no policy
|
|
19
|
+
* engine in play — the flag off, or a provider the engine does not
|
|
20
|
+
* evaluate — emits this event, so an environment that has authored nothing
|
|
21
|
+
* sees exactly what it saw before.
|
|
14
22
|
*
|
|
15
23
|
* Trigger semantics:
|
|
16
24
|
* - Fires once per user-facing BLOCKED boundary decision (the
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ScreeningActionEnum = require('./ScreeningActionEnum.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
/**
|
|
@@ -23,6 +24,7 @@ function ScreenTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
24
|
}
|
|
24
25
|
return {
|
|
25
26
|
'decision': json['decision'],
|
|
27
|
+
'action': ScreeningActionEnum.ScreeningActionEnumFromJSON(json['action']),
|
|
26
28
|
'blockedAddresses': !runtime.exists(json, 'blockedAddresses') ? undefined : json['blockedAddresses'],
|
|
27
29
|
'sanctionCheckId': !runtime.exists(json, 'sanctionCheckId') ? undefined : json['sanctionCheckId'],
|
|
28
30
|
};
|
|
@@ -36,6 +38,7 @@ function ScreenTransactionResponseToJSON(value) {
|
|
|
36
38
|
}
|
|
37
39
|
return {
|
|
38
40
|
'decision': value.decision,
|
|
41
|
+
'action': ScreeningActionEnum.ScreeningActionEnumToJSON(value.action),
|
|
39
42
|
'blockedAddresses': value.blockedAddresses,
|
|
40
43
|
'sanctionCheckId': value.sanctionCheckId,
|
|
41
44
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ScreeningActionEnum } from './ScreeningActionEnum';
|
|
12
13
|
/**
|
|
13
14
|
* Allow/block screening verdict; undecodable payloads and provider errors fail open to allow.
|
|
14
15
|
* @export
|
|
@@ -21,6 +22,12 @@ export interface ScreenTransactionResponse {
|
|
|
21
22
|
* @memberof ScreenTransactionResponse
|
|
22
23
|
*/
|
|
23
24
|
decision: ScreenTransactionResponseDecisionEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ScreeningActionEnum}
|
|
28
|
+
* @memberof ScreenTransactionResponse
|
|
29
|
+
*/
|
|
30
|
+
action: ScreeningActionEnum;
|
|
24
31
|
/**
|
|
25
32
|
* The sanctioned addresses that caused a block verdict.
|
|
26
33
|
* @type {Array<string>}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { ScreeningActionEnumFromJSON, ScreeningActionEnumToJSON } from './ScreeningActionEnum.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
/**
|
|
@@ -19,6 +20,7 @@ function ScreenTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
20
|
}
|
|
20
21
|
return {
|
|
21
22
|
'decision': json['decision'],
|
|
23
|
+
'action': ScreeningActionEnumFromJSON(json['action']),
|
|
22
24
|
'blockedAddresses': !exists(json, 'blockedAddresses') ? undefined : json['blockedAddresses'],
|
|
23
25
|
'sanctionCheckId': !exists(json, 'sanctionCheckId') ? undefined : json['sanctionCheckId'],
|
|
24
26
|
};
|
|
@@ -32,6 +34,7 @@ function ScreenTransactionResponseToJSON(value) {
|
|
|
32
34
|
}
|
|
33
35
|
return {
|
|
34
36
|
'decision': value.decision,
|
|
37
|
+
'action': ScreeningActionEnumToJSON(value.action),
|
|
35
38
|
'blockedAddresses': value.blockedAddresses,
|
|
36
39
|
'sanctionCheckId': value.sanctionCheckId,
|
|
37
40
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
/**
|
|
19
|
+
* What the environment's screening policy decided; `alert` never blocks.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.ScreeningActionEnum = void 0;
|
|
24
|
+
(function (ScreeningActionEnum) {
|
|
25
|
+
ScreeningActionEnum["Allow"] = "allow";
|
|
26
|
+
ScreeningActionEnum["Alert"] = "alert";
|
|
27
|
+
ScreeningActionEnum["Block"] = "block";
|
|
28
|
+
})(exports.ScreeningActionEnum || (exports.ScreeningActionEnum = {}));
|
|
29
|
+
function ScreeningActionEnumFromJSON(json) {
|
|
30
|
+
return ScreeningActionEnumFromJSONTyped(json);
|
|
31
|
+
}
|
|
32
|
+
function ScreeningActionEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
function ScreeningActionEnumToJSON(value) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.ScreeningActionEnumFromJSON = ScreeningActionEnumFromJSON;
|
|
40
|
+
exports.ScreeningActionEnumFromJSONTyped = ScreeningActionEnumFromJSONTyped;
|
|
41
|
+
exports.ScreeningActionEnumToJSON = ScreeningActionEnumToJSON;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* What the environment's screening policy decided; `alert` never blocks.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ScreeningActionEnum {
|
|
18
|
+
Allow = "allow",
|
|
19
|
+
Alert = "alert",
|
|
20
|
+
Block = "block"
|
|
21
|
+
}
|
|
22
|
+
export declare function ScreeningActionEnumFromJSON(json: any): ScreeningActionEnum;
|
|
23
|
+
export declare function ScreeningActionEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreeningActionEnum;
|
|
24
|
+
export declare function ScreeningActionEnumToJSON(value?: ScreeningActionEnum | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* What the environment's screening policy decided; `alert` never blocks.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var ScreeningActionEnum;
|
|
20
|
+
(function (ScreeningActionEnum) {
|
|
21
|
+
ScreeningActionEnum["Allow"] = "allow";
|
|
22
|
+
ScreeningActionEnum["Alert"] = "alert";
|
|
23
|
+
ScreeningActionEnum["Block"] = "block";
|
|
24
|
+
})(ScreeningActionEnum || (ScreeningActionEnum = {}));
|
|
25
|
+
function ScreeningActionEnumFromJSON(json) {
|
|
26
|
+
return ScreeningActionEnumFromJSONTyped(json);
|
|
27
|
+
}
|
|
28
|
+
function ScreeningActionEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
function ScreeningActionEnumToJSON(value) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { ScreeningActionEnum, ScreeningActionEnumFromJSON, ScreeningActionEnumFromJSONTyped, ScreeningActionEnumToJSON };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
/**
|
|
9
|
+
* @export
|
|
10
|
+
* @enum {string}
|
|
11
|
+
*/
|
|
12
|
+
exports.ScreeningReasonProviderEnum = void 0;
|
|
13
|
+
(function (ScreeningReasonProviderEnum) {
|
|
14
|
+
ScreeningReasonProviderEnum["TrmWalletScreening"] = "trm-wallet-screening";
|
|
15
|
+
ScreeningReasonProviderEnum["ChainalysisAddressScreening"] = "chainalysis-address-screening";
|
|
16
|
+
ScreeningReasonProviderEnum["DynamicSanctionsScreening"] = "dynamic-sanctions-screening";
|
|
17
|
+
})(exports.ScreeningReasonProviderEnum || (exports.ScreeningReasonProviderEnum = {})); /**
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
exports.ScreeningReasonMatchedEnum = void 0;
|
|
22
|
+
(function (ScreeningReasonMatchedEnum) {
|
|
23
|
+
ScreeningReasonMatchedEnum["Floor"] = "floor";
|
|
24
|
+
ScreeningReasonMatchedEnum["Address"] = "address";
|
|
25
|
+
ScreeningReasonMatchedEnum["Customer"] = "customer";
|
|
26
|
+
ScreeningReasonMatchedEnum["Default"] = "default";
|
|
27
|
+
})(exports.ScreeningReasonMatchedEnum || (exports.ScreeningReasonMatchedEnum = {}));
|
|
28
|
+
function ScreeningReasonFromJSON(json) {
|
|
29
|
+
return ScreeningReasonFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function ScreeningReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'provider': json['provider'],
|
|
37
|
+
'matched': json['matched'],
|
|
38
|
+
'revision': !runtime.exists(json, 'revision') ? undefined : json['revision'],
|
|
39
|
+
'rule': !runtime.exists(json, 'rule') ? undefined : json['rule'],
|
|
40
|
+
'category': !runtime.exists(json, 'category') ? undefined : json['category'],
|
|
41
|
+
'riskType': !runtime.exists(json, 'riskType') ? undefined : json['riskType'],
|
|
42
|
+
'score': !runtime.exists(json, 'score') ? undefined : json['score'],
|
|
43
|
+
'risk': !runtime.exists(json, 'risk') ? undefined : json['risk'],
|
|
44
|
+
'summary': !runtime.exists(json, 'summary') ? undefined : json['summary'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function ScreeningReasonToJSON(value) {
|
|
48
|
+
if (value === undefined) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (value === null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'provider': value.provider,
|
|
56
|
+
'matched': value.matched,
|
|
57
|
+
'revision': value.revision,
|
|
58
|
+
'rule': value.rule,
|
|
59
|
+
'category': value.category,
|
|
60
|
+
'riskType': value.riskType,
|
|
61
|
+
'score': value.score,
|
|
62
|
+
'risk': value.risk,
|
|
63
|
+
'summary': value.summary,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
exports.ScreeningReasonFromJSON = ScreeningReasonFromJSON;
|
|
68
|
+
exports.ScreeningReasonFromJSONTyped = ScreeningReasonFromJSONTyped;
|
|
69
|
+
exports.ScreeningReasonToJSON = ScreeningReasonToJSON;
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
* Why a screening policy reached its verdict: which layer matched, and what
|
|
14
|
+
* it matched on in the vendor's own vocabulary.
|
|
15
|
+
*
|
|
16
|
+
* Only `provider` and `matched` are always present. The rest depend on the
|
|
17
|
+
* vendor and on which leaf actually fired — a floor match on a Chainalysis
|
|
18
|
+
* cluster carries a `category` and no `riskType`.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ScreeningReason
|
|
21
|
+
*/
|
|
22
|
+
export interface ScreeningReason {
|
|
23
|
+
/**
|
|
24
|
+
* The vendor whose response produced this verdict.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ScreeningReason
|
|
27
|
+
*/
|
|
28
|
+
provider: ScreeningReasonProviderEnum;
|
|
29
|
+
/**
|
|
30
|
+
* Which layer decided. `floor` is the non-configurable sanctions
|
|
31
|
+
* baseline, `address` an allow/deny list entry, `customer` one of the
|
|
32
|
+
* environment's own rules, `default` the terminal allow. On this event
|
|
33
|
+
* it is always `customer` or `address`; a floor block emits
|
|
34
|
+
* `wallet.sanctions.blocked` instead.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ScreeningReason
|
|
37
|
+
*/
|
|
38
|
+
matched: ScreeningReasonMatchedEnum;
|
|
39
|
+
/**
|
|
40
|
+
* The policy generation that produced this verdict. Scoped to one
|
|
41
|
+
* screening moment, so two verdicts in the same environment can
|
|
42
|
+
* legitimately carry different revisions.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof ScreeningReason
|
|
45
|
+
*/
|
|
46
|
+
revision?: number;
|
|
47
|
+
/**
|
|
48
|
+
* The matched rule, verbatim as evaluated. Present only when `matched`
|
|
49
|
+
* is `customer`: the floor and the terminal allow are generated from
|
|
50
|
+
* code, so there is nothing stable to point at. Deliberately untyped —
|
|
51
|
+
* nothing routes on its internal shape, and it is carried for the audit
|
|
52
|
+
* record.
|
|
53
|
+
* @type {object}
|
|
54
|
+
* @memberof ScreeningReason
|
|
55
|
+
*/
|
|
56
|
+
rule?: object;
|
|
57
|
+
/**
|
|
58
|
+
* The vendor's category string, verbatim, in the vendor's own casing.
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof ScreeningReason
|
|
61
|
+
*/
|
|
62
|
+
category?: string;
|
|
63
|
+
/**
|
|
64
|
+
* TRM only. `OWNERSHIP`, `COUNTERPARTY` or `INDIRECT`.
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ScreeningReason
|
|
67
|
+
*/
|
|
68
|
+
riskType?: string;
|
|
69
|
+
/**
|
|
70
|
+
* TRM only. The numeric risk score the matched signal carried.
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof ScreeningReason
|
|
73
|
+
*/
|
|
74
|
+
score?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Chainalysis only. The risk level the matched signal carried.
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof ScreeningReason
|
|
79
|
+
*/
|
|
80
|
+
risk?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Human-readable rendering of what matched, for display and logs.
|
|
83
|
+
*
|
|
84
|
+
* DISPLAY ONLY AND NON-CONTRACTUAL: the wording may change in any
|
|
85
|
+
* release. Do not parse it — route on `category`, `provider` and
|
|
86
|
+
* `matched` instead.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ScreeningReason
|
|
89
|
+
*/
|
|
90
|
+
summary?: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
* @enum {string}
|
|
95
|
+
*/
|
|
96
|
+
export declare enum ScreeningReasonProviderEnum {
|
|
97
|
+
TrmWalletScreening = "trm-wallet-screening",
|
|
98
|
+
ChainalysisAddressScreening = "chainalysis-address-screening",
|
|
99
|
+
DynamicSanctionsScreening = "dynamic-sanctions-screening"
|
|
100
|
+
} /**
|
|
101
|
+
* @export
|
|
102
|
+
* @enum {string}
|
|
103
|
+
*/
|
|
104
|
+
export declare enum ScreeningReasonMatchedEnum {
|
|
105
|
+
Floor = "floor",
|
|
106
|
+
Address = "address",
|
|
107
|
+
Customer = "customer",
|
|
108
|
+
Default = "default"
|
|
109
|
+
}
|
|
110
|
+
export declare function ScreeningReasonFromJSON(json: any): ScreeningReason;
|
|
111
|
+
export declare function ScreeningReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreeningReason;
|
|
112
|
+
export declare function ScreeningReasonToJSON(value?: ScreeningReason | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var ScreeningReasonProviderEnum;
|
|
9
|
+
(function (ScreeningReasonProviderEnum) {
|
|
10
|
+
ScreeningReasonProviderEnum["TrmWalletScreening"] = "trm-wallet-screening";
|
|
11
|
+
ScreeningReasonProviderEnum["ChainalysisAddressScreening"] = "chainalysis-address-screening";
|
|
12
|
+
ScreeningReasonProviderEnum["DynamicSanctionsScreening"] = "dynamic-sanctions-screening";
|
|
13
|
+
})(ScreeningReasonProviderEnum || (ScreeningReasonProviderEnum = {})); /**
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
var ScreeningReasonMatchedEnum;
|
|
18
|
+
(function (ScreeningReasonMatchedEnum) {
|
|
19
|
+
ScreeningReasonMatchedEnum["Floor"] = "floor";
|
|
20
|
+
ScreeningReasonMatchedEnum["Address"] = "address";
|
|
21
|
+
ScreeningReasonMatchedEnum["Customer"] = "customer";
|
|
22
|
+
ScreeningReasonMatchedEnum["Default"] = "default";
|
|
23
|
+
})(ScreeningReasonMatchedEnum || (ScreeningReasonMatchedEnum = {}));
|
|
24
|
+
function ScreeningReasonFromJSON(json) {
|
|
25
|
+
return ScreeningReasonFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function ScreeningReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'provider': json['provider'],
|
|
33
|
+
'matched': json['matched'],
|
|
34
|
+
'revision': !exists(json, 'revision') ? undefined : json['revision'],
|
|
35
|
+
'rule': !exists(json, 'rule') ? undefined : json['rule'],
|
|
36
|
+
'category': !exists(json, 'category') ? undefined : json['category'],
|
|
37
|
+
'riskType': !exists(json, 'riskType') ? undefined : json['riskType'],
|
|
38
|
+
'score': !exists(json, 'score') ? undefined : json['score'],
|
|
39
|
+
'risk': !exists(json, 'risk') ? undefined : json['risk'],
|
|
40
|
+
'summary': !exists(json, 'summary') ? undefined : json['summary'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ScreeningReasonToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'provider': value.provider,
|
|
52
|
+
'matched': value.matched,
|
|
53
|
+
'revision': value.revision,
|
|
54
|
+
'rule': value.rule,
|
|
55
|
+
'category': value.category,
|
|
56
|
+
'riskType': value.riskType,
|
|
57
|
+
'score': value.score,
|
|
58
|
+
'risk': value.risk,
|
|
59
|
+
'summary': value.summary,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { ScreeningReasonFromJSON, ScreeningReasonFromJSONTyped, ScreeningReasonMatchedEnum, ScreeningReasonProviderEnum, ScreeningReasonToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function ScreeningTransactionContextFromJSON(json) {
|
|
9
|
+
return ScreeningTransactionContextFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function ScreeningTransactionContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'amountUsd': !runtime.exists(json, 'amountUsd') ? undefined : json['amountUsd'],
|
|
17
|
+
'asset': !runtime.exists(json, 'asset') ? undefined : json['asset'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function ScreeningTransactionContextToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'amountUsd': value.amountUsd,
|
|
29
|
+
'asset': value.asset,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.ScreeningTransactionContextFromJSON = ScreeningTransactionContextFromJSON;
|
|
34
|
+
exports.ScreeningTransactionContextFromJSONTyped = ScreeningTransactionContextFromJSONTyped;
|
|
35
|
+
exports.ScreeningTransactionContextToJSON = ScreeningTransactionContextToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* The transaction the screen was performed for. Every property is optional
|
|
14
|
+
* and the whole object is omitted when nothing is known, which is the case
|
|
15
|
+
* on sign-in, connect, prefetch and the signing path.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ScreeningTransactionContext
|
|
18
|
+
*/
|
|
19
|
+
export interface ScreeningTransactionContext {
|
|
20
|
+
/**
|
|
21
|
+
* Present only where the value is genuinely established as USD. Omitted
|
|
22
|
+
* otherwise rather than converted, so an amount condition sits out
|
|
23
|
+
* instead of firing against the wrong currency.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ScreeningTransactionContext
|
|
26
|
+
*/
|
|
27
|
+
amountUsd?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ScreeningTransactionContext
|
|
32
|
+
*/
|
|
33
|
+
asset?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function ScreeningTransactionContextFromJSON(json: any): ScreeningTransactionContext;
|
|
36
|
+
export declare function ScreeningTransactionContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreeningTransactionContext;
|
|
37
|
+
export declare function ScreeningTransactionContextToJSON(value?: ScreeningTransactionContext | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function ScreeningTransactionContextFromJSON(json) {
|
|
5
|
+
return ScreeningTransactionContextFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function ScreeningTransactionContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'amountUsd': !exists(json, 'amountUsd') ? undefined : json['amountUsd'],
|
|
13
|
+
'asset': !exists(json, 'asset') ? undefined : json['asset'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function ScreeningTransactionContextToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'amountUsd': value.amountUsd,
|
|
25
|
+
'asset': value.asset,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { ScreeningTransactionContextFromJSON, ScreeningTransactionContextFromJSONTyped, ScreeningTransactionContextToJSON };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ScreeningReason = require('./ScreeningReason.cjs');
|
|
7
|
+
var ScreeningTransactionContext = require('./ScreeningTransactionContext.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
* @enum {string}
|
|
13
|
+
*/
|
|
14
|
+
exports.WalletAddressScreeningAlertedEventPayloadSanctionsProviderEnum = void 0;
|
|
15
|
+
(function (WalletAddressScreeningAlertedEventPayloadSanctionsProviderEnum) {
|
|
16
|
+
WalletAddressScreeningAlertedEventPayloadSanctionsProviderEnum["TrmWalletScreening"] = "trm-wallet-screening";
|
|
17
|
+
WalletAddressScreeningAlertedEventPayloadSanctionsProviderEnum["ChainalysisAddressScreening"] = "chainalysis-address-screening";
|
|
18
|
+
WalletAddressScreeningAlertedEventPayloadSanctionsProviderEnum["DynamicSanctionsScreening"] = "dynamic-sanctions-screening";
|
|
19
|
+
})(exports.WalletAddressScreeningAlertedEventPayloadSanctionsProviderEnum || (exports.WalletAddressScreeningAlertedEventPayloadSanctionsProviderEnum = {})); /**
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.WalletAddressScreeningAlertedEventPayloadOriginEnum = void 0;
|
|
24
|
+
(function (WalletAddressScreeningAlertedEventPayloadOriginEnum) {
|
|
25
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["SignIn"] = "signIn";
|
|
26
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["WalletConnect"] = "walletConnect";
|
|
27
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["CheckoutDestination"] = "checkoutDestination";
|
|
28
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["CheckoutSource"] = "checkoutSource";
|
|
29
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["FlowDestination"] = "flowDestination";
|
|
30
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["FlowSource"] = "flowSource";
|
|
31
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["Api"] = "api";
|
|
32
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["BackgroundPrefetch"] = "backgroundPrefetch";
|
|
33
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["TransactionSigning"] = "transactionSigning";
|
|
34
|
+
WalletAddressScreeningAlertedEventPayloadOriginEnum["TransactionScreenApi"] = "transactionScreenApi";
|
|
35
|
+
})(exports.WalletAddressScreeningAlertedEventPayloadOriginEnum || (exports.WalletAddressScreeningAlertedEventPayloadOriginEnum = {})); /**
|
|
36
|
+
* @export
|
|
37
|
+
* @enum {string}
|
|
38
|
+
*/
|
|
39
|
+
exports.WalletAddressScreeningAlertedEventPayloadKeyOwnerEnum = void 0;
|
|
40
|
+
(function (WalletAddressScreeningAlertedEventPayloadKeyOwnerEnum) {
|
|
41
|
+
WalletAddressScreeningAlertedEventPayloadKeyOwnerEnum["Dynamic"] = "dynamic";
|
|
42
|
+
WalletAddressScreeningAlertedEventPayloadKeyOwnerEnum["CustomerProvided"] = "customerProvided";
|
|
43
|
+
})(exports.WalletAddressScreeningAlertedEventPayloadKeyOwnerEnum || (exports.WalletAddressScreeningAlertedEventPayloadKeyOwnerEnum = {})); /**
|
|
44
|
+
* @export
|
|
45
|
+
* @enum {string}
|
|
46
|
+
*/
|
|
47
|
+
exports.WalletAddressScreeningAlertedEventPayloadActionEnum = void 0;
|
|
48
|
+
(function (WalletAddressScreeningAlertedEventPayloadActionEnum) {
|
|
49
|
+
WalletAddressScreeningAlertedEventPayloadActionEnum["Alerted"] = "alerted";
|
|
50
|
+
})(exports.WalletAddressScreeningAlertedEventPayloadActionEnum || (exports.WalletAddressScreeningAlertedEventPayloadActionEnum = {}));
|
|
51
|
+
function WalletAddressScreeningAlertedEventPayloadFromJSON(json) {
|
|
52
|
+
return WalletAddressScreeningAlertedEventPayloadFromJSONTyped(json);
|
|
53
|
+
}
|
|
54
|
+
function WalletAddressScreeningAlertedEventPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if ((json === undefined) || (json === null)) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'walletAddress': json['walletAddress'],
|
|
60
|
+
'chain': !runtime.exists(json, 'chain') ? undefined : json['chain'],
|
|
61
|
+
'sanctionsProvider': json['sanctionsProvider'],
|
|
62
|
+
'sanctionCheckRequestId': json['sanctionCheckRequestId'],
|
|
63
|
+
'categories': json['categories'],
|
|
64
|
+
'origin': json['origin'],
|
|
65
|
+
'keyOwner': json['keyOwner'],
|
|
66
|
+
'screenedAt': (new Date(json['screenedAt'])),
|
|
67
|
+
'action': json['action'],
|
|
68
|
+
'reason': ScreeningReason.ScreeningReasonFromJSON(json['reason']),
|
|
69
|
+
'txContext': !runtime.exists(json, 'txContext') ? undefined : ScreeningTransactionContext.ScreeningTransactionContextFromJSON(json['txContext']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function WalletAddressScreeningAlertedEventPayloadToJSON(value) {
|
|
73
|
+
if (value === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (value === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'walletAddress': value.walletAddress,
|
|
81
|
+
'chain': value.chain,
|
|
82
|
+
'sanctionsProvider': value.sanctionsProvider,
|
|
83
|
+
'sanctionCheckRequestId': value.sanctionCheckRequestId,
|
|
84
|
+
'categories': value.categories,
|
|
85
|
+
'origin': value.origin,
|
|
86
|
+
'keyOwner': value.keyOwner,
|
|
87
|
+
'screenedAt': (value.screenedAt.toISOString()),
|
|
88
|
+
'action': value.action,
|
|
89
|
+
'reason': ScreeningReason.ScreeningReasonToJSON(value.reason),
|
|
90
|
+
'txContext': ScreeningTransactionContext.ScreeningTransactionContextToJSON(value.txContext),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
exports.WalletAddressScreeningAlertedEventPayloadFromJSON = WalletAddressScreeningAlertedEventPayloadFromJSON;
|
|
95
|
+
exports.WalletAddressScreeningAlertedEventPayloadFromJSONTyped = WalletAddressScreeningAlertedEventPayloadFromJSONTyped;
|
|
96
|
+
exports.WalletAddressScreeningAlertedEventPayloadToJSON = WalletAddressScreeningAlertedEventPayloadToJSON;
|