@tammsyr/admin-api-client 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -16
- package/dist/AgentBranches.d.ts +2 -2
- package/dist/AgentBranches.js +6 -6
- package/dist/AgentSettlements.d.ts +2 -2
- package/dist/AgentSettlements.js +8 -8
- package/dist/Aml.d.ts +97 -0
- package/dist/Aml.d.ts.map +1 -0
- package/dist/Aml.js +171 -0
- package/dist/Aml.js.map +1 -0
- package/dist/Kyc.d.ts.map +1 -1
- package/dist/Kyc.js.map +1 -1
- package/dist/Notifications.js.map +1 -1
- package/dist/Users.d.ts +21 -1
- package/dist/Users.d.ts.map +1 -1
- package/dist/Users.js +36 -0
- package/dist/Users.js.map +1 -1
- package/dist/data-contracts.d.ts +391 -20
- package/dist/data-contracts.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -143,10 +143,7 @@ const client = new AdminApiClient({
|
|
|
143
143
|
**Environment-based URL example:**
|
|
144
144
|
|
|
145
145
|
```typescript
|
|
146
|
-
const baseURL =
|
|
147
|
-
process.env.NODE_ENV === 'production'
|
|
148
|
-
? 'https://admin.tamm.com/admin/v1'
|
|
149
|
-
: 'http://localhost:3006/admin/v1';
|
|
146
|
+
const baseURL = process.env.NODE_ENV === 'production' ? 'https://admin.tamm.com/admin/v1' : 'http://localhost:3006/admin/v1';
|
|
150
147
|
|
|
151
148
|
const client = new AdminApiClient({ baseURL });
|
|
152
149
|
```
|
|
@@ -191,11 +188,11 @@ This section covers how to regenerate the client when the Admin Service API chan
|
|
|
191
188
|
|
|
192
189
|
All commands are run from the **monorepo root** (`tamm-microservices/`).
|
|
193
190
|
|
|
194
|
-
| Tool
|
|
195
|
-
|
|
|
196
|
-
| `swagger-typescript-api
|
|
197
|
-
| `typescript`
|
|
198
|
-
| `npm` account
|
|
191
|
+
| Tool | Purpose |
|
|
192
|
+
| ------------------------ | ----------------------- |
|
|
193
|
+
| `swagger-typescript-api` | Generates the TS client |
|
|
194
|
+
| `typescript` | Compiles for publishing |
|
|
195
|
+
| `npm` account | Required for publishing |
|
|
199
196
|
|
|
200
197
|
Both tools are already listed in the root `devDependencies` — just run `npm install`.
|
|
201
198
|
|
|
@@ -251,6 +248,7 @@ npm run publish:admin-client -- --version=<new-version>
|
|
|
251
248
|
```
|
|
252
249
|
|
|
253
250
|
The script will:
|
|
251
|
+
|
|
254
252
|
1. Update the version in `generated/admin-client/package.json`
|
|
255
253
|
2. Run `tsc` to build the `dist/` folder
|
|
256
254
|
3. Publish `@tammsyr/admin-api-client` to the public npm registry
|
|
@@ -326,13 +324,13 @@ git commit -m "chore: regenerate and publish admin client v1.0.6"
|
|
|
326
324
|
|
|
327
325
|
## Troubleshooting
|
|
328
326
|
|
|
329
|
-
| Problem
|
|
330
|
-
|
|
|
331
|
-
| `generate:admin-openapi-spec` fails
|
|
332
|
-
| Generated code has TypeScript errors | Verify the OpenAPI spec is valid — check Swagger UI at `http://localhost:3006/admin/docs`
|
|
333
|
-
| `403 Forbidden` on publish
|
|
334
|
-
| `Two-factor authentication required` | Enable 2FA on npmjs.com or use a granular access token with bypass-2FA enabled
|
|
335
|
-
| Version conflict on publish
|
|
327
|
+
| Problem | Solution |
|
|
328
|
+
| ------------------------------------ | ------------------------------------------------------------------------------------------------------- |
|
|
329
|
+
| `generate:admin-openapi-spec` fails | Make sure the Admin Service is running (`npm run start:admin`) and reachable at `http://localhost:3006` |
|
|
330
|
+
| Generated code has TypeScript errors | Verify the OpenAPI spec is valid — check Swagger UI at `http://localhost:3006/admin/docs` |
|
|
331
|
+
| `403 Forbidden` on publish | Check npm auth (`npm whoami`), org membership (`npm org ls tammsyr`), and 2FA/token setup |
|
|
332
|
+
| `Two-factor authentication required` | Enable 2FA on npmjs.com or use a granular access token with bypass-2FA enabled |
|
|
333
|
+
| Version conflict on publish | Ensure the `--version` you're publishing doesn't already exist on the registry |
|
|
336
334
|
|
|
337
335
|
## Versioning
|
|
338
336
|
|
package/dist/AgentBranches.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateBranchDto, DeleteBranchParams, GetBranchParams, ListBranchesParams, UpdateBranchDto, UpdateBranchParams, UpdateBranchStatusDto, UpdateBranchStatusParams } from
|
|
2
|
-
import { HttpClient, RequestParams } from
|
|
1
|
+
import { CreateBranchDto, DeleteBranchParams, GetBranchParams, ListBranchesParams, UpdateBranchDto, UpdateBranchParams, UpdateBranchStatusDto, UpdateBranchStatusParams } from './data-contracts';
|
|
2
|
+
import { HttpClient, RequestParams } from './http-client';
|
|
3
3
|
export declare class AgentBranches<SecurityDataType = unknown> {
|
|
4
4
|
http: HttpClient<SecurityDataType>;
|
|
5
5
|
constructor(http: HttpClient<SecurityDataType>);
|
package/dist/AgentBranches.js
CHANGED
|
@@ -26,7 +26,7 @@ class AgentBranches {
|
|
|
26
26
|
*/
|
|
27
27
|
this.listBranches = (query, params = {}) => this.http.request({
|
|
28
28
|
path: `/agent-branches`,
|
|
29
|
-
method:
|
|
29
|
+
method: 'GET',
|
|
30
30
|
query: query,
|
|
31
31
|
secure: true,
|
|
32
32
|
...params,
|
|
@@ -42,7 +42,7 @@ class AgentBranches {
|
|
|
42
42
|
*/
|
|
43
43
|
this.createBranch = (data, params = {}) => this.http.request({
|
|
44
44
|
path: `/agent-branches`,
|
|
45
|
-
method:
|
|
45
|
+
method: 'POST',
|
|
46
46
|
body: data,
|
|
47
47
|
secure: true,
|
|
48
48
|
type: http_client_1.ContentType.Json,
|
|
@@ -59,7 +59,7 @@ class AgentBranches {
|
|
|
59
59
|
*/
|
|
60
60
|
this.getBranch = ({ id, ...query }, params = {}) => this.http.request({
|
|
61
61
|
path: `/agent-branches/${id}`,
|
|
62
|
-
method:
|
|
62
|
+
method: 'GET',
|
|
63
63
|
secure: true,
|
|
64
64
|
...params,
|
|
65
65
|
});
|
|
@@ -74,7 +74,7 @@ class AgentBranches {
|
|
|
74
74
|
*/
|
|
75
75
|
this.updateBranch = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
76
76
|
path: `/agent-branches/${id}`,
|
|
77
|
-
method:
|
|
77
|
+
method: 'PATCH',
|
|
78
78
|
body: data,
|
|
79
79
|
secure: true,
|
|
80
80
|
type: http_client_1.ContentType.Json,
|
|
@@ -91,7 +91,7 @@ class AgentBranches {
|
|
|
91
91
|
*/
|
|
92
92
|
this.deleteBranch = ({ id, ...query }, params = {}) => this.http.request({
|
|
93
93
|
path: `/agent-branches/${id}`,
|
|
94
|
-
method:
|
|
94
|
+
method: 'DELETE',
|
|
95
95
|
secure: true,
|
|
96
96
|
...params,
|
|
97
97
|
});
|
|
@@ -106,7 +106,7 @@ class AgentBranches {
|
|
|
106
106
|
*/
|
|
107
107
|
this.updateBranchStatus = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
108
108
|
path: `/agent-branches/${id}/status`,
|
|
109
|
-
method:
|
|
109
|
+
method: 'PATCH',
|
|
110
110
|
body: data,
|
|
111
111
|
secure: true,
|
|
112
112
|
type: http_client_1.ContentType.Json,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AddAdjustmentDto, AddSettlementAdjustmentParams, ApproveAdjustmentParams, CreateSettlementDto, GetSettlementAdjustmentsParams, GetSettlementParams, ListSettlementsParams, UpdateSettlementAmountsDto, UpdateSettlementAmountsParams, UpdateSettlementStatusDto, UpdateSettlementStatusParams } from
|
|
2
|
-
import { HttpClient, RequestParams } from
|
|
1
|
+
import { AddAdjustmentDto, AddSettlementAdjustmentParams, ApproveAdjustmentParams, CreateSettlementDto, GetSettlementAdjustmentsParams, GetSettlementParams, ListSettlementsParams, UpdateSettlementAmountsDto, UpdateSettlementAmountsParams, UpdateSettlementStatusDto, UpdateSettlementStatusParams } from './data-contracts';
|
|
2
|
+
import { HttpClient, RequestParams } from './http-client';
|
|
3
3
|
export declare class AgentSettlements<SecurityDataType = unknown> {
|
|
4
4
|
http: HttpClient<SecurityDataType>;
|
|
5
5
|
constructor(http: HttpClient<SecurityDataType>);
|
package/dist/AgentSettlements.js
CHANGED
|
@@ -26,7 +26,7 @@ class AgentSettlements {
|
|
|
26
26
|
*/
|
|
27
27
|
this.listSettlements = (query, params = {}) => this.http.request({
|
|
28
28
|
path: `/agent-settlements`,
|
|
29
|
-
method:
|
|
29
|
+
method: 'GET',
|
|
30
30
|
query: query,
|
|
31
31
|
secure: true,
|
|
32
32
|
...params,
|
|
@@ -42,7 +42,7 @@ class AgentSettlements {
|
|
|
42
42
|
*/
|
|
43
43
|
this.createSettlement = (data, params = {}) => this.http.request({
|
|
44
44
|
path: `/agent-settlements`,
|
|
45
|
-
method:
|
|
45
|
+
method: 'POST',
|
|
46
46
|
body: data,
|
|
47
47
|
secure: true,
|
|
48
48
|
type: http_client_1.ContentType.Json,
|
|
@@ -59,7 +59,7 @@ class AgentSettlements {
|
|
|
59
59
|
*/
|
|
60
60
|
this.getSettlement = ({ id, ...query }, params = {}) => this.http.request({
|
|
61
61
|
path: `/agent-settlements/${id}`,
|
|
62
|
-
method:
|
|
62
|
+
method: 'GET',
|
|
63
63
|
secure: true,
|
|
64
64
|
...params,
|
|
65
65
|
});
|
|
@@ -74,7 +74,7 @@ class AgentSettlements {
|
|
|
74
74
|
*/
|
|
75
75
|
this.updateSettlementStatus = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
76
76
|
path: `/agent-settlements/${id}/status`,
|
|
77
|
-
method:
|
|
77
|
+
method: 'PATCH',
|
|
78
78
|
body: data,
|
|
79
79
|
secure: true,
|
|
80
80
|
type: http_client_1.ContentType.Json,
|
|
@@ -91,7 +91,7 @@ class AgentSettlements {
|
|
|
91
91
|
*/
|
|
92
92
|
this.updateSettlementAmounts = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
93
93
|
path: `/agent-settlements/${id}/amounts`,
|
|
94
|
-
method:
|
|
94
|
+
method: 'PATCH',
|
|
95
95
|
body: data,
|
|
96
96
|
secure: true,
|
|
97
97
|
type: http_client_1.ContentType.Json,
|
|
@@ -108,7 +108,7 @@ class AgentSettlements {
|
|
|
108
108
|
*/
|
|
109
109
|
this.getSettlementAdjustments = ({ id, ...query }, params = {}) => this.http.request({
|
|
110
110
|
path: `/agent-settlements/${id}/adjustments`,
|
|
111
|
-
method:
|
|
111
|
+
method: 'GET',
|
|
112
112
|
secure: true,
|
|
113
113
|
...params,
|
|
114
114
|
});
|
|
@@ -123,7 +123,7 @@ class AgentSettlements {
|
|
|
123
123
|
*/
|
|
124
124
|
this.addSettlementAdjustment = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
125
125
|
path: `/agent-settlements/${id}/adjustments`,
|
|
126
|
-
method:
|
|
126
|
+
method: 'POST',
|
|
127
127
|
body: data,
|
|
128
128
|
secure: true,
|
|
129
129
|
type: http_client_1.ContentType.Json,
|
|
@@ -140,7 +140,7 @@ class AgentSettlements {
|
|
|
140
140
|
*/
|
|
141
141
|
this.approveAdjustment = ({ adjustmentId, ...query }, params = {}) => this.http.request({
|
|
142
142
|
path: `/agent-settlements/adjustments/${adjustmentId}/approve`,
|
|
143
|
-
method:
|
|
143
|
+
method: 'POST',
|
|
144
144
|
secure: true,
|
|
145
145
|
...params,
|
|
146
146
|
});
|
package/dist/Aml.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { AssignAlertParams, CreateAmlRuleDto, DeleteAmlRuleParams, GetAlertByIdParams, GetAlertsParams, GetAmlRuleByIdParams, GetAmlRulesParams, UpdateAlertStatusDto, UpdateAlertStatusParams, UpdateAmlRuleDto, UpdateAmlRuleParams } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class Aml<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* @description Retrieves all AML rules with optional filtering and pagination.
|
|
8
|
+
*
|
|
9
|
+
* @tags AML
|
|
10
|
+
* @name GetAmlRules
|
|
11
|
+
* @summary List AML rules
|
|
12
|
+
* @request GET:/aml/rules
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
getAmlRules: (query: GetAmlRulesParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
16
|
+
/**
|
|
17
|
+
* @description Creates a new AML rule for transaction screening.
|
|
18
|
+
*
|
|
19
|
+
* @tags AML
|
|
20
|
+
* @name CreateAmlRule
|
|
21
|
+
* @summary Create AML rule
|
|
22
|
+
* @request POST:/aml/rules
|
|
23
|
+
* @secure
|
|
24
|
+
*/
|
|
25
|
+
createAmlRule: (data: CreateAmlRuleDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AmlRuleDto, any, {}>>;
|
|
26
|
+
/**
|
|
27
|
+
* @description Retrieves a single AML rule by its UUID.
|
|
28
|
+
*
|
|
29
|
+
* @tags AML
|
|
30
|
+
* @name GetAmlRuleById
|
|
31
|
+
* @summary Get AML rule by ID
|
|
32
|
+
* @request GET:/aml/rules/{ruleId}
|
|
33
|
+
* @secure
|
|
34
|
+
*/
|
|
35
|
+
getAmlRuleById: ({ ruleId, ...query }: GetAmlRuleByIdParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AmlRuleDto, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* @description Updates an existing AML rule.
|
|
38
|
+
*
|
|
39
|
+
* @tags AML
|
|
40
|
+
* @name UpdateAmlRule
|
|
41
|
+
* @summary Update AML rule
|
|
42
|
+
* @request PUT:/aml/rules/{ruleId}
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
updateAmlRule: ({ ruleId, ...query }: UpdateAmlRuleParams, data: UpdateAmlRuleDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AmlRuleDto, any, {}>>;
|
|
46
|
+
/**
|
|
47
|
+
* @description Deletes an AML rule by ID.
|
|
48
|
+
*
|
|
49
|
+
* @tags AML
|
|
50
|
+
* @name DeleteAmlRule
|
|
51
|
+
* @summary Delete AML rule
|
|
52
|
+
* @request DELETE:/aml/rules/{ruleId}
|
|
53
|
+
* @secure
|
|
54
|
+
*/
|
|
55
|
+
deleteAmlRule: ({ ruleId, ...query }: DeleteAmlRuleParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
56
|
+
/**
|
|
57
|
+
* @description Retrieves AML alerts with optional filtering and pagination.
|
|
58
|
+
*
|
|
59
|
+
* @tags AML
|
|
60
|
+
* @name GetAlerts
|
|
61
|
+
* @summary List AML alerts
|
|
62
|
+
* @request GET:/aml/alerts
|
|
63
|
+
* @secure
|
|
64
|
+
*/
|
|
65
|
+
getAlerts: (query: GetAlertsParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
66
|
+
/**
|
|
67
|
+
* @description Retrieves a single AML alert by its UUID.
|
|
68
|
+
*
|
|
69
|
+
* @tags AML
|
|
70
|
+
* @name GetAlertById
|
|
71
|
+
* @summary Get AML alert by ID
|
|
72
|
+
* @request GET:/aml/alerts/{alertId}
|
|
73
|
+
* @secure
|
|
74
|
+
*/
|
|
75
|
+
getAlertById: ({ alertId, ...query }: GetAlertByIdParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AmlAlertDto, any, {}>>;
|
|
76
|
+
/**
|
|
77
|
+
* @description Updates the status of an AML alert (OPEN, IN_REVIEW, ESCALATED, CLOSED).
|
|
78
|
+
*
|
|
79
|
+
* @tags AML
|
|
80
|
+
* @name UpdateAlertStatus
|
|
81
|
+
* @summary Update alert status
|
|
82
|
+
* @request PATCH:/aml/alerts/{alertId}/status
|
|
83
|
+
* @secure
|
|
84
|
+
*/
|
|
85
|
+
updateAlertStatus: ({ alertId, ...query }: UpdateAlertStatusParams, data: UpdateAlertStatusDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AmlAlertDto, any, {}>>;
|
|
86
|
+
/**
|
|
87
|
+
* @description Assigns an AML alert to an admin user for review.
|
|
88
|
+
*
|
|
89
|
+
* @tags AML
|
|
90
|
+
* @name AssignAlert
|
|
91
|
+
* @summary Assign alert to admin
|
|
92
|
+
* @request PATCH:/aml/alerts/{alertId}/assign
|
|
93
|
+
* @secure
|
|
94
|
+
*/
|
|
95
|
+
assignAlert: ({ alertId, ...query }: AssignAlertParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AmlAlertDto, any, {}>>;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=Aml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Aml.d.ts","sourceRoot":"","sources":["../Aml.ts"],"names":[],"mappings":"AAYA,OAAO,EAGL,iBAAiB,EAEjB,gBAAgB,EAIhB,mBAAmB,EAGnB,kBAAkB,EAElB,eAAe,EAGf,oBAAoB,EAEpB,iBAAiB,EAEjB,oBAAoB,EAEpB,uBAAuB,EAEvB,gBAAgB,EAEhB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,GAAG,CAAC,gBAAgB,GAAG,OAAO;IACzC,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,WAAW,GAAI,OAAO,iBAAiB,EAAE,SAAQ,aAAkB,0DAO9D;IACL;;;;;;;;OAQG;IACH,aAAa,GAAI,MAAM,gBAAgB,EAAE,SAAQ,aAAkB,4FAS9D;IACL;;;;;;;;OAQG;IACH,cAAc,GACZ,sBAAsB,oBAAoB,EAC1C,SAAQ,aAAkB,4FAQvB;IACL;;;;;;;;OAQG;IACH,aAAa,GACX,sBAAsB,mBAAmB,EACzC,MAAM,gBAAgB,EACtB,SAAQ,aAAkB,4FAUvB;IACL;;;;;;;;OAQG;IACH,aAAa,GACX,sBAAsB,mBAAmB,EACzC,SAAQ,aAAkB,0DAOvB;IACL;;;;;;;;OAQG;IACH,SAAS,GAAI,OAAO,eAAe,EAAE,SAAQ,aAAkB,0DAO1D;IACL;;;;;;;;OAQG;IACH,YAAY,GACV,uBAAuB,kBAAkB,EACzC,SAAQ,aAAkB,6FAQvB;IACL;;;;;;;;OAQG;IACH,iBAAiB,GACf,uBAAuB,uBAAuB,EAC9C,MAAM,oBAAoB,EAC1B,SAAQ,aAAkB,6FAUvB;IACL;;;;;;;;OAQG;IACH,WAAW,GACT,uBAAuB,iBAAiB,EACxC,SAAQ,aAAkB,6FAQvB;CACN"}
|
package/dist/Aml.js
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/*
|
|
6
|
+
* ---------------------------------------------------------------
|
|
7
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
8
|
+
* ## ##
|
|
9
|
+
* ## AUTHOR: acacode ##
|
|
10
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
11
|
+
* ---------------------------------------------------------------
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Aml = void 0;
|
|
15
|
+
const http_client_1 = require("./http-client");
|
|
16
|
+
class Aml {
|
|
17
|
+
constructor(http) {
|
|
18
|
+
/**
|
|
19
|
+
* @description Retrieves all AML rules with optional filtering and pagination.
|
|
20
|
+
*
|
|
21
|
+
* @tags AML
|
|
22
|
+
* @name GetAmlRules
|
|
23
|
+
* @summary List AML rules
|
|
24
|
+
* @request GET:/aml/rules
|
|
25
|
+
* @secure
|
|
26
|
+
*/
|
|
27
|
+
this.getAmlRules = (query, params = {}) => this.http.request({
|
|
28
|
+
path: `/aml/rules`,
|
|
29
|
+
method: "GET",
|
|
30
|
+
query: query,
|
|
31
|
+
secure: true,
|
|
32
|
+
...params,
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* @description Creates a new AML rule for transaction screening.
|
|
36
|
+
*
|
|
37
|
+
* @tags AML
|
|
38
|
+
* @name CreateAmlRule
|
|
39
|
+
* @summary Create AML rule
|
|
40
|
+
* @request POST:/aml/rules
|
|
41
|
+
* @secure
|
|
42
|
+
*/
|
|
43
|
+
this.createAmlRule = (data, params = {}) => this.http.request({
|
|
44
|
+
path: `/aml/rules`,
|
|
45
|
+
method: "POST",
|
|
46
|
+
body: data,
|
|
47
|
+
secure: true,
|
|
48
|
+
type: http_client_1.ContentType.Json,
|
|
49
|
+
format: "json",
|
|
50
|
+
...params,
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* @description Retrieves a single AML rule by its UUID.
|
|
54
|
+
*
|
|
55
|
+
* @tags AML
|
|
56
|
+
* @name GetAmlRuleById
|
|
57
|
+
* @summary Get AML rule by ID
|
|
58
|
+
* @request GET:/aml/rules/{ruleId}
|
|
59
|
+
* @secure
|
|
60
|
+
*/
|
|
61
|
+
this.getAmlRuleById = ({ ruleId, ...query }, params = {}) => this.http.request({
|
|
62
|
+
path: `/aml/rules/${ruleId}`,
|
|
63
|
+
method: "GET",
|
|
64
|
+
secure: true,
|
|
65
|
+
format: "json",
|
|
66
|
+
...params,
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* @description Updates an existing AML rule.
|
|
70
|
+
*
|
|
71
|
+
* @tags AML
|
|
72
|
+
* @name UpdateAmlRule
|
|
73
|
+
* @summary Update AML rule
|
|
74
|
+
* @request PUT:/aml/rules/{ruleId}
|
|
75
|
+
* @secure
|
|
76
|
+
*/
|
|
77
|
+
this.updateAmlRule = ({ ruleId, ...query }, data, params = {}) => this.http.request({
|
|
78
|
+
path: `/aml/rules/${ruleId}`,
|
|
79
|
+
method: "PUT",
|
|
80
|
+
body: data,
|
|
81
|
+
secure: true,
|
|
82
|
+
type: http_client_1.ContentType.Json,
|
|
83
|
+
format: "json",
|
|
84
|
+
...params,
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* @description Deletes an AML rule by ID.
|
|
88
|
+
*
|
|
89
|
+
* @tags AML
|
|
90
|
+
* @name DeleteAmlRule
|
|
91
|
+
* @summary Delete AML rule
|
|
92
|
+
* @request DELETE:/aml/rules/{ruleId}
|
|
93
|
+
* @secure
|
|
94
|
+
*/
|
|
95
|
+
this.deleteAmlRule = ({ ruleId, ...query }, params = {}) => this.http.request({
|
|
96
|
+
path: `/aml/rules/${ruleId}`,
|
|
97
|
+
method: "DELETE",
|
|
98
|
+
secure: true,
|
|
99
|
+
...params,
|
|
100
|
+
});
|
|
101
|
+
/**
|
|
102
|
+
* @description Retrieves AML alerts with optional filtering and pagination.
|
|
103
|
+
*
|
|
104
|
+
* @tags AML
|
|
105
|
+
* @name GetAlerts
|
|
106
|
+
* @summary List AML alerts
|
|
107
|
+
* @request GET:/aml/alerts
|
|
108
|
+
* @secure
|
|
109
|
+
*/
|
|
110
|
+
this.getAlerts = (query, params = {}) => this.http.request({
|
|
111
|
+
path: `/aml/alerts`,
|
|
112
|
+
method: "GET",
|
|
113
|
+
query: query,
|
|
114
|
+
secure: true,
|
|
115
|
+
...params,
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* @description Retrieves a single AML alert by its UUID.
|
|
119
|
+
*
|
|
120
|
+
* @tags AML
|
|
121
|
+
* @name GetAlertById
|
|
122
|
+
* @summary Get AML alert by ID
|
|
123
|
+
* @request GET:/aml/alerts/{alertId}
|
|
124
|
+
* @secure
|
|
125
|
+
*/
|
|
126
|
+
this.getAlertById = ({ alertId, ...query }, params = {}) => this.http.request({
|
|
127
|
+
path: `/aml/alerts/${alertId}`,
|
|
128
|
+
method: "GET",
|
|
129
|
+
secure: true,
|
|
130
|
+
format: "json",
|
|
131
|
+
...params,
|
|
132
|
+
});
|
|
133
|
+
/**
|
|
134
|
+
* @description Updates the status of an AML alert (OPEN, IN_REVIEW, ESCALATED, CLOSED).
|
|
135
|
+
*
|
|
136
|
+
* @tags AML
|
|
137
|
+
* @name UpdateAlertStatus
|
|
138
|
+
* @summary Update alert status
|
|
139
|
+
* @request PATCH:/aml/alerts/{alertId}/status
|
|
140
|
+
* @secure
|
|
141
|
+
*/
|
|
142
|
+
this.updateAlertStatus = ({ alertId, ...query }, data, params = {}) => this.http.request({
|
|
143
|
+
path: `/aml/alerts/${alertId}/status`,
|
|
144
|
+
method: "PATCH",
|
|
145
|
+
body: data,
|
|
146
|
+
secure: true,
|
|
147
|
+
type: http_client_1.ContentType.Json,
|
|
148
|
+
format: "json",
|
|
149
|
+
...params,
|
|
150
|
+
});
|
|
151
|
+
/**
|
|
152
|
+
* @description Assigns an AML alert to an admin user for review.
|
|
153
|
+
*
|
|
154
|
+
* @tags AML
|
|
155
|
+
* @name AssignAlert
|
|
156
|
+
* @summary Assign alert to admin
|
|
157
|
+
* @request PATCH:/aml/alerts/{alertId}/assign
|
|
158
|
+
* @secure
|
|
159
|
+
*/
|
|
160
|
+
this.assignAlert = ({ alertId, ...query }, params = {}) => this.http.request({
|
|
161
|
+
path: `/aml/alerts/${alertId}/assign`,
|
|
162
|
+
method: "PATCH",
|
|
163
|
+
secure: true,
|
|
164
|
+
format: "json",
|
|
165
|
+
...params,
|
|
166
|
+
});
|
|
167
|
+
this.http = http;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.Aml = Aml;
|
|
171
|
+
//# sourceMappingURL=Aml.js.map
|
package/dist/Aml.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Aml.js","sourceRoot":"","sources":["../Aml.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AA+BH,+CAAu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V,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,gBAAW,GAAG,CACZ,EAAE,OAAO,EAAE,GAAG,KAAK,EAAqB,EACxC,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoC;YACnD,IAAI,EAAE,eAAe,OAAO,SAAS;YACrC,MAAM,EAAE,OAAO;YACf,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QApLH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAoLF;AAzLD,kBAyLC"}
|
package/dist/Kyc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kyc.d.ts","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":"AAYA,OAAO,
|
|
1
|
+
{"version":3,"file":"Kyc.d.ts","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,eAAe,EAEf,eAAe,EAEf,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,GAAG,CAAC,gBAAgB,GAAG,OAAO;IACzC,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,aAAa,GAAI,SAAQ,aAAkB,0GAOtC;IACL;;;;;;;;OAQG;IACH,OAAO,GAAI,OAAO,eAAe,EAAE,SAAQ,aAAkB,oGAQxD;IACL;;;;;;;;OAQG;IACH,QAAQ,GAAI,kBAAkB,eAAe,EAAE,SAAQ,aAAkB,uGAOpE;IACL;;;;;;;;OAQG;IACH,YAAY,GACV,kBAAkB,mBAAmB,EACrC,MAAM,kBAAkB,EACxB,SAAQ,aAAkB,uGAUvB;CACN"}
|
package/dist/Kyc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kyc.js","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAYH,+CAAuE;AAEvE,MAAa,GAAG;IAGd,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,kBAAa,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CAC7C,IAAI,CAAC,IAAI,CAAC,OAAO,CAA2B;YAC1C,IAAI,EAAE,iBAAiB;YACvB,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAsB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC/D,IAAI,CAAC,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"Kyc.js","sourceRoot":"","sources":["../Kyc.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAYH,+CAAuE;AAEvE,MAAa,GAAG;IAGd,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,kBAAa,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CAC7C,IAAI,CAAC,IAAI,CAAC,OAAO,CAA2B;YAC1C,IAAI,EAAE,iBAAiB;YACvB,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAsB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC/D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoB;YACnC,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,aAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,EAAmB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC3E,IAAI,CAAC,IAAI,CAAC,OAAO,CAAsB;YACrC,IAAI,EAAE,QAAQ,EAAE,EAAE;YAClB,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,iBAAY,GAAG,CACb,EAAE,EAAE,EAAE,GAAG,KAAK,EAAuB,EACrC,IAAwB,EACxB,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAA2B;YAC1C,IAAI,EAAE,QAAQ,EAAE,SAAS;YACzB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QA7EH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CA6EF;AAlFD,kBAkFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../Notifications.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAYH,MAAa,aAAa;IAGxB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAqB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC9D,IAAI,CAAC,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../Notifications.ts"],"names":[],"mappings":";AAAA,oBAA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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExportUsersParams, FindAllParams12, FindByIdParams8, UpdatePersonStatusDto, UpdatePersonStatusParams, UpdateUserStatusDto, UpdateUserStatusParams } from "./data-contracts";
|
|
1
|
+
import { ExportUsersParams, FindAllParams12, FindByIdParams8, GetSecurityQuestionsByPhoneDto, RegenerateRecoveryCodeByPhoneDto, UpdatePersonStatusDto, UpdatePersonStatusParams, UpdateUserStatusDto, UpdateUserStatusParams } from "./data-contracts";
|
|
2
2
|
import { HttpClient, RequestParams } from "./http-client";
|
|
3
3
|
export declare class Users<SecurityDataType = unknown> {
|
|
4
4
|
http: HttpClient<SecurityDataType>;
|
|
@@ -33,6 +33,26 @@ export declare class Users<SecurityDataType = unknown> {
|
|
|
33
33
|
* @secure
|
|
34
34
|
*/
|
|
35
35
|
exportUsers: (query: ExportUsersParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* @description Returns security questions with decrypted answers for the user with the given phone. Admin only. Used during identity verification.
|
|
38
|
+
*
|
|
39
|
+
* @tags User Management
|
|
40
|
+
* @name GetSecurityQuestionsByPhone
|
|
41
|
+
* @summary Get user security questions and answers by phone
|
|
42
|
+
* @request POST:/users/security-questions/by-phone
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
getSecurityQuestionsByPhone: (data: GetSecurityQuestionsByPhoneDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").GetSecurityQuestionsByPhoneResponseDto, any, {}>>;
|
|
46
|
+
/**
|
|
47
|
+
* @description Generates a new recovery code for the user with the given phone number, invalidates the old code, and sends a push notification to the user's registered devices. Rate limited to 2 reissuances per user per 24 hours.
|
|
48
|
+
*
|
|
49
|
+
* @tags User Management
|
|
50
|
+
* @name RegenerateRecoveryCode
|
|
51
|
+
* @summary Regenerate recovery code and send via FCM
|
|
52
|
+
* @request POST:/users/regenerate-recovery-code
|
|
53
|
+
* @secure
|
|
54
|
+
*/
|
|
55
|
+
regenerateRecoveryCode: (data: RegenerateRecoveryCodeByPhoneDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").RegenerateRecoveryCodeByPhoneResponseDto, any, {}>>;
|
|
36
56
|
/**
|
|
37
57
|
* @description Get person details with address, and connected user accounts with phone numbers
|
|
38
58
|
*
|
package/dist/Users.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Users.d.ts","sourceRoot":"","sources":["../Users.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,iBAAiB,EAEjB,eAAe,EAEf,eAAe,
|
|
1
|
+
{"version":3,"file":"Users.d.ts","sourceRoot":"","sources":["../Users.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,iBAAiB,EAEjB,eAAe,EAEf,eAAe,EAEf,8BAA8B,EAE9B,gCAAgC,EAGhC,qBAAqB,EACrB,wBAAwB,EAExB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,KAAK,CAAC,gBAAgB,GAAG,OAAO;IAC3C,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,aAAa,GAAI,SAAQ,aAAkB,2GAOtC;IACL;;;;;;;;OAQG;IACH,OAAO,GAAI,OAAO,eAAe,EAAE,SAAQ,aAAkB,uGAQxD;IACL;;;;;;;;OAQG;IACH,WAAW,GAAI,OAAO,iBAAiB,EAAE,SAAQ,aAAkB,0DAO9D;IACL;;;;;;;;OAQG;IACH,2BAA2B,GACzB,MAAM,8BAA8B,EACpC,SAAQ,aAAkB,wHAUvB;IACL;;;;;;;;OAQG;IACH,sBAAsB,GACpB,MAAM,gCAAgC,EACtC,SAAQ,aAAkB,0HAUvB;IACL;;;;;;;;OAQG;IACH,QAAQ,GAAI,kBAAkB,eAAe,EAAE,SAAQ,aAAkB,iGAOpE;IACL;;;;;;;;OAQG;IACH,kBAAkB,GAChB,kBAAkB,wBAAwB,EAC1C,MAAM,qBAAqB,EAC3B,SAAQ,aAAkB,iGAUvB;IACL;;;;;;;;OAQG;IACH,gBAAgB,GACd,kBAAkB,sBAAsB,EACxC,MAAM,mBAAmB,EACzB,SAAQ,aAAkB,0DASvB;CACN"}
|
package/dist/Users.js
CHANGED
|
@@ -64,6 +64,42 @@ class Users {
|
|
|
64
64
|
secure: true,
|
|
65
65
|
...params,
|
|
66
66
|
});
|
|
67
|
+
/**
|
|
68
|
+
* @description Returns security questions with decrypted answers for the user with the given phone. Admin only. Used during identity verification.
|
|
69
|
+
*
|
|
70
|
+
* @tags User Management
|
|
71
|
+
* @name GetSecurityQuestionsByPhone
|
|
72
|
+
* @summary Get user security questions and answers by phone
|
|
73
|
+
* @request POST:/users/security-questions/by-phone
|
|
74
|
+
* @secure
|
|
75
|
+
*/
|
|
76
|
+
this.getSecurityQuestionsByPhone = (data, params = {}) => this.http.request({
|
|
77
|
+
path: `/users/security-questions/by-phone`,
|
|
78
|
+
method: "POST",
|
|
79
|
+
body: data,
|
|
80
|
+
secure: true,
|
|
81
|
+
type: http_client_1.ContentType.Json,
|
|
82
|
+
format: "json",
|
|
83
|
+
...params,
|
|
84
|
+
});
|
|
85
|
+
/**
|
|
86
|
+
* @description Generates a new recovery code for the user with the given phone number, invalidates the old code, and sends a push notification to the user's registered devices. Rate limited to 2 reissuances per user per 24 hours.
|
|
87
|
+
*
|
|
88
|
+
* @tags User Management
|
|
89
|
+
* @name RegenerateRecoveryCode
|
|
90
|
+
* @summary Regenerate recovery code and send via FCM
|
|
91
|
+
* @request POST:/users/regenerate-recovery-code
|
|
92
|
+
* @secure
|
|
93
|
+
*/
|
|
94
|
+
this.regenerateRecoveryCode = (data, params = {}) => this.http.request({
|
|
95
|
+
path: `/users/regenerate-recovery-code`,
|
|
96
|
+
method: "POST",
|
|
97
|
+
body: data,
|
|
98
|
+
secure: true,
|
|
99
|
+
type: http_client_1.ContentType.Json,
|
|
100
|
+
format: "json",
|
|
101
|
+
...params,
|
|
102
|
+
});
|
|
67
103
|
/**
|
|
68
104
|
* @description Get person details with address, and connected user accounts with phone numbers
|
|
69
105
|
*
|
package/dist/Users.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Users.js","sourceRoot":"","sources":["../Users.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;
|
|
1
|
+
{"version":3,"file":"Users.js","sourceRoot":"","sources":["../Users.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAqBH,+CAAuE;AAEvE,MAAa,KAAK;IAGhB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,kBAAa,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CAC7C,IAAI,CAAC,IAAI,CAAC,OAAO,CAA2B;YAC1C,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAsB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC/D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoB;YACnC,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,gBAAW,GAAG,CAAC,KAAwB,EAAE,SAAwB,EAAE,EAAE,EAAE,CACrE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAuB;YAC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