@dynamic-labs/sdk-api 0.26.0 → 0.28.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.
Files changed (133) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +3 -0
  3. package/src/apis/AdminActionsApi.js +3 -0
  4. package/src/apis/AllowlistsApi.cjs +3 -0
  5. package/src/apis/AllowlistsApi.js +3 -0
  6. package/src/apis/AnalyticsApi.cjs +3 -0
  7. package/src/apis/AnalyticsApi.js +3 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +3 -0
  9. package/src/apis/AuthorizedClientsApi.js +3 -0
  10. package/src/apis/BusinessAccountsApi.cjs +3 -0
  11. package/src/apis/BusinessAccountsApi.js +3 -0
  12. package/src/apis/CaptchaApi.cjs +3 -0
  13. package/src/apis/CaptchaApi.js +3 -0
  14. package/src/apis/ChainalysisApi.cjs +3 -0
  15. package/src/apis/ChainalysisApi.js +3 -0
  16. package/src/apis/ChainsApi.cjs +3 -0
  17. package/src/apis/ChainsApi.js +3 -0
  18. package/src/apis/CheckoutApi.cjs +3 -0
  19. package/src/apis/CheckoutApi.js +3 -0
  20. package/src/apis/ClientGrantApi.cjs +3 -0
  21. package/src/apis/ClientGrantApi.js +3 -0
  22. package/src/apis/CustomFieldsApi.cjs +3 -0
  23. package/src/apis/CustomFieldsApi.js +3 -0
  24. package/src/apis/CustomHostnamesApi.cjs +3 -0
  25. package/src/apis/CustomHostnamesApi.js +3 -0
  26. package/src/apis/CustomNetworksApi.cjs +3 -0
  27. package/src/apis/CustomNetworksApi.js +3 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +3 -0
  29. package/src/apis/DeeplinkUrlsApi.js +3 -0
  30. package/src/apis/EnvironmentsApi.cjs +3 -0
  31. package/src/apis/EnvironmentsApi.js +3 -0
  32. package/src/apis/EventsApi.cjs +3 -0
  33. package/src/apis/EventsApi.js +3 -0
  34. package/src/apis/ExchangesApi.cjs +3 -0
  35. package/src/apis/ExchangesApi.js +3 -0
  36. package/src/apis/ExportsApi.cjs +3 -0
  37. package/src/apis/ExportsApi.js +3 -0
  38. package/src/apis/ExternalJwtApi.cjs +3 -0
  39. package/src/apis/ExternalJwtApi.js +3 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +3 -0
  41. package/src/apis/FlowAnalyticsApi.js +3 -0
  42. package/src/apis/GaslessApi.cjs +3 -0
  43. package/src/apis/GaslessApi.js +3 -0
  44. package/src/apis/GatesApi.cjs +3 -0
  45. package/src/apis/GatesApi.js +3 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +3 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +3 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +3 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +3 -0
  50. package/src/apis/GlobalWalletsApi.cjs +3 -0
  51. package/src/apis/GlobalWalletsApi.js +3 -0
  52. package/src/apis/InvitesApi.cjs +3 -0
  53. package/src/apis/InvitesApi.js +3 -0
  54. package/src/apis/KybApi.cjs +70 -2
  55. package/src/apis/KybApi.d.ts +19 -3
  56. package/src/apis/KybApi.js +71 -3
  57. package/src/apis/MembersApi.cjs +3 -0
  58. package/src/apis/MembersApi.js +3 -0
  59. package/src/apis/MfaSettingsApi.cjs +3 -0
  60. package/src/apis/MfaSettingsApi.js +3 -0
  61. package/src/apis/NameServicesApi.cjs +3 -0
  62. package/src/apis/NameServicesApi.js +3 -0
  63. package/src/apis/OrganizationSettingsApi.cjs +3 -0
  64. package/src/apis/OrganizationSettingsApi.js +3 -0
  65. package/src/apis/OrganizationsApi.cjs +3 -0
  66. package/src/apis/OrganizationsApi.js +3 -0
  67. package/src/apis/OriginsApi.cjs +3 -0
  68. package/src/apis/OriginsApi.js +3 -0
  69. package/src/apis/ProjectsApi.cjs +3 -0
  70. package/src/apis/ProjectsApi.js +3 -0
  71. package/src/apis/ProvidersApi.cjs +3 -0
  72. package/src/apis/ProvidersApi.js +3 -0
  73. package/src/apis/SDKApi.cjs +3 -0
  74. package/src/apis/SDKApi.js +3 -0
  75. package/src/apis/SDKViewsApi.cjs +3 -0
  76. package/src/apis/SDKViewsApi.js +3 -0
  77. package/src/apis/ScreeningPoliciesApi.cjs +3 -0
  78. package/src/apis/ScreeningPoliciesApi.js +3 -0
  79. package/src/apis/ServerApi.cjs +3 -0
  80. package/src/apis/ServerApi.js +3 -0
  81. package/src/apis/SessionsApi.cjs +3 -0
  82. package/src/apis/SessionsApi.js +3 -0
  83. package/src/apis/TestAccountApi.cjs +3 -0
  84. package/src/apis/TestAccountApi.js +3 -0
  85. package/src/apis/TokensApi.cjs +3 -0
  86. package/src/apis/TokensApi.js +3 -0
  87. package/src/apis/UserApiTokensApi.cjs +3 -0
  88. package/src/apis/UserApiTokensApi.js +3 -0
  89. package/src/apis/UsersApi.cjs +3 -0
  90. package/src/apis/UsersApi.js +3 -0
  91. package/src/apis/VisitsApi.cjs +3 -0
  92. package/src/apis/VisitsApi.js +3 -0
  93. package/src/apis/WaasApi.cjs +3 -0
  94. package/src/apis/WaasApi.js +3 -0
  95. package/src/apis/WalletConnectApi.cjs +3 -0
  96. package/src/apis/WalletConnectApi.js +3 -0
  97. package/src/apis/WalletsApi.cjs +3 -0
  98. package/src/apis/WalletsApi.js +3 -0
  99. package/src/apis/WebhooksApi.cjs +3 -0
  100. package/src/apis/WebhooksApi.js +3 -0
  101. package/src/apis/YieldApi.cjs +3 -0
  102. package/src/apis/YieldApi.js +3 -0
  103. package/src/apis/ZendeskApi.cjs +3 -0
  104. package/src/apis/ZendeskApi.js +3 -0
  105. package/src/index.cjs +60 -8
  106. package/src/index.js +5 -2
  107. package/src/models/KybAdditionalInfoData.cjs +2 -3
  108. package/src/models/KybAdditionalInfoData.d.ts +3 -4
  109. package/src/models/KybAdditionalInfoData.js +2 -3
  110. package/src/models/{KybAdditionalInfoFileData.cjs → KybDocumentUploadResponse.cjs} +9 -11
  111. package/src/models/KybDocumentUploadResponse.d.ts +27 -0
  112. package/src/models/{KybAdditionalInfoFileData.js → KybDocumentUploadResponse.js} +7 -9
  113. package/src/models/KybVerifyRequest.cjs +2 -3
  114. package/src/models/KybVerifyRequest.d.ts +4 -5
  115. package/src/models/KybVerifyRequest.js +2 -3
  116. package/src/models/SanctionsWalletBlockedEventPayload.d.ts +9 -1
  117. package/src/models/ScreeningReason.cjs +69 -0
  118. package/src/models/ScreeningReason.d.ts +112 -0
  119. package/src/models/ScreeningReason.js +63 -0
  120. package/src/models/ScreeningTransactionContext.cjs +35 -0
  121. package/src/models/ScreeningTransactionContext.d.ts +37 -0
  122. package/src/models/ScreeningTransactionContext.js +29 -0
  123. package/src/models/WalletAddressScreeningAlertedEventPayload.cjs +96 -0
  124. package/src/models/WalletAddressScreeningAlertedEventPayload.d.ts +156 -0
  125. package/src/models/WalletAddressScreeningAlertedEventPayload.js +90 -0
  126. package/src/models/WalletAddressScreeningBlockedEventPayload.cjs +96 -0
  127. package/src/models/WalletAddressScreeningBlockedEventPayload.d.ts +156 -0
  128. package/src/models/WalletAddressScreeningBlockedEventPayload.js +90 -0
  129. package/src/models/index.d.ts +5 -2
  130. package/src/models/KybAdditionalInfoFileData.d.ts +0 -33
  131. package/src/models/KybVerifyRequestDocuments.cjs +0 -37
  132. package/src/models/KybVerifyRequestDocuments.d.ts +0 -39
  133. package/src/models/KybVerifyRequestDocuments.js +0 -31
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import { KybVerifyRequestAdditionalInfo } from './KybVerifyRequestAdditionalInfo';
13
13
  import { KybVerifyRequestBusinessData } from './KybVerifyRequestBusinessData';
14
- import { KybVerifyRequestDocuments } from './KybVerifyRequestDocuments';
15
14
  import { KybVerifyRequestOfficers } from './KybVerifyRequestOfficers';
16
15
  /**
17
16
  *
@@ -32,11 +31,11 @@ export interface KybVerifyRequest {
32
31
  */
33
32
  businessData?: KybVerifyRequestBusinessData;
34
33
  /**
35
- * Business documents as base64. Not stored by Redcoast — forwarded to AI Prise's add_business_document endpoint.
36
- * @type {Array<KybVerifyRequestDocuments>}
34
+ * AI Prise document ids returned by uploadKybDocument. Upload each document first, then reference its id here.
35
+ * @type {Array<string>}
37
36
  * @memberof KybVerifyRequest
38
37
  */
39
- documents?: Array<KybVerifyRequestDocuments>;
38
+ documentIds?: Array<string>;
40
39
  /**
41
40
  * Business officers/directors. Not stored by Redcoast — each entry registers a related person and starts their own KYC verification session.
42
41
  * @type {Array<KybVerifyRequestOfficers>}
@@ -44,7 +43,7 @@ export interface KybVerifyRequest {
44
43
  */
45
44
  officers?: Array<KybVerifyRequestOfficers>;
46
45
  /**
47
- * Officer PII and documents forwarded to AI Prise. Not stored by Redcoast.
46
+ * Officer PII and document references forwarded to AI Prise. Not stored by Redcoast.
48
47
  * @type {Array<KybVerifyRequestAdditionalInfo>}
49
48
  * @memberof KybVerifyRequest
50
49
  */
@@ -1,7 +1,6 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { KybVerifyRequestAdditionalInfoFromJSON, KybVerifyRequestAdditionalInfoToJSON } from './KybVerifyRequestAdditionalInfo.js';
3
3
  import { KybVerifyRequestBusinessDataFromJSON, KybVerifyRequestBusinessDataToJSON } from './KybVerifyRequestBusinessData.js';
4
- import { KybVerifyRequestDocumentsFromJSON, KybVerifyRequestDocumentsToJSON } from './KybVerifyRequestDocuments.js';
5
4
  import { KybVerifyRequestOfficersFromJSON, KybVerifyRequestOfficersToJSON } from './KybVerifyRequestOfficers.js';
6
5
 
7
6
  /* tslint:disable */
@@ -15,7 +14,7 @@ function KybVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
15
14
  return {
16
15
  'tier': json['tier'],
17
16
  'businessData': !exists(json, 'businessData') ? undefined : KybVerifyRequestBusinessDataFromJSON(json['businessData']),
18
- 'documents': !exists(json, 'documents') ? undefined : (json['documents'].map(KybVerifyRequestDocumentsFromJSON)),
17
+ 'documentIds': !exists(json, 'documentIds') ? undefined : json['documentIds'],
19
18
  'officers': !exists(json, 'officers') ? undefined : (json['officers'].map(KybVerifyRequestOfficersFromJSON)),
20
19
  'additionalInfo': !exists(json, 'additionalInfo') ? undefined : (json['additionalInfo'].map(KybVerifyRequestAdditionalInfoFromJSON)),
21
20
  };
@@ -30,7 +29,7 @@ function KybVerifyRequestToJSON(value) {
30
29
  return {
31
30
  'tier': value.tier,
32
31
  'businessData': KybVerifyRequestBusinessDataToJSON(value.businessData),
33
- 'documents': value.documents === undefined ? undefined : (value.documents.map(KybVerifyRequestDocumentsToJSON)),
32
+ 'documentIds': value.documentIds,
34
33
  'officers': value.officers === undefined ? undefined : (value.officers.map(KybVerifyRequestOfficersToJSON)),
35
34
  'additionalInfo': value.additionalInfo === undefined ? undefined : (value.additionalInfo.map(KybVerifyRequestAdditionalInfoToJSON)),
36
35
  };
@@ -10,7 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Payload of the `sanctions.wallet.blocked` webhook event.
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
@@ -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;