@dynamic-labs/sdk-api 0.24.0 → 0.26.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 (150) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +4 -0
  3. package/src/apis/AdminActionsApi.js +4 -0
  4. package/src/apis/AllowlistsApi.cjs +4 -0
  5. package/src/apis/AllowlistsApi.js +4 -0
  6. package/src/apis/AnalyticsApi.cjs +4 -0
  7. package/src/apis/AnalyticsApi.js +4 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +4 -0
  9. package/src/apis/AuthorizedClientsApi.js +4 -0
  10. package/src/apis/BusinessAccountsApi.cjs +4 -0
  11. package/src/apis/BusinessAccountsApi.js +4 -0
  12. package/src/apis/CaptchaApi.cjs +4 -0
  13. package/src/apis/CaptchaApi.js +4 -0
  14. package/src/apis/ChainalysisApi.cjs +4 -0
  15. package/src/apis/ChainalysisApi.js +4 -0
  16. package/src/apis/ChainsApi.cjs +4 -0
  17. package/src/apis/ChainsApi.js +4 -0
  18. package/src/apis/CheckoutApi.cjs +4 -0
  19. package/src/apis/CheckoutApi.js +4 -0
  20. package/src/apis/ClientGrantApi.cjs +4 -0
  21. package/src/apis/ClientGrantApi.js +4 -0
  22. package/src/apis/CustomFieldsApi.cjs +4 -0
  23. package/src/apis/CustomFieldsApi.js +4 -0
  24. package/src/apis/CustomHostnamesApi.cjs +4 -0
  25. package/src/apis/CustomHostnamesApi.js +4 -0
  26. package/src/apis/CustomNetworksApi.cjs +4 -0
  27. package/src/apis/CustomNetworksApi.js +4 -0
  28. package/src/apis/DeeplinkUrlsApi.cjs +4 -0
  29. package/src/apis/DeeplinkUrlsApi.js +4 -0
  30. package/src/apis/EnvironmentsApi.cjs +4 -0
  31. package/src/apis/EnvironmentsApi.js +4 -0
  32. package/src/apis/EventsApi.cjs +4 -0
  33. package/src/apis/EventsApi.js +4 -0
  34. package/src/apis/ExchangesApi.cjs +4 -0
  35. package/src/apis/ExchangesApi.js +4 -0
  36. package/src/apis/ExportsApi.cjs +4 -0
  37. package/src/apis/ExportsApi.js +4 -0
  38. package/src/apis/ExternalJwtApi.cjs +4 -0
  39. package/src/apis/ExternalJwtApi.js +4 -0
  40. package/src/apis/FlowAnalyticsApi.cjs +4 -0
  41. package/src/apis/FlowAnalyticsApi.js +4 -0
  42. package/src/apis/GaslessApi.cjs +4 -0
  43. package/src/apis/GaslessApi.js +4 -0
  44. package/src/apis/GatesApi.cjs +4 -0
  45. package/src/apis/GatesApi.js +4 -0
  46. package/src/apis/GlobalWalletAccessControlApi.cjs +4 -0
  47. package/src/apis/GlobalWalletAccessControlApi.js +4 -0
  48. package/src/apis/GlobalWalletConnectionsApi.cjs +4 -0
  49. package/src/apis/GlobalWalletConnectionsApi.js +4 -0
  50. package/src/apis/GlobalWalletsApi.cjs +4 -0
  51. package/src/apis/GlobalWalletsApi.js +4 -0
  52. package/src/apis/InvitesApi.cjs +4 -0
  53. package/src/apis/InvitesApi.js +4 -0
  54. package/src/apis/KybApi.cjs +4 -0
  55. package/src/apis/KybApi.js +4 -0
  56. package/src/apis/MembersApi.cjs +4 -0
  57. package/src/apis/MembersApi.js +4 -0
  58. package/src/apis/MfaSettingsApi.cjs +4 -0
  59. package/src/apis/MfaSettingsApi.js +4 -0
  60. package/src/apis/NameServicesApi.cjs +4 -0
  61. package/src/apis/NameServicesApi.js +4 -0
  62. package/src/apis/OrganizationSettingsApi.cjs +4 -0
  63. package/src/apis/OrganizationSettingsApi.js +4 -0
  64. package/src/apis/OrganizationsApi.cjs +4 -0
  65. package/src/apis/OrganizationsApi.js +4 -0
  66. package/src/apis/OriginsApi.cjs +4 -0
  67. package/src/apis/OriginsApi.js +4 -0
  68. package/src/apis/ProjectsApi.cjs +4 -0
  69. package/src/apis/ProjectsApi.js +4 -0
  70. package/src/apis/ProvidersApi.cjs +4 -0
  71. package/src/apis/ProvidersApi.js +4 -0
  72. package/src/apis/SDKApi.cjs +4 -0
  73. package/src/apis/SDKApi.js +4 -0
  74. package/src/apis/SDKViewsApi.cjs +4 -0
  75. package/src/apis/SDKViewsApi.js +4 -0
  76. package/src/apis/ScreeningPoliciesApi.cjs +428 -0
  77. package/src/apis/ScreeningPoliciesApi.d.ts +110 -0
  78. package/src/apis/ScreeningPoliciesApi.js +424 -0
  79. package/src/apis/ServerApi.cjs +4 -0
  80. package/src/apis/ServerApi.js +4 -0
  81. package/src/apis/SessionsApi.cjs +4 -0
  82. package/src/apis/SessionsApi.js +4 -0
  83. package/src/apis/TestAccountApi.cjs +4 -0
  84. package/src/apis/TestAccountApi.js +4 -0
  85. package/src/apis/TokensApi.cjs +4 -0
  86. package/src/apis/TokensApi.js +4 -0
  87. package/src/apis/UserApiTokensApi.cjs +4 -0
  88. package/src/apis/UserApiTokensApi.js +4 -0
  89. package/src/apis/UsersApi.cjs +4 -0
  90. package/src/apis/UsersApi.js +4 -0
  91. package/src/apis/VisitsApi.cjs +4 -0
  92. package/src/apis/VisitsApi.js +4 -0
  93. package/src/apis/WaasApi.cjs +4 -0
  94. package/src/apis/WaasApi.js +4 -0
  95. package/src/apis/WalletConnectApi.cjs +4 -0
  96. package/src/apis/WalletConnectApi.js +4 -0
  97. package/src/apis/WalletsApi.cjs +4 -0
  98. package/src/apis/WalletsApi.js +4 -0
  99. package/src/apis/WebhooksApi.cjs +4 -0
  100. package/src/apis/WebhooksApi.js +4 -0
  101. package/src/apis/YieldApi.cjs +4 -0
  102. package/src/apis/YieldApi.js +4 -0
  103. package/src/apis/ZendeskApi.cjs +4 -0
  104. package/src/apis/ZendeskApi.js +4 -0
  105. package/src/apis/index.d.ts +1 -0
  106. package/src/index.cjs +58 -0
  107. package/src/index.js +11 -0
  108. package/src/models/Flow.cjs +3 -2
  109. package/src/models/Flow.d.ts +4 -3
  110. package/src/models/Flow.js +3 -2
  111. package/src/models/FlowCreateRequest.cjs +3 -2
  112. package/src/models/FlowCreateRequest.d.ts +4 -3
  113. package/src/models/FlowCreateRequest.js +3 -2
  114. package/src/models/FlowExecutionStateEnum.cjs +1 -0
  115. package/src/models/FlowExecutionStateEnum.d.ts +1 -0
  116. package/src/models/FlowExecutionStateEnum.js +1 -0
  117. package/src/models/FlowPaymentLinkCreateRequest.cjs +3 -2
  118. package/src/models/FlowPaymentLinkCreateRequest.d.ts +4 -3
  119. package/src/models/FlowPaymentLinkCreateRequest.js +3 -2
  120. package/src/models/FlowUIConfig.cjs +33 -0
  121. package/src/models/FlowUIConfig.d.ts +27 -0
  122. package/src/models/FlowUIConfig.js +27 -0
  123. package/src/models/ScreeningAddressDisposition.cjs +42 -0
  124. package/src/models/ScreeningAddressDisposition.d.ts +25 -0
  125. package/src/models/ScreeningAddressDisposition.js +36 -0
  126. package/src/models/ScreeningAddressScopeEnum.cjs +45 -0
  127. package/src/models/ScreeningAddressScopeEnum.d.ts +28 -0
  128. package/src/models/ScreeningAddressScopeEnum.js +39 -0
  129. package/src/models/ScreeningPolicy.cjs +49 -0
  130. package/src/models/ScreeningPolicy.d.ts +82 -0
  131. package/src/models/ScreeningPolicy.js +43 -0
  132. package/src/models/ScreeningPolicyAddress.cjs +48 -0
  133. package/src/models/ScreeningPolicyAddress.d.ts +71 -0
  134. package/src/models/ScreeningPolicyAddress.js +42 -0
  135. package/src/models/ScreeningPolicyAddressCreateRequest.cjs +44 -0
  136. package/src/models/ScreeningPolicyAddressCreateRequest.d.ts +54 -0
  137. package/src/models/ScreeningPolicyAddressCreateRequest.js +38 -0
  138. package/src/models/ScreeningPolicyAddressesResponse.cjs +35 -0
  139. package/src/models/ScreeningPolicyAddressesResponse.d.ts +34 -0
  140. package/src/models/ScreeningPolicyAddressesResponse.js +29 -0
  141. package/src/models/ScreeningPolicyProviderEnum.cjs +43 -0
  142. package/src/models/ScreeningPolicyProviderEnum.d.ts +26 -0
  143. package/src/models/ScreeningPolicyProviderEnum.js +37 -0
  144. package/src/models/ScreeningPolicyScopeEnum.cjs +44 -0
  145. package/src/models/ScreeningPolicyScopeEnum.d.ts +27 -0
  146. package/src/models/ScreeningPolicyScopeEnum.js +38 -0
  147. package/src/models/ScreeningPolicyUpdateRequest.cjs +35 -0
  148. package/src/models/ScreeningPolicyUpdateRequest.d.ts +48 -0
  149. package/src/models/ScreeningPolicyUpdateRequest.js +29 -0
  150. package/src/models/index.d.ts +10 -0
@@ -0,0 +1,42 @@
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
+ * Whether the entry exempts the address from the customer's own rules, or
20
+ * blocks it. Both evaluate below the sanctions floor, so `ALLOW` can never
21
+ * unblock a sanctioned address.
22
+ * @export
23
+ * @enum {string}
24
+ */
25
+ exports.ScreeningAddressDisposition = void 0;
26
+ (function (ScreeningAddressDisposition) {
27
+ ScreeningAddressDisposition["Allow"] = "ALLOW";
28
+ ScreeningAddressDisposition["Deny"] = "DENY";
29
+ })(exports.ScreeningAddressDisposition || (exports.ScreeningAddressDisposition = {}));
30
+ function ScreeningAddressDispositionFromJSON(json) {
31
+ return ScreeningAddressDispositionFromJSONTyped(json);
32
+ }
33
+ function ScreeningAddressDispositionFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ function ScreeningAddressDispositionToJSON(value) {
37
+ return value;
38
+ }
39
+
40
+ exports.ScreeningAddressDispositionFromJSON = ScreeningAddressDispositionFromJSON;
41
+ exports.ScreeningAddressDispositionFromJSONTyped = ScreeningAddressDispositionFromJSONTyped;
42
+ exports.ScreeningAddressDispositionToJSON = ScreeningAddressDispositionToJSON;
@@ -0,0 +1,25 @@
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
+ * Whether the entry exempts the address from the customer's own rules, or
14
+ * blocks it. Both evaluate below the sanctions floor, so `ALLOW` can never
15
+ * unblock a sanctioned address.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export declare enum ScreeningAddressDisposition {
20
+ Allow = "ALLOW",
21
+ Deny = "DENY"
22
+ }
23
+ export declare function ScreeningAddressDispositionFromJSON(json: any): ScreeningAddressDisposition;
24
+ export declare function ScreeningAddressDispositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreeningAddressDisposition;
25
+ export declare function ScreeningAddressDispositionToJSON(value?: ScreeningAddressDisposition | null): any;
@@ -0,0 +1,36 @@
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
+ * Whether the entry exempts the address from the customer's own rules, or
16
+ * blocks it. Both evaluate below the sanctions floor, so `ALLOW` can never
17
+ * unblock a sanctioned address.
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var ScreeningAddressDisposition;
22
+ (function (ScreeningAddressDisposition) {
23
+ ScreeningAddressDisposition["Allow"] = "ALLOW";
24
+ ScreeningAddressDisposition["Deny"] = "DENY";
25
+ })(ScreeningAddressDisposition || (ScreeningAddressDisposition = {}));
26
+ function ScreeningAddressDispositionFromJSON(json) {
27
+ return ScreeningAddressDispositionFromJSONTyped(json);
28
+ }
29
+ function ScreeningAddressDispositionFromJSONTyped(json, ignoreDiscriminator) {
30
+ return json;
31
+ }
32
+ function ScreeningAddressDispositionToJSON(value) {
33
+ return value;
34
+ }
35
+
36
+ export { ScreeningAddressDisposition, ScreeningAddressDispositionFromJSON, ScreeningAddressDispositionFromJSONTyped, ScreeningAddressDispositionToJSON };
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ /**
19
+ * Which scopes an address entry applies to. Separate from
20
+ * `ScreeningPolicyScopeEnum` because `ALL` is meaningful here and meaningless
21
+ * on a policy row. `ALL` is the default and the overwhelmingly common intent —
22
+ * a blocked actor is normally blocked everywhere — and narrowing is available
23
+ * for the customer who wants it.
24
+ * @export
25
+ * @enum {string}
26
+ */
27
+ exports.ScreeningAddressScopeEnum = void 0;
28
+ (function (ScreeningAddressScopeEnum) {
29
+ ScreeningAddressScopeEnum["All"] = "ALL";
30
+ ScreeningAddressScopeEnum["SignIn"] = "SIGN_IN";
31
+ ScreeningAddressScopeEnum["Transaction"] = "TRANSACTION";
32
+ })(exports.ScreeningAddressScopeEnum || (exports.ScreeningAddressScopeEnum = {}));
33
+ function ScreeningAddressScopeEnumFromJSON(json) {
34
+ return ScreeningAddressScopeEnumFromJSONTyped(json);
35
+ }
36
+ function ScreeningAddressScopeEnumFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ function ScreeningAddressScopeEnumToJSON(value) {
40
+ return value;
41
+ }
42
+
43
+ exports.ScreeningAddressScopeEnumFromJSON = ScreeningAddressScopeEnumFromJSON;
44
+ exports.ScreeningAddressScopeEnumFromJSONTyped = ScreeningAddressScopeEnumFromJSONTyped;
45
+ exports.ScreeningAddressScopeEnumToJSON = ScreeningAddressScopeEnumToJSON;
@@ -0,0 +1,28 @@
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
+ * Which scopes an address entry applies to. Separate from
14
+ * `ScreeningPolicyScopeEnum` because `ALL` is meaningful here and meaningless
15
+ * on a policy row. `ALL` is the default and the overwhelmingly common intent —
16
+ * a blocked actor is normally blocked everywhere — and narrowing is available
17
+ * for the customer who wants it.
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ export declare enum ScreeningAddressScopeEnum {
22
+ All = "ALL",
23
+ SignIn = "SIGN_IN",
24
+ Transaction = "TRANSACTION"
25
+ }
26
+ export declare function ScreeningAddressScopeEnumFromJSON(json: any): ScreeningAddressScopeEnum;
27
+ export declare function ScreeningAddressScopeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreeningAddressScopeEnum;
28
+ export declare function ScreeningAddressScopeEnumToJSON(value?: ScreeningAddressScopeEnum | null): any;
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Which scopes an address entry applies to. Separate from
16
+ * `ScreeningPolicyScopeEnum` because `ALL` is meaningful here and meaningless
17
+ * on a policy row. `ALL` is the default and the overwhelmingly common intent —
18
+ * a blocked actor is normally blocked everywhere — and narrowing is available
19
+ * for the customer who wants it.
20
+ * @export
21
+ * @enum {string}
22
+ */
23
+ var ScreeningAddressScopeEnum;
24
+ (function (ScreeningAddressScopeEnum) {
25
+ ScreeningAddressScopeEnum["All"] = "ALL";
26
+ ScreeningAddressScopeEnum["SignIn"] = "SIGN_IN";
27
+ ScreeningAddressScopeEnum["Transaction"] = "TRANSACTION";
28
+ })(ScreeningAddressScopeEnum || (ScreeningAddressScopeEnum = {}));
29
+ function ScreeningAddressScopeEnumFromJSON(json) {
30
+ return ScreeningAddressScopeEnumFromJSONTyped(json);
31
+ }
32
+ function ScreeningAddressScopeEnumFromJSONTyped(json, ignoreDiscriminator) {
33
+ return json;
34
+ }
35
+ function ScreeningAddressScopeEnumToJSON(value) {
36
+ return value;
37
+ }
38
+
39
+ export { ScreeningAddressScopeEnum, ScreeningAddressScopeEnumFromJSON, ScreeningAddressScopeEnumFromJSONTyped, ScreeningAddressScopeEnumToJSON };
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ScreeningPolicyProviderEnum = require('./ScreeningPolicyProviderEnum.cjs');
7
+ var ScreeningPolicyScopeEnum = require('./ScreeningPolicyScopeEnum.cjs');
8
+
9
+ /* tslint:disable */
10
+ function ScreeningPolicyFromJSON(json) {
11
+ return ScreeningPolicyFromJSONTyped(json);
12
+ }
13
+ function ScreeningPolicyFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'providerType': ScreeningPolicyProviderEnum.ScreeningPolicyProviderEnumFromJSON(json['providerType']),
19
+ 'scope': ScreeningPolicyScopeEnum.ScreeningPolicyScopeEnumFromJSON(json['scope']),
20
+ 'revision': json['revision'],
21
+ 'schemaVersion': json['schemaVersion'],
22
+ 'rules': json['rules'],
23
+ 'addressEntryCount': json['addressEntryCount'],
24
+ 'enabled': json['enabled'],
25
+ 'updatedAt': !runtime.exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
26
+ };
27
+ }
28
+ function ScreeningPolicyToJSON(value) {
29
+ if (value === undefined) {
30
+ return undefined;
31
+ }
32
+ if (value === null) {
33
+ return null;
34
+ }
35
+ return {
36
+ 'providerType': ScreeningPolicyProviderEnum.ScreeningPolicyProviderEnumToJSON(value.providerType),
37
+ 'scope': ScreeningPolicyScopeEnum.ScreeningPolicyScopeEnumToJSON(value.scope),
38
+ 'revision': value.revision,
39
+ 'schemaVersion': value.schemaVersion,
40
+ 'rules': value.rules,
41
+ 'addressEntryCount': value.addressEntryCount,
42
+ 'enabled': value.enabled,
43
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
44
+ };
45
+ }
46
+
47
+ exports.ScreeningPolicyFromJSON = ScreeningPolicyFromJSON;
48
+ exports.ScreeningPolicyFromJSONTyped = ScreeningPolicyFromJSONTyped;
49
+ exports.ScreeningPolicyToJSON = ScreeningPolicyToJSON;
@@ -0,0 +1,82 @@
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
+ import { ScreeningPolicyProviderEnum } from './ScreeningPolicyProviderEnum';
13
+ import { ScreeningPolicyScopeEnum } from './ScreeningPolicyScopeEnum';
14
+ /**
15
+ * One vendor's screening policy in one environment, for one scope.
16
+ * @export
17
+ * @interface ScreeningPolicy
18
+ */
19
+ export interface ScreeningPolicy {
20
+ /**
21
+ *
22
+ * @type {ScreeningPolicyProviderEnum}
23
+ * @memberof ScreeningPolicy
24
+ */
25
+ providerType: ScreeningPolicyProviderEnum;
26
+ /**
27
+ *
28
+ * @type {ScreeningPolicyScopeEnum}
29
+ * @memberof ScreeningPolicy
30
+ */
31
+ scope: ScreeningPolicyScopeEnum;
32
+ /**
33
+ * Generation counter. Echo it back on update as the concurrency precondition.
34
+ * @type {number}
35
+ * @memberof ScreeningPolicy
36
+ */
37
+ revision: number;
38
+ /**
39
+ * Rule-language version that governs how `rules` is parsed.
40
+ * @type {number}
41
+ * @memberof ScreeningPolicy
42
+ */
43
+ schemaVersion: number;
44
+ /**
45
+ * Customer rules, `{ preScreen, postScreen }`, per the vendor's own rule schema
46
+ * (`TrmPolicyRules` or `ChainalysisPolicyRules`). Typed as a free-form object
47
+ * rather than a `oneOf` over the two: the vendor is a path parameter, no
48
+ * OpenAPI construct selects a body schema from one, and `oneOf` generates SDK
49
+ * models that do not compile. The server validates the blob against the
50
+ * vendor's schema before writing, so a TRM policy naming a `chainalysis.*`
51
+ * field is a 400. Clients should validate against those two schemas before
52
+ * submitting.
53
+ *
54
+ * Neither the sanctions floor nor the terminal ALLOW appears here. Both are
55
+ * generated from code on every screen, so there is nothing to author, edit, or
56
+ * read back, and no request body can weaken them.
57
+ * @type {object}
58
+ * @memberof ScreeningPolicy
59
+ */
60
+ rules: object;
61
+ /**
62
+ * Number of live address entries applying to THIS scope — those marked `ALL` plus those narrowed to it. Entries themselves belong to the (environment, vendor) pair, not to this policy.
63
+ * @type {number}
64
+ * @memberof ScreeningPolicy
65
+ */
66
+ addressEntryCount: number;
67
+ /**
68
+ * Whether the policy is live.
69
+ * @type {boolean}
70
+ * @memberof ScreeningPolicy
71
+ */
72
+ enabled: boolean;
73
+ /**
74
+ * ISO 8601 timestamp of the last mutation.
75
+ * @type {Date}
76
+ * @memberof ScreeningPolicy
77
+ */
78
+ updatedAt?: Date;
79
+ }
80
+ export declare function ScreeningPolicyFromJSON(json: any): ScreeningPolicy;
81
+ export declare function ScreeningPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreeningPolicy;
82
+ export declare function ScreeningPolicyToJSON(value?: ScreeningPolicy | null): any;
@@ -0,0 +1,43 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ScreeningPolicyProviderEnumFromJSON, ScreeningPolicyProviderEnumToJSON } from './ScreeningPolicyProviderEnum.js';
3
+ import { ScreeningPolicyScopeEnumFromJSON, ScreeningPolicyScopeEnumToJSON } from './ScreeningPolicyScopeEnum.js';
4
+
5
+ /* tslint:disable */
6
+ function ScreeningPolicyFromJSON(json) {
7
+ return ScreeningPolicyFromJSONTyped(json);
8
+ }
9
+ function ScreeningPolicyFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'providerType': ScreeningPolicyProviderEnumFromJSON(json['providerType']),
15
+ 'scope': ScreeningPolicyScopeEnumFromJSON(json['scope']),
16
+ 'revision': json['revision'],
17
+ 'schemaVersion': json['schemaVersion'],
18
+ 'rules': json['rules'],
19
+ 'addressEntryCount': json['addressEntryCount'],
20
+ 'enabled': json['enabled'],
21
+ 'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
22
+ };
23
+ }
24
+ function ScreeningPolicyToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'providerType': ScreeningPolicyProviderEnumToJSON(value.providerType),
33
+ 'scope': ScreeningPolicyScopeEnumToJSON(value.scope),
34
+ 'revision': value.revision,
35
+ 'schemaVersion': value.schemaVersion,
36
+ 'rules': value.rules,
37
+ 'addressEntryCount': value.addressEntryCount,
38
+ 'enabled': value.enabled,
39
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
40
+ };
41
+ }
42
+
43
+ export { ScreeningPolicyFromJSON, ScreeningPolicyFromJSONTyped, ScreeningPolicyToJSON };
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ChainEnum = require('./ChainEnum.cjs');
7
+ var ScreeningAddressDisposition = require('./ScreeningAddressDisposition.cjs');
8
+ var ScreeningAddressScopeEnum = require('./ScreeningAddressScopeEnum.cjs');
9
+
10
+ /* tslint:disable */
11
+ function ScreeningPolicyAddressFromJSON(json) {
12
+ return ScreeningPolicyAddressFromJSONTyped(json);
13
+ }
14
+ function ScreeningPolicyAddressFromJSONTyped(json, ignoreDiscriminator) {
15
+ if ((json === undefined) || (json === null)) {
16
+ return json;
17
+ }
18
+ return {
19
+ 'id': json['id'],
20
+ 'address': json['address'],
21
+ 'chain': !runtime.exists(json, 'chain') ? undefined : ChainEnum.ChainEnumFromJSON(json['chain']),
22
+ 'appliesToScope': ScreeningAddressScopeEnum.ScreeningAddressScopeEnumFromJSON(json['appliesToScope']),
23
+ 'disposition': ScreeningAddressDisposition.ScreeningAddressDispositionFromJSON(json['disposition']),
24
+ 'note': !runtime.exists(json, 'note') ? undefined : json['note'],
25
+ 'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
26
+ };
27
+ }
28
+ function ScreeningPolicyAddressToJSON(value) {
29
+ if (value === undefined) {
30
+ return undefined;
31
+ }
32
+ if (value === null) {
33
+ return null;
34
+ }
35
+ return {
36
+ 'id': value.id,
37
+ 'address': value.address,
38
+ 'chain': ChainEnum.ChainEnumToJSON(value.chain),
39
+ 'appliesToScope': ScreeningAddressScopeEnum.ScreeningAddressScopeEnumToJSON(value.appliesToScope),
40
+ 'disposition': ScreeningAddressDisposition.ScreeningAddressDispositionToJSON(value.disposition),
41
+ 'note': value.note,
42
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
43
+ };
44
+ }
45
+
46
+ exports.ScreeningPolicyAddressFromJSON = ScreeningPolicyAddressFromJSON;
47
+ exports.ScreeningPolicyAddressFromJSONTyped = ScreeningPolicyAddressFromJSONTyped;
48
+ exports.ScreeningPolicyAddressToJSON = ScreeningPolicyAddressToJSON;
@@ -0,0 +1,71 @@
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
+ import { ChainEnum } from './ChainEnum';
13
+ import { ScreeningAddressDisposition } from './ScreeningAddressDisposition';
14
+ import { ScreeningAddressScopeEnum } from './ScreeningAddressScopeEnum';
15
+ /**
16
+ * A customer address exception, belonging to the (environment, vendor) pair
17
+ * rather than to one policy — a denylist should have one answer to "is this
18
+ * actor blocked?" whichever screening moment is being resolved. Matched by a
19
+ * chain-aware fold of the address, not a plain lowercase, because base58 and
20
+ * base32 chains are case-significant. An absent `chain` applies the entry to
21
+ * every chain.
22
+ * @export
23
+ * @interface ScreeningPolicyAddress
24
+ */
25
+ export interface ScreeningPolicyAddress {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ScreeningPolicyAddress
30
+ */
31
+ id: string;
32
+ /**
33
+ * The address, in the casing it was submitted with.
34
+ * @type {string}
35
+ * @memberof ScreeningPolicyAddress
36
+ */
37
+ address: string;
38
+ /**
39
+ *
40
+ * @type {ChainEnum}
41
+ * @memberof ScreeningPolicyAddress
42
+ */
43
+ chain?: ChainEnum;
44
+ /**
45
+ *
46
+ * @type {ScreeningAddressScopeEnum}
47
+ * @memberof ScreeningPolicyAddress
48
+ */
49
+ appliesToScope: ScreeningAddressScopeEnum;
50
+ /**
51
+ *
52
+ * @type {ScreeningAddressDisposition}
53
+ * @memberof ScreeningPolicyAddress
54
+ */
55
+ disposition: ScreeningAddressDisposition;
56
+ /**
57
+ * Human-readable label to identify this entry in the dashboard.
58
+ * @type {string}
59
+ * @memberof ScreeningPolicyAddress
60
+ */
61
+ note?: string;
62
+ /**
63
+ * ISO 8601 timestamp of when the entry was added.
64
+ * @type {Date}
65
+ * @memberof ScreeningPolicyAddress
66
+ */
67
+ createdAt?: Date;
68
+ }
69
+ export declare function ScreeningPolicyAddressFromJSON(json: any): ScreeningPolicyAddress;
70
+ export declare function ScreeningPolicyAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreeningPolicyAddress;
71
+ export declare function ScreeningPolicyAddressToJSON(value?: ScreeningPolicyAddress | null): any;
@@ -0,0 +1,42 @@
1
+ import { exists } from '../runtime.js';
2
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
+ import { ScreeningAddressDispositionFromJSON, ScreeningAddressDispositionToJSON } from './ScreeningAddressDisposition.js';
4
+ import { ScreeningAddressScopeEnumFromJSON, ScreeningAddressScopeEnumToJSON } from './ScreeningAddressScopeEnum.js';
5
+
6
+ /* tslint:disable */
7
+ function ScreeningPolicyAddressFromJSON(json) {
8
+ return ScreeningPolicyAddressFromJSONTyped(json);
9
+ }
10
+ function ScreeningPolicyAddressFromJSONTyped(json, ignoreDiscriminator) {
11
+ if ((json === undefined) || (json === null)) {
12
+ return json;
13
+ }
14
+ return {
15
+ 'id': json['id'],
16
+ 'address': json['address'],
17
+ 'chain': !exists(json, 'chain') ? undefined : ChainEnumFromJSON(json['chain']),
18
+ 'appliesToScope': ScreeningAddressScopeEnumFromJSON(json['appliesToScope']),
19
+ 'disposition': ScreeningAddressDispositionFromJSON(json['disposition']),
20
+ 'note': !exists(json, 'note') ? undefined : json['note'],
21
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
22
+ };
23
+ }
24
+ function ScreeningPolicyAddressToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'id': value.id,
33
+ 'address': value.address,
34
+ 'chain': ChainEnumToJSON(value.chain),
35
+ 'appliesToScope': ScreeningAddressScopeEnumToJSON(value.appliesToScope),
36
+ 'disposition': ScreeningAddressDispositionToJSON(value.disposition),
37
+ 'note': value.note,
38
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
39
+ };
40
+ }
41
+
42
+ export { ScreeningPolicyAddressFromJSON, ScreeningPolicyAddressFromJSONTyped, ScreeningPolicyAddressToJSON };
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ChainEnum = require('./ChainEnum.cjs');
7
+ var ScreeningAddressDisposition = require('./ScreeningAddressDisposition.cjs');
8
+ var ScreeningAddressScopeEnum = require('./ScreeningAddressScopeEnum.cjs');
9
+
10
+ /* tslint:disable */
11
+ function ScreeningPolicyAddressCreateRequestFromJSON(json) {
12
+ return ScreeningPolicyAddressCreateRequestFromJSONTyped(json);
13
+ }
14
+ function ScreeningPolicyAddressCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
+ if ((json === undefined) || (json === null)) {
16
+ return json;
17
+ }
18
+ return {
19
+ 'address': json['address'],
20
+ 'chain': !runtime.exists(json, 'chain') ? undefined : ChainEnum.ChainEnumFromJSON(json['chain']),
21
+ 'appliesToScope': !runtime.exists(json, 'appliesToScope') ? undefined : ScreeningAddressScopeEnum.ScreeningAddressScopeEnumFromJSON(json['appliesToScope']),
22
+ 'disposition': ScreeningAddressDisposition.ScreeningAddressDispositionFromJSON(json['disposition']),
23
+ 'note': !runtime.exists(json, 'note') ? undefined : json['note'],
24
+ };
25
+ }
26
+ function ScreeningPolicyAddressCreateRequestToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'address': value.address,
35
+ 'chain': ChainEnum.ChainEnumToJSON(value.chain),
36
+ 'appliesToScope': ScreeningAddressScopeEnum.ScreeningAddressScopeEnumToJSON(value.appliesToScope),
37
+ 'disposition': ScreeningAddressDisposition.ScreeningAddressDispositionToJSON(value.disposition),
38
+ 'note': value.note,
39
+ };
40
+ }
41
+
42
+ exports.ScreeningPolicyAddressCreateRequestFromJSON = ScreeningPolicyAddressCreateRequestFromJSON;
43
+ exports.ScreeningPolicyAddressCreateRequestFromJSONTyped = ScreeningPolicyAddressCreateRequestFromJSONTyped;
44
+ exports.ScreeningPolicyAddressCreateRequestToJSON = ScreeningPolicyAddressCreateRequestToJSON;
@@ -0,0 +1,54 @@
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
+ import { ChainEnum } from './ChainEnum';
13
+ import { ScreeningAddressDisposition } from './ScreeningAddressDisposition';
14
+ import { ScreeningAddressScopeEnum } from './ScreeningAddressScopeEnum';
15
+ /**
16
+ * Adds one address exception to the (environment, vendor) list. Omit `chain` to apply it to every chain, and `appliesToScope` to apply it at every screening moment.
17
+ * @export
18
+ * @interface ScreeningPolicyAddressCreateRequest
19
+ */
20
+ export interface ScreeningPolicyAddressCreateRequest {
21
+ /**
22
+ * The address to except, in its native casing.
23
+ * @type {string}
24
+ * @memberof ScreeningPolicyAddressCreateRequest
25
+ */
26
+ address: string;
27
+ /**
28
+ *
29
+ * @type {ChainEnum}
30
+ * @memberof ScreeningPolicyAddressCreateRequest
31
+ */
32
+ chain?: ChainEnum;
33
+ /**
34
+ *
35
+ * @type {ScreeningAddressScopeEnum}
36
+ * @memberof ScreeningPolicyAddressCreateRequest
37
+ */
38
+ appliesToScope?: ScreeningAddressScopeEnum;
39
+ /**
40
+ *
41
+ * @type {ScreeningAddressDisposition}
42
+ * @memberof ScreeningPolicyAddressCreateRequest
43
+ */
44
+ disposition: ScreeningAddressDisposition;
45
+ /**
46
+ * Human-readable label to identify this entry in the dashboard.
47
+ * @type {string}
48
+ * @memberof ScreeningPolicyAddressCreateRequest
49
+ */
50
+ note?: string;
51
+ }
52
+ export declare function ScreeningPolicyAddressCreateRequestFromJSON(json: any): ScreeningPolicyAddressCreateRequest;
53
+ export declare function ScreeningPolicyAddressCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreeningPolicyAddressCreateRequest;
54
+ export declare function ScreeningPolicyAddressCreateRequestToJSON(value?: ScreeningPolicyAddressCreateRequest | null): any;