@didit-protocol/mcp-server 5.1.53 → 5.1.62
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 -4
- package/dist/accept.d.ts +54 -0
- package/dist/accept.d.ts.map +1 -0
- package/dist/accept.js +98 -0
- package/dist/accept.js.map +1 -0
- package/dist/audit-log.d.ts.map +1 -1
- package/dist/audit-log.js +22 -6
- package/dist/audit-log.js.map +1 -1
- package/dist/auth/refusal-log.d.ts +62 -0
- package/dist/auth/refusal-log.d.ts.map +1 -0
- package/dist/auth/refusal-log.js +131 -0
- package/dist/auth/refusal-log.js.map +1 -0
- package/dist/chatgpt-app.d.ts +1 -0
- package/dist/chatgpt-app.d.ts.map +1 -1
- package/dist/chatgpt-app.js +4 -0
- package/dist/chatgpt-app.js.map +1 -1
- package/dist/config.d.ts +17 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +62 -9
- package/dist/config.js.map +1 -1
- package/dist/connect-page.d.ts +10 -0
- package/dist/connect-page.d.ts.map +1 -0
- package/dist/connect-page.js +8 -0
- package/dist/connect-page.js.map +1 -0
- package/dist/connection-timeouts.d.ts +30 -0
- package/dist/connection-timeouts.d.ts.map +1 -0
- package/dist/connection-timeouts.js +52 -0
- package/dist/connection-timeouts.js.map +1 -0
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +95 -7
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +209 -3242
- package/dist/index.js.map +1 -1
- package/dist/paging.d.ts +3 -0
- package/dist/paging.d.ts.map +1 -1
- package/dist/paging.js +4 -1
- package/dist/paging.js.map +1 -1
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +3 -153
- package/dist/permissions.js.map +1 -1
- package/dist/release-version.d.ts +45 -0
- package/dist/release-version.d.ts.map +1 -0
- package/dist/release-version.js +90 -0
- package/dist/release-version.js.map +1 -0
- package/dist/schema/feature-config-schema.json +43 -4
- package/dist/security.d.ts.map +1 -1
- package/dist/security.js +41 -2
- package/dist/security.js.map +1 -1
- package/dist/tools/billing.d.ts +2 -0
- package/dist/tools/billing.d.ts.map +1 -1
- package/dist/tools/billing.js +124 -1
- package/dist/tools/billing.js.map +1 -1
- package/dist/tools/blocklist.d.ts +2 -0
- package/dist/tools/blocklist.d.ts.map +1 -1
- package/dist/tools/blocklist.js +94 -0
- package/dist/tools/blocklist.js.map +1 -1
- package/dist/tools/businesses.d.ts +2 -0
- package/dist/tools/businesses.d.ts.map +1 -1
- package/dist/tools/businesses.js +129 -0
- package/dist/tools/businesses.js.map +1 -1
- package/dist/tools/cases.d.ts +2 -0
- package/dist/tools/cases.d.ts.map +1 -1
- package/dist/tools/cases.js +131 -0
- package/dist/tools/cases.js.map +1 -1
- package/dist/tools/customization.d.ts +2 -0
- package/dist/tools/customization.d.ts.map +1 -1
- package/dist/tools/customization.js +43 -0
- package/dist/tools/customization.js.map +1 -1
- package/dist/tools/feature-config.d.ts +45 -0
- package/dist/tools/feature-config.d.ts.map +1 -1
- package/dist/tools/feature-config.js +100 -9
- package/dist/tools/feature-config.js.map +1 -1
- package/dist/tools/lists.d.ts +2 -0
- package/dist/tools/lists.d.ts.map +1 -1
- package/dist/tools/lists.js +193 -0
- package/dist/tools/lists.js.map +1 -1
- package/dist/tools/members.d.ts +2 -0
- package/dist/tools/members.d.ts.map +1 -1
- package/dist/tools/members.js +141 -0
- package/dist/tools/members.js.map +1 -1
- package/dist/tools/observability.d.ts +2 -0
- package/dist/tools/observability.d.ts.map +1 -1
- package/dist/tools/observability.js +77 -0
- package/dist/tools/observability.js.map +1 -1
- package/dist/tools/questionnaires.d.ts +2 -0
- package/dist/tools/questionnaires.d.ts.map +1 -1
- package/dist/tools/questionnaires.js +171 -0
- package/dist/tools/questionnaires.js.map +1 -1
- package/dist/tools/registered.d.ts +5 -0
- package/dist/tools/registered.d.ts.map +1 -0
- package/dist/tools/registered.js +30 -0
- package/dist/tools/registered.js.map +1 -0
- package/dist/tools/registry.d.ts +47 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +40 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/reports.d.ts +2 -0
- package/dist/tools/reports.d.ts.map +1 -1
- package/dist/tools/reports.js +65 -0
- package/dist/tools/reports.js.map +1 -1
- package/dist/tools/search.d.ts +2 -0
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/search.js +133 -3
- package/dist/tools/search.js.map +1 -1
- package/dist/tools/sessions.d.ts +3 -0
- package/dist/tools/sessions.d.ts.map +1 -1
- package/dist/tools/sessions.js +715 -8
- package/dist/tools/sessions.js.map +1 -1
- package/dist/tools/settings.d.ts +19 -0
- package/dist/tools/settings.d.ts.map +1 -1
- package/dist/tools/settings.js +93 -5
- package/dist/tools/settings.js.map +1 -1
- package/dist/tools/shared-schema.d.ts +27 -0
- package/dist/tools/shared-schema.d.ts.map +1 -0
- package/dist/tools/shared-schema.js +68 -0
- package/dist/tools/shared-schema.js.map +1 -0
- package/dist/tools/standalone.d.ts +6 -0
- package/dist/tools/standalone.d.ts.map +1 -1
- package/dist/tools/standalone.js +366 -0
- package/dist/tools/standalone.js.map +1 -1
- package/dist/tools/transactions.d.ts +3 -0
- package/dist/tools/transactions.d.ts.map +1 -1
- package/dist/tools/transactions.js +512 -0
- package/dist/tools/transactions.js.map +1 -1
- package/dist/tools/users.d.ts +2 -0
- package/dist/tools/users.d.ts.map +1 -1
- package/dist/tools/users.js +137 -0
- package/dist/tools/users.js.map +1 -1
- package/dist/tools/webhooks.d.ts +2 -0
- package/dist/tools/webhooks.d.ts.map +1 -1
- package/dist/tools/webhooks.js +98 -0
- package/dist/tools/webhooks.js.map +1 -1
- package/dist/tools/workflow-graph.d.ts +1 -0
- package/dist/tools/workflow-graph.d.ts.map +1 -1
- package/dist/tools/workflow-graph.js +107 -39
- package/dist/tools/workflow-graph.js.map +1 -1
- package/dist/tools/workflows.d.ts +3 -0
- package/dist/tools/workflows.d.ts.map +1 -0
- package/dist/tools/workflows.js +440 -0
- package/dist/tools/workflows.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TRANSACTION_TOOLS = exports.TRANSACTION_RULE_TOOLS = void 0;
|
|
3
4
|
exports.listTransactions = listTransactions;
|
|
4
5
|
exports.createTransaction = createTransaction;
|
|
5
6
|
exports.getTransaction = getTransaction;
|
|
@@ -14,7 +15,186 @@ exports.listTransactionRuleLibrary = listTransactionRuleLibrary;
|
|
|
14
15
|
exports.installTransactionRuleLibrary = installTransactionRuleLibrary;
|
|
15
16
|
exports.uninstallTransactionRuleLibrary = uninstallTransactionRuleLibrary;
|
|
16
17
|
const config_1 = require("../config");
|
|
18
|
+
const search_1 = require("./search");
|
|
19
|
+
const orgapp_1 = require("../orgapp");
|
|
17
20
|
const security_1 = require("../security");
|
|
21
|
+
// Transaction-monitoring (KYT) rule schemas. These mirror the engine-facing
|
|
22
|
+
// fields in service-didit-verification's TransactionRule serializers. The MCP
|
|
23
|
+
// deliberately requires an explicit aggregation window even though the backend
|
|
24
|
+
// defaults an omitted window to 1d: a silent one-day default is unsafe when an
|
|
25
|
+
// agent is authoring a velocity rule for another period.
|
|
26
|
+
const RULE_CONDITION_OPERATORS = [
|
|
27
|
+
"eq", "ne", "gt", "gte", "lt", "lte", "in", "not_in", "contains", "not_contains",
|
|
28
|
+
"contains_any", "regex", "fuzzy_match", "exists", "is_not_empty", "is_not_null",
|
|
29
|
+
"not_exists", "is_empty", "is_null",
|
|
30
|
+
];
|
|
31
|
+
const RULE_CONDITION_ITEM = {
|
|
32
|
+
type: "object",
|
|
33
|
+
properties: {
|
|
34
|
+
field: {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "Field path from the transaction field catalog, e.g. amount, currency, direction, action_type, score, " +
|
|
37
|
+
"transaction_type, subject_country, counterparty_country, subject_vendor_data, subject_device_fingerprint, " +
|
|
38
|
+
"subject_payment_method_type, travel_rule_status, travel_rule_required, tags, " +
|
|
39
|
+
"subject_days_since_previous_transaction, or custom_values.<key> (a key submitted as custom_properties). " +
|
|
40
|
+
"Country codes, travel_rule_status, and payment_method_type are normalized before comparison.",
|
|
41
|
+
},
|
|
42
|
+
operator: {
|
|
43
|
+
type: "string",
|
|
44
|
+
enum: RULE_CONDITION_OPERATORS,
|
|
45
|
+
description: "in/not_in accept a scalar or list; a scalar is treated as a one-item membership set. " +
|
|
46
|
+
"contains/not_contains are case-insensitive substring matches. contains_any requires a list of strings. " +
|
|
47
|
+
"regex safely matches value (the pattern) against the field. fuzzy_match requires score (0-100). " +
|
|
48
|
+
"gt/gte/lt/lte are false when either side is null or not comparable. exists/is_not_empty/is_not_null " +
|
|
49
|
+
"are presence aliases; not_exists/is_empty/is_null are their negation and ignore value.",
|
|
50
|
+
},
|
|
51
|
+
value: {
|
|
52
|
+
description: "Comparison value; its shape depends on operator and value_type. Omit for presence operators.",
|
|
53
|
+
},
|
|
54
|
+
value_type: {
|
|
55
|
+
type: "string",
|
|
56
|
+
enum: ["list", "field", "relative_date"],
|
|
57
|
+
description: "list: value is a List UUID and its entries become the comparison set. field: value is another field path. " +
|
|
58
|
+
"relative_date: value is resolved as a relative date expression. Omit for a literal value.",
|
|
59
|
+
},
|
|
60
|
+
score: {
|
|
61
|
+
type: "number",
|
|
62
|
+
minimum: 0,
|
|
63
|
+
maximum: 100,
|
|
64
|
+
description: "Required match threshold when operator is fuzzy_match.",
|
|
65
|
+
},
|
|
66
|
+
group_index: {
|
|
67
|
+
type: "integer",
|
|
68
|
+
description: "Setting group_index on any condition switches the entire condition list to grouped evaluation.",
|
|
69
|
+
},
|
|
70
|
+
group_logic: {
|
|
71
|
+
type: "string",
|
|
72
|
+
enum: ["AND", "OR"],
|
|
73
|
+
description: "Combines conditions within a group. Default AND.",
|
|
74
|
+
},
|
|
75
|
+
groups_logic: {
|
|
76
|
+
type: "string",
|
|
77
|
+
enum: ["AND", "OR"],
|
|
78
|
+
description: "Combines group outcomes; only the first condition's value is used. Default OR. Grouped evaluation " +
|
|
79
|
+
"overrides evaluation_mode.",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
required: ["field", "operator"],
|
|
83
|
+
};
|
|
84
|
+
const RULE_AGGREGATION_ITEM = {
|
|
85
|
+
type: "object",
|
|
86
|
+
description: "One historical velocity check. Every aggregation entry on a rule must match (AND), regardless of " +
|
|
87
|
+
"evaluation_mode. The window is required by the MCP so it cannot silently fall back to the backend's 1d default.",
|
|
88
|
+
properties: {
|
|
89
|
+
metric: {
|
|
90
|
+
type: "string",
|
|
91
|
+
enum: ["count", "sum", "max", "min", "avg", "distinct_count", "unique_count"],
|
|
92
|
+
description: "unique_count is an alias of distinct_count.",
|
|
93
|
+
},
|
|
94
|
+
field: {
|
|
95
|
+
type: "string",
|
|
96
|
+
description: "Numeric or identity field to aggregate. Defaults to amount; ignored for count.",
|
|
97
|
+
},
|
|
98
|
+
operator: {
|
|
99
|
+
type: "string",
|
|
100
|
+
enum: ["eq", "ne", "gt", "gte", "lt", "lte"],
|
|
101
|
+
description: "Comparison of the computed metric against value.",
|
|
102
|
+
},
|
|
103
|
+
value: { type: "number", description: "Threshold the computed metric is compared against." },
|
|
104
|
+
window: {
|
|
105
|
+
type: "string",
|
|
106
|
+
pattern: "^\\d+[mhd]$",
|
|
107
|
+
description: "REQUIRED. Velocity window: '<N>m' (minutes, not months), '<N>h' (hours), or '<N>d' (days).",
|
|
108
|
+
},
|
|
109
|
+
filters: {
|
|
110
|
+
type: "object",
|
|
111
|
+
description: "Restricts the same-app historical transactions counted inside the window. A value of '__current__' " +
|
|
112
|
+
"resolves to that field's value on the transaction being evaluated, e.g. " +
|
|
113
|
+
"{subject_vendor_data:'__current__'} counts the same subject only. An array means membership.",
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
required: ["metric", "operator", "value", "window"],
|
|
117
|
+
};
|
|
118
|
+
const RULE_SCOPE_SCHEMA = {
|
|
119
|
+
type: "object",
|
|
120
|
+
description: "Restricts which transactions are considered. Empty or omitted lists mean no restriction. Transaction type " +
|
|
121
|
+
"aliases such as travelRule are normalized by the engine.",
|
|
122
|
+
properties: {
|
|
123
|
+
transaction_types: {
|
|
124
|
+
type: "array",
|
|
125
|
+
items: { type: "string" },
|
|
126
|
+
description: "Examples: finance, kyc, travel_rule, user_event, audit_trail_event, gambling_bet, " +
|
|
127
|
+
"gambling_limit_change, gambling_bonus_change.",
|
|
128
|
+
},
|
|
129
|
+
directions: { type: "array", items: { type: "string", enum: ["INBOUND", "OUTBOUND"] } },
|
|
130
|
+
action_types: {
|
|
131
|
+
type: "array",
|
|
132
|
+
items: { type: "string" },
|
|
133
|
+
description: "Application-specific action types, e.g. withdrawal or deposit.",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
const RULE_ACTION_ITEM = {
|
|
138
|
+
type: "object",
|
|
139
|
+
description: "One action. All actions on a match run together; TEST-mode rules record the match but skip every action. " +
|
|
140
|
+
"Shapes: add_score {type,value:<integer>}; change_status {type,value:'IN_REVIEW'|'DECLINED'|" +
|
|
141
|
+
"'AWAITING_USER'|'APPROVED',workflow_id?}, where AWAITING_USER requires workflow_id; add_tags " +
|
|
142
|
+
"{type,tag_uuid? or tag_name?,tag_color?}; add_note {type,note}; add_to_list {type,list_id}; open_case " +
|
|
143
|
+
"{type,blueprint?,grouping?,attach_matched_transaction?}. Only the first open_case action is applied.",
|
|
144
|
+
properties: {
|
|
145
|
+
type: {
|
|
146
|
+
type: "string",
|
|
147
|
+
enum: ["add_score", "change_status", "add_tags", "add_note", "add_to_list", "open_case"],
|
|
148
|
+
},
|
|
149
|
+
value: { description: "add_score delta, or change_status target (alias: status)." },
|
|
150
|
+
workflow_id: {
|
|
151
|
+
type: "string",
|
|
152
|
+
description: "change_status only; required when value is AWAITING_USER.",
|
|
153
|
+
},
|
|
154
|
+
tag_uuid: { type: "string", description: "add_tags only." },
|
|
155
|
+
tag_name: { type: "string", description: "add_tags only; the backend uppercases it." },
|
|
156
|
+
tag_color: { type: "string", description: "add_tags only, e.g. #FF0000." },
|
|
157
|
+
note: { type: "string", description: "add_note only (alias: value)." },
|
|
158
|
+
list_id: { type: "string", description: "add_to_list only; UUID of the target List." },
|
|
159
|
+
blueprint: { type: "string", description: "open_case only; case blueprint UUID." },
|
|
160
|
+
grouping: {
|
|
161
|
+
type: "string",
|
|
162
|
+
enum: ["by_applicant", "by_rule_and_applicant"],
|
|
163
|
+
description: "open_case only.",
|
|
164
|
+
},
|
|
165
|
+
attach_matched_transaction: { type: "boolean", description: "open_case only." },
|
|
166
|
+
},
|
|
167
|
+
required: ["type"],
|
|
168
|
+
};
|
|
169
|
+
const RULE_CONDITIONS_PROP = {
|
|
170
|
+
conditions: {
|
|
171
|
+
type: "array",
|
|
172
|
+
items: RULE_CONDITION_ITEM,
|
|
173
|
+
description: "Conditions persisted on the rule, combined by evaluation_mode unless grouped.",
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
const RULE_AGGREGATION_PROP = {
|
|
177
|
+
aggregation: {
|
|
178
|
+
type: "array",
|
|
179
|
+
items: RULE_AGGREGATION_ITEM,
|
|
180
|
+
description: "Velocity checks persisted on the rule. Include them on create/update; putting them only in backtest does not save them.",
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
const RULE_ACTIONS_PROP = {
|
|
184
|
+
actions: {
|
|
185
|
+
type: "array",
|
|
186
|
+
items: RULE_ACTION_ITEM,
|
|
187
|
+
description: "Actions persisted on the rule. Include every action the user requested on create/update; backtest never saves actions.",
|
|
188
|
+
},
|
|
189
|
+
};
|
|
190
|
+
const RULE_EVALUATION_MODE_PROP = {
|
|
191
|
+
evaluation_mode: {
|
|
192
|
+
type: "string",
|
|
193
|
+
enum: ["ALL", "ANY"],
|
|
194
|
+
description: "How flat conditions combine when no condition has group_index. Default ALL. This is not TEST/ACTIVE mode.",
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
const RULE_SCOPE_PROP = { scope: RULE_SCOPE_SCHEMA };
|
|
18
198
|
// Transaction monitoring (AML) — org/app-scoped console resource.
|
|
19
199
|
async function listTransactions(params) {
|
|
20
200
|
return (0, config_1.apiRequest)((0, config_1.orgAppPath)("/transactions/"), { params });
|
|
@@ -111,4 +291,336 @@ async function uninstallTransactionRuleLibrary(data) {
|
|
|
111
291
|
requirePresetSelector(data, "uninstall");
|
|
112
292
|
return (0, config_1.apiRequest)((0, config_1.orgAppPath)("/transactions/rules/install/"), { method: "DELETE", json: data });
|
|
113
293
|
}
|
|
294
|
+
// ── The transaction rule tools (tools/registry.ts) ──────────────────────────────────
|
|
295
|
+
// Each tool declares here what index.ts and permissions.ts used to keep in their name-keyed tables.
|
|
296
|
+
// The definitions are listed where these tools always were, so the tool list does not change.
|
|
297
|
+
exports.TRANSACTION_RULE_TOOLS = [
|
|
298
|
+
{
|
|
299
|
+
def: {
|
|
300
|
+
name: "didit_transaction_rule_list",
|
|
301
|
+
description: "List transaction-monitoring rules for one app. Filter by source (PRESET or CUSTOM), category, mode " +
|
|
302
|
+
"(ACTIVE evaluates and acts, TEST evaluates and records but skips actions, DISABLED is skipped), bundle, " +
|
|
303
|
+
"or free-text search. ordering accepts one or more comma-separated fields; prefix a field with '-' to reverse it.",
|
|
304
|
+
inputSchema: {
|
|
305
|
+
type: "object",
|
|
306
|
+
properties: {
|
|
307
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
308
|
+
source: { type: "string", enum: ["PRESET", "CUSTOM"] },
|
|
309
|
+
category: { type: "string" },
|
|
310
|
+
mode: { type: "string", enum: ["ACTIVE", "DISABLED", "TEST"] },
|
|
311
|
+
bundle: { type: "string" },
|
|
312
|
+
search: { type: "string" },
|
|
313
|
+
ordering: {
|
|
314
|
+
type: "string",
|
|
315
|
+
description: "Comma-separated fields from run_count, approved_pct, reviewed_pct, declined_pct, " +
|
|
316
|
+
"latest_triggered_at, title, created_at, source. Prefix any field with '-' for descending order.",
|
|
317
|
+
},
|
|
318
|
+
limit: { type: "string" },
|
|
319
|
+
offset: { type: "string" },
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
access: "read",
|
|
324
|
+
permission: "list:transactions", // GET …/transactions/rules/ → transactions.py:754
|
|
325
|
+
run: (args) => listTransactionRules(args),
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
def: {
|
|
329
|
+
name: "didit_transaction_rule_get",
|
|
330
|
+
description: "Get one transaction-monitoring rule, including its persisted conditions, aggregation, scope, actions, and counters.",
|
|
331
|
+
inputSchema: {
|
|
332
|
+
type: "object",
|
|
333
|
+
properties: {
|
|
334
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
335
|
+
rule_uuid: { type: "string", description: "REQUIRED. Rule UUID from didit_transaction_rule_list." },
|
|
336
|
+
},
|
|
337
|
+
required: ["rule_uuid"],
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
access: "read",
|
|
341
|
+
permission: "list:transactions", // GET …/transactions/rules/{uuid}/ → transactions.py:785
|
|
342
|
+
run: (args) => getTransactionRule(args.rule_uuid),
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
def: {
|
|
346
|
+
name: "didit_transaction_rule_create",
|
|
347
|
+
description: "Create a CUSTOM transaction-monitoring rule. Include the entire requested persisted rule in this call: " +
|
|
348
|
+
"conditions, aggregation checks, and actions. Backtest accepts a hypothetical config but never attaches " +
|
|
349
|
+
"aggregation or actions to a created rule. Prefer mode:'TEST', backtest the exact saved config, then switch " +
|
|
350
|
+
"to ACTIVE only after confirming the hit rate. title is unique among non-deleted rules in the app. " +
|
|
351
|
+
"actions is REQUIRED: every outcome the user named (review, decline, approve, score, case) must appear " +
|
|
352
|
+
"there; pass [] ONLY when the user explicitly wants a monitor-only rule that does nothing on match. " +
|
|
353
|
+
"To change a library (PRESET) rule, send its definition as a copy with metadata.based_on (the library key) " +
|
|
354
|
+
"and metadata.based_on_rule_uuid.",
|
|
355
|
+
inputSchema: {
|
|
356
|
+
type: "object",
|
|
357
|
+
properties: {
|
|
358
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
359
|
+
title: { type: "string", description: "REQUIRED. Unique per application." },
|
|
360
|
+
category: { type: "string", description: "REQUIRED. Rule category, e.g. finance or aml_ctf." },
|
|
361
|
+
mode: {
|
|
362
|
+
type: "string",
|
|
363
|
+
enum: ["ACTIVE", "DISABLED", "TEST"],
|
|
364
|
+
description: "REQUIRED. Prefer TEST for a new or materially changed rule.",
|
|
365
|
+
},
|
|
366
|
+
description: { type: "string" },
|
|
367
|
+
...RULE_EVALUATION_MODE_PROP,
|
|
368
|
+
...RULE_SCOPE_PROP,
|
|
369
|
+
...RULE_CONDITIONS_PROP,
|
|
370
|
+
...RULE_AGGREGATION_PROP,
|
|
371
|
+
...RULE_ACTIONS_PROP,
|
|
372
|
+
metadata: { type: "object", description: "Free-form key/value metadata." },
|
|
373
|
+
},
|
|
374
|
+
required: ["title", "category", "mode", "actions"],
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
access: "write",
|
|
378
|
+
permission: "write:transactions", // POST …/transactions/rules/ → transactions.py:766
|
|
379
|
+
run: (args) => createTransactionRule(args),
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
def: {
|
|
383
|
+
name: "didit_transaction_rule_update",
|
|
384
|
+
description: "Partially update a transaction-monitoring rule. Send every changed persisted field in this PATCH. PRESET " +
|
|
385
|
+
"rules only allow mode changes: to change a PRESET rule's conditions, create a CUSTOM copy with " +
|
|
386
|
+
"didit_transaction_rule_create (the library rule's definition plus metadata.based_on = its library key and " +
|
|
387
|
+
"metadata.based_on_rule_uuid), then set the library rule's mode to DISABLED so a transaction does not alert " +
|
|
388
|
+
"twice. Before raising impact, backtest the exact candidate config and keep the rule " +
|
|
389
|
+
"in TEST until the result is acceptable.",
|
|
390
|
+
inputSchema: {
|
|
391
|
+
type: "object",
|
|
392
|
+
properties: {
|
|
393
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
394
|
+
rule_uuid: { type: "string", description: "REQUIRED. Rule UUID." },
|
|
395
|
+
title: { type: "string" },
|
|
396
|
+
category: { type: "string" },
|
|
397
|
+
mode: { type: "string", enum: ["ACTIVE", "DISABLED", "TEST"] },
|
|
398
|
+
description: { type: "string" },
|
|
399
|
+
...RULE_EVALUATION_MODE_PROP,
|
|
400
|
+
...RULE_SCOPE_PROP,
|
|
401
|
+
...RULE_CONDITIONS_PROP,
|
|
402
|
+
...RULE_AGGREGATION_PROP,
|
|
403
|
+
...RULE_ACTIONS_PROP,
|
|
404
|
+
metadata: { type: "object" },
|
|
405
|
+
},
|
|
406
|
+
required: ["rule_uuid"],
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
access: "write",
|
|
410
|
+
permission: "write:transactions", // PATCH …/transactions/rules/{uuid}/ → transactions.py:790
|
|
411
|
+
run: ({ rule_uuid, ...data }) => updateTransactionRule(rule_uuid, data),
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
def: {
|
|
415
|
+
name: "didit_transaction_rule_delete",
|
|
416
|
+
description: "Delete a CUSTOM transaction-monitoring rule. PRESET rules must be removed with didit_transaction_rule_uninstall.",
|
|
417
|
+
inputSchema: {
|
|
418
|
+
type: "object",
|
|
419
|
+
properties: {
|
|
420
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
421
|
+
rule_uuid: { type: "string", description: "REQUIRED. Rule UUID." },
|
|
422
|
+
},
|
|
423
|
+
required: ["rule_uuid"],
|
|
424
|
+
},
|
|
425
|
+
},
|
|
426
|
+
access: "destructive",
|
|
427
|
+
permission: "write:transactions", // DELETE …/transactions/rules/{uuid}/ → transactions.py:801
|
|
428
|
+
run: (args) => deleteTransactionRule(args.rule_uuid),
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
def: {
|
|
432
|
+
name: "didit_transaction_rule_backtest",
|
|
433
|
+
description: "Dry-run a hypothetical rule config against up to the 10,000 most recent transactions in the app. This " +
|
|
434
|
+
"writes nothing, accepts no rule_uuid, and never changes or completes a saved rule. To test a saved rule, " +
|
|
435
|
+
"read it first and pass its exact conditions, aggregation, evaluation_mode, and scope here.",
|
|
436
|
+
inputSchema: {
|
|
437
|
+
type: "object",
|
|
438
|
+
properties: {
|
|
439
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
440
|
+
...RULE_CONDITIONS_PROP,
|
|
441
|
+
...RULE_AGGREGATION_PROP,
|
|
442
|
+
...RULE_EVALUATION_MODE_PROP,
|
|
443
|
+
...RULE_SCOPE_PROP,
|
|
444
|
+
period_days: {
|
|
445
|
+
type: "integer",
|
|
446
|
+
minimum: 1,
|
|
447
|
+
maximum: 365,
|
|
448
|
+
description: "Days of history to evaluate, from 1 through 365. Default 90.",
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
},
|
|
452
|
+
},
|
|
453
|
+
// Replays a draft rule over past transactions: nothing is saved.
|
|
454
|
+
access: "read",
|
|
455
|
+
permission: "list:transactions", // POST …/transactions/rules/backtest/ → transactions.py:816
|
|
456
|
+
run: (args) => backtestTransactionRule(args),
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
def: {
|
|
460
|
+
name: "didit_transaction_rule_library_list",
|
|
461
|
+
description: "List Didit's preset rule library. Each entry includes its full config, bundle, tags, industries, and is_installed. " +
|
|
462
|
+
"Filter by bundle, category, or search; paginated.",
|
|
463
|
+
inputSchema: {
|
|
464
|
+
type: "object",
|
|
465
|
+
properties: {
|
|
466
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
467
|
+
bundle: { type: "string" },
|
|
468
|
+
category: { type: "string" },
|
|
469
|
+
search: { type: "string" },
|
|
470
|
+
limit: { type: "string" },
|
|
471
|
+
offset: { type: "string" },
|
|
472
|
+
},
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
// install / uninstall need library_keys or bundle. That is said in the descriptions and enforced
|
|
476
|
+
// by the handlers (tools/transactions.ts), never with a top-level anyOf in the input schema:
|
|
477
|
+
// model APIs refuse a tool list that has one (test/tool-schemas-portable.test.mjs).,
|
|
478
|
+
access: "read",
|
|
479
|
+
permission: "list:transactions", // GET …/transactions/rules/library/ → transactions.py:895
|
|
480
|
+
run: (args) => listTransactionRuleLibrary(args),
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
def: {
|
|
484
|
+
name: "didit_transaction_rule_install",
|
|
485
|
+
description: "Install PRESET rules by library_keys, bundle, or both. If both are supplied, only keys in that bundle are " +
|
|
486
|
+
"installed. At least one selector is required. Installed rules start ACTIVE when transaction monitoring is " +
|
|
487
|
+
"enabled for the app, otherwise DISABLED. Set TEST explicitly before relying on a newly installed rule.",
|
|
488
|
+
inputSchema: {
|
|
489
|
+
type: "object",
|
|
490
|
+
properties: {
|
|
491
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
492
|
+
library_keys: {
|
|
493
|
+
type: "array",
|
|
494
|
+
items: { type: "string" },
|
|
495
|
+
description: "Specific preset library_key values to install.",
|
|
496
|
+
},
|
|
497
|
+
bundle: { type: "string", description: "Install presets from this bundle." },
|
|
498
|
+
},
|
|
499
|
+
},
|
|
500
|
+
},
|
|
501
|
+
access: "write",
|
|
502
|
+
permission: "write:transactions", // POST …/transactions/rules/install/ → transactions.py:914
|
|
503
|
+
run: (args) => installTransactionRuleLibrary(args),
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
def: {
|
|
507
|
+
name: "didit_transaction_rule_uninstall",
|
|
508
|
+
description: "Remove installed PRESET rules by library_keys, bundle, or both. If both are supplied, only keys in that " +
|
|
509
|
+
"bundle are removed. At least one selector is required. To pause without removing, update mode to DISABLED.",
|
|
510
|
+
inputSchema: {
|
|
511
|
+
type: "object",
|
|
512
|
+
properties: {
|
|
513
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
514
|
+
library_keys: {
|
|
515
|
+
type: "array",
|
|
516
|
+
items: { type: "string" },
|
|
517
|
+
description: "Specific preset library_key values to uninstall.",
|
|
518
|
+
},
|
|
519
|
+
bundle: { type: "string", description: "Uninstall presets from this bundle." },
|
|
520
|
+
},
|
|
521
|
+
},
|
|
522
|
+
},
|
|
523
|
+
access: "destructive",
|
|
524
|
+
permission: "write:transactions", // DELETE …/transactions/rules/install/ → transactions.py:926
|
|
525
|
+
run: (args) => uninstallTransactionRuleLibrary(args),
|
|
526
|
+
},
|
|
527
|
+
];
|
|
528
|
+
// ── The transaction tools (tools/registry.ts) ──────────────────────────────────
|
|
529
|
+
// Each tool declares here what index.ts and permissions.ts used to keep in their name-keyed tables.
|
|
530
|
+
// The definitions are listed where these tools always were, so the tool list does not change.
|
|
531
|
+
exports.TRANSACTION_TOOLS = [
|
|
532
|
+
{
|
|
533
|
+
def: {
|
|
534
|
+
name: "didit_transaction_list",
|
|
535
|
+
description: "List monitored transactions for ONE app; with multiple apps (or no scope) it auto-spans all your apps. For a cross-app query prefer didit_transaction_search. Supports limit/offset pagination.",
|
|
536
|
+
inputSchema: {
|
|
537
|
+
type: "object",
|
|
538
|
+
properties: {
|
|
539
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
540
|
+
limit: { type: "string" },
|
|
541
|
+
offset: { type: "string" },
|
|
542
|
+
},
|
|
543
|
+
},
|
|
544
|
+
},
|
|
545
|
+
access: "read",
|
|
546
|
+
permission: "list:transactions", // GET …/transactions/ → transactions.py:278
|
|
547
|
+
run: (args) => listTransactions(args),
|
|
548
|
+
spanAllApplications: (args) => (0, search_1.searchTransactions)(args),
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
def: {
|
|
552
|
+
name: "didit_transaction_create",
|
|
553
|
+
description: "Submit a transaction for monitoring and rule evaluation. transaction_details and subject shapes depend on transaction_category.",
|
|
554
|
+
inputSchema: {
|
|
555
|
+
type: "object",
|
|
556
|
+
properties: {
|
|
557
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
558
|
+
transaction_id: { type: "string", description: "REQUIRED. Your unique transaction identifier" },
|
|
559
|
+
transaction_category: {
|
|
560
|
+
type: "string",
|
|
561
|
+
enum: ["finance", "kyc", "travel_rule", "user_event", "audit_trail_event", "gambling_bet", "gambling_limit_change", "gambling_bonus_change"],
|
|
562
|
+
description: "REQUIRED. Determines the expected transaction_details/subject shape",
|
|
563
|
+
},
|
|
564
|
+
transaction_details: { type: "object", description: "REQUIRED. Category-specific transaction payload" },
|
|
565
|
+
subject: { type: "object", description: "REQUIRED. The party initiating the transaction (usually a vendor_data reference)" },
|
|
566
|
+
counterparty: { type: "object", description: "The other party in the transaction" },
|
|
567
|
+
transaction_at: { type: "string", description: "ISO timestamp of the transaction" },
|
|
568
|
+
time_zone: { type: "string" },
|
|
569
|
+
custom_properties: { type: "object", description: "Custom values keyed for monitoring rules (custom_values.<key>)" },
|
|
570
|
+
travel_rule_details: { type: "object" },
|
|
571
|
+
network_snapshot: { type: "object" },
|
|
572
|
+
include_crypto_screening: { type: "boolean" },
|
|
573
|
+
},
|
|
574
|
+
required: ["transaction_id", "transaction_category", "transaction_details", "subject"],
|
|
575
|
+
},
|
|
576
|
+
},
|
|
577
|
+
access: "write",
|
|
578
|
+
permission: "create:transactions", // POST …/transactions/ → transactions.py:331
|
|
579
|
+
run: (args) => createTransaction(args),
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
def: {
|
|
583
|
+
name: "didit_transaction_get",
|
|
584
|
+
description: "Get a single monitored transaction and its rule-evaluation result.",
|
|
585
|
+
inputSchema: {
|
|
586
|
+
type: "object",
|
|
587
|
+
properties: {
|
|
588
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
589
|
+
transaction_id: { type: "string", description: "Transaction ID" },
|
|
590
|
+
},
|
|
591
|
+
required: ["transaction_id"],
|
|
592
|
+
},
|
|
593
|
+
},
|
|
594
|
+
access: "read",
|
|
595
|
+
permission: "list:transactions", // GET …/transactions/{id}/ → transactions.py:479
|
|
596
|
+
run: (args) => getTransaction(args.transaction_id),
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
def: {
|
|
600
|
+
name: "didit_transaction_screen_wallet",
|
|
601
|
+
description: "Screen a single crypto wallet address for AML risk WITHOUT creating a transaction. Returns risk_score, severity, sanctions_hit, source/destination of funds. Requires transaction monitoring to be configured (a provider key) or returns 409.",
|
|
602
|
+
inputSchema: {
|
|
603
|
+
type: "object",
|
|
604
|
+
properties: {
|
|
605
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
606
|
+
wallet_address: { type: "string", description: "REQUIRED. The crypto address to screen (must match the chain's address format)" },
|
|
607
|
+
blockchain: {
|
|
608
|
+
type: "string",
|
|
609
|
+
enum: ["BTC", "ETH", "LTC", "XRP", "BCH", "DOGE", "TRX", "SOL", "MATIC", "BNB", "USDT", "USDC"],
|
|
610
|
+
description: "REQUIRED. Asset / chain identifier",
|
|
611
|
+
},
|
|
612
|
+
direction: {
|
|
613
|
+
type: "string",
|
|
614
|
+
enum: ["inbound", "outbound", "deposit", "withdrawal"],
|
|
615
|
+
description: "Optional screening direction context",
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
required: ["wallet_address", "blockchain"],
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
access: "write",
|
|
622
|
+
permission: "create:transactions", // POST …/transactions/screen-wallet/ → transactions.py:371
|
|
623
|
+
run: (args) => screenWallet(args),
|
|
624
|
+
},
|
|
625
|
+
];
|
|
114
626
|
//# sourceMappingURL=transactions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/tools/transactions.ts"],"names":[],"mappings":";;AAKA,4CAEC;AAED,8CAEC;AAED,wCAEC;AAED,oCAEC;AAgCD,oDAEC;AAED,gDAEC;AAED,sDAGC;AAED,sDAMC;AAED,sDAEC;AAED,0DAGC;AAED,gEAEC;AAqBD,sEAGC;AAED,0EAGC;AAhHD,sCAAmD;AACnD,0CAAsD;AAEtD,kEAAkE;AAE3D,KAAK,UAAU,gBAAgB,CAAC,MAA+B;IACpE,OAAO,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,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;wBAC/F,WAAW,EAAE,oCAAoC;qBAClD;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;wBACtD,WAAW,EAAE,sCAAsC;qBACpD;iBACF;gBACD,QAAQ,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;aAC3C;SACF;QACD,MAAM,EAAE,OAAO;QACf,UAAU,EAAE,qBAAqB,EAAE,2DAA2D;QAC9F,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;KAClC;CACF,CAAC"}
|
package/dist/tools/users.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { RegisteredTool } from "./registry";
|
|
1
2
|
export declare function listUsers(params?: Record<string, string>): Promise<any>;
|
|
2
3
|
export declare function getUser(vendorData: string): Promise<any>;
|
|
3
4
|
export declare function createUser(data: Record<string, any>): Promise<any>;
|
|
4
5
|
export declare function updateUser(vendorData: string, data: Record<string, any>): Promise<any>;
|
|
5
6
|
export declare function updateUserStatus(vendorData: string, status: string): Promise<any>;
|
|
6
7
|
export declare function deleteUsers(vendorDataList?: string[], deleteAll?: unknown, confirm?: unknown): Promise<any>;
|
|
8
|
+
export declare const VENDOR_USER_TOOLS: readonly RegisteredTool[];
|
|
7
9
|
//# sourceMappingURL=users.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/tools/users.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/tools/users.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAWjD,wBAAsB,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAE7E;AAED,wBAAsB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAE9D;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAExE;AAED,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAE5F;AAED,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAKvF;AAED,wBAAsB,WAAW,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CAgBjH;AAKD,eAAO,MAAM,iBAAiB,EAAE,SAAS,cAAc,EAkItD,CAAC"}
|