@didit-protocol/mcp-server 5.1.54 → 5.1.63
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 +13 -4
- 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/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
package/dist/index.js
CHANGED
|
@@ -41,30 +41,31 @@ const index_js_1 = require("@modelcontextprotocol/sdk/server/index.js");
|
|
|
41
41
|
const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
42
42
|
const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
43
43
|
const auth = __importStar(require("./tools/auth"));
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const settings = __importStar(require("./tools/settings"));
|
|
44
|
+
const sessions_1 = require("./tools/sessions");
|
|
45
|
+
const workflows_1 = require("./tools/workflows");
|
|
47
46
|
const billing = __importStar(require("./tools/billing"));
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
47
|
+
const billing_1 = require("./tools/billing");
|
|
48
|
+
const users_1 = require("./tools/users");
|
|
49
|
+
const businesses_1 = require("./tools/businesses");
|
|
50
|
+
const transactions_1 = require("./tools/transactions");
|
|
51
|
+
const customization_1 = require("./tools/customization");
|
|
52
|
+
const webhooks_1 = require("./tools/webhooks");
|
|
53
|
+
const registered_1 = require("./tools/registered");
|
|
54
|
+
const shared_schema_1 = require("./tools/shared-schema");
|
|
55
|
+
const registry_1 = require("./tools/registry");
|
|
56
|
+
const questionnaires_1 = require("./tools/questionnaires");
|
|
57
|
+
const lists_1 = require("./tools/lists");
|
|
58
|
+
const standalone_1 = require("./tools/standalone");
|
|
56
59
|
const privileged_tools_1 = require("./privileged-tools");
|
|
57
60
|
const internal_tools_1 = require("./internal-tools");
|
|
58
|
-
const
|
|
59
|
-
const
|
|
61
|
+
const blocklist_1 = require("./tools/blocklist");
|
|
62
|
+
const cases_1 = require("./tools/cases");
|
|
60
63
|
const investigator_1 = require("./tools/investigator");
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
+
const reports_1 = require("./tools/reports");
|
|
65
|
+
const observability_1 = require("./tools/observability");
|
|
66
|
+
const members_1 = require("./tools/members");
|
|
64
67
|
const context = __importStar(require("./tools/context"));
|
|
65
|
-
const
|
|
66
|
-
const workflowGraph = __importStar(require("./tools/workflow-graph"));
|
|
67
|
-
const feature_config_schema_1 = require("./feature-config-schema");
|
|
68
|
+
const search_1 = require("./tools/search");
|
|
68
69
|
const analytics = __importStar(require("./tools/analytics"));
|
|
69
70
|
const compliance = __importStar(require("./tools/compliance"));
|
|
70
71
|
const device_login_1 = require("./device-login");
|
|
@@ -75,7 +76,6 @@ const config_1 = require("./config");
|
|
|
75
76
|
const blank_args_1 = require("./blank-args");
|
|
76
77
|
const chatgpt_app_1 = require("./chatgpt-app");
|
|
77
78
|
const orgapp_1 = require("./orgapp");
|
|
78
|
-
const paging_1 = require("./paging");
|
|
79
79
|
const security_1 = require("./security");
|
|
80
80
|
const audit_log_1 = require("./audit-log");
|
|
81
81
|
const permissions_1 = require("./permissions");
|
|
@@ -83,316 +83,11 @@ const toolsets_1 = require("./toolsets");
|
|
|
83
83
|
const discovery_1 = require("./tools/discovery");
|
|
84
84
|
const docs_1 = require("./tools/docs");
|
|
85
85
|
const guidance_1 = require("./guidance");
|
|
86
|
-
const SESSION_STATUSES = "Not Started, In Progress, In Review, Approved, Declined, Expired, Abandoned, Kyc Expired, Resubmitted, Awaiting User";
|
|
87
|
-
const LANGUAGE_CODES = [
|
|
88
|
-
"en", "ar", "bg", "bn", "bs", "ca", "cnr", "cs", "da", "de", "el", "es", "et",
|
|
89
|
-
"fa", "fi", "fr", "he", "hi", "hr", "hu", "hy", "id", "it", "ja", "ka", "kk",
|
|
90
|
-
"ko", "ky", "lt", "lv", "mk", "mn", "ms", "nl", "no", "pl", "pt-BR", "pt",
|
|
91
|
-
"ro", "ru", "sk", "sl", "so", "sq", "sr", "sv", "th", "tr", "uk", "uz",
|
|
92
|
-
"vi", "zh-CN", "zh-TW", "zh",
|
|
93
|
-
];
|
|
94
|
-
const DOCUMENT_TYPES = ["P", "DL", "ID", "RP", "SSC", "HIC", "WP", "TC", "VISA", "PSC", "BC", "OTHER"];
|
|
95
|
-
const ENTITY_STATUSES = ["ACTIVE", "FLAGGED", "BLOCKED"];
|
|
96
|
-
const LIST_ENTRY_TYPES = [
|
|
97
|
-
"face", "document", "phone", "email", "ip_address", "device_fingerprint",
|
|
98
|
-
"wallet_address", "bank_account", "user", "business", "country", "key",
|
|
99
|
-
];
|
|
100
|
-
// Real backend FormElementType (questionnaires/config/choices.py) — uppercase.
|
|
101
|
-
const FORM_ELEMENT_TYPES = [
|
|
102
|
-
"SHORT_TEXT", "LONG_TEXT", "PARAGRAPH", "DROPDOWN", "SINGLE_CHOICE", "MULTIPLE_CHOICE",
|
|
103
|
-
"NUMBER", "IMAGE", "FILE_UPLOAD", "TIME", "EMAIL", "ADDRESS", "PHONE", "COUNTRY",
|
|
104
|
-
"DATE_PICKER", "CONSENT", "SECTION_HEADER", "SEPARATOR", "HEADING", "REPEATABLE_GROUP",
|
|
105
|
-
];
|
|
106
|
-
const QUESTIONNAIRE_LANG_PROPS = {
|
|
107
|
-
languages: {
|
|
108
|
-
type: "array",
|
|
109
|
-
items: { type: "string" },
|
|
110
|
-
description: "Locales the questionnaire is offered in. Defaults to [\"en\"]; \"en\" must always be included.",
|
|
111
|
-
},
|
|
112
|
-
default_language: { type: "string", description: "Locale shown by default (must be in `languages`). Defaults to the first language." },
|
|
113
|
-
};
|
|
114
|
-
// A create with no status publishes immediately (backend QuestionnaireCreateSerializer.create),
|
|
115
|
-
// while an update with no status edits in place and never publishes — so the two tools must not
|
|
116
|
-
// advertise the same `status` wording.
|
|
117
|
-
const QUESTIONNAIRE_CREATE_STATUS_PROP = {
|
|
118
|
-
status: { type: "string", enum: ["draft", "published"], description: "Omit to publish immediately; 'draft' saves without publishing." },
|
|
119
|
-
};
|
|
120
|
-
const QUESTIONNAIRE_UPDATE_STATUS_PROP = {
|
|
121
|
-
status: {
|
|
122
|
-
type: "string",
|
|
123
|
-
enum: ["draft", "published"],
|
|
124
|
-
description: "Omit to edit in place without changing the published state; 'draft' saves without publishing; 'published' publishes (a draft goes live, a published questionnaire gets a new published version).",
|
|
125
|
-
},
|
|
126
|
-
};
|
|
127
|
-
const FORM_ELEMENTS_PROP = {
|
|
128
|
-
form_elements: {
|
|
129
|
-
type: "array",
|
|
130
|
-
description: "REQUIRED. Array of form-element objects, in the order the user answers them. Each: { element_type (uppercase, one of the allowed types), title (a plain string, or an object of locale→string e.g. {\"en\":\"Your name\"}), is_required (bool), placeholder (hint text), and for choice types a `choices` array }. A per-question hint goes in `placeholder`: `description` is only accepted on HEADING, SECTION_HEADER and PARAGRAPH elements.",
|
|
131
|
-
items: {
|
|
132
|
-
type: "object",
|
|
133
|
-
properties: {
|
|
134
|
-
element_type: { type: "string", enum: FORM_ELEMENT_TYPES, description: "Element type (UPPERCASE)" },
|
|
135
|
-
title: { type: "object", description: "Locale → label, e.g. {\"en\":\"Question text\"}" },
|
|
136
|
-
is_required: { type: "boolean" },
|
|
137
|
-
choices: { type: "array", items: { type: "object" }, description: "Options for DROPDOWN/SINGLE_CHOICE/MULTIPLE_CHOICE. Each: { value, label?, requires_text_input? }" },
|
|
138
|
-
},
|
|
139
|
-
required: ["element_type"],
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
};
|
|
143
|
-
const WORKFLOW_FEATURE_ITEM = {
|
|
144
|
-
type: "object",
|
|
145
|
-
properties: {
|
|
146
|
-
feature: { type: "string", enum: feature_config_schema_1.WORKFLOW_FEATURES, description: "Feature to run (uppercase)" },
|
|
147
|
-
config: {
|
|
148
|
-
type: "object",
|
|
149
|
-
description: (0, feature_config_schema_1.renderFeatureItemReference)() +
|
|
150
|
-
"\n\nThe MCP normalizes the allow-lists for you before it saves: documents_allowed / " +
|
|
151
|
-
"poa_documents_allowed accept a plain doc-type array ([\"PASSPORT\"] = passport-only, any " +
|
|
152
|
-
"country), doc NAMES (PASSPORT/ID/DRIVER_LICENSE/RESIDENCE_PERMIT) as well as codes " +
|
|
153
|
-
"(P/ID/DL/RP), scalar flags, and an \"ALL\" country key - all of it becomes the canonical " +
|
|
154
|
-
"{ISO3:{CODE:{enabled:1}}}. poa_languages_allowed likewise accepts a language array " +
|
|
155
|
-
"([\"es\"]) or a map ({\"es\":1}). Omit an allow-list to accept everything.",
|
|
156
|
-
},
|
|
157
|
-
label: { type: "string", description: "Optional internal node label" },
|
|
158
|
-
},
|
|
159
|
-
required: ["feature"],
|
|
160
|
-
};
|
|
161
|
-
// Graph (node/branching) workflows — the real structure the console uses (the flat `features`
|
|
162
|
-
// list above can't express branches, conditions, or Document AI). Enums mirror the backend
|
|
163
|
-
// (workflow_graph_choices.py). A graph is { start_node, nodes: { id: node } }.
|
|
164
|
-
const WORKFLOW_NODE_TYPES = ["feature", "action", "branch", "status", "webhook"];
|
|
165
|
-
const WORKFLOW_OPERATORS = [
|
|
166
|
-
"equals", "not_equals", "greater_than", "greater_than_or_equals", "less_than",
|
|
167
|
-
"less_than_or_equals", "contains", "not_contains", "in", "not_in", "is_empty",
|
|
168
|
-
"is_not_empty", "regex", "fuzzy_match",
|
|
169
|
-
];
|
|
170
|
-
const WORKFLOW_SESSION_STATUSES = ["Approved", "Declined", "In Review", "Determine"];
|
|
171
|
-
const WORKFLOW_GRAPH_SCHEMA = {
|
|
172
|
-
type: "object",
|
|
173
|
-
description:
|
|
174
|
-
// Graph STRUCTURE - node shapes, branch semantics, ordering. This is MCP and
|
|
175
|
-
// backend behaviour, not the feature-config contract, so it stays prose.
|
|
176
|
-
"Node/branching workflow graph: { start_node, nodes }. `start_node` is the id of the entry " +
|
|
177
|
-
"node (must be a feature node). `nodes` maps nodeId → node. Node shapes: " +
|
|
178
|
-
"feature = {node_type:'feature', feature:<UPPERCASE, e.g. OCR|DOCUMENT_AI>, config?:{}, next?:<id>, branches?:[]}; " +
|
|
179
|
-
"branch = {node_type:'branch', branches:[{id, logic:'and'|'or', rules:[{field, operator, value, score?}], goto:<id>}], next?:<id fallback>}; " +
|
|
180
|
-
"status (TERMINAL) = {node_type:'status', session_status:'Approved'|'Declined'|'In Review'|'Determine'}. " +
|
|
181
|
-
"Branches are evaluated in order, first match wins; an empty rules:[] is the else/catch-all (kept last). " +
|
|
182
|
-
"Operators include `fuzzy_match` (string fields only, needs a `score` 0-100). Reference a feature's outcome " +
|
|
183
|
-
"with e.g. kyc.status / document_ai.status / bank.status, and an extracted value with kyc.extra_fields.profession. " +
|
|
184
|
-
"Each rule's `node_id` (the feature node that produces its field) is auto-filled for you — only set it " +
|
|
185
|
-
"(or use the `field@node_id` form) to disambiguate when the graph has several nodes of the same feature. " +
|
|
186
|
-
// Allow-list NORMALIZATION is something this server does on the way out, so it
|
|
187
|
-
// is not in the backend contract and has to be stated here.
|
|
188
|
-
"Allow-list shorthands the MCP normalizes for you before saving: documents_allowed / poa_documents_allowed " +
|
|
189
|
-
"accept a doc-type array ([\"PASSPORT\"] = passport-only, any country), doc NAMES " +
|
|
190
|
-
"(PASSPORT/ID/DRIVER_LICENSE/RESIDENCE_PERMIT) as well as codes (P/ID/DL/RP), scalar flags, and an \"ALL\" " +
|
|
191
|
-
"country key — every form becomes the canonical {ISO3:{CODE:{enabled:1}}}. poa_languages_allowed accepts a " +
|
|
192
|
-
"language array ([\"es\"]) or a map ({\"es\":1}). Omit an allow-list to accept everything. " +
|
|
193
|
-
// The KYC/KYB rule is a graph-level constraint, not a per-key one.
|
|
194
|
-
"KYC vs KYB: a graph is EITHER a person (KYC) workflow OR a business (KYB) workflow — never both, and the choice follows WHO is verified (a company → KYB, a person → KYC). A graph using any KYB feature (KYB_REGISTRY/KYB_DOCUMENTS/KYB_KEY_PEOPLE) may only also use DOCUMENT_AI, AML, QUESTIONNAIRE, PHONE_VERIFICATION, EMAIL_VERIFICATION, IP_ANALYSIS, BANK_VERIFICATION; it must NOT include person/KYC-only features (OCR, LIVENESS, FACE_MATCH, NFC, PROOF_OF_ADDRESS, DATABASE_VALIDATION, AGE_ESTIMATION). Company paperwork (incorporation, ownership, source of funds, business address) belongs in KYB_DOCUMENTS or DOCUMENT_AI on the KYB graph — never rebuild it as a KYC workflow. To verify the people behind a company (UBOs, officers, shareholders), build a SEPARATE KYC workflow and reference it from the KYB_KEY_PEOPLE node config (kyb_ubo_verification_workflow / kyb_officer_verification_workflow / kyb_shareholder_verification_workflow). Mixing the two is rejected by validation. " +
|
|
195
|
-
"Validate with didit_workflow_validate_graph before didit_workflow_set_graph. Get valid fields/operators from didit_workflow_get_field_definitions.\n\n" +
|
|
196
|
-
// Everything a feature node's `config` accepts, generated from the backend
|
|
197
|
-
// serializers. Never hand-written: that is how DATABASE_VALIDATION came to be
|
|
198
|
-
// documented nowhere while DOCUMENT_AI had four paragraphs.
|
|
199
|
-
(0, feature_config_schema_1.renderToolSchemaReference)(),
|
|
200
|
-
properties: {
|
|
201
|
-
start_node: { type: "string", description: "Entry node id (a feature node)." },
|
|
202
|
-
nodes: { type: "object", description: "Map of nodeId → node object (see the node shapes above)." },
|
|
203
|
-
},
|
|
204
|
-
required: ["start_node", "nodes"],
|
|
205
|
-
};
|
|
206
|
-
// Transaction-monitoring (KYT) rule schemas. These mirror the engine-facing
|
|
207
|
-
// fields in service-didit-verification's TransactionRule serializers. The MCP
|
|
208
|
-
// deliberately requires an explicit aggregation window even though the backend
|
|
209
|
-
// defaults an omitted window to 1d: a silent one-day default is unsafe when an
|
|
210
|
-
// agent is authoring a velocity rule for another period.
|
|
211
|
-
const RULE_CONDITION_OPERATORS = [
|
|
212
|
-
"eq", "ne", "gt", "gte", "lt", "lte", "in", "not_in", "contains", "not_contains",
|
|
213
|
-
"contains_any", "regex", "fuzzy_match", "exists", "is_not_empty", "is_not_null",
|
|
214
|
-
"not_exists", "is_empty", "is_null",
|
|
215
|
-
];
|
|
216
|
-
const RULE_CONDITION_ITEM = {
|
|
217
|
-
type: "object",
|
|
218
|
-
properties: {
|
|
219
|
-
field: {
|
|
220
|
-
type: "string",
|
|
221
|
-
description: "Field path from the transaction field catalog, e.g. amount, currency, direction, action_type, score, " +
|
|
222
|
-
"transaction_type, subject_country, counterparty_country, subject_vendor_data, subject_device_fingerprint, " +
|
|
223
|
-
"subject_payment_method_type, travel_rule_status, travel_rule_required, tags, " +
|
|
224
|
-
"subject_days_since_previous_transaction, or custom_values.<key> (a key submitted as custom_properties). " +
|
|
225
|
-
"Country codes, travel_rule_status, and payment_method_type are normalized before comparison.",
|
|
226
|
-
},
|
|
227
|
-
operator: {
|
|
228
|
-
type: "string",
|
|
229
|
-
enum: RULE_CONDITION_OPERATORS,
|
|
230
|
-
description: "in/not_in accept a scalar or list; a scalar is treated as a one-item membership set. " +
|
|
231
|
-
"contains/not_contains are case-insensitive substring matches. contains_any requires a list of strings. " +
|
|
232
|
-
"regex safely matches value (the pattern) against the field. fuzzy_match requires score (0-100). " +
|
|
233
|
-
"gt/gte/lt/lte are false when either side is null or not comparable. exists/is_not_empty/is_not_null " +
|
|
234
|
-
"are presence aliases; not_exists/is_empty/is_null are their negation and ignore value.",
|
|
235
|
-
},
|
|
236
|
-
value: {
|
|
237
|
-
description: "Comparison value; its shape depends on operator and value_type. Omit for presence operators.",
|
|
238
|
-
},
|
|
239
|
-
value_type: {
|
|
240
|
-
type: "string",
|
|
241
|
-
enum: ["list", "field", "relative_date"],
|
|
242
|
-
description: "list: value is a List UUID and its entries become the comparison set. field: value is another field path. " +
|
|
243
|
-
"relative_date: value is resolved as a relative date expression. Omit for a literal value.",
|
|
244
|
-
},
|
|
245
|
-
score: {
|
|
246
|
-
type: "number",
|
|
247
|
-
minimum: 0,
|
|
248
|
-
maximum: 100,
|
|
249
|
-
description: "Required match threshold when operator is fuzzy_match.",
|
|
250
|
-
},
|
|
251
|
-
group_index: {
|
|
252
|
-
type: "integer",
|
|
253
|
-
description: "Setting group_index on any condition switches the entire condition list to grouped evaluation.",
|
|
254
|
-
},
|
|
255
|
-
group_logic: {
|
|
256
|
-
type: "string",
|
|
257
|
-
enum: ["AND", "OR"],
|
|
258
|
-
description: "Combines conditions within a group. Default AND.",
|
|
259
|
-
},
|
|
260
|
-
groups_logic: {
|
|
261
|
-
type: "string",
|
|
262
|
-
enum: ["AND", "OR"],
|
|
263
|
-
description: "Combines group outcomes; only the first condition's value is used. Default OR. Grouped evaluation " +
|
|
264
|
-
"overrides evaluation_mode.",
|
|
265
|
-
},
|
|
266
|
-
},
|
|
267
|
-
required: ["field", "operator"],
|
|
268
|
-
};
|
|
269
|
-
const RULE_AGGREGATION_ITEM = {
|
|
270
|
-
type: "object",
|
|
271
|
-
description: "One historical velocity check. Every aggregation entry on a rule must match (AND), regardless of " +
|
|
272
|
-
"evaluation_mode. The window is required by the MCP so it cannot silently fall back to the backend's 1d default.",
|
|
273
|
-
properties: {
|
|
274
|
-
metric: {
|
|
275
|
-
type: "string",
|
|
276
|
-
enum: ["count", "sum", "max", "min", "avg", "distinct_count", "unique_count"],
|
|
277
|
-
description: "unique_count is an alias of distinct_count.",
|
|
278
|
-
},
|
|
279
|
-
field: {
|
|
280
|
-
type: "string",
|
|
281
|
-
description: "Numeric or identity field to aggregate. Defaults to amount; ignored for count.",
|
|
282
|
-
},
|
|
283
|
-
operator: {
|
|
284
|
-
type: "string",
|
|
285
|
-
enum: ["eq", "ne", "gt", "gte", "lt", "lte"],
|
|
286
|
-
description: "Comparison of the computed metric against value.",
|
|
287
|
-
},
|
|
288
|
-
value: { type: "number", description: "Threshold the computed metric is compared against." },
|
|
289
|
-
window: {
|
|
290
|
-
type: "string",
|
|
291
|
-
pattern: "^\\d+[mhd]$",
|
|
292
|
-
description: "REQUIRED. Velocity window: '<N>m' (minutes, not months), '<N>h' (hours), or '<N>d' (days).",
|
|
293
|
-
},
|
|
294
|
-
filters: {
|
|
295
|
-
type: "object",
|
|
296
|
-
description: "Restricts the same-app historical transactions counted inside the window. A value of '__current__' " +
|
|
297
|
-
"resolves to that field's value on the transaction being evaluated, e.g. " +
|
|
298
|
-
"{subject_vendor_data:'__current__'} counts the same subject only. An array means membership.",
|
|
299
|
-
},
|
|
300
|
-
},
|
|
301
|
-
required: ["metric", "operator", "value", "window"],
|
|
302
|
-
};
|
|
303
|
-
const RULE_SCOPE_SCHEMA = {
|
|
304
|
-
type: "object",
|
|
305
|
-
description: "Restricts which transactions are considered. Empty or omitted lists mean no restriction. Transaction type " +
|
|
306
|
-
"aliases such as travelRule are normalized by the engine.",
|
|
307
|
-
properties: {
|
|
308
|
-
transaction_types: {
|
|
309
|
-
type: "array",
|
|
310
|
-
items: { type: "string" },
|
|
311
|
-
description: "Examples: finance, kyc, travel_rule, user_event, audit_trail_event, gambling_bet, " +
|
|
312
|
-
"gambling_limit_change, gambling_bonus_change.",
|
|
313
|
-
},
|
|
314
|
-
directions: { type: "array", items: { type: "string", enum: ["INBOUND", "OUTBOUND"] } },
|
|
315
|
-
action_types: {
|
|
316
|
-
type: "array",
|
|
317
|
-
items: { type: "string" },
|
|
318
|
-
description: "Application-specific action types, e.g. withdrawal or deposit.",
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
};
|
|
322
|
-
const RULE_ACTION_ITEM = {
|
|
323
|
-
type: "object",
|
|
324
|
-
description: "One action. All actions on a match run together; TEST-mode rules record the match but skip every action. " +
|
|
325
|
-
"Shapes: add_score {type,value:<integer>}; change_status {type,value:'IN_REVIEW'|'DECLINED'|" +
|
|
326
|
-
"'AWAITING_USER'|'APPROVED',workflow_id?}, where AWAITING_USER requires workflow_id; add_tags " +
|
|
327
|
-
"{type,tag_uuid? or tag_name?,tag_color?}; add_note {type,note}; add_to_list {type,list_id}; open_case " +
|
|
328
|
-
"{type,blueprint?,grouping?,attach_matched_transaction?}. Only the first open_case action is applied.",
|
|
329
|
-
properties: {
|
|
330
|
-
type: {
|
|
331
|
-
type: "string",
|
|
332
|
-
enum: ["add_score", "change_status", "add_tags", "add_note", "add_to_list", "open_case"],
|
|
333
|
-
},
|
|
334
|
-
value: { description: "add_score delta, or change_status target (alias: status)." },
|
|
335
|
-
workflow_id: {
|
|
336
|
-
type: "string",
|
|
337
|
-
description: "change_status only; required when value is AWAITING_USER.",
|
|
338
|
-
},
|
|
339
|
-
tag_uuid: { type: "string", description: "add_tags only." },
|
|
340
|
-
tag_name: { type: "string", description: "add_tags only; the backend uppercases it." },
|
|
341
|
-
tag_color: { type: "string", description: "add_tags only, e.g. #FF0000." },
|
|
342
|
-
note: { type: "string", description: "add_note only (alias: value)." },
|
|
343
|
-
list_id: { type: "string", description: "add_to_list only; UUID of the target List." },
|
|
344
|
-
blueprint: { type: "string", description: "open_case only; case blueprint UUID." },
|
|
345
|
-
grouping: {
|
|
346
|
-
type: "string",
|
|
347
|
-
enum: ["by_applicant", "by_rule_and_applicant"],
|
|
348
|
-
description: "open_case only.",
|
|
349
|
-
},
|
|
350
|
-
attach_matched_transaction: { type: "boolean", description: "open_case only." },
|
|
351
|
-
},
|
|
352
|
-
required: ["type"],
|
|
353
|
-
};
|
|
354
|
-
const RULE_CONDITIONS_PROP = {
|
|
355
|
-
conditions: {
|
|
356
|
-
type: "array",
|
|
357
|
-
items: RULE_CONDITION_ITEM,
|
|
358
|
-
description: "Conditions persisted on the rule, combined by evaluation_mode unless grouped.",
|
|
359
|
-
},
|
|
360
|
-
};
|
|
361
|
-
const RULE_AGGREGATION_PROP = {
|
|
362
|
-
aggregation: {
|
|
363
|
-
type: "array",
|
|
364
|
-
items: RULE_AGGREGATION_ITEM,
|
|
365
|
-
description: "Velocity checks persisted on the rule. Include them on create/update; putting them only in backtest does not save them.",
|
|
366
|
-
},
|
|
367
|
-
};
|
|
368
|
-
const RULE_ACTIONS_PROP = {
|
|
369
|
-
actions: {
|
|
370
|
-
type: "array",
|
|
371
|
-
items: RULE_ACTION_ITEM,
|
|
372
|
-
description: "Actions persisted on the rule. Include every action the user requested on create/update; backtest never saves actions.",
|
|
373
|
-
},
|
|
374
|
-
};
|
|
375
|
-
const RULE_EVALUATION_MODE_PROP = {
|
|
376
|
-
evaluation_mode: {
|
|
377
|
-
type: "string",
|
|
378
|
-
enum: ["ALL", "ANY"],
|
|
379
|
-
description: "How flat conditions combine when no condition has group_index. Default ALL. This is not TEST/ACTIVE mode.",
|
|
380
|
-
},
|
|
381
|
-
};
|
|
382
|
-
const RULE_SCOPE_PROP = { scope: RULE_SCOPE_SCHEMA };
|
|
383
|
-
// Relative time-window shortcut for analytics + search tools — saves the model computing
|
|
384
|
-
// ISO dates. `last_n_days: 15` ⇒ date_from = today−15, date_to = today (explicit dates win).
|
|
385
|
-
const LAST_N_DAYS_PROP = {
|
|
386
|
-
last_n_days: {
|
|
387
|
-
type: "number",
|
|
388
|
-
description: "Relative window: include only the last N days (sets date_from/date_to). Alternative to passing date_from/date_to.",
|
|
389
|
-
},
|
|
390
|
-
};
|
|
391
86
|
// Tool names are domain-first (`didit_<domain>_<action>`). The name prefix decides both the
|
|
392
87
|
// toolset a tool loads with and the group a connector's permission screen shows it under
|
|
393
88
|
// (`_meta["anthropic/toolGroup"]`): see toolsets.ts.
|
|
394
89
|
// Tools that don't operate on an org/app scope — never auto-resolve a default for them.
|
|
395
|
-
const
|
|
90
|
+
const SCOPE_AGNOSTIC_NAMED = [
|
|
396
91
|
"didit_account_register",
|
|
397
92
|
"didit_account_verify_email",
|
|
398
93
|
"didit_account_resend_otp",
|
|
@@ -402,12 +97,15 @@ const SCOPE_AGNOSTIC_TOOLS = new Set([
|
|
|
402
97
|
"didit_account_device_login_poll",
|
|
403
98
|
"didit_org_list",
|
|
404
99
|
"didit_context_get",
|
|
405
|
-
// Public pricing catalog: no org/app scope to resolve.
|
|
406
|
-
"didit_workflow_get_kyb_registry_catalog",
|
|
407
100
|
// The catalog and the documentation are the same whatever the organization.
|
|
408
101
|
discovery_1.TOOL_SEARCH,
|
|
409
102
|
discovery_1.TOOL_DESCRIBE,
|
|
410
103
|
docs_1.DOCS_SEARCH_TOOL,
|
|
104
|
+
];
|
|
105
|
+
const SCOPE_AGNOSTIC_TOOLS = new Set([
|
|
106
|
+
...SCOPE_AGNOSTIC_NAMED,
|
|
107
|
+
// A registered tool declares it (tools/registry.ts).
|
|
108
|
+
...[...registered_1.REGISTERED_TOOLS.values()].filter((tool) => tool.scopeAgnostic).map((tool) => tool.def.name),
|
|
411
109
|
]);
|
|
412
110
|
// Account bootstrap tools accept passwords/OTP codes and are only for unauthenticated
|
|
413
111
|
// stdio setup. Hosted (remote) servers exclude them for EVERY caller - a remote connector
|
|
@@ -468,29 +166,35 @@ async function ensureScopeDefaults(name) {
|
|
|
468
166
|
// actually owns the resolved app rather than leaving the org for the resolver to fail on.
|
|
469
167
|
store.organizationId = candidates[0].orgId;
|
|
470
168
|
}
|
|
169
|
+
else if (candidates.length > 0) {
|
|
170
|
+
// Several applications (or one, with an organization that could not be listed): the call
|
|
171
|
+
// is not guessed for. The resolver's error names these, so the retry needs no lookup.
|
|
172
|
+
store.scopeChoices = scoped.flatMap((o) => o.apps.map((a) => ({
|
|
173
|
+
organizationId: o.orgId,
|
|
174
|
+
organizationName: o.orgName,
|
|
175
|
+
applicationId: a.appId,
|
|
176
|
+
applicationName: a.appName,
|
|
177
|
+
...(a.mode ? { mode: a.mode } : {}),
|
|
178
|
+
})));
|
|
179
|
+
store.scopeChoicesPartial = blind;
|
|
180
|
+
}
|
|
471
181
|
}
|
|
472
182
|
}
|
|
473
183
|
catch {
|
|
474
184
|
/* discovery failed — let the normal resolver surface the actionable error */
|
|
475
185
|
}
|
|
476
186
|
}
|
|
477
|
-
// Per-app list tools that have a cross-org/app aggregate sibling
|
|
478
|
-
// invokes one of these without a resolvable scope
|
|
479
|
-
// required". Instead we transparently span every app
|
|
480
|
-
// newest-first, each row attributed to its org/app), so a
|
|
481
|
-
// multi-app user succeeds on the FIRST call rather than erroring
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
didit_transaction_list: search.searchTransactions,
|
|
485
|
-
didit_case_list: search.searchCases,
|
|
486
|
-
didit_vendor_user_list: search.searchVendorUsers,
|
|
487
|
-
didit_vendor_business_list: search.searchVendorBusinesses,
|
|
488
|
-
didit_workflow_list: search.searchWorkflows,
|
|
489
|
-
};
|
|
187
|
+
// Per-app list tools that have a cross-org/app aggregate sibling declare it (spanAllApplications,
|
|
188
|
+
// tools/registry.ts). A multi-tenant caller who invokes one of these without a resolvable scope
|
|
189
|
+
// would otherwise hit "organization_id is required". Instead we transparently span every app
|
|
190
|
+
// (identical to the matching *_search tool: newest-first, each row attributed to its org/app), so a
|
|
191
|
+
// general "list my sessions" by a multi-app user succeeds on the FIRST call rather than erroring
|
|
192
|
+
// then recovering.
|
|
193
|
+
//
|
|
490
194
|
// The aggregate to run in place of a per-app list when scope is unresolved; undefined when the
|
|
491
195
|
// caller is fully scoped (org+app present) and the real single-app list should run.
|
|
492
196
|
function aggregateFallbackFor(name) {
|
|
493
|
-
const fn =
|
|
197
|
+
const fn = registered_1.REGISTERED_TOOLS.get(name)?.spanAllApplications;
|
|
494
198
|
if (!fn)
|
|
495
199
|
return undefined;
|
|
496
200
|
const store = config_1.requestContext.getStore();
|
|
@@ -519,17 +223,7 @@ function toolTitle(name) {
|
|
|
519
223
|
// name: revealing a live secret, moving money, consequential decisions, and overwrites.
|
|
520
224
|
const EXPLICIT_DESTRUCTIVE_TOOLS = new Set([
|
|
521
225
|
"didit_org_reveal_application_api_key",
|
|
522
|
-
// Issues a credential; clients ask before running it.
|
|
523
|
-
"didit_org_create_api_key",
|
|
524
226
|
"didit_org_top_up",
|
|
525
|
-
"didit_case_manage",
|
|
526
|
-
"didit_session_update_status",
|
|
527
|
-
"didit_questionnaire_update",
|
|
528
|
-
"didit_webhook_update",
|
|
529
|
-
"didit_workflow_update",
|
|
530
|
-
"didit_workflow_edit_graph",
|
|
531
|
-
"didit_workflow_set_graph",
|
|
532
|
-
"didit_workflow_publish",
|
|
533
227
|
// Investigator decisions and policy answers: human decisions behind confirm:true.
|
|
534
228
|
...investigator_1.INVESTIGATOR_DECISION_TOOLS,
|
|
535
229
|
...internal_tools_1.INTERNAL_DESTRUCTIVE_TOOLS,
|
|
@@ -542,28 +236,12 @@ const EXPLICIT_DESTRUCTIVE_TOOLS = new Set([
|
|
|
542
236
|
const EXPLICIT_OPEN_WORLD_TOOLS = new Set([
|
|
543
237
|
"didit_account_register",
|
|
544
238
|
"didit_account_resend_otp",
|
|
545
|
-
"didit_org_invite_member",
|
|
546
239
|
"didit_org_top_up",
|
|
547
|
-
"didit_session_share",
|
|
548
|
-
"didit_session_update_status",
|
|
549
240
|
...internal_tools_1.INTERNAL_OPEN_WORLD_TOOLS,
|
|
550
|
-
"didit_verify_email_send",
|
|
551
|
-
"didit_verify_phone_send",
|
|
552
|
-
"didit_session_check_import_provider",
|
|
553
|
-
"didit_webhook_create",
|
|
554
|
-
"didit_webhook_update",
|
|
555
241
|
]);
|
|
556
242
|
// These tools have names that include read-like tokens, but their handlers
|
|
557
243
|
// create server-side artifacts/jobs rather than strictly retrieving data.
|
|
558
244
|
const EXPLICIT_WRITE_TOOLS = new Set([
|
|
559
|
-
"didit_report_export",
|
|
560
|
-
"didit_session_generate_pdf",
|
|
561
|
-
"didit_session_get_signature_evidence",
|
|
562
|
-
"didit_session_get_signature_field_image",
|
|
563
|
-
"didit_session_get_signed_document",
|
|
564
|
-
"didit_session_manage_import",
|
|
565
|
-
"didit_session_validate_signatures",
|
|
566
|
-
"didit_session_webhook_resend",
|
|
567
245
|
...investigator_1.INVESTIGATOR_WRITE_TOOLS,
|
|
568
246
|
]);
|
|
569
247
|
// The inverse: tools whose names carry no read-like token but whose handlers never
|
|
@@ -576,12 +254,6 @@ const EXPLICIT_READ_TOOLS = new Set([
|
|
|
576
254
|
...privileged_tools_1.PRIVILEGED_READ_TOOLS,
|
|
577
255
|
// build_graph computes a graph from a plain feature spec, persisting nothing.
|
|
578
256
|
"didit_workflow_build_graph",
|
|
579
|
-
// The per-session webhook delivery log (its only verb-like token is "webhooks").
|
|
580
|
-
"didit_session_webhooks",
|
|
581
|
-
// Folds a session's decision payload and its workflow graph into the outcome trace.
|
|
582
|
-
"didit_session_explain_decision",
|
|
583
|
-
// Quotes a plan change (a GET): nothing is bought, the person confirms in the console.
|
|
584
|
-
"didit_billing_quote_plan",
|
|
585
257
|
// Discovery (tools/discovery.ts): describe reads the catalog, call_read refuses anything that writes.
|
|
586
258
|
discovery_1.TOOL_DESCRIBE,
|
|
587
259
|
discovery_1.TOOL_CALL_READ,
|
|
@@ -596,10 +268,9 @@ const EXPLICIT_READ_TOOLS = new Set([
|
|
|
596
268
|
* server is listed there again. So an entry that names no tool is an error, not dead weight.
|
|
597
269
|
*/
|
|
598
270
|
exports.NAME_KEYED_TABLES = {
|
|
599
|
-
SCOPE_AGNOSTIC_TOOLS:
|
|
271
|
+
SCOPE_AGNOSTIC_TOOLS: SCOPE_AGNOSTIC_NAMED,
|
|
600
272
|
ACCOUNT_BOOTSTRAP_TOOLS: [...ACCOUNT_BOOTSTRAP_TOOLS],
|
|
601
273
|
HOSTED_APP_EXCLUDED_TOOLS: [...HOSTED_APP_EXCLUDED_TOOLS],
|
|
602
|
-
AGGREGATE_FALLBACK: Object.keys(AGGREGATE_FALLBACK),
|
|
603
274
|
EXPLICIT_DESTRUCTIVE_TOOLS: [...EXPLICIT_DESTRUCTIVE_TOOLS],
|
|
604
275
|
EXPLICIT_OPEN_WORLD_TOOLS: [...EXPLICIT_OPEN_WORLD_TOOLS],
|
|
605
276
|
EXPLICIT_WRITE_TOOLS: [...EXPLICIT_WRITE_TOOLS],
|
|
@@ -608,6 +279,10 @@ exports.NAME_KEYED_TABLES = {
|
|
|
608
279
|
function annotationsFor(name) {
|
|
609
280
|
const tokens = name.replace(/^didit_/, "").split("_");
|
|
610
281
|
const title = toolTitle(name);
|
|
282
|
+
// A registered tool says what it does itself (tools/registry.ts); the tables below hold the rest.
|
|
283
|
+
const registered = registered_1.REGISTERED_TOOLS.get(name);
|
|
284
|
+
if (registered)
|
|
285
|
+
return (0, registry_1.registeredAnnotations)(registered, title);
|
|
611
286
|
const openWorldHint = EXPLICIT_OPEN_WORLD_TOOLS.has(name);
|
|
612
287
|
if (EXPLICIT_DESTRUCTIVE_TOOLS.has(name) || tokens.some((t) => DESTRUCTIVE_VERB_TOKENS.has(t))) {
|
|
613
288
|
return { title, readOnlyHint: false, openWorldHint, destructiveHint: true };
|
|
@@ -689,7 +364,7 @@ const GRAPH_MANUAL_TOOL = "didit_workflow_set_graph";
|
|
|
689
364
|
// Only the text goes: the shape itself (start_node, nodes, both required) costs 250 bytes and is
|
|
690
365
|
// what lets a client check a graph before it makes the call.
|
|
691
366
|
const GRAPH_MANUAL_POINTER = {
|
|
692
|
-
...WORKFLOW_GRAPH_SCHEMA,
|
|
367
|
+
...shared_schema_1.WORKFLOW_GRAPH_SCHEMA,
|
|
693
368
|
description: `The graph to check, { start_node, nodes }: exactly the object the \`graph\` argument of ${GRAPH_MANUAL_TOOL} ` +
|
|
694
369
|
"describes (node shapes, branches, operators, every feature's config keys, allow-list shorthands). Read that " +
|
|
695
370
|
"description to build the graph, check it here, then save it there.",
|
|
@@ -700,7 +375,7 @@ function shareGraphManual(tools) {
|
|
|
700
375
|
return tools.map((tool) => {
|
|
701
376
|
const properties = tool.inputSchema?.properties;
|
|
702
377
|
// Identity, not name: a tool that words its own `graph` argument keeps it.
|
|
703
|
-
if (tool.name === GRAPH_MANUAL_TOOL || properties?.graph !== WORKFLOW_GRAPH_SCHEMA)
|
|
378
|
+
if (tool.name === GRAPH_MANUAL_TOOL || properties?.graph !== shared_schema_1.WORKFLOW_GRAPH_SCHEMA)
|
|
704
379
|
return tool;
|
|
705
380
|
return { ...tool, inputSchema: { ...tool.inputSchema, properties: { ...properties, graph: GRAPH_MANUAL_POINTER } } };
|
|
706
381
|
});
|
|
@@ -874,2385 +549,192 @@ function createServer(options = {}) {
|
|
|
874
549
|
},
|
|
875
550
|
{
|
|
876
551
|
name: "didit_org_get_application",
|
|
877
|
-
description: "Get application details (client_id etc.). The api_key is REDACTED — a masked preview + api_key_set flag are returned, never the raw secret.",
|
|
878
|
-
inputSchema: {
|
|
879
|
-
type: "object",
|
|
880
|
-
properties: {
|
|
881
|
-
organization_id: { type: "string" },
|
|
882
|
-
application_id: { type: "string" },
|
|
883
|
-
...stdioOnlyAccessToken("Only for stdio mode. Omit in hosted OAuth mode."),
|
|
884
|
-
},
|
|
885
|
-
required: ["organization_id", "application_id"],
|
|
886
|
-
},
|
|
887
|
-
},
|
|
888
|
-
{
|
|
889
|
-
name: "didit_org_reveal_application_api_key",
|
|
890
|
-
description: "Return the RAW, un-redacted api_key for an application. This exposes a LIVE SECRET — only call when a human explicitly needs the key to integrate; never log or persist it. Requires confirm:true AND an explicit organization_id + application_id (no defaults).",
|
|
891
|
-
inputSchema: {
|
|
892
|
-
type: "object",
|
|
893
|
-
properties: {
|
|
894
|
-
organization_id: { type: "string", description: "REQUIRED. No env/context default for this raw-secret tool." },
|
|
895
|
-
application_id: { type: "string", description: "REQUIRED. No env/context default for this raw-secret tool." },
|
|
896
|
-
confirm: { type: "boolean", description: "REQUIRED. Must be true to expose the raw key. Only set after explicit user confirmation of this exact action." },
|
|
897
|
-
...stdioOnlyAccessToken("Only for stdio mode."),
|
|
898
|
-
},
|
|
899
|
-
required: ["organization_id", "application_id", "confirm"],
|
|
900
|
-
},
|
|
901
|
-
},
|
|
902
|
-
// ── Context + cross-org/app aggregate search ────────────────────────
|
|
903
|
-
{
|
|
904
|
-
name: "didit_context_get",
|
|
905
|
-
description: "Return ALL organizations you can access with their applications nested, plus the default org/app when unambiguous — in ONE call (replaces didit_org_list + per-org didit_org_list_applications). Call this first to discover ids.",
|
|
906
|
-
inputSchema: { type: "object", properties: {} },
|
|
907
|
-
},
|
|
908
|
-
{
|
|
909
|
-
name: "didit_session_search",
|
|
910
|
-
description: `Search verification sessions ACROSS ALL your apps and organizations in a single call — the efficient way to answer "the last 5 in-review sessions across my apps". Aggregates server-side and returns newest matches first, each tagged with its organization/application. Omit organization_id/application_id to span everything; pass them to narrow scope. status accepts: ${SESSION_STATUSES}.`,
|
|
911
|
-
inputSchema: {
|
|
912
|
-
type: "object",
|
|
913
|
-
properties: {
|
|
914
|
-
status: { type: "string", description: `Filter by session status (${SESSION_STATUSES}). Several statuses separated by commas match any of them, e.g. "Not Started,In Progress".` },
|
|
915
|
-
session_kind: { type: "string", enum: ["user", "business", "all"], description: "KYC (user), KYB (business), or all" },
|
|
916
|
-
workflow_id: { type: "string", description: "Filter by workflow UUID" },
|
|
917
|
-
search: { type: "string", description: "Free-text search" },
|
|
918
|
-
date_from: { type: "string", description: "ISO date lower bound" },
|
|
919
|
-
date_to: { type: "string", description: "ISO date upper bound" },
|
|
920
|
-
...LAST_N_DAYS_PROP,
|
|
921
|
-
limit: { type: "number", description: "Max results after merging across apps (default 20, max 200)" },
|
|
922
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
923
|
-
},
|
|
924
|
-
},
|
|
925
|
-
},
|
|
926
|
-
{
|
|
927
|
-
name: "didit_transaction_search",
|
|
928
|
-
description: "Search transaction-monitoring (AML) transactions ACROSS ALL your apps and organizations in one call. Omit organization_id/application_id to span everything; pass them to narrow. Returns newest first, each tagged with its org/app.",
|
|
929
|
-
inputSchema: {
|
|
930
|
-
type: "object",
|
|
931
|
-
properties: {
|
|
932
|
-
status: { type: "string", description: "Filter by transaction status" },
|
|
933
|
-
search: { type: "string", description: "Free-text search" },
|
|
934
|
-
date_from: { type: "string", description: "ISO date lower bound" },
|
|
935
|
-
date_to: { type: "string", description: "ISO date upper bound" },
|
|
936
|
-
...LAST_N_DAYS_PROP,
|
|
937
|
-
limit: { type: "number", description: "Max results after merging (default 20, max 200)" },
|
|
938
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
939
|
-
},
|
|
940
|
-
},
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
name: "didit_case_search",
|
|
944
|
-
description: "Search case-management cases ACROSS ALL your apps and organizations in one call. Omit organization_id/application_id to span everything; pass them to narrow. Returns newest first, each tagged with its org/app.",
|
|
945
|
-
inputSchema: {
|
|
946
|
-
type: "object",
|
|
947
|
-
properties: {
|
|
948
|
-
status: { type: "string", description: "Filter by case status" },
|
|
949
|
-
search: { type: "string", description: "Free-text search" },
|
|
950
|
-
date_from: { type: "string", description: "ISO date lower bound" },
|
|
951
|
-
date_to: { type: "string", description: "ISO date upper bound" },
|
|
952
|
-
...LAST_N_DAYS_PROP,
|
|
953
|
-
limit: { type: "number", description: "Max results after merging (default 20, max 200)" },
|
|
954
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
955
|
-
},
|
|
956
|
-
},
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
name: "didit_vendor_user_search",
|
|
960
|
-
description: "Find vendor users (your end customers) ACROSS ALL your apps and organizations in one call — e.g. locate a customer by vendor_data/email/name without knowing which app they're in. Omit organization_id/application_id to span everything; pass them to narrow. Each hit is tagged with its org/app.",
|
|
961
|
-
inputSchema: {
|
|
962
|
-
type: "object",
|
|
963
|
-
properties: {
|
|
964
|
-
search: { type: "string", description: "Free-text search (name, email, vendor_data)" },
|
|
965
|
-
vendor_data: { type: "string", description: "Filter by your customer identifier" },
|
|
966
|
-
status: { type: "string", description: "Filter by vendor-user status" },
|
|
967
|
-
date_from: { type: "string", description: "ISO date lower bound" },
|
|
968
|
-
date_to: { type: "string", description: "ISO date upper bound" },
|
|
969
|
-
...LAST_N_DAYS_PROP,
|
|
970
|
-
limit: { type: "number", description: "Max results after merging (default 20, max 200)" },
|
|
971
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
972
|
-
},
|
|
973
|
-
},
|
|
974
|
-
},
|
|
975
|
-
{
|
|
976
|
-
name: "didit_vendor_business_search",
|
|
977
|
-
description: "Find vendor businesses (KYB companies) ACROSS ALL your apps and organizations in one call. Omit organization_id/application_id to span everything; pass them to narrow. Each hit is tagged with its org/app.",
|
|
978
|
-
inputSchema: {
|
|
979
|
-
type: "object",
|
|
980
|
-
properties: {
|
|
981
|
-
search: { type: "string", description: "Free-text search (company name, registration number, vendor_data)" },
|
|
982
|
-
vendor_data: { type: "string", description: "Filter by your business identifier" },
|
|
983
|
-
status: { type: "string", description: "Filter by vendor-business status" },
|
|
984
|
-
date_from: { type: "string", description: "ISO date lower bound" },
|
|
985
|
-
date_to: { type: "string", description: "ISO date upper bound" },
|
|
986
|
-
...LAST_N_DAYS_PROP,
|
|
987
|
-
limit: { type: "number", description: "Max results after merging (default 20, max 200)" },
|
|
988
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
989
|
-
},
|
|
990
|
-
},
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
name: "didit_analytics",
|
|
994
|
-
description: "Aggregate verification analytics ACROSS ALL your apps and organizations in one call - the efficient way to answer questions like \"how many people tried phone verification but dropped off in the last 15 days?\". Returns summed status counts (request_breakdown), a feature_funnel (how many sessions REACHED each step: OCR, LIVENESS, FACE_MATCH, AML, POA, PHONE, EMAIL, ...), warning_stats by risk code, the previous period's request_breakdown, per-workflow session totals and a recomputed conversion_rate, for a date window. Omit organization_id/application_id to span everything; pass them to narrow.",
|
|
995
|
-
inputSchema: {
|
|
996
|
-
type: "object",
|
|
997
|
-
properties: {
|
|
998
|
-
date_from: { type: "string", description: "ISO date lower bound (YYYY-MM-DD)" },
|
|
999
|
-
date_to: { type: "string", description: "ISO date upper bound (YYYY-MM-DD)" },
|
|
1000
|
-
...LAST_N_DAYS_PROP,
|
|
1001
|
-
include_timeseries: { type: "boolean", description: "Also return per-day time series (heavier). Default false." },
|
|
1002
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1003
|
-
},
|
|
1004
|
-
},
|
|
1005
|
-
},
|
|
1006
|
-
...(0, internal_tools_1.internalToolDefs)("network"),
|
|
1007
|
-
// ── Sessions ────────────────────────────────────────────────────────
|
|
1008
|
-
{
|
|
1009
|
-
name: "didit_session_create",
|
|
1010
|
-
description: "Create a verification session. Requires workflow_id (created in the Console Workflows page) — the workflow defines which steps run and whether the session is KYC or KYB. Returns session_id, url, and session_token.",
|
|
1011
|
-
inputSchema: {
|
|
1012
|
-
type: "object",
|
|
1013
|
-
properties: {
|
|
1014
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1015
|
-
workflow_id: { type: "string", description: "REQUIRED. UUID of the workflow that defines the verification steps. Selects KYC vs KYB implicitly." },
|
|
1016
|
-
vendor_data: { type: "string", description: "Your unique identifier for the user (e.g. user ID). Used to group sessions into a user/business." },
|
|
1017
|
-
callback: { type: "string", description: "URL to redirect the user to after verification" },
|
|
1018
|
-
callback_method: { type: "string", enum: ["initiator", "completer", "both"], description: "Which device/flow the callback applies to" },
|
|
1019
|
-
language: { type: "string", enum: LANGUAGE_CODES, description: "Pre-set the verification UI language (ISO code)" },
|
|
1020
|
-
sandbox_scenario: { type: "string", description: "SANDBOX ONLY (an application whose mode is 'sandbox' — see didit_context_get): predefine the outcome instead of running real providers, so the session is never billed. Slugs are 'approve', 'decline_*' (e.g. decline_aml_hit, decline_document_expired, decline_kyb_registry_mismatch) and 'review_*' (e.g. review_aml_possible_match). Ignored by a live application, where every session IS billed." },
|
|
1021
|
-
metadata: { type: "object", description: "Arbitrary JSON stored on the session and echoed in webhooks" },
|
|
1022
|
-
contact_details: { type: "object", description: "Pre-fill contact info (e.g. email, phone) for the session" },
|
|
1023
|
-
expected_details: { type: "object", description: "Expected values to validate against (e.g. expected country, IP)" },
|
|
1024
|
-
portrait_image: { type: "string", description: "Base64 or URL reference portrait for Biometric Authentication / Face-Match-first workflows. Optional when the vendor_data user already has a stored face (approved liveness face, ePassport photo, document portrait, or enrolled profile face) - the stored face is reused automatically; 400 if neither is available" },
|
|
1025
|
-
},
|
|
1026
|
-
required: ["workflow_id"],
|
|
1027
|
-
},
|
|
1028
|
-
},
|
|
1029
|
-
{
|
|
1030
|
-
name: "didit_session_list",
|
|
1031
|
-
description: `List verification sessions for ONE app. If you have multiple apps (or pass no scope) this automatically spans every app, newest first - but didit_session_search is the canonical cross-app tool and what to reach for to answer "my last N sessions". status accepts session-level values: ${SESSION_STATUSES}. HOW MANY: \`count\` stops at 100 (100 means "100 or more"); when it does, the result adds \`total_count\` (the exact number, from the console's own tab counts) or \`count_is_lower_bound: true\`. Answer "how many" from total_count, never report 100 as the number; limit:1 is enough to count.`,
|
|
1032
|
-
inputSchema: {
|
|
1033
|
-
type: "object",
|
|
1034
|
-
properties: {
|
|
1035
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1036
|
-
status: { type: "string", description: `Filter by session status (${SESSION_STATUSES}). Several statuses separated by commas match any of them, e.g. "Not Started,In Progress".` },
|
|
1037
|
-
session_kind: { type: "string", enum: ["user", "business", "all"], description: "KYC (user), KYB (business), or all" },
|
|
1038
|
-
vendor_data: { type: "string", description: "Filter by vendor_data" },
|
|
1039
|
-
workflow_id: { type: "string", description: "Filter by workflow UUID" },
|
|
1040
|
-
search: { type: "string", description: "Free-text search" },
|
|
1041
|
-
date_from: { type: "string", description: "ISO date lower bound" },
|
|
1042
|
-
date_to: { type: "string", description: "ISO date upper bound" },
|
|
1043
|
-
limit: { type: "string", description: "Page size (LimitOffset pagination)" },
|
|
1044
|
-
offset: { type: "string", description: "Pagination offset" },
|
|
1045
|
-
},
|
|
1046
|
-
},
|
|
1047
|
-
},
|
|
1048
|
-
{
|
|
1049
|
-
name: "didit_session_get_decision",
|
|
1050
|
-
description: "Get the full verification decision and all extracted data for a session.",
|
|
1051
|
-
inputSchema: {
|
|
1052
|
-
type: "object",
|
|
1053
|
-
properties: {
|
|
1054
|
-
session_id: { type: "string", description: "Session UUID" },
|
|
1055
|
-
},
|
|
1056
|
-
required: ["session_id"],
|
|
1057
|
-
},
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
name: "didit_session_get_location_evidence",
|
|
1061
|
-
description: "Precise Location (GEOLOCATION) evidence of ONE session, per Location node: `config` (what judged it, every action resolved through the preset), `result` (the decision's verdict), EVERY attempt incl. retired ones (`retired:true`), `reference_points` (device, IP, address; `area_reading` is the earlier attempt a carried area verdict stands on), `distances`, `areas` (inside / blocked / undetermined area ids, `nearest_allowed_km`, `allowed_result`), `anonymizers` (vpn, proxy, tor, spoofing, emulator; null = cannot tell) and `history`: the same person's earlier checks (same vendor_data) that LOCATION_CONSECUTIVE_MISMATCHES and travel tolerance are judged from. The decision keeps only the accepted attempt: use this for 'which attempt was outside', 'why consecutive mismatches' or 'why was the distance excused'. Holds precise coordinates: quote only what the question needs. `nodes: []` means no Location attempt was recorded; a 404 'Precise Location is not available.' means the feature is off on this deployment.",
|
|
1062
|
-
inputSchema: {
|
|
1063
|
-
type: "object",
|
|
1064
|
-
properties: {
|
|
1065
|
-
session_id: { type: "string", description: "Session UUID" },
|
|
1066
|
-
},
|
|
1067
|
-
required: ["session_id"],
|
|
1068
|
-
},
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
name: "didit_session_simulate",
|
|
1072
|
-
description: "SANDBOX ONLY: finish a session of a sandbox application (mode 'sandbox' in didit_context_get) with the " +
|
|
1073
|
-
"outcome you pick, without anyone going through the verification flow, then read it with " +
|
|
1074
|
-
"didit_session_get_decision and its webhooks with didit_session_webhooks. Never billed. Pass new_status " +
|
|
1075
|
-
"('Approved', 'Declined', 'In Review', 'Expired', 'Abandoned'), a scenario slug ('approve', 'decline_aml_hit', " +
|
|
1076
|
-
"'decline_document_expired', 'review_aml_possible_match', ...) or a risk. A live session answers not found.",
|
|
1077
|
-
inputSchema: {
|
|
1078
|
-
type: "object",
|
|
1079
|
-
properties: {
|
|
1080
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1081
|
-
session_id: { type: "string", description: "REQUIRED. A session of a sandbox application." },
|
|
1082
|
-
new_status: { type: "string", enum: ["Approved", "Declined", "In Review", "Expired", "Abandoned"] },
|
|
1083
|
-
scenario: { type: "string", description: "Sandbox scenario slug whose outcome to reproduce." },
|
|
1084
|
-
risk: { type: "string", description: "A risk case to add as a warning." },
|
|
1085
|
-
comment: { type: "string", description: "Note on the activity entry." },
|
|
1086
|
-
send_webhooks: { type: "boolean", description: "Send the webhooks a real status change sends (default true)." },
|
|
1087
|
-
},
|
|
1088
|
-
required: ["session_id"],
|
|
1089
|
-
},
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
name: "didit_session_update_status",
|
|
1093
|
-
description: "Overwrite a session's decision by approving, declining, or requesting resubmission; optionally send a notification email that cannot be recalled. Before calling, obtain explicit user confirmation of the session, new decision, and any email recipient. For resubmission, pass new_status='Resubmitted' and nodes_to_resubmit; already-approved steps are kept.",
|
|
1094
|
-
inputSchema: {
|
|
1095
|
-
type: "object",
|
|
1096
|
-
properties: {
|
|
1097
|
-
session_id: { type: "string" },
|
|
1098
|
-
new_status: { type: "string", enum: ["Approved", "Declined", "Resubmitted"], description: "New decision status" },
|
|
1099
|
-
comment: { type: "string", description: "Reviewer note stored on the audit trail" },
|
|
1100
|
-
nodes_to_resubmit: { type: "array", items: { type: "string" }, description: "Node IDs the user must redo (only for Resubmitted)" },
|
|
1101
|
-
send_email: { type: "boolean", description: "Send a notification email that cannot be recalled. Set true only after explicit user confirmation of the notification and recipient." },
|
|
1102
|
-
email_address: { type: "string", description: "Override the notification recipient; confirm this address with the user before sending." },
|
|
1103
|
-
email_language: { type: "string", description: "Language for the notification email" },
|
|
1104
|
-
},
|
|
1105
|
-
required: ["session_id", "new_status"],
|
|
1106
|
-
},
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
name: "didit_session_update_data",
|
|
1110
|
-
description: "Correct the KYC data extracted from the ID document on a session (reviewer override). Only send the fields you want to change.",
|
|
1111
|
-
inputSchema: {
|
|
1112
|
-
type: "object",
|
|
1113
|
-
properties: {
|
|
1114
|
-
session_id: { type: "string" },
|
|
1115
|
-
document_type: { type: "string", enum: DOCUMENT_TYPES },
|
|
1116
|
-
document_subtype: { type: "string" },
|
|
1117
|
-
document_number: { type: "string" },
|
|
1118
|
-
personal_number: { type: "string" },
|
|
1119
|
-
date_of_birth: { type: "string", description: "YYYY-MM-DD" },
|
|
1120
|
-
date_of_issue: { type: "string", description: "YYYY-MM-DD" },
|
|
1121
|
-
expiration_date: { type: "string", description: "YYYY-MM-DD" },
|
|
1122
|
-
issuing_state: { type: "string", description: "ISO 3166-1 alpha-3 issuing country" },
|
|
1123
|
-
first_name: { type: "string" },
|
|
1124
|
-
last_name: { type: "string" },
|
|
1125
|
-
gender: { type: "string", enum: ["M", "F", "U"] },
|
|
1126
|
-
address: { type: "string" },
|
|
1127
|
-
place_of_birth: { type: "string" },
|
|
1128
|
-
nationality: { type: "string" },
|
|
1129
|
-
marital_status: { type: "string", enum: ["SINGLE", "MARRIED", "DIVORCED", "WIDOWED", "UNKNOWN"] },
|
|
1130
|
-
extra_fields: { type: "object", description: "Document-specific extra fields" },
|
|
1131
|
-
parsed_address: { type: "object", description: "Structured address override" },
|
|
1132
|
-
},
|
|
1133
|
-
required: ["session_id"],
|
|
1134
|
-
},
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
name: "didit_session_update_poa_data",
|
|
1138
|
-
description: "Correct the Proof of Address data extracted from the POA document on a session (reviewer override). Only send the fields you want to change.",
|
|
1139
|
-
inputSchema: {
|
|
1140
|
-
type: "object",
|
|
1141
|
-
properties: {
|
|
1142
|
-
session_id: { type: "string" },
|
|
1143
|
-
issuing_state: { type: "string", description: "ISO 3166-1 alpha-3 issuing country" },
|
|
1144
|
-
document_type: { type: "string", enum: ["UTILITY_BILL", "BANK_STATEMENT", "GOVERNMENT_ISSUED_DOCUMENT", "OTHER_POA_DOCUMENT", "UNKNOWN"] },
|
|
1145
|
-
document_language: { type: "string" },
|
|
1146
|
-
issuer: { type: "string" },
|
|
1147
|
-
issue_date: { type: "string", description: "YYYY-MM-DD" },
|
|
1148
|
-
poa_address: { type: "string" },
|
|
1149
|
-
name_on_document: { type: "string" },
|
|
1150
|
-
extra_fields: { type: "object" },
|
|
1151
|
-
poa_parsed_address: { type: "object", description: "Structured address override" },
|
|
1152
|
-
},
|
|
1153
|
-
required: ["session_id"],
|
|
1154
|
-
},
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
name: "didit_session_delete",
|
|
1158
|
-
description: "Permanently and irreversibly delete a single verification session (KYC or KYB) - its verification data and stored media. Blocklist entries, issued share tokens, already-queued webhook deliveries, consumed credits, and the parent user/business are not affected. Requires confirm:true - only pass it after the user has explicitly confirmed this exact deletion.",
|
|
1159
|
-
inputSchema: {
|
|
1160
|
-
type: "object",
|
|
1161
|
-
properties: {
|
|
1162
|
-
session_id: { type: "string" },
|
|
1163
|
-
confirm: { type: "boolean", description: "REQUIRED. Must be true - deletion is permanent and irreversible. Only set after explicit user confirmation of this exact action." },
|
|
1164
|
-
},
|
|
1165
|
-
required: ["session_id", "confirm"],
|
|
1166
|
-
},
|
|
1167
|
-
},
|
|
1168
|
-
{
|
|
1169
|
-
name: "didit_session_batch_delete",
|
|
1170
|
-
description: "Permanently and irreversibly delete multiple KYC sessions by session number, or EVERY KYC session in the application with delete_all:true (KYB sessions are never touched; delete those individually). Requires confirm:true - only pass it after the user has explicitly confirmed this exact deletion.",
|
|
1171
|
-
inputSchema: {
|
|
1172
|
-
type: "object",
|
|
1173
|
-
properties: {
|
|
1174
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1175
|
-
session_numbers: {
|
|
1176
|
-
type: "array",
|
|
1177
|
-
items: { type: "number" },
|
|
1178
|
-
description: "Array of session numbers to delete",
|
|
1179
|
-
},
|
|
1180
|
-
delete_all: { type: "boolean", description: "Set true to delete ALL sessions (ignores session_numbers)" },
|
|
1181
|
-
confirm: { type: "boolean", description: "REQUIRED. Must be true - deletion is permanent and irreversible. Only set after explicit user confirmation of this exact action." },
|
|
1182
|
-
},
|
|
1183
|
-
required: ["confirm"],
|
|
1184
|
-
},
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
name: "didit_session_generate_pdf",
|
|
1188
|
-
description: "Return download_url, expires_at and expires_in (300 seconds) for the original Didit session PDF. Fetch the URL to save the PDF; no Authorization header is needed. Treat the URL as sensitive. Requires configured MCP HTTP PDF downloads.",
|
|
1189
|
-
inputSchema: {
|
|
1190
|
-
type: "object",
|
|
1191
|
-
properties: {
|
|
1192
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1193
|
-
session_id: { type: "string" },
|
|
1194
|
-
},
|
|
1195
|
-
required: ["session_id"],
|
|
1196
|
-
},
|
|
1197
|
-
},
|
|
1198
|
-
{
|
|
1199
|
-
name: "didit_session_get_signature_evidence",
|
|
1200
|
-
description: "Return download_url, content_type, expires_at and expires_in (300 seconds) for a signer's evidence PDF of an E-signature step: level and format, " +
|
|
1201
|
-
"signer, IP address, each document with its original SHA-256 and field values and the SHA-256 of every signed file, plus, for an Advanced (AES) " +
|
|
1202
|
-
"signature, the verified identity session, the code confirmation, the certificate and the timestamp. Pass the evidence_file path's signer as " +
|
|
1203
|
-
"signature_id; a Business Verification step with several signers needs it, otherwise the route picks one. Fetch the URL to save the PDF; no " +
|
|
1204
|
-
"Authorization header is needed. Treat the URL as sensitive. Requires configured MCP HTTP downloads (see the README).",
|
|
1205
|
-
inputSchema: {
|
|
1206
|
-
type: "object",
|
|
1207
|
-
properties: {
|
|
1208
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1209
|
-
session_id: { type: "string", description: "REQUIRED. The User Verification (KYC) or Business Verification (KYB) session." },
|
|
1210
|
-
node_id: { type: "string", description: "REQUIRED. The E-signature step: node_id of the item in the decision's signatures[]." },
|
|
1211
|
-
signature_id: { type: "string", description: "id of the signer's item in signatures[]. Required to pick a signer on a Business Verification step with several." },
|
|
1212
|
-
},
|
|
1213
|
-
required: ["session_id", "node_id"],
|
|
1214
|
-
},
|
|
1215
|
-
},
|
|
1216
|
-
{
|
|
1217
|
-
name: "didit_session_get_signed_document",
|
|
1218
|
-
description: "Return download_url, content_type, expires_at and expires_in (300 seconds) for the signed PDF of one document of an E-signature step: the document the " +
|
|
1219
|
-
"signer was shown with their field values stamped and the evidence page (unless signature_evidence_page is off). An Advanced (AES) PDF also carries the " +
|
|
1220
|
-
"PAdES signature with its timestamp; a Simple PDF has no digital signature, seal or timestamp. Didit checks the file against sha256_signed first (409 on a " +
|
|
1221
|
-
"mismatch, nothing returned). Use the id of the document in signatures[].documents[]. Treat the URL as sensitive. Requires configured MCP HTTP downloads.",
|
|
1222
|
-
inputSchema: {
|
|
1223
|
-
type: "object",
|
|
1224
|
-
properties: {
|
|
1225
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1226
|
-
session_id: { type: "string", description: "REQUIRED. The User Verification (KYC) or Business Verification (KYB) session." },
|
|
1227
|
-
node_id: { type: "string", description: "REQUIRED. The E-signature step: node_id of the item in the decision's signatures[]." },
|
|
1228
|
-
document_id: { type: "string", description: "REQUIRED. id of the document in signatures[].documents[]." },
|
|
1229
|
-
},
|
|
1230
|
-
required: ["session_id", "node_id", "document_id"],
|
|
1231
|
-
},
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
name: "didit_session_get_signature_field_image",
|
|
1235
|
-
description: "Return download_url, content_type (image/png), expires_at and expires_in (300 seconds) for the signature or initials a signer applied to a field. " +
|
|
1236
|
-
"Use the field id from the image_url of signatures[].documents[].fields[]. Treat the URL as sensitive. Requires configured MCP HTTP downloads.",
|
|
1237
|
-
inputSchema: {
|
|
1238
|
-
type: "object",
|
|
1239
|
-
properties: {
|
|
1240
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1241
|
-
session_id: { type: "string", description: "REQUIRED. The User Verification (KYC) or Business Verification (KYB) session." },
|
|
1242
|
-
node_id: { type: "string", description: "REQUIRED. The E-signature step: node_id of the item in the decision's signatures[]." },
|
|
1243
|
-
field_id: { type: "string", description: "REQUIRED. The field on this signer's copy, as in the field's image_url." },
|
|
1244
|
-
},
|
|
1245
|
-
required: ["session_id", "node_id", "field_id"],
|
|
1246
|
-
},
|
|
1247
|
-
},
|
|
1248
|
-
{
|
|
1249
|
-
name: "didit_session_validate_signatures",
|
|
1250
|
-
description: "Re-check the signed documents of an E-signature step and save the result in each signer's validation. Didit re-reads every signed PDF, checks its " +
|
|
1251
|
-
"SHA-256 and, for an Advanced (AES) signature, validates the PAdES signature, the certificate, the revocation data and the timestamp (a Simple signature " +
|
|
1252
|
-
"has no digital signature, so only file integrity is checked). Nothing is signed again. Without signature_id every signer of the step is checked and the " +
|
|
1253
|
-
"call fails with 409 if any has not signed; 400 means a stored signed PDF no longer matches its recorded SHA-256. Returns the checked signers.",
|
|
1254
|
-
inputSchema: {
|
|
1255
|
-
type: "object",
|
|
1256
|
-
properties: {
|
|
1257
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1258
|
-
session_id: { type: "string", description: "REQUIRED. The User Verification (KYC) or Business Verification (KYB) session." },
|
|
1259
|
-
node_id: { type: "string", description: "REQUIRED. The E-signature step: node_id of the item in the decision's signatures[]." },
|
|
1260
|
-
signature_id: { type: "string", description: "id of one signer's item in signatures[]; omit to check every signer of the step." },
|
|
1261
|
-
},
|
|
1262
|
-
required: ["session_id", "node_id"],
|
|
1263
|
-
},
|
|
1264
|
-
},
|
|
1265
|
-
{
|
|
1266
|
-
name: "didit_session_list_reviews",
|
|
1267
|
-
description: "List the review history and activity log for a session, newest first. One page: 50 entries unless `limit` says otherwise, with `count` as the total and `offset` to read the ones after.",
|
|
1268
|
-
inputSchema: {
|
|
1269
|
-
type: "object",
|
|
1270
|
-
properties: {
|
|
1271
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1272
|
-
session_id: { type: "string" },
|
|
1273
|
-
...paging_1.PAGE_PROPS,
|
|
1274
|
-
},
|
|
1275
|
-
required: ["session_id"],
|
|
1276
|
-
},
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
name: "didit_session_add_review",
|
|
1280
|
-
description: "Add a review note to a session's audit trail, optionally changing its status.",
|
|
1281
|
-
inputSchema: {
|
|
1282
|
-
type: "object",
|
|
1283
|
-
properties: {
|
|
1284
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1285
|
-
session_id: { type: "string" },
|
|
1286
|
-
comment: { type: "string", description: "Review comment or note" },
|
|
1287
|
-
new_status: {
|
|
1288
|
-
type: "string",
|
|
1289
|
-
enum: ["Not Started", "In Progress", "Approved", "Declined", "In Review", "Expired", "Abandoned", "Kyc Expired", "Resubmitted", "Awaiting User"],
|
|
1290
|
-
description: "Optional new session status to record with the note",
|
|
1291
|
-
},
|
|
1292
|
-
},
|
|
1293
|
-
required: ["session_id"],
|
|
1294
|
-
},
|
|
1295
|
-
},
|
|
1296
|
-
{
|
|
1297
|
-
name: "didit_session_share",
|
|
1298
|
-
description: "Share a verified session with a trusted partner for reusable KYC (B2B session sharing).",
|
|
1299
|
-
inputSchema: {
|
|
1300
|
-
type: "object",
|
|
1301
|
-
properties: {
|
|
1302
|
-
session_id: { type: "string" },
|
|
1303
|
-
partner_client_id: { type: "string", description: "The partner application's client_id" },
|
|
1304
|
-
},
|
|
1305
|
-
required: ["session_id", "partner_client_id"],
|
|
1306
|
-
},
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
name: "didit_session_explain_decision",
|
|
1310
|
-
description: "WHY a verification session ended Approved / Declined / In Review, as a deterministic trace read from the record: the feature that decided it (strictest wins), each warning that had an effect with its raw value, every triggered status rule (field, operator, configured vs actual value), the human override if a reviewer changed the automatic verdict, and for each cause the workflow config key that governs it (`lever`, with its CURRENT value read from the workflow graph; only keys that exist in the feature-config contract; null means it is not a workflow setting). `workflow.graph_read:false` means the graph could not be read, so no current values. Use this for every 'why was it declined / in review / approved', 'it should have been X' and 'how do I make these go to X' question INSTEAD of reading the whole decision — it never returns images, extracted fields or PII. `informational` lists warnings that changed nothing. `unexplained:true` means a decided session (Declined / In Review) whose record shows no effective cause (e.g. minimized age-assurance logs): say so, never invent one. `lifecycle_status:true` (Expired, Abandoned, Not Started, In Progress, Resub Requested…) means nothing decided it — the status is the whole explanation.",
|
|
1311
|
-
inputSchema: {
|
|
1312
|
-
type: "object",
|
|
1313
|
-
properties: {
|
|
1314
|
-
session_id: { type: "string", description: "REQUIRED. The session uuid (from the page's session-id param, didit_session_search or the user)" },
|
|
1315
|
-
},
|
|
1316
|
-
required: ["session_id"],
|
|
1317
|
-
},
|
|
1318
|
-
},
|
|
1319
|
-
{
|
|
1320
|
-
name: "didit_session_webhooks",
|
|
1321
|
-
description: "Delivery log of the webhooks Didit sent for ONE session (last 30 days): destination URL, HTTP response status, timing, signing headers (X-Signature/X-Timestamp) and a capped copy of the payload. The way to check an integration end to end: create a session on a SANDBOX application with sandbox_scenario 'approve' (unbilled, fires status.updated immediately), then call this with wait_seconds so the call waits for the delivery instead of you polling. A 2xx response_status means the customer's endpoint received it; 401/403 usually means their signature check (must be HMAC-SHA256 hex of the RAW body); an empty list after the wait means the endpoint never got the event (not public, or the destination is disabled).",
|
|
1322
|
-
inputSchema: {
|
|
1323
|
-
type: "object",
|
|
1324
|
-
properties: {
|
|
1325
|
-
session_id: { type: "string", description: "REQUIRED. The session whose deliveries to read" },
|
|
1326
|
-
wait_seconds: { type: "integer", minimum: 0, maximum: 60, description: "Keep polling up to this many seconds until at least one delivery exists (0 = read once). Use 30-45 right after creating a sandbox session." },
|
|
1327
|
-
},
|
|
1328
|
-
required: ["session_id"],
|
|
1329
|
-
},
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
name: "didit_session_webhook_resend",
|
|
1333
|
-
description: "Resend one recorded webhook delivery of a session to the configured endpoint (the session page's own Resend). Use after the customer fixed their endpoint so they do not need a new session; returns the new delivery with its response_status.",
|
|
1334
|
-
inputSchema: {
|
|
1335
|
-
type: "object",
|
|
1336
|
-
properties: {
|
|
1337
|
-
session_id: { type: "string", description: "REQUIRED" },
|
|
1338
|
-
webhook_id: { type: "string", description: "REQUIRED. The delivery's uuid from didit_session_webhooks" },
|
|
1339
|
-
},
|
|
1340
|
-
required: ["session_id", "webhook_id"],
|
|
1341
|
-
},
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
name: "didit_session_import_shared",
|
|
1345
|
-
description: "Import a shared verification session from a partner (Reusable KYC).",
|
|
1346
|
-
inputSchema: {
|
|
1347
|
-
type: "object",
|
|
1348
|
-
properties: {
|
|
1349
|
-
share_token: { type: "string", description: "Token received from the sharing partner" },
|
|
1350
|
-
},
|
|
1351
|
-
required: ["share_token"],
|
|
1352
|
-
},
|
|
1353
|
-
},
|
|
1354
|
-
// ── Session Imports (bulk migration) ────────────────────────────────
|
|
1355
|
-
{
|
|
1356
|
-
name: "didit_session_create_import",
|
|
1357
|
-
description: "Create a bulk import job: a hosted CSV/NDJSON file (source_file_url) of historical verifications, or (source=provider) a migration from another " +
|
|
1358
|
-
"identity verification provider. File imports use Didit's canonical schema; label a record's source with the optional per-row `provider` column in the " +
|
|
1359
|
-
"file. A provider migration reads Sumsub, Onfido, Persona and ComplyCube with the customer's READ-ONLY key (`credentials`, named as that provider's " +
|
|
1360
|
-
"credential_fields from didit_session_list_import_providers); Veriff, iDenfy and MetaMap are read by the record IDs in source_file_url, and the others import " +
|
|
1361
|
-
"an export file. The key is secret: ask the user for a read-only key, never log or repeat it, and never reuse it. Didit encrypts it, never returns it and " +
|
|
1362
|
-
"erases it when the import ends. Prefer dry_run:true first: it counts what would import and writes nothing, ends READY, and didit_session_manage_import " +
|
|
1363
|
-
"action=start then imports for real. Record IDs are namespaced by provider, so re-runs and moving between a file and a provider migration never import a " +
|
|
1364
|
-
"record twice. An application runs at most 4 active import jobs at once (a fifth answers 429); a job a deploy interrupted resumes by itself. Imports must be " +
|
|
1365
|
-
"enabled for the organization by Didit and are refused on a sandbox application (403).",
|
|
1366
|
-
inputSchema: {
|
|
1367
|
-
type: "object",
|
|
1368
|
-
properties: {
|
|
1369
|
-
source_file_url: { type: "string", description: "Publicly fetchable HTTPS URL of the CSV/NDJSON file (or, for providers read by record IDs, of the ID list) to import." },
|
|
1370
|
-
import_type: { type: "string", enum: ["user_verification", "business_verification", "status_rules", "transactions"], description: "What the rows represent (default user_verification)" },
|
|
1371
|
-
source_format: { type: "string", enum: ["csv", "ndjson"], description: "File format (default: inferred from the URL)" },
|
|
1372
|
-
workflow_id: { type: "string", description: "Workflow to associate imported sessions with" },
|
|
1373
|
-
source: { type: "string", enum: ["file", "provider"], description: "provider makes this a migration from another provider. Omit for a file import." },
|
|
1374
|
-
provider: { type: "string", description: "Migration source id from didit_session_list_import_providers (for example sumsub, onfido, persona). Required when source is provider." },
|
|
1375
|
-
credentials: {
|
|
1376
|
-
type: "object",
|
|
1377
|
-
additionalProperties: { type: "string" },
|
|
1378
|
-
description: "SECRET. The provider's read-only key, with the field names its credential_fields list. Never echo it back to the user or into logs.",
|
|
1379
|
-
},
|
|
1380
|
-
options: { type: "object", description: "Provider options, for example { region } (Onfido: eu, us, ca)." },
|
|
1381
|
-
status_mapping: {
|
|
1382
|
-
type: "object",
|
|
1383
|
-
additionalProperties: { type: "string", enum: ["Approved", "Declined", "In Review", "Expired", "Not Finished", "Abandoned"] },
|
|
1384
|
-
description: "Edits to the provider's default status mapping: source status to Didit status. Not Finished and Abandoned are skipped and counted, never imported.",
|
|
1385
|
-
},
|
|
1386
|
-
dry_run: { type: "boolean", description: "Count what a provider migration would import and write nothing; the job ends READY and is started with didit_session_manage_import." },
|
|
1387
|
-
face_templates: { type: "boolean", description: "Build face templates from imported selfies and search them against the application's faces and blocklist (flags for review only). Requires lawful_basis_confirmed." },
|
|
1388
|
-
lawful_basis_confirmed: { type: "boolean", description: "Confirms the customer has a lawful basis to share these selfies with Didit as processor. Only set it after the user states so." },
|
|
1389
|
-
},
|
|
1390
|
-
required: ["source_file_url"],
|
|
1391
|
-
},
|
|
1392
|
-
},
|
|
1393
|
-
{
|
|
1394
|
-
name: "didit_session_list_import_providers",
|
|
1395
|
-
description: "List the 15 providers verifications can be migrated from: what each needs to connect (credential_fields, regions), whether its API can list records, the permissions its read-only key needs and its default status mapping.",
|
|
1396
|
-
inputSchema: { type: "object", properties: {} },
|
|
1397
|
-
},
|
|
1398
|
-
{
|
|
1399
|
-
name: "didit_session_check_import_provider",
|
|
1400
|
-
description: "Read a provider with the customer's read-only key before creating a migration. Nothing is stored. For providers read by record IDs, pass record_ids " +
|
|
1401
|
-
"(the first record ID of the export). The key is secret: never log or repeat it.",
|
|
1402
|
-
inputSchema: {
|
|
1403
|
-
type: "object",
|
|
1404
|
-
properties: {
|
|
1405
|
-
provider: { type: "string", description: "REQUIRED. Provider id from didit_session_list_import_providers." },
|
|
1406
|
-
credentials: { type: "object", additionalProperties: { type: "string" }, description: "REQUIRED. SECRET. The provider's read-only key, named as its credential_fields." },
|
|
1407
|
-
options: { type: "object", description: "Provider options, for example { region }." },
|
|
1408
|
-
record_ids: { type: "array", items: { type: "string" }, description: "For providers read by record IDs: the first record ID of the export." },
|
|
1409
|
-
},
|
|
1410
|
-
required: ["provider", "credentials"],
|
|
1411
|
-
},
|
|
1412
|
-
},
|
|
1413
|
-
{
|
|
1414
|
-
name: "didit_session_manage_import",
|
|
1415
|
-
description: "Act on an import job: start (a dry run that ended READY imports for real, with the status_mapping, face_templates and lawful_basis_confirmed sent now), " +
|
|
1416
|
-
"pause, resume, cancel (what was imported stays; the uploaded file and the key are erased) or retry (runs an ended migration again as a NEW job with a new key " +
|
|
1417
|
-
"in credentials, since the old one was erased; everything already in Didit is skipped).",
|
|
1418
|
-
inputSchema: {
|
|
1419
|
-
type: "object",
|
|
1420
|
-
properties: {
|
|
1421
|
-
import_id: { type: "string", description: "REQUIRED. Import job ID." },
|
|
1422
|
-
action: { type: "string", enum: ["start", "pause", "resume", "cancel", "retry"], description: "REQUIRED." },
|
|
1423
|
-
data: {
|
|
1424
|
-
type: "object",
|
|
1425
|
-
description: "start: { status_mapping, face_templates, lawful_basis_confirmed }. retry: { credentials } (SECRET, never echo it). Other actions take none.",
|
|
1426
|
-
},
|
|
1427
|
-
},
|
|
1428
|
-
required: ["import_id", "action"],
|
|
1429
|
-
},
|
|
1430
|
-
},
|
|
1431
|
-
{
|
|
1432
|
-
name: "didit_session_get_import_template",
|
|
1433
|
-
description: "Download the canonical import template (column headers and format) used by didit_session_create_import.",
|
|
1434
|
-
inputSchema: { type: "object", properties: {} },
|
|
1435
|
-
},
|
|
1436
|
-
{
|
|
1437
|
-
name: "didit_session_get_import",
|
|
1438
|
-
description: "Get the status and summary of a bulk import job.",
|
|
1439
|
-
inputSchema: {
|
|
1440
|
-
type: "object",
|
|
1441
|
-
properties: {
|
|
1442
|
-
import_id: { type: "string", description: "Import job ID returned by didit_session_create_import" },
|
|
1443
|
-
},
|
|
1444
|
-
required: ["import_id"],
|
|
1445
|
-
},
|
|
1446
|
-
},
|
|
1447
|
-
{
|
|
1448
|
-
name: "didit_session_get_import_errors",
|
|
1449
|
-
description: "List per-row errors for a bulk import job (rows that failed validation or processing).",
|
|
1450
|
-
inputSchema: {
|
|
1451
|
-
type: "object",
|
|
1452
|
-
properties: {
|
|
1453
|
-
import_id: { type: "string", description: "Import job ID" },
|
|
1454
|
-
},
|
|
1455
|
-
required: ["import_id"],
|
|
1456
|
-
},
|
|
1457
|
-
},
|
|
1458
|
-
// ── Workflows (Verification Settings) ───────────────────────────────
|
|
1459
|
-
{
|
|
1460
|
-
name: "didit_workflow_list",
|
|
1461
|
-
description: "List verification workflows. With multiple apps (or no scope) it auto-spans every app, each row tagged with its org/app. To find one workflow by id/label across all apps, prefer didit_workflow_search. The `features` on a row do NOT tell you whether a workflow checks age: age assurance done from the DOCUMENT (age restrictions on the OCR step) shows no feature of its own. For any question about which workflows do age assurance, pass `include_age_assurance:true` — it annotates each row with `does_age_assurance`/`methods` server-side, which is the only reliable way to find them. In one application the answer is ONE PAGE, most recently changed first: 20 workflows unless `limit` says otherwise, with `count` as the total and `offset` to read the ones after. Across applications it is the first 50 unless `limit` says otherwise, with `total_matched` as the total and the same `offset`. To count or filter workflows, read until you have them all.",
|
|
1462
|
-
inputSchema: {
|
|
1463
|
-
type: "object",
|
|
1464
|
-
properties: {
|
|
1465
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1466
|
-
include_age_assurance: {
|
|
1467
|
-
type: "boolean",
|
|
1468
|
-
description: "Annotate each non-archived row with whether it does age assurance, and how. Required to find workflows that check age from the document.",
|
|
1469
|
-
},
|
|
1470
|
-
...paging_1.PAGE_PROPS,
|
|
1471
|
-
},
|
|
1472
|
-
},
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
name: "didit_workflow_create",
|
|
1476
|
-
description: "Create a SIMPLE (linear) verification workflow from an ordered list of features. Send `features` in execution order (uppercase values; put dependency features first, e.g. OCR before FACE_MATCH/NFC/DATABASE_VALIDATION). The MCP assembles them into a real workflow graph and publishes it; pass status:'draft' to keep it unpublished. A bad feature order fails validation and leaves a fixable draft. A workflow verifies EITHER a person (KYC) or a business (KYB), never both, and the type follows WHO is verified: KYB workflows use the KYB_* features (company paperwork belongs in KYB_DOCUMENTS or DOCUMENT_AI) and must not mix in person-only features (OCR/LIVENESS/FACE_MATCH/NFC/PROOF_OF_ADDRESS/DATABASE_VALIDATION/AGE_ESTIMATION); to verify the people behind a company, create a separate KYC workflow and link it from the KYB_KEY_PEOPLE node. For BRANCHING or conditional logic, use the graph tools instead: didit_workflow_get_field_definitions, then didit_workflow_validate_graph, then didit_workflow_set_graph.",
|
|
1477
|
-
inputSchema: {
|
|
1478
|
-
type: "object",
|
|
1479
|
-
properties: {
|
|
1480
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1481
|
-
workflow_label: { type: "string", description: "Display name (max 50 chars)" },
|
|
1482
|
-
features: {
|
|
1483
|
-
type: "array",
|
|
1484
|
-
minItems: 1,
|
|
1485
|
-
items: WORKFLOW_FEATURE_ITEM,
|
|
1486
|
-
description: "Verification features in execution order. Each: { feature, config?, label? }. Example: [{\"feature\":\"OCR\"},{\"feature\":\"LIVENESS\",\"config\":{\"face_liveness_method\":\"PASSIVE\"}},{\"feature\":\"FACE_MATCH\"}]",
|
|
1487
|
-
},
|
|
1488
|
-
is_default: { type: "boolean", description: "Set as default workflow for new sessions" },
|
|
1489
|
-
status: { type: "string", enum: ["draft", "published"], description: "Omit to publish immediately; 'draft' saves without publishing" },
|
|
1490
|
-
is_white_label_enabled: { type: "boolean" },
|
|
1491
|
-
is_desktop_allowed: { type: "boolean" },
|
|
1492
|
-
max_retry_attempts: { type: "number" },
|
|
1493
|
-
retry_window_days: { type: "number" },
|
|
1494
|
-
session_expiration_time: { type: "number" },
|
|
1495
|
-
},
|
|
1496
|
-
required: ["features"],
|
|
1497
|
-
},
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
name: "didit_workflow_get",
|
|
1501
|
-
description: "Get the full configuration of a specific workflow, including `response_attributes` " +
|
|
1502
|
-
"(returned data / data minimization): which data points the client receives per feature.",
|
|
1503
|
-
inputSchema: {
|
|
1504
|
-
type: "object",
|
|
1505
|
-
properties: {
|
|
1506
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1507
|
-
workflow_id: { type: "string", description: "Workflow UUID" },
|
|
1508
|
-
},
|
|
1509
|
-
required: ["workflow_id"],
|
|
1510
|
-
},
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
name: "didit_workflow_update",
|
|
1514
|
-
description: "Update a workflow's top-level SETTINGS only (workflow_label, is_default, retry/expiration, white-label, etc.). Omitted status preserves the current draft/published state; publication changes only when status is explicitly passed. It does NOT change which features run: to add/remove/reorder features, add a conditional branch, or add a Document-AI step, edit the graph with didit_workflow_edit_graph (small ops, preserves the big allow-lists) or didit_workflow_set_graph (full replace) — those are the only ways feature changes actually persist.",
|
|
1515
|
-
inputSchema: {
|
|
1516
|
-
type: "object",
|
|
1517
|
-
properties: {
|
|
1518
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1519
|
-
workflow_id: { type: "string", description: "Workflow UUID" },
|
|
1520
|
-
workflow_label: { type: "string" },
|
|
1521
|
-
is_default: { type: "boolean" },
|
|
1522
|
-
status: { type: "string", enum: ["draft", "published"] },
|
|
1523
|
-
is_white_label_enabled: { type: "boolean" },
|
|
1524
|
-
is_desktop_allowed: { type: "boolean" },
|
|
1525
|
-
max_retry_attempts: { type: "number" },
|
|
1526
|
-
retry_window_days: { type: "number" },
|
|
1527
|
-
session_expiration_time: { type: "number" },
|
|
1528
|
-
},
|
|
1529
|
-
required: ["workflow_id"],
|
|
1530
|
-
},
|
|
1531
|
-
},
|
|
1532
|
-
{
|
|
1533
|
-
name: "didit_workflow_delete",
|
|
1534
|
-
description: "Delete a draft verification workflow. If the API forbids deletion (including an only or published version), archive it instead. Existing sessions using it are not affected.",
|
|
1535
|
-
inputSchema: {
|
|
1536
|
-
type: "object",
|
|
1537
|
-
properties: {
|
|
1538
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1539
|
-
workflow_id: { type: "string", description: "Workflow UUID" },
|
|
1540
|
-
},
|
|
1541
|
-
required: ["workflow_id"],
|
|
1542
|
-
},
|
|
1543
|
-
},
|
|
1544
|
-
{
|
|
1545
|
-
name: "didit_workflow_search",
|
|
1546
|
-
description: "Find verification workflows ACROSS ALL your apps/orgs in one call. Pass `workflow_id` to locate a specific workflow by its version uuid OR stable workflow_id (returns which org/app it lives in), or `search` to match by label. Use this instead of guessing the application when you only have a workflow id. `search` matches the LABEL ONLY: a CAPABILITY (age assurance, AML screening, …) is not searchable by name — for age assurance use didit_workflow_list with `include_age_assurance:true`, which reports what each workflow actually does.",
|
|
1547
|
-
inputSchema: {
|
|
1548
|
-
type: "object",
|
|
1549
|
-
properties: {
|
|
1550
|
-
workflow_id: { type: "string", description: "Match a specific workflow by version uuid or stable workflow_id" },
|
|
1551
|
-
search: { type: "string", description: "Case-insensitive substring match on the workflow label" },
|
|
1552
|
-
limit: { type: "number", description: "Max results after merging (default 50, max 200)" },
|
|
1553
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1554
|
-
},
|
|
1555
|
-
},
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
name: "didit_workflow_get_graph",
|
|
1559
|
-
description: "Get the node/graph for a workflow (the structure: nodes, branches, conditions, Document-AI steps) + `status`/`version`/`is_editable`. Large feature configs (documents_allowed, poa_documents_allowed, phone countries) are SUMMARIZED by default so the response never overflows — set `include_config:true` for the raw config. Includes `returned_data` (response_attributes): the ONLY source of truth for what data the client/relying party receives in the API response and webhooks — never infer that from which features run. Also includes `age_assurance`: whether the workflow checks age, and by which method (document age restrictions and/or AGE_ESTIMATION) — decide that from this block, never from the workflow's name. Pass just `workflow_id`; the owning org/app is resolved automatically. To MODIFY the graph, prefer didit_workflow_edit_graph (small ops, no need to resend big configs).",
|
|
1560
|
-
inputSchema: {
|
|
1561
|
-
type: "object",
|
|
1562
|
-
properties: {
|
|
1563
|
-
workflow_id: { type: "string", description: "Workflow version uuid or stable workflow_id" },
|
|
1564
|
-
include_config: { type: "boolean", description: "Return full feature configs verbatim (default false → summarized). Can be very large." },
|
|
1565
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1566
|
-
},
|
|
1567
|
-
required: ["workflow_id"],
|
|
1568
|
-
},
|
|
1569
|
-
},
|
|
1570
|
-
{
|
|
1571
|
-
name: "didit_workflow_get_field_definitions",
|
|
1572
|
-
description: "List every field you can branch on plus the operators valid for each (e.g. kyc.status, kyc.extra_fields.profession with `fuzzy_match`, document_ai.<key>, aml.risk_score). Call this before building branch rules so the field/operator pairs are valid.",
|
|
1573
|
-
inputSchema: {
|
|
1574
|
-
type: "object",
|
|
1575
|
-
properties: {
|
|
1576
|
-
workflow_id: { type: "string", description: "Any workflow in the target application (used to resolve the app). Its uuid or stable workflow_id from didit_workflow_search/list — NOT a label, slug or node id. An exact label is resolved when it matches exactly one workflow; otherwise the candidates are listed for you to pick." },
|
|
1577
|
-
feature: { type: "string", enum: feature_config_schema_1.WORKFLOW_FEATURES, description: "Return only fields for this feature to keep the response small" },
|
|
1578
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1579
|
-
},
|
|
1580
|
-
required: ["workflow_id"],
|
|
1581
|
-
},
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
name: "didit_workflow_get_feature_config_schema",
|
|
1585
|
-
description: "The exact `config` object each workflow feature accepts - every key, its type, bounds, " +
|
|
1586
|
-
"default, accepted values and meaning. Generated from the backend serializers that validate " +
|
|
1587
|
-
"a save (contract " + feature_config_schema_1.FEATURE_CONFIG_CHECKSUM + "), so it is never out of date with the API. " +
|
|
1588
|
-
"Call it before configuring a feature you have not configured before, and whenever a config " +
|
|
1589
|
-
"key you set came back missing: a key outside this contract is dropped silently. Pass " +
|
|
1590
|
-
"`feature` for one feature (" + feature_config_schema_1.WORKFLOW_FEATURES.join(", ") + "), or omit it for all of them.",
|
|
1591
|
-
inputSchema: {
|
|
1592
|
-
type: "object",
|
|
1593
|
-
properties: {
|
|
1594
|
-
feature: {
|
|
1595
|
-
type: "string",
|
|
1596
|
-
enum: feature_config_schema_1.WORKFLOW_FEATURES,
|
|
1597
|
-
description: "Restrict the answer to one feature. Omit for the whole contract.",
|
|
1598
|
-
},
|
|
1599
|
-
},
|
|
1600
|
-
},
|
|
1601
|
-
},
|
|
1602
|
-
{
|
|
1603
|
-
name: "didit_workflow_get_id_verification_methods_catalog",
|
|
1604
|
-
description: "The ID Verification methods catalog: per country, whether non-doc lookup (the user types their " +
|
|
1605
|
-
"national ID number and we check the official government database) is offered, which " +
|
|
1606
|
-
"digital-identity wallets (MitID, BankID, itsme, ...) are offered, their availability " +
|
|
1607
|
-
"(`available` can be enabled, `coming_soon` cannot), the plain-language request and response " +
|
|
1608
|
-
"fields, and catalog prices. Read this BEFORE setting `methods` on an OCR node: a method or " +
|
|
1609
|
-
"wallet that is not available for the country is rejected on save. Wallets are an accept-list " +
|
|
1610
|
-
"(no ordering). Every non-document price except the document price is a placeholder until " +
|
|
1611
|
-
"the pricing catalog is published. Pass `country` (ISO3) to get one country's view.",
|
|
1612
|
-
inputSchema: {
|
|
1613
|
-
type: "object",
|
|
1614
|
-
properties: {
|
|
1615
|
-
workflow_id: { type: "string", description: "Any workflow in the target application (used to resolve the app)" },
|
|
1616
|
-
country: { type: "string", description: "ISO 3166-1 alpha-3 code to narrow the catalog to one country (e.g. ZAF, DNK)" },
|
|
1617
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1618
|
-
},
|
|
1619
|
-
required: ["workflow_id"],
|
|
1620
|
-
},
|
|
1621
|
-
},
|
|
1622
|
-
{
|
|
1623
|
-
name: "didit_workflow_get_kyb_registry_catalog",
|
|
1624
|
-
description: "The KYB registry catalog: per country (ISO-2, unlike `methods`/`documents_allowed` which are " +
|
|
1625
|
-
"ISO-3), which company-data tiers the registries offer - `basic` (Lite: company profile), " +
|
|
1626
|
-
"`shareholders`, `ubo` (beneficial owners) - with their retail price per company selected, and " +
|
|
1627
|
-
"whether continuous registry monitoring is sold there (per company per year). Read this BEFORE " +
|
|
1628
|
-
"writing `kyb_registry_countries_config` with a tier other than `basic`, or switching " +
|
|
1629
|
-
"`kyb_registry_monitoring_enabled` on: a tier the country does not offer is rejected on save, and " +
|
|
1630
|
-
"monitoring only applies to countries at an ownership tier where it is available. A company the " +
|
|
1631
|
-
"applicant types in by hand is billed a flat fee instead. Without `countries` you get a summary " +
|
|
1632
|
-
"(counts, the countries with no registry, the Lite-only ones); pass `countries` for the exact " +
|
|
1633
|
-
"per-country table. Prices here are the catalog's retail prices, not placeholders.",
|
|
1634
|
-
inputSchema: {
|
|
1635
|
-
type: "object",
|
|
1636
|
-
properties: {
|
|
1637
|
-
countries: {
|
|
1638
|
-
type: "array",
|
|
1639
|
-
items: { type: "string" },
|
|
1640
|
-
description: "ISO 3166-1 alpha-2 codes to narrow the catalog to (e.g. [\"ES\", \"DE\"]). Omit for the summary.",
|
|
1641
|
-
},
|
|
1642
|
-
},
|
|
1643
|
-
},
|
|
1644
|
-
},
|
|
1645
|
-
{
|
|
1646
|
-
name: "didit_workflow_get_branch_fields",
|
|
1647
|
-
description: "Given a candidate graph and a branch node, return the fields actually available at that point (only features that completed on every path reaching the branch, plus dynamically-derived Document-AI/questionnaire fields).",
|
|
1648
|
-
inputSchema: {
|
|
1649
|
-
type: "object",
|
|
1650
|
-
properties: {
|
|
1651
|
-
workflow_id: { type: "string", description: "Workflow version uuid or stable workflow_id" },
|
|
1652
|
-
graph: {
|
|
1653
|
-
...WORKFLOW_GRAPH_SCHEMA,
|
|
1654
|
-
description: "REQUIRED. The candidate graph to evaluate: the `graph` object returned by didit_workflow_get_graph / ui_workflow_get_graph (start_node + nodes), optionally with your unsaved edits applied.",
|
|
1655
|
-
},
|
|
1656
|
-
branch_node_id: { type: "string", description: "REQUIRED. The id of a branch node in that graph (a key of graph.nodes whose node_type is 'branch') — availability is evaluated at that point." },
|
|
1657
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1658
|
-
},
|
|
1659
|
-
required: ["workflow_id", "graph", "branch_node_id"],
|
|
1660
|
-
},
|
|
1661
|
-
},
|
|
1662
|
-
{
|
|
1663
|
-
name: "didit_workflow_validate_graph",
|
|
1664
|
-
description: "Dry-run validate a graph WITHOUT saving. Returns per-node errors (bad field/operator, missing dependency, branching on a field before its feature runs, etc.). Always validate before didit_workflow_set_graph.",
|
|
1665
|
-
inputSchema: {
|
|
1666
|
-
type: "object",
|
|
1667
|
-
properties: {
|
|
1668
|
-
workflow_id: {
|
|
1669
|
-
type: "string",
|
|
1670
|
-
description: "Workflow version uuid or stable workflow_id. OPTIONAL: omit to validate a graph for a workflow " +
|
|
1671
|
-
"that does not exist yet (an unsaved canvas); pass workflow_type instead when KYC/KYB matters.",
|
|
1672
|
-
},
|
|
1673
|
-
workflow_type: { type: "string", enum: ["kyc", "kyb"], description: "Segregation check for a not-yet-created workflow." },
|
|
1674
|
-
graph: WORKFLOW_GRAPH_SCHEMA,
|
|
1675
|
-
include_config: { type: "boolean", description: "Return the validated graph's full feature configs (default false summarizes large values)" },
|
|
1676
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1677
|
-
},
|
|
1678
|
-
required: ["graph"],
|
|
1679
|
-
},
|
|
1680
|
-
},
|
|
1681
|
-
{
|
|
1682
|
-
name: "didit_workflow_edit_graph",
|
|
1683
|
-
description: "MODIFY an existing workflow's graph with small OPERATIONS - the right tool for editing a live workflow. You send only the deltas; the MCP fetches the full current graph SERVER-SIDE, applies your ops in order, validates, auto-creates a DRAFT (the live version is never touched), and saves. This means huge feature configs (documents_allowed, poa_documents_allowed, phone countries) are preserved exactly and you NEVER resend them. Validation failures return `applied:false` with the errors (nothing saved). The six op shapes are documented on the `operations` parameter; a typical edit upserts new nodes with set_node and rewires their neighbors with set_next. To branch after a feature node, point its `next` at a new branch node whose `branches` carry the rules (from didit_workflow_get_field_definitions) and whose goto targets are new status or feature nodes.",
|
|
1684
|
-
inputSchema: {
|
|
1685
|
-
type: "object",
|
|
1686
|
-
properties: {
|
|
1687
|
-
workflow_id: { type: "string", description: "Workflow version uuid or stable workflow_id" },
|
|
1688
|
-
operations: {
|
|
1689
|
-
type: "array",
|
|
1690
|
-
minItems: 1,
|
|
1691
|
-
description: "Ordered edits applied to the full server-side graph. Each: one of — {op:'set_node', node_id, node:{…}} upsert a node; {op:'remove_node', node_id}; {op:'set_next', node_id, next:'<id|null>'} rewire a node's unconditional next; {op:'set_branches', node_id, branches:[…]} set conditional branches; {op:'merge_node_config', node_id, config:{…}} shallow-merge config keys (preserves the big allow-lists); {op:'set_start', start_node}.",
|
|
1692
|
-
items: { type: "object", properties: { op: { type: "string", enum: ["set_node", "remove_node", "set_next", "set_branches", "merge_node_config", "set_start"] }, node_id: { type: "string" }, node: { type: "object" }, next: { type: ["string", "null"] }, branches: { type: "array", items: { type: "object" } }, config: { type: "object" }, start_node: { type: "string" } }, required: ["op"] },
|
|
1693
|
-
},
|
|
1694
|
-
publish: { type: "boolean", description: "Publish after saving (default false → leaves a reviewable DRAFT)" },
|
|
1695
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1696
|
-
},
|
|
1697
|
-
required: ["workflow_id", "operations"],
|
|
1698
|
-
},
|
|
1699
|
-
},
|
|
1700
|
-
{
|
|
1701
|
-
name: "didit_workflow_set_graph",
|
|
1702
|
-
description: "Replace a workflow's ENTIRE node/graph. Use this only to build a NEW/small workflow from scratch — to modify an EXISTING workflow prefer didit_workflow_edit_graph (you'd otherwise have to resend every node incl. multi-100KB allow-lists). If the workflow is published, a DRAFT is auto-created and the graph applied there (a live version is NEVER mutated); reviewable DRAFT unless `publish:true`. Validate first. Example graph: OCR → branch[ kyc.status==Declined → status(Declined); kyc.extra_fields.profession fuzzy_match 'Software Engineer' score 80 → DOCUMENT_AI(proof of funds) → status(Determine) ; else → status(Determine) ].",
|
|
1703
|
-
inputSchema: {
|
|
1704
|
-
type: "object",
|
|
1705
|
-
properties: {
|
|
1706
|
-
workflow_id: { type: "string", description: "Workflow version uuid or stable workflow_id" },
|
|
1707
|
-
graph: WORKFLOW_GRAPH_SCHEMA,
|
|
1708
|
-
publish: { type: "boolean", description: "Publish the draft after saving (default false → leaves a reviewable DRAFT)" },
|
|
1709
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1710
|
-
},
|
|
1711
|
-
required: ["workflow_id", "graph"],
|
|
1712
|
-
},
|
|
1713
|
-
},
|
|
1714
|
-
{
|
|
1715
|
-
name: "didit_workflow_create_draft",
|
|
1716
|
-
description: "Create an editable DRAFT version from a published workflow (graph/config edits require a DRAFT). Returns the new draft's uuid.",
|
|
1717
|
-
inputSchema: {
|
|
1718
|
-
type: "object",
|
|
1719
|
-
properties: {
|
|
1720
|
-
workflow_id: { type: "string", description: "Workflow version uuid or stable workflow_id" },
|
|
1721
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1722
|
-
},
|
|
1723
|
-
required: ["workflow_id"],
|
|
1724
|
-
},
|
|
1725
|
-
},
|
|
1726
|
-
{
|
|
1727
|
-
name: "didit_workflow_publish",
|
|
1728
|
-
description: "Publish the workflow version that holds the pending changes — makes it live for NEW sessions. Existing sessions are unaffected. Pass the `version_uuid` that set_graph/edit_graph returned: a published version can never hold an edit, so a stable workflow_id resolves to the version that is ALREADY live. Publishing a live version with no draft is refused instead of reported as done.",
|
|
1729
|
-
inputSchema: {
|
|
1730
|
-
type: "object",
|
|
1731
|
-
properties: {
|
|
1732
|
-
workflow_id: { type: "string", description: "The DRAFT version uuid to publish — the `version_uuid` returned by didit_workflow_set_graph / didit_workflow_edit_graph. A stable workflow_id also resolves, and then the draft holding the changes is published rather than the version already live." },
|
|
1733
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1734
|
-
},
|
|
1735
|
-
required: ["workflow_id"],
|
|
1736
|
-
},
|
|
1737
|
-
},
|
|
1738
|
-
// ── Questionnaires ──────────────────────────────────────────────────
|
|
1739
|
-
{
|
|
1740
|
-
name: "didit_questionnaire_list",
|
|
1741
|
-
description: "List all custom questionnaires for your application. One page, newest first: 50 unless `limit` says otherwise, with `count` as the total and `offset` to read the ones after.",
|
|
1742
|
-
inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS, ...paging_1.PAGE_PROPS } },
|
|
1743
|
-
},
|
|
1744
|
-
{
|
|
1745
|
-
name: "didit_questionnaire_create",
|
|
1746
|
-
description: "Create a custom questionnaire from an ordered list of questions. Send `title` + `form_elements` (an array of form-element objects, each with an UPPERCASE element_type) — NOT `questions`. The MCP assembles them into the questionnaire graph the backend stores (node ids and their ordering are derived here), so send the questions in the order the user should answer them and never build a graph yourself. Pass status:'draft' to keep it unpublished. A choice list longer than ~100 options does NOT fit in one call (the call is emitted token by token and gets cut off mid-JSON): create with status:'draft' carrying only the first ~100 choices, then add the rest with didit_questionnaire_append_choices in batches (its publish flag publishes with the final batch — a published questionnaire cannot be edited further).",
|
|
1747
|
-
inputSchema: {
|
|
1748
|
-
type: "object",
|
|
1749
|
-
properties: {
|
|
1750
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1751
|
-
title: { type: "string", description: "Questionnaire title" },
|
|
1752
|
-
description: { type: "string", description: "Description shown to the user" },
|
|
1753
|
-
...FORM_ELEMENTS_PROP,
|
|
1754
|
-
...QUESTIONNAIRE_LANG_PROPS,
|
|
1755
|
-
...QUESTIONNAIRE_CREATE_STATUS_PROP,
|
|
1756
|
-
},
|
|
1757
|
-
required: ["title", "form_elements"],
|
|
1758
|
-
},
|
|
1759
|
-
},
|
|
1760
|
-
{
|
|
1761
|
-
name: "didit_questionnaire_append_choices",
|
|
1762
|
-
description: "Append a batch of answer options to ONE question of an existing DRAFT questionnaire (create it with status:'draft' — a published questionnaire cannot be edited). Use it for long choice lists: create with the first ~100 choices, then append the rest here in batches of ~100 until the source list is exhausted, passing publish:true on the FINAL batch to publish. Choices the question already has (same value) are skipped, so retrying a batch never duplicates. Returns a compact summary whose total_choices is the stored count — verify against it instead of re-fetching the questionnaire.",
|
|
1763
|
-
inputSchema: {
|
|
1764
|
-
type: "object",
|
|
1765
|
-
properties: {
|
|
1766
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1767
|
-
questionnaire_id: { type: "string", description: "Questionnaire UUID" },
|
|
1768
|
-
node_id: {
|
|
1769
|
-
type: "string",
|
|
1770
|
-
description: "Graph node id of the question (e.g. 'q1', positional from the create call). Optional when exactly one question has choices.",
|
|
1771
|
-
},
|
|
1772
|
-
choices: {
|
|
1773
|
-
type: "array",
|
|
1774
|
-
items: { type: "object" },
|
|
1775
|
-
description: "Batch of choices to append, ~100 per call maximum. Each: { value, label?, requires_text_input? }",
|
|
1776
|
-
},
|
|
1777
|
-
publish: {
|
|
1778
|
-
type: "boolean",
|
|
1779
|
-
description: "Pass true on the LAST batch to publish the questionnaire; intermediate batches keep it a draft.",
|
|
1780
|
-
},
|
|
1781
|
-
},
|
|
1782
|
-
required: ["questionnaire_id", "choices"],
|
|
1783
|
-
},
|
|
1784
|
-
},
|
|
1785
|
-
{
|
|
1786
|
-
name: "didit_questionnaire_get",
|
|
1787
|
-
description: "Get questionnaire questions and options. Translations are summarized to one locale by default to keep the response consumable; pass include_translations:true for every locale.",
|
|
1788
|
-
inputSchema: {
|
|
1789
|
-
type: "object",
|
|
1790
|
-
properties: {
|
|
1791
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1792
|
-
questionnaire_id: { type: "string", description: "Questionnaire UUID" },
|
|
1793
|
-
include_translations: { type: "boolean", description: "Return every locale translation (default false returns English or the first available locale)" },
|
|
1794
|
-
},
|
|
1795
|
-
required: ["questionnaire_id"],
|
|
1796
|
-
},
|
|
1797
|
-
},
|
|
1798
|
-
{
|
|
1799
|
-
name: "didit_questionnaire_update",
|
|
1800
|
-
description: "Overwrite a questionnaire's supplied settings. Sending form_elements REPLACES the entire question list, removing omitted questions; pass every question to keep, in order, with UPPERCASE element_type. Omitted status preserves the current draft/published state; publication changes only when status is explicitly passed. Before calling, show the questionnaire and proposed changes and obtain explicit user confirmation, including the full replacement when form_elements is supplied.",
|
|
1801
|
-
inputSchema: {
|
|
1802
|
-
type: "object",
|
|
1803
|
-
properties: {
|
|
1804
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1805
|
-
questionnaire_id: { type: "string", description: "Questionnaire UUID" },
|
|
1806
|
-
title: { type: "string" },
|
|
1807
|
-
description: { type: "string" },
|
|
1808
|
-
...FORM_ELEMENTS_PROP,
|
|
1809
|
-
...QUESTIONNAIRE_LANG_PROPS,
|
|
1810
|
-
...QUESTIONNAIRE_UPDATE_STATUS_PROP,
|
|
1811
|
-
},
|
|
1812
|
-
required: ["questionnaire_id"],
|
|
1813
|
-
},
|
|
1814
|
-
},
|
|
1815
|
-
{
|
|
1816
|
-
name: "didit_questionnaire_delete",
|
|
1817
|
-
description: "Delete a questionnaire.",
|
|
1818
|
-
inputSchema: {
|
|
1819
|
-
type: "object",
|
|
1820
|
-
properties: {
|
|
1821
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1822
|
-
questionnaire_id: { type: "string", description: "Questionnaire UUID" },
|
|
1823
|
-
},
|
|
1824
|
-
required: ["questionnaire_id"],
|
|
1825
|
-
},
|
|
1826
|
-
},
|
|
1827
|
-
// ── Users (verified individuals / KYC) ──────────────────────────────
|
|
1828
|
-
{
|
|
1829
|
-
name: "didit_vendor_user_list",
|
|
1830
|
-
description: "List verified users (grouped by vendor_data) for ONE app; with multiple apps (or no scope) it auto-spans all your apps. For a cross-app customer lookup prefer didit_vendor_user_search. Supports limit/offset pagination.",
|
|
1831
|
-
inputSchema: {
|
|
1832
|
-
type: "object",
|
|
1833
|
-
properties: {
|
|
1834
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1835
|
-
limit: { type: "string" },
|
|
1836
|
-
offset: { type: "string" },
|
|
1837
|
-
},
|
|
1838
|
-
},
|
|
1839
|
-
},
|
|
1840
|
-
{
|
|
1841
|
-
name: "didit_vendor_user_create",
|
|
1842
|
-
description: "Create a user record manually (e.g. to pre-register a vendor_data identity or attach allowlisted emails/phones).",
|
|
1843
|
-
inputSchema: {
|
|
1844
|
-
type: "object",
|
|
1845
|
-
properties: {
|
|
1846
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1847
|
-
vendor_data: { type: "string", description: "REQUIRED. Your unique identifier for the user" },
|
|
1848
|
-
full_name: { type: "string" },
|
|
1849
|
-
display_name: { type: "string" },
|
|
1850
|
-
date_of_birth: { type: "string", description: "YYYY-MM-DD" },
|
|
1851
|
-
status: { type: "string", enum: ENTITY_STATUSES },
|
|
1852
|
-
metadata: { type: "object" },
|
|
1853
|
-
approved_emails: { type: "array", items: { type: "string" } },
|
|
1854
|
-
approved_phones: { type: "array", items: { type: "string" } },
|
|
1855
|
-
issuing_states: { type: "array", items: { type: "string" } },
|
|
1856
|
-
},
|
|
1857
|
-
required: ["vendor_data"],
|
|
1858
|
-
},
|
|
1859
|
-
},
|
|
1860
|
-
{
|
|
1861
|
-
name: "didit_vendor_user_get",
|
|
1862
|
-
description: "Get details of a specific user by their vendor_data identifier.",
|
|
1863
|
-
inputSchema: {
|
|
1864
|
-
type: "object",
|
|
1865
|
-
properties: {
|
|
1866
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1867
|
-
vendor_data: { type: "string", description: "The vendor_data value that identifies the user" },
|
|
1868
|
-
},
|
|
1869
|
-
required: ["vendor_data"],
|
|
1870
|
-
},
|
|
1871
|
-
},
|
|
1872
|
-
{
|
|
1873
|
-
name: "didit_vendor_user_update",
|
|
1874
|
-
description: "Update a user's profile fields. Only send the fields you want to change. To change ONLY the monitoring status, prefer didit_vendor_user_update_status.",
|
|
1875
|
-
inputSchema: {
|
|
1876
|
-
type: "object",
|
|
1877
|
-
properties: {
|
|
1878
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1879
|
-
vendor_data: { type: "string", description: "The vendor_data value that identifies the user" },
|
|
1880
|
-
full_name: { type: "string" },
|
|
1881
|
-
display_name: { type: "string" },
|
|
1882
|
-
date_of_birth: { type: "string", description: "YYYY-MM-DD" },
|
|
1883
|
-
status: { type: "string", enum: ENTITY_STATUSES, description: "Monitoring status" },
|
|
1884
|
-
metadata: { type: "object" },
|
|
1885
|
-
approved_emails: { type: "array", items: { type: "string" } },
|
|
1886
|
-
approved_phones: { type: "array", items: { type: "string" } },
|
|
1887
|
-
issuing_states: { type: "array", items: { type: "string" } },
|
|
1888
|
-
},
|
|
1889
|
-
required: ["vendor_data"],
|
|
1890
|
-
},
|
|
1891
|
-
},
|
|
1892
|
-
{
|
|
1893
|
-
name: "didit_vendor_user_update_status",
|
|
1894
|
-
description: "Set a user's monitoring status (ACTIVE, FLAGGED, or BLOCKED).",
|
|
1895
|
-
inputSchema: {
|
|
1896
|
-
type: "object",
|
|
1897
|
-
properties: {
|
|
1898
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1899
|
-
vendor_data: { type: "string", description: "The vendor_data value that identifies the user" },
|
|
1900
|
-
status: { type: "string", enum: ENTITY_STATUSES, description: "New status" },
|
|
1901
|
-
},
|
|
1902
|
-
required: ["vendor_data", "status"],
|
|
1903
|
-
},
|
|
1904
|
-
},
|
|
1905
|
-
{
|
|
1906
|
-
name: "didit_vendor_user_delete",
|
|
1907
|
-
description: "Batch delete users by vendor_data list, or delete all users. Deletion is permanent. If the API answers 409 (in_filed_report: a selected person is in a finalized regulatory report; subject_deletion_in_progress: another request is still deleting one of them), nothing is deleted: repeat the request once that deletion has finished.",
|
|
1908
|
-
inputSchema: {
|
|
1909
|
-
type: "object",
|
|
1910
|
-
properties: {
|
|
1911
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1912
|
-
vendor_data_list: {
|
|
1913
|
-
type: "array",
|
|
1914
|
-
items: { type: "string" },
|
|
1915
|
-
description: "Array of vendor_data values to delete",
|
|
1916
|
-
},
|
|
1917
|
-
delete_all: { type: "boolean", description: "Set true to delete ALL users" },
|
|
1918
|
-
confirm: {
|
|
1919
|
-
type: "boolean",
|
|
1920
|
-
description: "REQUIRED when delete_all is true - permanently removes EVERY vendor user. Only set after explicit user confirmation of this exact action.",
|
|
1921
|
-
},
|
|
1922
|
-
},
|
|
1923
|
-
},
|
|
1924
|
-
},
|
|
1925
|
-
// ── Businesses (KYB) ────────────────────────────────────────────────
|
|
1926
|
-
{
|
|
1927
|
-
name: "didit_vendor_business_list",
|
|
1928
|
-
description: "List verified businesses (KYB, grouped by vendor_data) for ONE app; with multiple apps (or no scope) it auto-spans all your apps. For a cross-app lookup prefer didit_vendor_business_search. Supports limit/offset pagination.",
|
|
1929
|
-
inputSchema: {
|
|
1930
|
-
type: "object",
|
|
1931
|
-
properties: {
|
|
1932
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1933
|
-
limit: { type: "string" },
|
|
1934
|
-
offset: { type: "string" },
|
|
1935
|
-
},
|
|
1936
|
-
},
|
|
1937
|
-
},
|
|
1938
|
-
{
|
|
1939
|
-
name: "didit_vendor_business_create",
|
|
1940
|
-
description: "Create a business record manually (KYB).",
|
|
1941
|
-
inputSchema: {
|
|
1942
|
-
type: "object",
|
|
1943
|
-
properties: {
|
|
1944
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1945
|
-
vendor_data: { type: "string", description: "Your unique identifier for the business" },
|
|
1946
|
-
display_name: { type: "string" },
|
|
1947
|
-
legal_name: { type: "string" },
|
|
1948
|
-
registration_number: { type: "string" },
|
|
1949
|
-
country_code: { type: "string", description: "ISO 3166-1 alpha-2 country code" },
|
|
1950
|
-
status: { type: "string", enum: ENTITY_STATUSES },
|
|
1951
|
-
metadata: { type: "object" },
|
|
1952
|
-
},
|
|
1953
|
-
},
|
|
1954
|
-
},
|
|
1955
|
-
{
|
|
1956
|
-
name: "didit_vendor_business_get",
|
|
1957
|
-
description: "Get details of a specific business by its vendor_data identifier.",
|
|
1958
|
-
inputSchema: {
|
|
1959
|
-
type: "object",
|
|
1960
|
-
properties: {
|
|
1961
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1962
|
-
vendor_data: { type: "string", description: "The vendor_data value that identifies the business" },
|
|
1963
|
-
},
|
|
1964
|
-
required: ["vendor_data"],
|
|
1965
|
-
},
|
|
1966
|
-
},
|
|
1967
|
-
{
|
|
1968
|
-
name: "didit_vendor_business_update",
|
|
1969
|
-
description: "Update a business's profile fields. Only send the fields you want to change.",
|
|
1970
|
-
inputSchema: {
|
|
1971
|
-
type: "object",
|
|
1972
|
-
properties: {
|
|
1973
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1974
|
-
vendor_data: { type: "string" },
|
|
1975
|
-
display_name: { type: "string" },
|
|
1976
|
-
legal_name: { type: "string" },
|
|
1977
|
-
registration_number: { type: "string" },
|
|
1978
|
-
country_code: { type: "string", description: "ISO 3166-1 alpha-2 country code" },
|
|
1979
|
-
status: { type: "string", enum: ENTITY_STATUSES },
|
|
1980
|
-
metadata: { type: "object" },
|
|
1981
|
-
},
|
|
1982
|
-
required: ["vendor_data"],
|
|
1983
|
-
},
|
|
1984
|
-
},
|
|
1985
|
-
{
|
|
1986
|
-
name: "didit_vendor_business_update_status",
|
|
1987
|
-
description: "Set a business's monitoring status (ACTIVE, FLAGGED, or BLOCKED).",
|
|
1988
|
-
inputSchema: {
|
|
1989
|
-
type: "object",
|
|
1990
|
-
properties: {
|
|
1991
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
1992
|
-
vendor_data: { type: "string" },
|
|
1993
|
-
status: { type: "string", enum: ENTITY_STATUSES, description: "New status" },
|
|
1994
|
-
},
|
|
1995
|
-
required: ["vendor_data", "status"],
|
|
1996
|
-
},
|
|
1997
|
-
},
|
|
1998
|
-
{
|
|
1999
|
-
name: "didit_vendor_business_delete",
|
|
2000
|
-
description: "Batch delete businesses by vendor_data list and/or didit_internal_id list, or delete all businesses. Deletion is permanent. If the API answers 409 (in_filed_report or subject_deletion_in_progress), nothing is deleted: repeat the request once the other deletion has finished.",
|
|
2001
|
-
inputSchema: {
|
|
2002
|
-
type: "object",
|
|
2003
|
-
properties: {
|
|
2004
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2005
|
-
vendor_data_list: { type: "array", items: { type: "string" } },
|
|
2006
|
-
didit_internal_id_list: { type: "array", items: { type: "string" } },
|
|
2007
|
-
delete_all: { type: "boolean", description: "Set true to delete ALL businesses" },
|
|
2008
|
-
confirm: {
|
|
2009
|
-
type: "boolean",
|
|
2010
|
-
description: "REQUIRED when delete_all is true - permanently removes EVERY vendor business. Only set after explicit user confirmation of this exact action.",
|
|
2011
|
-
},
|
|
2012
|
-
},
|
|
2013
|
-
},
|
|
2014
|
-
},
|
|
2015
|
-
// ── Transactions (AML transaction monitoring) ───────────────────────
|
|
2016
|
-
{
|
|
2017
|
-
name: "didit_transaction_list",
|
|
2018
|
-
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.",
|
|
2019
|
-
inputSchema: {
|
|
2020
|
-
type: "object",
|
|
2021
|
-
properties: {
|
|
2022
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2023
|
-
limit: { type: "string" },
|
|
2024
|
-
offset: { type: "string" },
|
|
2025
|
-
},
|
|
2026
|
-
},
|
|
2027
|
-
},
|
|
2028
|
-
{
|
|
2029
|
-
name: "didit_transaction_create",
|
|
2030
|
-
description: "Submit a transaction for monitoring and rule evaluation. transaction_details and subject shapes depend on transaction_category.",
|
|
2031
|
-
inputSchema: {
|
|
2032
|
-
type: "object",
|
|
2033
|
-
properties: {
|
|
2034
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2035
|
-
transaction_id: { type: "string", description: "REQUIRED. Your unique transaction identifier" },
|
|
2036
|
-
transaction_category: {
|
|
2037
|
-
type: "string",
|
|
2038
|
-
enum: ["finance", "kyc", "travel_rule", "user_event", "audit_trail_event", "gambling_bet", "gambling_limit_change", "gambling_bonus_change"],
|
|
2039
|
-
description: "REQUIRED. Determines the expected transaction_details/subject shape",
|
|
2040
|
-
},
|
|
2041
|
-
transaction_details: { type: "object", description: "REQUIRED. Category-specific transaction payload" },
|
|
2042
|
-
subject: { type: "object", description: "REQUIRED. The party initiating the transaction (usually a vendor_data reference)" },
|
|
2043
|
-
counterparty: { type: "object", description: "The other party in the transaction" },
|
|
2044
|
-
transaction_at: { type: "string", description: "ISO timestamp of the transaction" },
|
|
2045
|
-
time_zone: { type: "string" },
|
|
2046
|
-
custom_properties: { type: "object", description: "Custom values keyed for monitoring rules (custom_values.<key>)" },
|
|
2047
|
-
travel_rule_details: { type: "object" },
|
|
2048
|
-
network_snapshot: { type: "object" },
|
|
2049
|
-
include_crypto_screening: { type: "boolean" },
|
|
2050
|
-
},
|
|
2051
|
-
required: ["transaction_id", "transaction_category", "transaction_details", "subject"],
|
|
2052
|
-
},
|
|
2053
|
-
},
|
|
2054
|
-
{
|
|
2055
|
-
name: "didit_transaction_get",
|
|
2056
|
-
description: "Get a single monitored transaction and its rule-evaluation result.",
|
|
2057
|
-
inputSchema: {
|
|
2058
|
-
type: "object",
|
|
2059
|
-
properties: {
|
|
2060
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2061
|
-
transaction_id: { type: "string", description: "Transaction ID" },
|
|
2062
|
-
},
|
|
2063
|
-
required: ["transaction_id"],
|
|
2064
|
-
},
|
|
2065
|
-
},
|
|
2066
|
-
{
|
|
2067
|
-
name: "didit_transaction_screen_wallet",
|
|
2068
|
-
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.",
|
|
2069
|
-
inputSchema: {
|
|
2070
|
-
type: "object",
|
|
2071
|
-
properties: {
|
|
2072
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2073
|
-
wallet_address: { type: "string", description: "REQUIRED. The crypto address to screen (must match the chain's address format)" },
|
|
2074
|
-
blockchain: {
|
|
2075
|
-
type: "string",
|
|
2076
|
-
enum: ["BTC", "ETH", "LTC", "XRP", "BCH", "DOGE", "TRX", "SOL", "MATIC", "BNB", "USDT", "USDC"],
|
|
2077
|
-
description: "REQUIRED. Asset / chain identifier",
|
|
2078
|
-
},
|
|
2079
|
-
direction: {
|
|
2080
|
-
type: "string",
|
|
2081
|
-
enum: ["inbound", "outbound", "deposit", "withdrawal"],
|
|
2082
|
-
description: "Optional screening direction context",
|
|
2083
|
-
},
|
|
2084
|
-
},
|
|
2085
|
-
required: ["wallet_address", "blockchain"],
|
|
2086
|
-
},
|
|
2087
|
-
},
|
|
2088
|
-
...(0, internal_tools_1.internalToolDefs)("transaction_sdk_token"),
|
|
2089
|
-
{
|
|
2090
|
-
name: "didit_transaction_rule_list",
|
|
2091
|
-
description: "List transaction-monitoring rules for one app. Filter by source (PRESET or CUSTOM), category, mode " +
|
|
2092
|
-
"(ACTIVE evaluates and acts, TEST evaluates and records but skips actions, DISABLED is skipped), bundle, " +
|
|
2093
|
-
"or free-text search. ordering accepts one or more comma-separated fields; prefix a field with '-' to reverse it.",
|
|
2094
|
-
inputSchema: {
|
|
2095
|
-
type: "object",
|
|
2096
|
-
properties: {
|
|
2097
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2098
|
-
source: { type: "string", enum: ["PRESET", "CUSTOM"] },
|
|
2099
|
-
category: { type: "string" },
|
|
2100
|
-
mode: { type: "string", enum: ["ACTIVE", "DISABLED", "TEST"] },
|
|
2101
|
-
bundle: { type: "string" },
|
|
2102
|
-
search: { type: "string" },
|
|
2103
|
-
ordering: {
|
|
2104
|
-
type: "string",
|
|
2105
|
-
description: "Comma-separated fields from run_count, approved_pct, reviewed_pct, declined_pct, " +
|
|
2106
|
-
"latest_triggered_at, title, created_at, source. Prefix any field with '-' for descending order.",
|
|
2107
|
-
},
|
|
2108
|
-
limit: { type: "string" },
|
|
2109
|
-
offset: { type: "string" },
|
|
2110
|
-
},
|
|
2111
|
-
},
|
|
2112
|
-
},
|
|
2113
|
-
{
|
|
2114
|
-
name: "didit_transaction_rule_get",
|
|
2115
|
-
description: "Get one transaction-monitoring rule, including its persisted conditions, aggregation, scope, actions, and counters.",
|
|
2116
|
-
inputSchema: {
|
|
2117
|
-
type: "object",
|
|
2118
|
-
properties: {
|
|
2119
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2120
|
-
rule_uuid: { type: "string", description: "REQUIRED. Rule UUID from didit_transaction_rule_list." },
|
|
2121
|
-
},
|
|
2122
|
-
required: ["rule_uuid"],
|
|
2123
|
-
},
|
|
2124
|
-
},
|
|
2125
|
-
{
|
|
2126
|
-
name: "didit_transaction_rule_create",
|
|
2127
|
-
description: "Create a CUSTOM transaction-monitoring rule. Include the entire requested persisted rule in this call: " +
|
|
2128
|
-
"conditions, aggregation checks, and actions. Backtest accepts a hypothetical config but never attaches " +
|
|
2129
|
-
"aggregation or actions to a created rule. Prefer mode:'TEST', backtest the exact saved config, then switch " +
|
|
2130
|
-
"to ACTIVE only after confirming the hit rate. title is unique among non-deleted rules in the app. " +
|
|
2131
|
-
"actions is REQUIRED: every outcome the user named (review, decline, approve, score, case) must appear " +
|
|
2132
|
-
"there; pass [] ONLY when the user explicitly wants a monitor-only rule that does nothing on match. " +
|
|
2133
|
-
"To change a library (PRESET) rule, send its definition as a copy with metadata.based_on (the library key) " +
|
|
2134
|
-
"and metadata.based_on_rule_uuid.",
|
|
2135
|
-
inputSchema: {
|
|
2136
|
-
type: "object",
|
|
2137
|
-
properties: {
|
|
2138
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2139
|
-
title: { type: "string", description: "REQUIRED. Unique per application." },
|
|
2140
|
-
category: { type: "string", description: "REQUIRED. Rule category, e.g. finance or aml_ctf." },
|
|
2141
|
-
mode: {
|
|
2142
|
-
type: "string",
|
|
2143
|
-
enum: ["ACTIVE", "DISABLED", "TEST"],
|
|
2144
|
-
description: "REQUIRED. Prefer TEST for a new or materially changed rule.",
|
|
2145
|
-
},
|
|
2146
|
-
description: { type: "string" },
|
|
2147
|
-
...RULE_EVALUATION_MODE_PROP,
|
|
2148
|
-
...RULE_SCOPE_PROP,
|
|
2149
|
-
...RULE_CONDITIONS_PROP,
|
|
2150
|
-
...RULE_AGGREGATION_PROP,
|
|
2151
|
-
...RULE_ACTIONS_PROP,
|
|
2152
|
-
metadata: { type: "object", description: "Free-form key/value metadata." },
|
|
2153
|
-
},
|
|
2154
|
-
required: ["title", "category", "mode", "actions"],
|
|
2155
|
-
},
|
|
2156
|
-
},
|
|
2157
|
-
{
|
|
2158
|
-
name: "didit_transaction_rule_update",
|
|
2159
|
-
description: "Partially update a transaction-monitoring rule. Send every changed persisted field in this PATCH. PRESET " +
|
|
2160
|
-
"rules only allow mode changes: to change a PRESET rule's conditions, create a CUSTOM copy with " +
|
|
2161
|
-
"didit_transaction_rule_create (the library rule's definition plus metadata.based_on = its library key and " +
|
|
2162
|
-
"metadata.based_on_rule_uuid), then set the library rule's mode to DISABLED so a transaction does not alert " +
|
|
2163
|
-
"twice. Before raising impact, backtest the exact candidate config and keep the rule " +
|
|
2164
|
-
"in TEST until the result is acceptable.",
|
|
2165
|
-
inputSchema: {
|
|
2166
|
-
type: "object",
|
|
2167
|
-
properties: {
|
|
2168
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2169
|
-
rule_uuid: { type: "string", description: "REQUIRED. Rule UUID." },
|
|
2170
|
-
title: { type: "string" },
|
|
2171
|
-
category: { type: "string" },
|
|
2172
|
-
mode: { type: "string", enum: ["ACTIVE", "DISABLED", "TEST"] },
|
|
2173
|
-
description: { type: "string" },
|
|
2174
|
-
...RULE_EVALUATION_MODE_PROP,
|
|
2175
|
-
...RULE_SCOPE_PROP,
|
|
2176
|
-
...RULE_CONDITIONS_PROP,
|
|
2177
|
-
...RULE_AGGREGATION_PROP,
|
|
2178
|
-
...RULE_ACTIONS_PROP,
|
|
2179
|
-
metadata: { type: "object" },
|
|
2180
|
-
},
|
|
2181
|
-
required: ["rule_uuid"],
|
|
2182
|
-
},
|
|
2183
|
-
},
|
|
2184
|
-
{
|
|
2185
|
-
name: "didit_transaction_rule_delete",
|
|
2186
|
-
description: "Delete a CUSTOM transaction-monitoring rule. PRESET rules must be removed with didit_transaction_rule_uninstall.",
|
|
2187
|
-
inputSchema: {
|
|
2188
|
-
type: "object",
|
|
2189
|
-
properties: {
|
|
2190
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2191
|
-
rule_uuid: { type: "string", description: "REQUIRED. Rule UUID." },
|
|
2192
|
-
},
|
|
2193
|
-
required: ["rule_uuid"],
|
|
2194
|
-
},
|
|
2195
|
-
},
|
|
2196
|
-
{
|
|
2197
|
-
name: "didit_transaction_rule_backtest",
|
|
2198
|
-
description: "Dry-run a hypothetical rule config against up to the 10,000 most recent transactions in the app. This " +
|
|
2199
|
-
"writes nothing, accepts no rule_uuid, and never changes or completes a saved rule. To test a saved rule, " +
|
|
2200
|
-
"read it first and pass its exact conditions, aggregation, evaluation_mode, and scope here.",
|
|
2201
|
-
inputSchema: {
|
|
2202
|
-
type: "object",
|
|
2203
|
-
properties: {
|
|
2204
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2205
|
-
...RULE_CONDITIONS_PROP,
|
|
2206
|
-
...RULE_AGGREGATION_PROP,
|
|
2207
|
-
...RULE_EVALUATION_MODE_PROP,
|
|
2208
|
-
...RULE_SCOPE_PROP,
|
|
2209
|
-
period_days: {
|
|
2210
|
-
type: "integer",
|
|
2211
|
-
minimum: 1,
|
|
2212
|
-
maximum: 365,
|
|
2213
|
-
description: "Days of history to evaluate, from 1 through 365. Default 90.",
|
|
2214
|
-
},
|
|
2215
|
-
},
|
|
2216
|
-
},
|
|
2217
|
-
},
|
|
2218
|
-
{
|
|
2219
|
-
name: "didit_transaction_rule_library_list",
|
|
2220
|
-
description: "List Didit's preset rule library. Each entry includes its full config, bundle, tags, industries, and is_installed. " +
|
|
2221
|
-
"Filter by bundle, category, or search; paginated.",
|
|
2222
|
-
inputSchema: {
|
|
2223
|
-
type: "object",
|
|
2224
|
-
properties: {
|
|
2225
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2226
|
-
bundle: { type: "string" },
|
|
2227
|
-
category: { type: "string" },
|
|
2228
|
-
search: { type: "string" },
|
|
2229
|
-
limit: { type: "string" },
|
|
2230
|
-
offset: { type: "string" },
|
|
2231
|
-
},
|
|
2232
|
-
},
|
|
2233
|
-
},
|
|
2234
|
-
// install / uninstall need library_keys or bundle. That is said in the descriptions and enforced
|
|
2235
|
-
// by the handlers (tools/transactions.ts), never with a top-level anyOf in the input schema:
|
|
2236
|
-
// model APIs refuse a tool list that has one (test/tool-schemas-portable.test.mjs).
|
|
2237
|
-
{
|
|
2238
|
-
name: "didit_transaction_rule_install",
|
|
2239
|
-
description: "Install PRESET rules by library_keys, bundle, or both. If both are supplied, only keys in that bundle are " +
|
|
2240
|
-
"installed. At least one selector is required. Installed rules start ACTIVE when transaction monitoring is " +
|
|
2241
|
-
"enabled for the app, otherwise DISABLED. Set TEST explicitly before relying on a newly installed rule.",
|
|
2242
|
-
inputSchema: {
|
|
2243
|
-
type: "object",
|
|
2244
|
-
properties: {
|
|
2245
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2246
|
-
library_keys: {
|
|
2247
|
-
type: "array",
|
|
2248
|
-
items: { type: "string" },
|
|
2249
|
-
description: "Specific preset library_key values to install.",
|
|
2250
|
-
},
|
|
2251
|
-
bundle: { type: "string", description: "Install presets from this bundle." },
|
|
2252
|
-
},
|
|
2253
|
-
},
|
|
2254
|
-
},
|
|
2255
|
-
{
|
|
2256
|
-
name: "didit_transaction_rule_uninstall",
|
|
2257
|
-
description: "Remove installed PRESET rules by library_keys, bundle, or both. If both are supplied, only keys in that " +
|
|
2258
|
-
"bundle are removed. At least one selector is required. To pause without removing, update mode to DISABLED.",
|
|
2259
|
-
inputSchema: {
|
|
2260
|
-
type: "object",
|
|
2261
|
-
properties: {
|
|
2262
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2263
|
-
library_keys: {
|
|
2264
|
-
type: "array",
|
|
2265
|
-
items: { type: "string" },
|
|
2266
|
-
description: "Specific preset library_key values to uninstall.",
|
|
2267
|
-
},
|
|
2268
|
-
bundle: { type: "string", description: "Uninstall presets from this bundle." },
|
|
2269
|
-
},
|
|
2270
|
-
},
|
|
2271
|
-
},
|
|
2272
|
-
// ── Travel Rule (FATF / EU TFR managed exchange) ─────────────────────
|
|
2273
|
-
...(0, internal_tools_1.internalToolDefs)("travel_rule"),
|
|
2274
|
-
// ── Marketplace (provider catalog & connections) ─────────────────────
|
|
2275
|
-
...(0, internal_tools_1.internalToolDefs)("marketplace"),
|
|
2276
|
-
// ── Billing ─────────────────────────────────────────────────────────
|
|
2277
|
-
{
|
|
2278
|
-
name: "didit_org_get_balance",
|
|
2279
|
-
description: "Get current credit balance and auto-refill settings. Every check is billed from the first one: " +
|
|
2280
|
-
"from 1 Nov 2026 an eligible Free organization gets $10 of monthly credit usable on any feature, paid " +
|
|
2281
|
-
"plans carry their monthly plan credit (Growth $115, Scale $350), and no workflow is free of charge. " +
|
|
2282
|
-
"The Free credit is decided per organization: `free_credit.receives` says whether this one gets it, " +
|
|
2283
|
-
"and `free_credit.this_month` holds this month's credit, also once used up. `free_credit.eligibility` " +
|
|
2284
|
-
"says why an organization does NOT get it, because the credit needs a work email: personal_email " +
|
|
2285
|
-
"means it signed up with a personal email, temporary_email with a temporary one, company_exists " +
|
|
2286
|
-
"that its company already has an organization, api_created that it was created through the API. " +
|
|
2287
|
-
"Such an organization never had the credit, so it was not used up. Answer from these fields, never " +
|
|
2288
|
-
"from the plan alone; when `free_credit` is absent, say you could not read it. Never answer " +
|
|
2289
|
-
"a \"not enough credits\" report from this result alone: read the failing workflow with " +
|
|
2290
|
-
"didit_workflow_list first - `is_white_label_enabled: true` adds $0.20/session, which is a common " +
|
|
2291
|
-
"cause of credit running out faster than expected. This result also carries `allow_free_usage` " +
|
|
2292
|
-
"(organizations on negotiated terms keep the monthly free allowance they were sold until renewal; " +
|
|
2293
|
-
"false means that allowance is off for this organization) and `usage_summary.white_label_sessions`. " +
|
|
2294
|
-
"When the balance cannot cover what the person wants to run, give them `next_steps.top_up_url` (the console " +
|
|
2295
|
-
"top-up dialog with the amount filled in; replace the number to change it) or `next_steps.automatic_top_up_url` " +
|
|
2296
|
-
"(save a card and turn on automatic top-up so the balance never runs out). Didit tools never charge a card. " +
|
|
2297
|
-
"Meanwhile keep building in the organization's sandbox application (`mode: sandbox` in didit_context_get), " +
|
|
2298
|
-
"which is never billed.",
|
|
2299
|
-
inputSchema: { type: "object", properties: { organization_id: orgapp_1.ORG_APP_PROPS.organization_id } },
|
|
2300
|
-
},
|
|
2301
|
-
{
|
|
2302
|
-
name: "didit_org_top_up",
|
|
2303
|
-
description: "Top up credits ($50 to $20,000 per top-up). payment_method \"checkout\" (default) creates a Stripe Checkout " +
|
|
2304
|
-
"page and returns checkout_session_url for the person to pay; it never charges a card by itself. " +
|
|
2305
|
-
"payment_method \"saved_card\" charges the organization's saved primary card off-session, now, when a person " +
|
|
2306
|
-
"turned on \"Connected AI agents can top up with your saved card\" in the Didit console (Billing > Payment " +
|
|
2307
|
-
"methods; off by default; didit_org_get_balance shows it as agent_top_up.enabled where this tool is offered). " +
|
|
2308
|
-
"It needs idempotency_key: choose ONE unique key per intended top-up (for example a UUID) and reuse that same " +
|
|
2309
|
-
"key on any retry of that same top-up, so a retry can never charge twice; never reuse a key for another " +
|
|
2310
|
-
"amount and never retry with a new key. A refusal carries `code`, `detail` and `next_step` {action, url, " +
|
|
2311
|
-
"description}: agent_top_up_not_enabled (the switch is off), authentication_required (the card's bank asks the " +
|
|
2312
|
-
"cardholder to approve), payment_method_required (no saved card) and card_declined are finished by the " +
|
|
2313
|
-
"person: give them next_step.url (a Top up dialog link that says which agent asked, with the amount filled in).",
|
|
2314
|
-
inputSchema: {
|
|
2315
|
-
type: "object",
|
|
2316
|
-
properties: {
|
|
2317
|
-
organization_id: orgapp_1.ORG_APP_PROPS.organization_id,
|
|
2318
|
-
amount_in_dollars: { type: "number", description: "Amount in USD (minimum $50, maximum $20,000 per self-serve top-up)" },
|
|
2319
|
-
payment_method: {
|
|
2320
|
-
type: "string",
|
|
2321
|
-
enum: ["checkout", "saved_card"],
|
|
2322
|
-
description: "checkout (default): a Stripe Checkout page for the person to pay. saved_card: charge the organization's saved primary card now, only while a person has turned on the agent top-up switch in the console; requires idempotency_key.",
|
|
2323
|
-
},
|
|
2324
|
-
idempotency_key: {
|
|
2325
|
-
type: "string",
|
|
2326
|
-
minLength: 1,
|
|
2327
|
-
maxLength: 255,
|
|
2328
|
-
description: "REQUIRED for payment_method saved_card (1 to 255 characters). One unique key per intended top-up; reuse the same key on any retry of that same top-up so the card is never charged twice. Ignored for checkout.",
|
|
2329
|
-
},
|
|
2330
|
-
confirm: {
|
|
2331
|
-
type: "boolean",
|
|
2332
|
-
description: "REQUIRED. Must be true. Only set after explicit user confirmation of this exact action: checkout creates a payment page, saved_card charges the saved card immediately.",
|
|
2333
|
-
},
|
|
2334
|
-
},
|
|
2335
|
-
required: ["amount_in_dollars"],
|
|
2336
|
-
},
|
|
2337
|
-
},
|
|
2338
|
-
{
|
|
2339
|
-
name: "didit_billing_get_plan",
|
|
2340
|
-
description: "Get the organization's plan: the plan and its status, monthly fee and credit, the next charge, the last " +
|
|
2341
|
-
"payment, any unpaid invoice and any scheduled plan change. `next_steps.plans_url` is the console page where " +
|
|
2342
|
-
"the person changes the plan.",
|
|
2343
|
-
inputSchema: { type: "object", properties: { organization_id: orgapp_1.ORG_APP_PROPS.organization_id } },
|
|
2344
|
-
},
|
|
2345
|
-
{
|
|
2346
|
-
name: "didit_billing_quote_plan",
|
|
2347
|
-
description: "Quote a plan change without making it: what it charges today (`amount_due`), the credit it adds " +
|
|
2348
|
-
"(`credit_added`) and the billing period. Plans: free, growth ($99/month, $115 of credit a month, 4% off every " +
|
|
2349
|
-
"price), scale ($299/month, $350 of credit a month, 10% off); yearly billing is cheaper. Show the person the " +
|
|
2350
|
-
"quote; they confirm and pay on `next_steps.plans_url` (Didit tools never buy a plan).",
|
|
2351
|
-
inputSchema: {
|
|
2352
|
-
type: "object",
|
|
2353
|
-
properties: {
|
|
2354
|
-
organization_id: orgapp_1.ORG_APP_PROPS.organization_id,
|
|
2355
|
-
plan: { type: "string", enum: ["free", "growth", "scale"], description: "The plan to quote." },
|
|
2356
|
-
billing_interval: { type: "string", enum: ["monthly", "yearly"], description: "Defaults to monthly." },
|
|
2357
|
-
},
|
|
2358
|
-
required: ["plan"],
|
|
2359
|
-
},
|
|
2360
|
-
},
|
|
2361
|
-
{
|
|
2362
|
-
name: "didit_billing_list_payment_methods",
|
|
2363
|
-
description: "List the organization's saved cards (brand, last 4 digits, expiry) in the order automatic charges try them, " +
|
|
2364
|
-
"card 1 being the primary. An empty list means no card is saved: top-ups then go through Checkout or the " +
|
|
2365
|
-
"console. `next_steps.add_card_url` is where the person adds a card or turns on automatic top-up.",
|
|
2366
|
-
inputSchema: { type: "object", properties: { organization_id: orgapp_1.ORG_APP_PROPS.organization_id } },
|
|
2367
|
-
},
|
|
2368
|
-
{
|
|
2369
|
-
name: "didit_billing_list_receipts",
|
|
2370
|
-
description: "List the organization's payment receipts (top-ups and plan charges), newest first.",
|
|
2371
|
-
inputSchema: {
|
|
2372
|
-
type: "object",
|
|
2373
|
-
properties: {
|
|
2374
|
-
organization_id: orgapp_1.ORG_APP_PROPS.organization_id,
|
|
2375
|
-
limit: { type: "number", description: "Page size (default set by the server)." },
|
|
2376
|
-
offset: { type: "number", description: "Rows to skip." },
|
|
2377
|
-
},
|
|
2378
|
-
},
|
|
2379
|
-
},
|
|
2380
|
-
{
|
|
2381
|
-
name: "didit_billing_get_details",
|
|
2382
|
-
description: "Get the billing details printed on every receipt and invoice: legal name, tax ID, address, billing emails " +
|
|
2383
|
-
"and PO number.",
|
|
2384
|
-
inputSchema: { type: "object", properties: { organization_id: orgapp_1.ORG_APP_PROPS.organization_id } },
|
|
2385
|
-
},
|
|
2386
|
-
{
|
|
2387
|
-
name: "didit_billing_update_details",
|
|
2388
|
-
description: "Change the billing details printed on receipts and invoices. Pass only the fields to change; the rest " +
|
|
2389
|
-
"keep their saved values. Before calling, show the person each change and get their confirmation. When " +
|
|
2390
|
-
"the organization confirms billing changes with an authenticator code, the change is refused and the " +
|
|
2391
|
-
"person saves it in the console instead (the error names the page).",
|
|
2392
|
-
inputSchema: {
|
|
2393
|
-
type: "object",
|
|
2394
|
-
properties: {
|
|
2395
|
-
organization_id: orgapp_1.ORG_APP_PROPS.organization_id,
|
|
2396
|
-
legal_name: { type: "string", description: "The company's legal name." },
|
|
2397
|
-
tax_id_type: { type: "string", description: "Stripe tax ID type, e.g. eu_vat, gb_vat, us_ein. Needs tax_id." },
|
|
2398
|
-
tax_id: { type: "string", description: "The tax ID number. Needs tax_id_type." },
|
|
2399
|
-
address: {
|
|
2400
|
-
type: "object",
|
|
2401
|
-
description: "Billing address; only the lines passed change.",
|
|
2402
|
-
properties: {
|
|
2403
|
-
line1: { type: "string" },
|
|
2404
|
-
line2: { type: "string" },
|
|
2405
|
-
city: { type: "string" },
|
|
2406
|
-
state: { type: "string" },
|
|
2407
|
-
postal_code: { type: "string" },
|
|
2408
|
-
country: { type: "string", description: "ISO 3166-1 alpha-2, e.g. ES, US." },
|
|
2409
|
-
},
|
|
2410
|
-
additionalProperties: false,
|
|
2411
|
-
},
|
|
2412
|
-
billing_emails: { type: "array", items: { type: "string" }, description: "Addresses that receive receipts and invoices (replaces the list)." },
|
|
2413
|
-
po_number: { type: "string", description: "Purchase order number printed on invoices." },
|
|
2414
|
-
},
|
|
2415
|
-
},
|
|
2416
|
-
},
|
|
2417
|
-
// ── Customization (verification UI branding) ────────────────────────
|
|
2418
|
-
{
|
|
2419
|
-
name: "didit_branding_get",
|
|
2420
|
-
description: "Get the current branding customization (logos, colors) applied to your verification UI.",
|
|
2421
|
-
inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS } },
|
|
2422
|
-
},
|
|
2423
|
-
{
|
|
2424
|
-
name: "didit_branding_update",
|
|
2425
|
-
description: "Update verification UI branding images and/or the SMS sender name. Each image is a local absolute *_path (local/stdio runs) or inline *_base64 content (hosted runs).",
|
|
2426
|
-
inputSchema: {
|
|
2427
|
-
type: "object",
|
|
2428
|
-
properties: {
|
|
2429
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2430
|
-
image_square_path: { type: "string", description: "Absolute path to a square logo image (local/stdio only)" },
|
|
2431
|
-
image_rectangular_path: { type: "string", description: "Absolute path to a rectangular logo image (local/stdio only)" },
|
|
2432
|
-
image_favicon_path: { type: "string", description: "Absolute path to a favicon image (local/stdio only)" },
|
|
2433
|
-
image_square_base64: { type: "string", description: "Square logo as base64 or data URL (or an attachment reference like att_1)" },
|
|
2434
|
-
image_rectangular_base64: { type: "string", description: "Rectangular logo as base64 or data URL (or an attachment reference like att_1)" },
|
|
2435
|
-
image_favicon_base64: { type: "string", description: "Favicon as base64 or data URL (or an attachment reference like att_1)" },
|
|
2436
|
-
sms_sender_name: {
|
|
2437
|
-
type: ["string", "null"],
|
|
2438
|
-
maxLength: 30,
|
|
2439
|
-
description: "The name every SMS verification code of this application carries (\"123456 is your verification code for Acme Bank\"), in every workflow and through the phone verification API. Free. 1 to 30 characters: letters, digits, spaces and ' & - ! only, not only digits, single spaces between words. Empty string or null clears it. WhatsApp codes are not branded.",
|
|
2440
|
-
},
|
|
2441
|
-
},
|
|
2442
|
-
},
|
|
2443
|
-
},
|
|
2444
|
-
// ── Webhook destinations ────────────────────────────────────────────
|
|
2445
|
-
{
|
|
2446
|
-
name: "didit_webhook_list",
|
|
2447
|
-
description: "List configured webhook destinations. Each destination has its own URL, version, enabled flag, subscribed events, and redacted signing-secret metadata.",
|
|
2448
|
-
inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS } },
|
|
2449
|
-
},
|
|
2450
|
-
{
|
|
2451
|
-
name: "didit_webhook_create",
|
|
2452
|
-
description: "Create a webhook destination. The signing secret is redacted in the response.",
|
|
2453
|
-
inputSchema: {
|
|
2454
|
-
type: "object",
|
|
2455
|
-
properties: {
|
|
2456
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2457
|
-
label: { type: "string", description: "REQUIRED. Human-readable name" },
|
|
2458
|
-
url: { type: "string", description: "REQUIRED. HTTPS endpoint to receive events" },
|
|
2459
|
-
enabled: { type: "boolean", description: "Whether the destination receives events (default true)" },
|
|
2460
|
-
webhook_version: { type: "string", enum: ["v1", "v2", "v3"], description: "Payload version (v3 recommended)" },
|
|
2461
|
-
subscribed_events: { type: "array", items: { type: "string" }, description: "Event types to deliver (e.g. status.updated, data.updated, user.created). Omit to receive all." },
|
|
2462
|
-
},
|
|
2463
|
-
required: ["label", "url"],
|
|
2464
|
-
},
|
|
2465
|
-
},
|
|
2466
|
-
{
|
|
2467
|
-
name: "didit_webhook_get",
|
|
2468
|
-
description: "Get a single webhook destination with redacted signing-secret metadata.",
|
|
2469
|
-
inputSchema: {
|
|
2470
|
-
type: "object",
|
|
2471
|
-
properties: {
|
|
2472
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2473
|
-
destination_uuid: { type: "string", description: "Webhook destination UUID" },
|
|
2474
|
-
},
|
|
2475
|
-
required: ["destination_uuid"],
|
|
2476
|
-
},
|
|
2477
|
-
},
|
|
2478
|
-
{
|
|
2479
|
-
name: "didit_webhook_update",
|
|
2480
|
-
description: "Overwrite the supplied settings of an existing webhook destination. Changing its URL redirects future deliveries; disabling it stops deliveries, and subscribed_events replaces its event subscriptions. Before calling, show the destination UUID and each proposed field change and obtain explicit user confirmation.",
|
|
2481
|
-
inputSchema: {
|
|
2482
|
-
type: "object",
|
|
2483
|
-
properties: {
|
|
2484
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2485
|
-
destination_uuid: { type: "string", description: "Webhook destination UUID" },
|
|
2486
|
-
label: { type: "string" },
|
|
2487
|
-
url: { type: "string" },
|
|
2488
|
-
enabled: { type: "boolean" },
|
|
2489
|
-
webhook_version: { type: "string", enum: ["v1", "v2", "v3"] },
|
|
2490
|
-
subscribed_events: { type: "array", items: { type: "string" } },
|
|
2491
|
-
},
|
|
2492
|
-
required: ["destination_uuid"],
|
|
2493
|
-
},
|
|
2494
|
-
},
|
|
2495
|
-
{
|
|
2496
|
-
name: "didit_webhook_delete",
|
|
2497
|
-
description: "Delete a webhook destination so it stops receiving events.",
|
|
2498
|
-
inputSchema: {
|
|
2499
|
-
type: "object",
|
|
2500
|
-
properties: {
|
|
2501
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2502
|
-
destination_uuid: { type: "string", description: "Webhook destination UUID" },
|
|
2503
|
-
},
|
|
2504
|
-
required: ["destination_uuid"],
|
|
2505
|
-
},
|
|
2506
|
-
},
|
|
2507
|
-
// ── Lists (Blocklists, Allowlists & Custom) ─────────────────────────
|
|
2508
|
-
{
|
|
2509
|
-
name: "didit_lists_list",
|
|
2510
|
-
description: "List all lists (blocklists, allowlists, custom) for the application. Filter by list_type or entry_type.",
|
|
2511
|
-
inputSchema: {
|
|
2512
|
-
type: "object",
|
|
2513
|
-
properties: {
|
|
2514
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2515
|
-
list_type: { type: "string", description: "Filter: blocklist, allowlist, custom" },
|
|
2516
|
-
entry_type: { type: "string", description: `Filter: ${LIST_ENTRY_TYPES.join(", ")}` },
|
|
2517
|
-
limit: { type: "string" },
|
|
2518
|
-
offset: { type: "string" },
|
|
2519
|
-
},
|
|
2520
|
-
},
|
|
2521
|
-
},
|
|
2522
|
-
{
|
|
2523
|
-
name: "didit_lists_create",
|
|
2524
|
-
description: "Create an allowlist or custom list. System blocklists are auto-provisioned (one per entry type) and cannot be created. name must be unique per application.",
|
|
2525
|
-
inputSchema: {
|
|
2526
|
-
type: "object",
|
|
2527
|
-
properties: {
|
|
2528
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2529
|
-
name: { type: "string", description: "REQUIRED. Unique list name" },
|
|
2530
|
-
list_type: { type: "string", enum: ["allowlist", "custom"], description: "REQUIRED. allowlist or custom (blocklists are auto-provisioned)" },
|
|
2531
|
-
entry_type: { type: "string", enum: LIST_ENTRY_TYPES, description: "REQUIRED. What kind of values the list holds" },
|
|
2532
|
-
description: { type: "string" },
|
|
2533
|
-
},
|
|
2534
|
-
required: ["name", "list_type", "entry_type"],
|
|
2535
|
-
},
|
|
2536
|
-
},
|
|
2537
|
-
{
|
|
2538
|
-
name: "didit_lists_get",
|
|
2539
|
-
description: "Get a single list's details by UUID.",
|
|
2540
|
-
inputSchema: {
|
|
2541
|
-
type: "object",
|
|
2542
|
-
properties: {
|
|
2543
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2544
|
-
list_uuid: { type: "string", description: "UUID of the list" },
|
|
2545
|
-
},
|
|
2546
|
-
required: ["list_uuid"],
|
|
2547
|
-
},
|
|
2548
|
-
},
|
|
2549
|
-
{
|
|
2550
|
-
name: "didit_lists_update",
|
|
2551
|
-
description: "Rename or update the description of an allowlist/custom list. System blocklists are immutable.",
|
|
2552
|
-
inputSchema: {
|
|
2553
|
-
type: "object",
|
|
2554
|
-
properties: {
|
|
2555
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2556
|
-
list_uuid: { type: "string", description: "UUID of the list" },
|
|
2557
|
-
name: { type: "string" },
|
|
2558
|
-
description: { type: "string" },
|
|
2559
|
-
},
|
|
2560
|
-
required: ["list_uuid"],
|
|
2561
|
-
},
|
|
2562
|
-
},
|
|
2563
|
-
{
|
|
2564
|
-
name: "didit_lists_delete",
|
|
2565
|
-
description: "Delete an allowlist/custom list and all its entries. System blocklists cannot be deleted.",
|
|
2566
|
-
inputSchema: {
|
|
2567
|
-
type: "object",
|
|
2568
|
-
properties: {
|
|
2569
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2570
|
-
list_uuid: { type: "string", description: "UUID of the list" },
|
|
2571
|
-
},
|
|
2572
|
-
required: ["list_uuid"],
|
|
2573
|
-
},
|
|
2574
|
-
},
|
|
2575
|
-
{
|
|
2576
|
-
name: "didit_lists_entries_list",
|
|
2577
|
-
description: "List entries in a specific list. Use search to filter by value or label.",
|
|
2578
|
-
inputSchema: {
|
|
2579
|
-
type: "object",
|
|
2580
|
-
properties: {
|
|
2581
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2582
|
-
list_uuid: { type: "string", description: "UUID of the list" },
|
|
2583
|
-
search: { type: "string", description: "Search by value or display label" },
|
|
2584
|
-
reference_session_id: { type: "string", description: "Only the entries created from this session UUID (e.g. which of its faces are already blocklisted)" },
|
|
2585
|
-
limit: { type: "string" },
|
|
2586
|
-
offset: { type: "string" },
|
|
2587
|
-
},
|
|
2588
|
-
required: ["list_uuid"],
|
|
2589
|
-
},
|
|
2590
|
-
},
|
|
2591
|
-
{
|
|
2592
|
-
name: "didit_lists_entry_create",
|
|
2593
|
-
description: "Add an entry to a blocklist/allowlist/custom list. Pass value directly, or reference_session_id to auto-extract from a session (face, document, phone, email, IP, device). Pass both to disambiguate when a session has multiple values of the same type. For the face blocklist, face_image_source picks which of the session's faces to block: the liveness selfie (default) or a selfie the front camera took while the user photographed their document. For face entries without a session, use didit_lists_entry_upload_face instead.",
|
|
2594
|
-
inputSchema: {
|
|
2595
|
-
type: "object",
|
|
2596
|
-
properties: {
|
|
2597
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2598
|
-
list_uuid: { type: "string", description: "UUID of the list to add to" },
|
|
2599
|
-
value: { type: "string", description: "Value to add (phone, email, IP, etc.). Optional if reference_session_id is provided." },
|
|
2600
|
-
reference_session_id: { type: "string", description: "Session UUID — backend auto-extracts the value based on the list's entry type" },
|
|
2601
|
-
reference_object_uuid: { type: "string", description: "UUID of the source entity (transaction, vendor user/business) for traceability" },
|
|
2602
|
-
face_image_source: {
|
|
2603
|
-
type: "string",
|
|
2604
|
-
enum: ["liveness", "front_image_camera_front", "back_image_camera_front"],
|
|
2605
|
-
description: "Face blocklist with reference_session_id only: which of the session's faces to block. liveness (default) is the liveness selfie; front_image_camera_front / back_image_camera_front are the selfies taken while the user photographed the front / back of their document. Leave value empty with a document-capture source.",
|
|
2606
|
-
},
|
|
2607
|
-
reference_node_id: { type: "string", description: "With a document-capture face_image_source: the ID verification node whose selfie to use, for workflows with several ID verification steps" },
|
|
2608
|
-
display_label: { type: "string", description: "Human-readable label" },
|
|
2609
|
-
comment: { type: "string", description: "Reason for adding" },
|
|
2610
|
-
metadata: { type: "object", description: "Additional structured data (e.g. reference_type, full_name)" },
|
|
2611
|
-
},
|
|
2612
|
-
required: ["list_uuid"],
|
|
2613
|
-
},
|
|
2614
|
-
},
|
|
2615
|
-
{
|
|
2616
|
-
name: "didit_lists_entry_upload_face",
|
|
2617
|
-
description: "Add a face entry to a face list by uploading an image directly (no session needed). Use this when you have a photo but no reference_session_id. Provide the image as image_path (local/stdio runs) or image_base64 (hosted runs).",
|
|
2618
|
-
inputSchema: {
|
|
2619
|
-
type: "object",
|
|
2620
|
-
properties: {
|
|
2621
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2622
|
-
list_uuid: { type: "string", description: "UUID of a face-type list" },
|
|
2623
|
-
image_path: { type: "string", description: "Absolute path to the face image file (local/stdio only)" },
|
|
2624
|
-
image_base64: { type: "string", description: "Face image as base64 or data URL (or an attachment reference like att_1)" },
|
|
2625
|
-
display_label: { type: "string" },
|
|
2626
|
-
comment: { type: "string" },
|
|
2627
|
-
},
|
|
2628
|
-
required: ["list_uuid"],
|
|
2629
|
-
},
|
|
2630
|
-
},
|
|
2631
|
-
{
|
|
2632
|
-
name: "didit_lists_entry_delete",
|
|
2633
|
-
description: "Remove an entry from a list. Also unblocks the underlying user/business if applicable.",
|
|
2634
|
-
inputSchema: {
|
|
2635
|
-
type: "object",
|
|
2636
|
-
properties: {
|
|
2637
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2638
|
-
list_uuid: { type: "string", description: "UUID of the list" },
|
|
2639
|
-
entry_uuid: { type: "string", description: "UUID of the entry to remove" },
|
|
2640
|
-
},
|
|
2641
|
-
required: ["list_uuid", "entry_uuid"],
|
|
2642
|
-
},
|
|
2643
|
-
},
|
|
2644
|
-
// ── Standalone: Identity & Documents ────────────────────────────────
|
|
2645
|
-
{
|
|
2646
|
-
name: "didit_verify_id",
|
|
2647
|
-
description: "Verify an identity document by submitting front (and optionally back) images. Returns structured OCR data and authenticity checks. Each image is a local absolute *_path (local/stdio runs) or inline *_base64 content (hosted runs).",
|
|
2648
|
-
inputSchema: {
|
|
2649
|
-
type: "object",
|
|
2650
|
-
properties: {
|
|
2651
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2652
|
-
front_image_path: { type: "string", description: "Absolute path to front image file (local/stdio only)" },
|
|
2653
|
-
back_image_path: { type: "string", description: "Absolute path to back image file (optional; local/stdio only)" },
|
|
2654
|
-
front_image_base64: { type: "string", description: "Front image as base64 or data URL (or an attachment reference like att_1)" },
|
|
2655
|
-
back_image_base64: { type: "string", description: "Back image as base64 or data URL (optional; or an attachment reference like att_1)" },
|
|
2656
|
-
vendor_data: { type: "string", description: "Optional identifier to link the result to a user" },
|
|
2657
|
-
perform_document_liveness: { type: "boolean", description: "Run document-presence (anti-screenshot) checks" },
|
|
2658
|
-
minimum_age: { type: "number", description: "Decline if the extracted age is below this value" },
|
|
2659
|
-
preferred_characters: { type: "string", enum: ["latin", "non_latin"], description: "Preferred OCR script" },
|
|
2660
|
-
},
|
|
2661
|
-
},
|
|
2662
|
-
},
|
|
2663
|
-
{
|
|
2664
|
-
name: "didit_verify_poa",
|
|
2665
|
-
description: "Proof of Address verification. Submit a single document image to extract and validate address information. The image is a local absolute *_path (local/stdio runs) or inline *_base64 content (hosted runs).",
|
|
2666
|
-
inputSchema: {
|
|
2667
|
-
type: "object",
|
|
2668
|
-
properties: {
|
|
2669
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2670
|
-
document_image_path: { type: "string", description: "Absolute path to the POA document image (local/stdio only)" },
|
|
2671
|
-
document_image_base64: { type: "string", description: "POA document image as base64 or data URL (or an attachment reference like att_1)" },
|
|
2672
|
-
vendor_data: { type: "string", description: "Optional identifier to link the result to a user" },
|
|
2673
|
-
expected_address: { type: "string", description: "Address to validate the document against" },
|
|
2674
|
-
expected_country: { type: "string", description: "ISO 3166-1 alpha-2 country code to validate against" },
|
|
2675
|
-
expected_first_name: { type: "string" },
|
|
2676
|
-
expected_last_name: { type: "string" },
|
|
2677
|
-
},
|
|
2678
|
-
},
|
|
2679
|
-
},
|
|
2680
|
-
{
|
|
2681
|
-
name: "didit_verify_account_check",
|
|
2682
|
-
description: "Check that a bank account belongs to the person or company you name, before sending money to it. No session: send the name and the account, read the result. " +
|
|
2683
|
-
"result is match, close_match, no_match or cannot_verify; on a close_match, holder_name is the name the bank holds the account under (when returned); account " +
|
|
2684
|
-
"comes back masked to its last 4 characters. Billed once per check the bank answers at the account's country price, whatever the result (no_match and " +
|
|
2685
|
-
"cannot_verify too); an error is never billed. Every call is a NEW billed check (no idempotency key, no read-back): do not retry blindly and store the response. " +
|
|
2686
|
-
"Errors: 400 names the field and reason (consent required: in countries whose check needs the account holder's explicit consent, ask for it and send " +
|
|
2687
|
-
"consent:true; nothing is billed); 402 top up; 404 country_not_covered or bank_not_covered; 503 the bank could not answer, send again later. " +
|
|
2688
|
-
"Where Bank Verification is not switched on (production at the moment) it answers 404 bank_verification_not_available. A sandbox application calls no bank " +
|
|
2689
|
-
"and charges nothing: the last 4 characters of the IBAN, else the account number, choose the answer (0001 close_match with holder_name, 0002 close_match " +
|
|
2690
|
-
"without, 0003 and 0006 no_match, 0004 cannot_verify, 0005 a 503, 0009 a 400, anything else match).",
|
|
2691
|
-
inputSchema: {
|
|
2692
|
-
type: "object",
|
|
2693
|
-
properties: {
|
|
2694
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2695
|
-
country: { type: "string", description: "REQUIRED. The account's country, ISO 3166-1 alpha-3 (for example GBR, NGA)." },
|
|
2696
|
-
account: {
|
|
2697
|
-
type: "object",
|
|
2698
|
-
description: "REQUIRED. The account the way its country writes it: an iban, or an account_number with the bank or branch code the country needs (sort_code, routing_number, " +
|
|
2699
|
-
"transit_institution, bsb, ifsc, bank_code, bic). Mexico takes a clabe and Argentina a cbu_cvu. A business account adds registration_id where the country asks. " +
|
|
2700
|
-
"Spaces, dashes and dots are ignored; a key the country needs and does not get is a 400 that names it.",
|
|
2701
|
-
properties: {
|
|
2702
|
-
iban: { type: "string" }, account_number: { type: "string" }, sort_code: { type: "string" }, routing_number: { type: "string" },
|
|
2703
|
-
transit_institution: { type: "string" }, bsb: { type: "string" }, ifsc: { type: "string" }, bank_code: { type: "string" },
|
|
2704
|
-
bic: { type: "string" }, clabe: { type: "string" }, cbu_cvu: { type: "string" }, registration_id: { type: "string" },
|
|
2705
|
-
},
|
|
2706
|
-
},
|
|
2707
|
-
holder: {
|
|
2708
|
-
type: "object",
|
|
2709
|
-
description: "REQUIRED. The name to check: full_name for a person, or business_name for a company (a business name checks a business account).",
|
|
2710
|
-
properties: { full_name: { type: "string" }, business_name: { type: "string" } },
|
|
2711
|
-
},
|
|
2712
|
-
vendor_data: { type: "string", description: "Your own reference for this check, returned unchanged." },
|
|
2713
|
-
consent: { type: "boolean", description: "true when the account holder explicitly consented to this check. Required where the country's check needs it; only set it after the user states the holder consented." },
|
|
2714
|
-
},
|
|
2715
|
-
required: ["country", "account", "holder"],
|
|
2716
|
-
},
|
|
2717
|
-
},
|
|
2718
|
-
{
|
|
2719
|
-
name: "didit_verify_database",
|
|
2720
|
-
description: "Validate identity data against national and global authoritative data sources. issuing_state (ISO 3166-1 alpha-3) is required and selects which sources run.",
|
|
2721
|
-
inputSchema: {
|
|
2722
|
-
type: "object",
|
|
2723
|
-
properties: {
|
|
2724
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2725
|
-
issuing_state: { type: "string", description: "REQUIRED. ISO 3166-1 alpha-3 country code that selects the data sources to query" },
|
|
2726
|
-
first_name: { type: "string" },
|
|
2727
|
-
last_name: { type: "string" },
|
|
2728
|
-
middle_name: { type: "string" },
|
|
2729
|
-
full_name: { type: "string" },
|
|
2730
|
-
date_of_birth: { type: "string", description: "YYYY-MM-DD" },
|
|
2731
|
-
document_number: { type: "string" },
|
|
2732
|
-
document_type: { type: "string", enum: DOCUMENT_TYPES },
|
|
2733
|
-
personal_number: { type: "string" },
|
|
2734
|
-
tax_number: { type: "string" },
|
|
2735
|
-
gender: { type: "string", enum: ["M", "F", "X"] },
|
|
2736
|
-
nationality: { type: "string" },
|
|
2737
|
-
services: { type: "array", items: { type: "string" }, description: "Optional service_ids to restrict which sources run" },
|
|
2738
|
-
partial_match_action: { type: "string", enum: ["DECLINE", "NO_ACTION"] },
|
|
2739
|
-
no_match_action: { type: "string", enum: ["DECLINE", "NO_ACTION"] },
|
|
2740
|
-
vendor_data: { type: "string" },
|
|
2741
|
-
metadata: { type: "object" },
|
|
2742
|
-
},
|
|
2743
|
-
required: ["issuing_state"],
|
|
2744
|
-
},
|
|
2745
|
-
},
|
|
2746
|
-
// ── Standalone: KYB registry ────────────────────────────────────────
|
|
2747
|
-
{
|
|
2748
|
-
name: "didit_verify_kyb_search",
|
|
2749
|
-
description: "Search official company registries for a business by name and/or registration number. Returns candidate matches; pass a candidate's kyb_response_id to didit_verify_kyb_select to pull the full record.",
|
|
2750
|
-
inputSchema: {
|
|
2751
|
-
type: "object",
|
|
2752
|
-
properties: {
|
|
2753
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2754
|
-
country_code: { type: "string", description: "REQUIRED. ISO 3166-1 alpha-2 country code" },
|
|
2755
|
-
name: { type: "string", description: "Company name to search" },
|
|
2756
|
-
registration_number: { type: "string", description: "Registration number to search" },
|
|
2757
|
-
search_type: { type: "string", enum: ["contains", "start_with", "fuzzy"], description: "Name match strategy" },
|
|
2758
|
-
vendor_data: { type: "string" },
|
|
2759
|
-
metadata: { type: "object" },
|
|
2760
|
-
webhook_url: { type: "string", description: "Optional URL notified when the registry result resolves" },
|
|
2761
|
-
},
|
|
2762
|
-
required: ["country_code"],
|
|
2763
|
-
},
|
|
2764
|
-
},
|
|
2765
|
-
{
|
|
2766
|
-
name: "didit_verify_kyb_select",
|
|
2767
|
-
description: "Resolve a candidate from didit_verify_kyb_search into a full company registry record. kyb_response_id is the per-search candidate handle returned by the search. A resolved record carries registry_status and verification_status (verified, failed or unknown).",
|
|
2768
|
-
inputSchema: {
|
|
2769
|
-
type: "object",
|
|
2770
|
-
properties: {
|
|
2771
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2772
|
-
kyb_response_id: { type: "string", description: "REQUIRED. Candidate handle from didit_verify_kyb_search" },
|
|
2773
|
-
vendor_data: { type: "string" },
|
|
2774
|
-
metadata: { type: "object" },
|
|
2775
|
-
save_api_request: { type: "boolean" },
|
|
2776
|
-
},
|
|
2777
|
-
required: ["kyb_response_id"],
|
|
2778
|
-
},
|
|
2779
|
-
},
|
|
2780
|
-
// ── Standalone: Biometrics & Face ───────────────────────────────────
|
|
2781
|
-
{
|
|
2782
|
-
name: "didit_verify_passive_liveness",
|
|
2783
|
-
description: "Passive liveness detection -- verify a person is physically present from a single image (no interaction required). The image is a local absolute image_path (local/stdio runs) or inline image_base64 content (hosted runs).",
|
|
2784
|
-
inputSchema: {
|
|
2785
|
-
type: "object",
|
|
2786
|
-
properties: {
|
|
2787
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2788
|
-
image_path: { type: "string", description: "Absolute path to facial image file (local/stdio only)" },
|
|
2789
|
-
image_base64: { type: "string", description: "Facial image as base64 or data URL (or an attachment reference like att_1)" },
|
|
2790
|
-
vendor_data: { type: "string", description: "Optional identifier to link the result to a user" },
|
|
2791
|
-
},
|
|
2792
|
-
},
|
|
2793
|
-
},
|
|
2794
|
-
{
|
|
2795
|
-
name: "didit_verify_face_match",
|
|
2796
|
-
description: "Compare two facial images to determine if they belong to the same person (1:1 face matching). The score is symmetric, so image order does not affect the result. Each image is a local absolute *_path (local/stdio runs) or inline *_base64 content (hosted runs).",
|
|
2797
|
-
inputSchema: {
|
|
2798
|
-
type: "object",
|
|
2799
|
-
properties: {
|
|
2800
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2801
|
-
image_1_path: { type: "string", description: "Absolute path to the first facial image, e.g. the selfie (local/stdio only)" },
|
|
2802
|
-
image_2_path: { type: "string", description: "Absolute path to the second facial image, e.g. the ID portrait (local/stdio only)" },
|
|
2803
|
-
image_1_base64: { type: "string", description: "First facial image as base64 or data URL (or an attachment reference like att_1)" },
|
|
2804
|
-
image_2_base64: { type: "string", description: "Second facial image as base64 or data URL (or an attachment reference like att_2)" },
|
|
2805
|
-
vendor_data: { type: "string", description: "Optional identifier to link the result to a user" },
|
|
2806
|
-
},
|
|
2807
|
-
},
|
|
2808
|
-
},
|
|
2809
|
-
{
|
|
2810
|
-
name: "didit_verify_face_search",
|
|
2811
|
-
description: "Search for a face against a database of previously verified faces (1:N face matching). The image is a local absolute image_path (local/stdio runs) or inline image_base64 content (hosted runs).",
|
|
2812
|
-
inputSchema: {
|
|
2813
|
-
type: "object",
|
|
2814
|
-
properties: {
|
|
2815
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2816
|
-
image_path: { type: "string", description: "Absolute path to facial image file (local/stdio only)" },
|
|
2817
|
-
image_base64: { type: "string", description: "Facial image as base64 or data URL (or an attachment reference like att_1)" },
|
|
2818
|
-
vendor_data: { type: "string", description: "Optional identifier to link the result to a user" },
|
|
2819
|
-
},
|
|
2820
|
-
},
|
|
2821
|
-
},
|
|
2822
|
-
{
|
|
2823
|
-
name: "didit_verify_age",
|
|
2824
|
-
description: "Estimate a person's age from a facial image. Also performs passive liveness check. The image is a local absolute image_path (local/stdio runs) or inline image_base64 content (hosted runs).",
|
|
2825
|
-
inputSchema: {
|
|
2826
|
-
type: "object",
|
|
2827
|
-
properties: {
|
|
2828
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2829
|
-
image_path: { type: "string", description: "Absolute path to facial image file (local/stdio only)" },
|
|
2830
|
-
image_base64: { type: "string", description: "Facial image as base64 or data URL (or an attachment reference like att_1)" },
|
|
2831
|
-
vendor_data: { type: "string", description: "Optional identifier to link the result to a user" },
|
|
2832
|
-
},
|
|
2833
|
-
},
|
|
2834
|
-
},
|
|
2835
|
-
// ── Standalone: AML Screening ───────────────────────────────────────
|
|
2836
|
-
{
|
|
2837
|
-
name: "didit_verify_aml",
|
|
2838
|
-
description: "AML screening against global watchlists, PEP lists, sanctions, and (optionally) adverse media. Supports person and company entity types.",
|
|
2839
|
-
inputSchema: {
|
|
2840
|
-
type: "object",
|
|
2841
|
-
properties: {
|
|
2842
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2843
|
-
full_name: { type: "string", description: "REQUIRED. Full name to screen" },
|
|
2844
|
-
entity_type: { type: "string", enum: ["person", "company"], description: "Defaults to person" },
|
|
2845
|
-
date_of_birth: { type: "string", description: "YYYY-MM-DD (improves match accuracy)" },
|
|
2846
|
-
nationality: { type: "string", description: "ISO country code (improves match accuracy)" },
|
|
2847
|
-
document_number: { type: "string" },
|
|
2848
|
-
include_adverse_media: { type: "boolean", description: "Include adverse-media findings" },
|
|
2849
|
-
include_ongoing_monitoring: { type: "boolean", description: "Enroll the entity for ongoing monitoring" },
|
|
2850
|
-
vendor_data: { type: "string" },
|
|
2851
|
-
metadata: { type: "object" },
|
|
2852
|
-
},
|
|
2853
|
-
required: ["full_name"],
|
|
2854
|
-
},
|
|
2855
|
-
},
|
|
2856
|
-
// ── Standalone: Email & Phone Verification ──────────────────────────
|
|
2857
|
-
{
|
|
2858
|
-
name: "didit_verify_email_send",
|
|
2859
|
-
description: "Send a one-time verification code to an email address. Code valid for 5 minutes.",
|
|
2860
|
-
inputSchema: {
|
|
2861
|
-
type: "object",
|
|
2862
|
-
properties: {
|
|
2863
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2864
|
-
email: { type: "string", description: "Email address to verify" },
|
|
2865
|
-
},
|
|
2866
|
-
required: ["email"],
|
|
2867
|
-
},
|
|
2868
|
-
},
|
|
2869
|
-
{
|
|
2870
|
-
name: "didit_verify_email_check",
|
|
2871
|
-
description: "Verify the OTP code sent to an email. Max 3 attempts per code.",
|
|
2872
|
-
inputSchema: {
|
|
2873
|
-
type: "object",
|
|
2874
|
-
properties: {
|
|
2875
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2876
|
-
email: { type: "string" },
|
|
2877
|
-
code: { type: "string", description: "Verification code from email" },
|
|
2878
|
-
},
|
|
2879
|
-
required: ["email", "code"],
|
|
2880
|
-
},
|
|
2881
|
-
},
|
|
2882
|
-
{
|
|
2883
|
-
name: "didit_verify_phone_send",
|
|
2884
|
-
description: "Send a one-time verification code to a phone number. Delivered on WhatsApp by default, falling back to SMS where WhatsApp cannot reach that country or number. The code is valid for 5 minutes. Returns request_id plus status: Success (a new code was sent), Retry (resent while an earlier code for that number is still pending) or Blocked (the number was refused; see reason). Paid from the organization's balance, so a live application really delivers a message, and answers 403 until the organization's first top-up or when the balance is short; a sandbox application mocks the send for free. Repeated sends to one number can answer 429 with code PHONE_RATE_LIMITED. Sends with the application's API key, so the caller's role needs create:sessions (Owner, Admin or Developer; an organization owner or admin with a local didit_account_login token), and an MCP sign-in needs the didit:management scope to read that key.",
|
|
2885
|
-
inputSchema: {
|
|
2886
|
-
type: "object",
|
|
2887
|
-
properties: {
|
|
2888
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2889
|
-
phone_number: { type: "string", description: "Phone number with country code (e.g. +1234567890)" },
|
|
2890
|
-
},
|
|
2891
|
-
required: ["phone_number"],
|
|
2892
|
-
},
|
|
2893
|
-
},
|
|
2894
|
-
{
|
|
2895
|
-
name: "didit_verify_phone_check",
|
|
2896
|
-
description: "Check the one-time code sent to a phone number and return what Didit knows about that number. Maximum 3 attempts per code, and the code expires 5 minutes after it was sent. Returns status Approved, Failed (with the attempts remaining), Declined, or 'Expired or Not Found' when that number has no code pending. A sandbox application mocks the check and approves any code. Sends with the application's API key, so the caller's role needs create:sessions (Owner, Admin or Developer; an organization owner or admin with a local didit_account_login token), and an MCP sign-in needs the didit:management scope to read that key.",
|
|
2897
|
-
inputSchema: {
|
|
2898
|
-
type: "object",
|
|
2899
|
-
properties: {
|
|
2900
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2901
|
-
phone_number: { type: "string" },
|
|
2902
|
-
code: { type: "string", description: "Verification code from the WhatsApp or SMS message" },
|
|
2903
|
-
},
|
|
2904
|
-
required: ["phone_number", "code"],
|
|
2905
|
-
},
|
|
2906
|
-
},
|
|
2907
|
-
// ── Blocklist / Allowlist ───────────────────────────────────────────
|
|
2908
|
-
// The blocklist and the allowlist are written from a SESSION: an entry is an item that session
|
|
2909
|
-
// holds (its face, its document, its phone number, its email address), never a free value.
|
|
2910
|
-
{
|
|
2911
|
-
name: "didit_blocklist_get",
|
|
2912
|
-
description: "List the application's blocklist, newest first: the faces, identity documents, phone numbers and email " +
|
|
2913
|
-
"addresses that are blocked, each with the `session_id` it was blocked from (what didit_blocklist_remove " +
|
|
2914
|
-
"takes). One page: 50 entries unless `limit` says otherwise, with `count` as the total and `offset` to read " +
|
|
2915
|
-
"the ones after.",
|
|
2916
|
-
inputSchema: {
|
|
2917
|
-
type: "object",
|
|
2918
|
-
properties: {
|
|
2919
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2920
|
-
item_type: { type: "string", enum: ["face", "document", "phone", "email"], description: "Only entries of this kind." },
|
|
2921
|
-
...paging_1.PAGE_PROPS,
|
|
2922
|
-
},
|
|
2923
|
-
},
|
|
2924
|
-
},
|
|
2925
|
-
{
|
|
2926
|
-
name: "didit_blocklist_add",
|
|
2927
|
-
description: "Block what a verification session holds, so that later sessions of this application with the same item are " +
|
|
2928
|
-
"caught by the blocklist check: its face, its identity document, its phone number or its email address. " +
|
|
2929
|
-
"Name the session and set at least one of the four flags to true. A flag works only when the session has " +
|
|
2930
|
-
"that item. Undo with didit_blocklist_remove.",
|
|
2931
|
-
inputSchema: {
|
|
2932
|
-
type: "object",
|
|
2933
|
-
properties: {
|
|
2934
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2935
|
-
session_id: { type: "string", description: "The session whose item is blocked." },
|
|
2936
|
-
blocklist_face: { type: "boolean", description: "Block the session's face." },
|
|
2937
|
-
blocklist_document: { type: "boolean", description: "Block the session's identity document." },
|
|
2938
|
-
blocklist_phone: { type: "boolean", description: "Block the session's phone number." },
|
|
2939
|
-
blocklist_email: { type: "boolean", description: "Block the session's email address." },
|
|
2940
|
-
},
|
|
2941
|
-
required: ["session_id"],
|
|
2942
|
-
},
|
|
2943
|
-
},
|
|
2944
|
-
{
|
|
2945
|
-
name: "didit_blocklist_remove",
|
|
2946
|
-
description: "Lift a block. Name the session the item was blocked from (the `session_id` of the entry in " +
|
|
2947
|
-
"didit_blocklist_get) and set at least one of the four flags to true.",
|
|
2948
|
-
inputSchema: {
|
|
2949
|
-
type: "object",
|
|
2950
|
-
properties: {
|
|
2951
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2952
|
-
session_id: { type: "string", description: "The session the item was blocked from." },
|
|
2953
|
-
unblock_face: { type: "boolean", description: "Lift the block on the session's face." },
|
|
2954
|
-
unblock_document: { type: "boolean", description: "Lift the block on the session's identity document." },
|
|
2955
|
-
unblock_phone: { type: "boolean", description: "Lift the block on the session's phone number." },
|
|
2956
|
-
unblock_email: { type: "boolean", description: "Lift the block on the session's email address." },
|
|
2957
|
-
},
|
|
2958
|
-
required: ["session_id"],
|
|
2959
|
-
},
|
|
2960
|
-
},
|
|
2961
|
-
{
|
|
2962
|
-
name: "didit_allowlist_add",
|
|
2963
|
-
description: "Mark the phone number of a verification session as trusted in this application, so that phone verification " +
|
|
2964
|
-
"does not turn it away as high risk. A phone number is the only thing that can be allowlisted, and a " +
|
|
2965
|
-
"blocked number stays blocked. Name the session and set allowlist_phone to true.",
|
|
2966
|
-
inputSchema: {
|
|
2967
|
-
type: "object",
|
|
2968
|
-
properties: {
|
|
2969
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2970
|
-
session_id: { type: "string", description: "The session whose phone number is trusted." },
|
|
2971
|
-
allowlist_phone: { type: "boolean", description: "Must be true: the phone number is what gets allowlisted." },
|
|
2972
|
-
},
|
|
2973
|
-
required: ["session_id", "allowlist_phone"],
|
|
2974
|
-
},
|
|
2975
|
-
},
|
|
2976
|
-
// ── Case management ─────────────────────────────────────────────────
|
|
2977
|
-
{
|
|
2978
|
-
name: "didit_case_list",
|
|
2979
|
-
description: "List investigation/compliance cases for ONE app; with multiple apps (or no scope) it auto-spans all your apps. For a cross-app query prefer didit_case_search.",
|
|
2980
|
-
inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS, status: { type: "string" }, cursor: { type: "string" } } },
|
|
2981
|
-
},
|
|
2982
|
-
{
|
|
2983
|
-
name: "didit_case_get",
|
|
2984
|
-
description: "Get a case with its details.",
|
|
2985
|
-
inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS, case_id: { type: "string" } }, required: ["case_id"] },
|
|
2986
|
-
},
|
|
2987
|
-
{
|
|
2988
|
-
name: "didit_case_create",
|
|
2989
|
-
description: "Open a case for a compliance review. A case is about a subject (one of your users or businesses) or is " +
|
|
2990
|
-
"linked to at least one session or transaction: pass `subject`, `links` or both. `subject.uuid` is the " +
|
|
2991
|
-
"`didit_internal_id` of the user or the business, as didit_vendor_user_get and didit_vendor_business_get " +
|
|
2992
|
-
"return it; it is not their vendor_data. Returns the case with its `uuid`. With review_duplicates true the API first looks " +
|
|
2993
|
-
"for cases already open about the same subject and answers 409 case_duplicate_review_required when it finds " +
|
|
2994
|
-
"one: show it to the person, and to open a separate case anyway send separate_incident_reason.",
|
|
2995
|
-
inputSchema: {
|
|
2996
|
-
type: "object",
|
|
2997
|
-
properties: {
|
|
2998
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
2999
|
-
title: { type: "string", description: "What the case is about, in one line (255 characters at most)." },
|
|
3000
|
-
subject: {
|
|
3001
|
-
type: "object",
|
|
3002
|
-
description: "Who the case is about. Required unless `links` is given.",
|
|
3003
|
-
properties: {
|
|
3004
|
-
type: { type: "string", enum: ["user", "business"] },
|
|
3005
|
-
uuid: { type: "string", description: "The `didit_internal_id` of that user or business." },
|
|
3006
|
-
},
|
|
3007
|
-
required: ["type", "uuid"],
|
|
3008
|
-
},
|
|
3009
|
-
links: {
|
|
3010
|
-
type: "array",
|
|
3011
|
-
description: "What the case is linked to, 20 at most. Required unless `subject` is given.",
|
|
3012
|
-
items: {
|
|
3013
|
-
type: "object",
|
|
3014
|
-
properties: {
|
|
3015
|
-
entity_type: { type: "string", enum: ["session", "business_session", "transaction"] },
|
|
3016
|
-
entity_uuid: { type: "string", description: "The id of that session or transaction." },
|
|
3017
|
-
},
|
|
3018
|
-
required: ["entity_type", "entity_uuid"],
|
|
3019
|
-
},
|
|
3020
|
-
},
|
|
3021
|
-
priority: { type: "string", enum: ["LOW", "MEDIUM", "HIGH"], description: "MEDIUM when left out." },
|
|
3022
|
-
assigned_to: { type: "string", description: "The reviewer to assign the case to: the `user_id` of a member (didit_org_list_members)." },
|
|
3023
|
-
due_at: { type: "string", description: "The deadline, ISO 8601. Left out, the review policy's own deadline applies when it has one." },
|
|
3024
|
-
tags: { type: "array", items: { type: "string" }, description: "Labels to find the case by." },
|
|
3025
|
-
blueprint: { type: "string", description: "The uuid of the review policy to open the case under. It must be active." },
|
|
3026
|
-
review_duplicates: { type: "boolean", description: "Look for cases already open about the same subject before creating this one." },
|
|
3027
|
-
separate_incident_reason: { type: "string", description: "Why a separate case is wanted although one is already open (1,000 characters at most)." },
|
|
3028
|
-
},
|
|
3029
|
-
required: ["title"],
|
|
3030
|
-
},
|
|
3031
|
-
},
|
|
3032
|
-
{
|
|
3033
|
-
name: "didit_case_statistics",
|
|
3034
|
-
description: "Case analytics for a period (totals, series over time, the queue, outcomes and workload): the last 30 days " +
|
|
3035
|
-
"unless both dates are given, two years at most. Every filter narrows the numbers.",
|
|
3036
|
-
inputSchema: {
|
|
3037
|
-
type: "object",
|
|
3038
|
-
properties: {
|
|
3039
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
3040
|
-
date_from: { type: "string", description: "First day, YYYY-MM-DD. Give it together with date_to." },
|
|
3041
|
-
date_to: { type: "string", description: "Last day, YYYY-MM-DD." },
|
|
3042
|
-
status: { type: "string", enum: ["OPEN", "AWAITING_USER", "RESOLVED"] },
|
|
3043
|
-
priority: { type: "string", enum: ["LOW", "MEDIUM", "HIGH"] },
|
|
3044
|
-
source: {
|
|
3045
|
-
type: "string",
|
|
3046
|
-
enum: ["MANUAL", "AML_SCREENING", "TRANSACTION_RULE", "WORKFLOW_BUILDER"],
|
|
3047
|
-
description: "What opened the cases.",
|
|
3048
|
-
},
|
|
3049
|
-
scope: { type: "string", enum: ["identity", "transactions"], description: "Only identity cases, or only the ones a transaction rule opened." },
|
|
3050
|
-
assigned_to: { type: "string", description: "Only cases assigned to this reviewer (a member's `user_id`)." },
|
|
3051
|
-
blueprint: { type: "string", description: "Only cases under this review policy (its uuid)." },
|
|
3052
|
-
},
|
|
3053
|
-
},
|
|
3054
|
-
},
|
|
3055
|
-
{
|
|
3056
|
-
name: "didit_case_manage",
|
|
3057
|
-
description: "Act on a case: assign, resolve, reopen, escalate, comment, or update.",
|
|
3058
|
-
inputSchema: {
|
|
3059
|
-
type: "object",
|
|
3060
|
-
properties: {
|
|
3061
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
3062
|
-
case_id: { type: "string" },
|
|
3063
|
-
action: { type: "string", enum: ["assign", "resolve", "reopen", "escalate", "comment", "update"] },
|
|
3064
|
-
data: { type: "object", description: "Action payload (e.g. {assignee_id}, {comment}, or fields to update)" },
|
|
3065
|
-
confirm: {
|
|
3066
|
-
type: "boolean",
|
|
3067
|
-
description: "REQUIRED when filing a SAR (action 'sar'/'file_sar', or any action whose data.status is 'SAR_FILED') - a high-impact regulatory action. Only set after explicit user confirmation of this exact action.",
|
|
3068
|
-
},
|
|
3069
|
-
},
|
|
3070
|
-
required: ["case_id", "action"],
|
|
3071
|
-
},
|
|
3072
|
-
},
|
|
3073
|
-
// ── Investigator (AI case reviewer; decisions need human approval) ──
|
|
3074
|
-
...investigator_1.INVESTIGATOR_TOOL_DEFS,
|
|
3075
|
-
// ── Reports (async exports) ─────────────────────────────────────────
|
|
3076
|
-
{
|
|
3077
|
-
name: "didit_report_list",
|
|
3078
|
-
description: "List the application's generated reports, newest first, with how many there are of each status (`counts`). One page: 50 unless `limit` says otherwise, with `count` as the total and `offset` to read the ones after.",
|
|
3079
|
-
inputSchema: {
|
|
3080
|
-
type: "object",
|
|
3081
|
-
properties: {
|
|
3082
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
3083
|
-
status: { type: "string", description: "Only these statuses, comma separated: PENDING, PROCESSING, READY, FAILED." },
|
|
3084
|
-
report_type: {
|
|
3085
|
-
type: "string",
|
|
3086
|
-
description: "Only these report types, comma separated, for example SESSION_EXPORT, TRANSACTION_EXPORT, CASE_EXPORT, VENDOR_USER_EXPORT.",
|
|
3087
|
-
},
|
|
3088
|
-
q: { type: "string", description: "Search by any part of the report id, or of the name or email of the person who asked for it." },
|
|
3089
|
-
...paging_1.PAGE_PROPS,
|
|
3090
|
-
},
|
|
3091
|
-
},
|
|
3092
|
-
},
|
|
3093
|
-
{
|
|
3094
|
-
name: "didit_report_get",
|
|
3095
|
-
description: "Get a report's status/details.",
|
|
3096
|
-
inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS, report_id: { type: "string" } }, required: ["report_id"] },
|
|
3097
|
-
},
|
|
3098
|
-
{
|
|
3099
|
-
name: "didit_report_get_download_url",
|
|
3100
|
-
description: "Get a signed download URL for a finished report.",
|
|
3101
|
-
inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS, report_id: { type: "string" } }, required: ["report_id"] },
|
|
3102
|
-
},
|
|
3103
|
-
{
|
|
3104
|
-
name: "didit_report_export",
|
|
3105
|
-
description: "Start an export report. kind ∈ sessions | transactions | businesses | vendor-users | vendor-businesses. `data.columns` is a kind-specific schema — for sessions/vendor-users/vendor-businesses an unknown column 400s with `Invalid columns`, and that error's `allowed` field carries the full valid-column list for that kind, so retry from the error alone rather than guessing names like `date`/`status`/`total_price`.",
|
|
3106
|
-
inputSchema: {
|
|
3107
|
-
type: "object",
|
|
3108
|
-
properties: { ...orgapp_1.ORG_APP_PROPS, kind: { type: "string" }, data: { type: "object", description: "Filters for the export" } },
|
|
3109
|
-
required: ["kind"],
|
|
3110
|
-
},
|
|
3111
|
-
},
|
|
3112
|
-
// ── Audit logs + alerts ─────────────────────────────────────────────
|
|
3113
|
-
{
|
|
3114
|
-
name: "didit_audit_log_list",
|
|
3115
|
-
description: "List the organization's audit log, newest first: who did what in the organization (members, API keys, " +
|
|
3116
|
-
"Didit itself, the Didit assistant and the Investigator). Each entry has actor {type, name, email}, action, " +
|
|
3117
|
-
"description, target {type, id, label} and changes. Decisions the Investigator took on its own are entries " +
|
|
3118
|
-
"with actor_type 'investigator' and changes.investigator {run_id, outcome, recommendation, confidence, policy}. " +
|
|
3119
|
-
"A person's decision on an Investigator report is that member's entry with changes.investigator.outcome " +
|
|
3120
|
-
"'accepted' or 'overridden'. To answer \"who approved session 20458\", pass search='20458' (or target_id=<the " +
|
|
3121
|
-
"record's uuid>) and read the actor of the decision entry.",
|
|
3122
|
-
inputSchema: {
|
|
3123
|
-
type: "object",
|
|
3124
|
-
properties: {
|
|
3125
|
-
organization_id: orgapp_1.ORG_APP_PROPS.organization_id,
|
|
3126
|
-
application_id: { type: "string", description: "Only this application's entries (application UUID). Omit for the whole organization." },
|
|
3127
|
-
actor_type: { type: "string", enum: ["member", "api_key", "system", "assistant_delegated", "investigator"], description: "Only this kind of actor." },
|
|
3128
|
-
action_category: { type: "string", description: "e.g. sessions, transactions, cases, api-keys, members; comma-separated for several." },
|
|
3129
|
-
target_type: { type: "string", description: "The kind of record acted on, e.g. session, transaction, case." },
|
|
3130
|
-
target_id: { type: "string", description: "The UUID of the record acted on." },
|
|
3131
|
-
search: { type: "string", description: "A session number, event id (evt_...), email, IP, path or record label." },
|
|
3132
|
-
created_at_start: { type: "string", description: "ISO date-time, inclusive." },
|
|
3133
|
-
created_at_end: { type: "string", description: "ISO date-time, inclusive." },
|
|
3134
|
-
page: { type: "integer", minimum: 1, description: "1-based page (default 1)." },
|
|
3135
|
-
page_size: { type: "integer", minimum: 1, maximum: 100, description: "Entries per page (default 25, max 100)." },
|
|
3136
|
-
},
|
|
3137
|
-
},
|
|
3138
|
-
},
|
|
3139
|
-
{
|
|
3140
|
-
name: "didit_alert_list",
|
|
3141
|
-
description: "List the application's alerts, one per channel: `alert_type` (email or slack), where it is sent (`value`) and whether it is on (`is_active`).",
|
|
3142
|
-
inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS } },
|
|
3143
|
-
},
|
|
3144
|
-
{
|
|
3145
|
-
name: "didit_alert_configure",
|
|
3146
|
-
description: "Set where one of the application's alerts is sent, or turn it on or off. `alert_type` is the channel. An " +
|
|
3147
|
-
"alert with no destination is always off. If the API answers 409 legacy_alerts_read_only, this " +
|
|
3148
|
-
"application's alerts are managed in the console's Notification settings and cannot be changed here.",
|
|
3149
|
-
inputSchema: {
|
|
3150
|
-
type: "object",
|
|
3151
|
-
properties: {
|
|
3152
|
-
...orgapp_1.ORG_APP_PROPS,
|
|
3153
|
-
alert_type: { type: "string", enum: ["email", "slack"], description: "The channel to change." },
|
|
3154
|
-
data: {
|
|
3155
|
-
type: "object",
|
|
3156
|
-
description: "What to change; a field left out keeps its value.",
|
|
3157
|
-
properties: {
|
|
3158
|
-
value: { type: "string", description: "The destination: an email address for email, a Slack webhook URL for slack." },
|
|
3159
|
-
is_active: { type: "boolean", description: "Whether the alert is on." },
|
|
3160
|
-
},
|
|
3161
|
-
},
|
|
3162
|
-
},
|
|
3163
|
-
required: ["alert_type"],
|
|
3164
|
-
},
|
|
3165
|
-
},
|
|
3166
|
-
// ── Org members / roles / API keys (apx/auth/v2) ────────────────────
|
|
3167
|
-
{
|
|
3168
|
-
name: "didit_org_list_members",
|
|
3169
|
-
description: "List the organization's members.",
|
|
3170
|
-
inputSchema: { type: "object", properties: { organization_id: orgapp_1.ORG_APP_PROPS.organization_id } },
|
|
3171
|
-
},
|
|
3172
|
-
{
|
|
3173
|
-
name: "didit_org_invite_member",
|
|
3174
|
-
description: "Invite up to 5 members to the organization (emails + role + the applications they may access).",
|
|
552
|
+
description: "Get application details (client_id etc.). The api_key is REDACTED — a masked preview + api_key_set flag are returned, never the raw secret.",
|
|
3175
553
|
inputSchema: {
|
|
3176
554
|
type: "object",
|
|
3177
555
|
properties: {
|
|
3178
|
-
organization_id:
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
app_ids: { type: "array", items: { type: "string" }, description: "Application UUIDs the invitee may access (from didit_org_list_applications)." },
|
|
556
|
+
organization_id: { type: "string" },
|
|
557
|
+
application_id: { type: "string" },
|
|
558
|
+
...stdioOnlyAccessToken("Only for stdio mode. Omit in hosted OAuth mode."),
|
|
3182
559
|
},
|
|
3183
|
-
required: ["
|
|
560
|
+
required: ["organization_id", "application_id"],
|
|
3184
561
|
},
|
|
3185
562
|
},
|
|
3186
563
|
{
|
|
3187
|
-
name: "
|
|
3188
|
-
description: "
|
|
564
|
+
name: "didit_org_reveal_application_api_key",
|
|
565
|
+
description: "Return the RAW, un-redacted api_key for an application. This exposes a LIVE SECRET — only call when a human explicitly needs the key to integrate; never log or persist it. Requires confirm:true AND an explicit organization_id + application_id (no defaults).",
|
|
3189
566
|
inputSchema: {
|
|
3190
567
|
type: "object",
|
|
3191
568
|
properties: {
|
|
3192
|
-
organization_id:
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
569
|
+
organization_id: { type: "string", description: "REQUIRED. No env/context default for this raw-secret tool." },
|
|
570
|
+
application_id: { type: "string", description: "REQUIRED. No env/context default for this raw-secret tool." },
|
|
571
|
+
confirm: { type: "boolean", description: "REQUIRED. Must be true to expose the raw key. Only set after explicit user confirmation of this exact action." },
|
|
572
|
+
...stdioOnlyAccessToken("Only for stdio mode."),
|
|
3196
573
|
},
|
|
3197
|
-
required: ["
|
|
574
|
+
required: ["organization_id", "application_id", "confirm"],
|
|
3198
575
|
},
|
|
3199
576
|
},
|
|
577
|
+
// ── Context + cross-org/app aggregate search ────────────────────────
|
|
578
|
+
{
|
|
579
|
+
name: "didit_context_get",
|
|
580
|
+
description: "Return ALL organizations you can access with their applications nested, plus the default org/app when unambiguous — in ONE call (replaces didit_org_list + per-org didit_org_list_applications). Call this first to discover ids.",
|
|
581
|
+
inputSchema: { type: "object", properties: {} },
|
|
582
|
+
},
|
|
583
|
+
// Search across every organization and application the caller can open
|
|
584
|
+
// Declared with what they do, their permission and their handler in tools/search.ts.
|
|
585
|
+
...search_1.SEARCH_TOOLS.map((tool) => tool.def),
|
|
3200
586
|
{
|
|
3201
|
-
name: "
|
|
3202
|
-
description: "
|
|
587
|
+
name: "didit_analytics",
|
|
588
|
+
description: "Aggregate verification analytics ACROSS ALL your apps and organizations in one call - the efficient way to answer questions like \"how many people tried phone verification but dropped off in the last 15 days?\". Returns summed status counts (request_breakdown), a feature_funnel (how many sessions REACHED each step: OCR, LIVENESS, FACE_MATCH, AML, POA, PHONE, EMAIL, ...), warning_stats by risk code, the previous period's request_breakdown, per-workflow session totals and a recomputed conversion_rate, for a date window. Omit organization_id/application_id to span everything; pass them to narrow.",
|
|
3203
589
|
inputSchema: {
|
|
3204
590
|
type: "object",
|
|
3205
591
|
properties: {
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
592
|
+
date_from: { type: "string", description: "ISO date lower bound (YYYY-MM-DD)" },
|
|
593
|
+
date_to: { type: "string", description: "ISO date upper bound (YYYY-MM-DD)" },
|
|
594
|
+
...shared_schema_1.LAST_N_DAYS_PROP,
|
|
595
|
+
include_timeseries: { type: "boolean", description: "Also return per-day time series (heavier). Default false." },
|
|
596
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
3211
597
|
},
|
|
3212
|
-
required: ["member_id"],
|
|
3213
598
|
},
|
|
3214
599
|
},
|
|
600
|
+
...(0, internal_tools_1.internalToolDefs)("network"),
|
|
601
|
+
// ── Sessions ────────────────────────────────────────────────────────
|
|
602
|
+
// Declared with what they do, their permission and their handler in tools/sessions.ts.
|
|
603
|
+
...sessions_1.SESSION_TOOLS.map((tool) => tool.def),
|
|
604
|
+
// ── Session Imports (bulk migration) ────────────────────────────────
|
|
605
|
+
// Declared with what they do, their permission and their handler in tools/sessions.ts.
|
|
606
|
+
...sessions_1.SESSION_IMPORT_TOOLS.map((tool) => tool.def),
|
|
607
|
+
// ── Workflows (Verification Settings) ───────────────────────────────
|
|
608
|
+
// Declared with what they do, their permission and their handler in tools/workflows.ts.
|
|
609
|
+
...workflows_1.WORKFLOW_TOOLS.map((tool) => tool.def),
|
|
610
|
+
// ── Questionnaires ──────────────────────────────────────────────────
|
|
611
|
+
// Declared with what they do, their permission and their handler in tools/questionnaires.ts.
|
|
612
|
+
...questionnaires_1.QUESTIONNAIRE_TOOLS.map((tool) => tool.def),
|
|
613
|
+
// ── Users (verified individuals / KYC) ──────────────────────────────
|
|
614
|
+
// Declared with what they do, their permission and their handler in tools/users.ts.
|
|
615
|
+
...users_1.VENDOR_USER_TOOLS.map((tool) => tool.def),
|
|
616
|
+
// ── Businesses (KYB) ────────────────────────────────────────────────
|
|
617
|
+
// Declared with what they do, their permission and their handler in tools/businesses.ts.
|
|
618
|
+
...businesses_1.VENDOR_BUSINESS_TOOLS.map((tool) => tool.def),
|
|
619
|
+
// ── Transactions (AML transaction monitoring) ───────────────────────
|
|
620
|
+
// Declared with what they do, their permission and their handler in tools/transactions.ts.
|
|
621
|
+
...transactions_1.TRANSACTION_TOOLS.map((tool) => tool.def),
|
|
622
|
+
...(0, internal_tools_1.internalToolDefs)("transaction_sdk_token"),
|
|
623
|
+
// Transaction-monitoring rules
|
|
624
|
+
// Declared with what they do, their permission and their handler in tools/transactions.ts.
|
|
625
|
+
...transactions_1.TRANSACTION_RULE_TOOLS.map((tool) => tool.def),
|
|
626
|
+
// ── Travel Rule (FATF / EU TFR managed exchange) ─────────────────────
|
|
627
|
+
...(0, internal_tools_1.internalToolDefs)("travel_rule"),
|
|
628
|
+
// ── Marketplace (provider catalog & connections) ─────────────────────
|
|
629
|
+
...(0, internal_tools_1.internalToolDefs)("marketplace"),
|
|
630
|
+
// ── Billing ─────────────────────────────────────────────────────────
|
|
3215
631
|
{
|
|
3216
|
-
name: "
|
|
3217
|
-
description: "
|
|
632
|
+
name: "didit_org_get_balance",
|
|
633
|
+
description: "Get current credit balance and auto-refill settings. Every check is billed from the first one: " +
|
|
634
|
+
"from 1 Nov 2026 an eligible Free organization gets $10 of monthly credit usable on any feature, paid " +
|
|
635
|
+
"plans carry their monthly plan credit (Growth $115, Scale $350), and no workflow is free of charge. " +
|
|
636
|
+
"The Free credit is decided per organization: `free_credit.receives` says whether this one gets it, " +
|
|
637
|
+
"and `free_credit.this_month` holds this month's credit, also once used up. `free_credit.eligibility` " +
|
|
638
|
+
"says why an organization does NOT get it, because the credit needs a work email: personal_email " +
|
|
639
|
+
"means it signed up with a personal email, temporary_email with a temporary one, company_exists " +
|
|
640
|
+
"that its company already has an organization, api_created that it was created through the API. " +
|
|
641
|
+
"Such an organization never had the credit, so it was not used up. Answer from these fields, never " +
|
|
642
|
+
"from the plan alone; when `free_credit` is absent, say you could not read it. Never answer " +
|
|
643
|
+
"a \"not enough credits\" report from this result alone: read the failing workflow with " +
|
|
644
|
+
"didit_workflow_list first - `is_white_label_enabled: true` adds $0.20/session, which is a common " +
|
|
645
|
+
"cause of credit running out faster than expected. This result also carries `allow_free_usage` " +
|
|
646
|
+
"(organizations on negotiated terms keep the monthly free allowance they were sold until renewal; " +
|
|
647
|
+
"false means that allowance is off for this organization) and `usage_summary.white_label_sessions`. " +
|
|
648
|
+
"When the balance cannot cover what the person wants to run, give them `next_steps.top_up_url` (the console " +
|
|
649
|
+
"top-up dialog with the amount filled in; replace the number to change it) or `next_steps.automatic_top_up_url` " +
|
|
650
|
+
"(save a card and turn on automatic top-up so the balance never runs out). Didit tools never charge a card. " +
|
|
651
|
+
"Meanwhile keep building in the organization's sandbox application (`mode: sandbox` in didit_context_get), " +
|
|
652
|
+
"which is never billed.",
|
|
3218
653
|
inputSchema: { type: "object", properties: { organization_id: orgapp_1.ORG_APP_PROPS.organization_id } },
|
|
3219
654
|
},
|
|
3220
655
|
{
|
|
3221
|
-
name: "
|
|
3222
|
-
description: "
|
|
3223
|
-
"
|
|
3224
|
-
"
|
|
3225
|
-
"
|
|
3226
|
-
"
|
|
3227
|
-
"
|
|
3228
|
-
"
|
|
656
|
+
name: "didit_org_top_up",
|
|
657
|
+
description: "Top up credits ($50 to $20,000 per top-up). payment_method \"checkout\" (default) creates a Stripe Checkout " +
|
|
658
|
+
"page and returns checkout_session_url for the person to pay; it never charges a card by itself. " +
|
|
659
|
+
"payment_method \"saved_card\" charges the organization's saved primary card off-session, now, when a person " +
|
|
660
|
+
"turned on \"Connected AI agents can top up with your saved card\" in the Didit console (Billing > Payment " +
|
|
661
|
+
"methods; off by default; didit_org_get_balance shows it as agent_top_up.enabled where this tool is offered). " +
|
|
662
|
+
"It needs idempotency_key: choose ONE unique key per intended top-up (for example a UUID) and reuse that same " +
|
|
663
|
+
"key on any retry of that same top-up, so a retry can never charge twice; never reuse a key for another " +
|
|
664
|
+
"amount and never retry with a new key. A refusal carries `code`, `detail` and `next_step` {action, url, " +
|
|
665
|
+
"description}: agent_top_up_not_enabled (the switch is off), authentication_required (the card's bank asks the " +
|
|
666
|
+
"cardholder to approve), payment_method_required (no saved card) and card_declined are finished by the " +
|
|
667
|
+
"person: give them next_step.url (a Top up dialog link that says which agent asked, with the amount filled in).",
|
|
3229
668
|
inputSchema: {
|
|
3230
669
|
type: "object",
|
|
3231
670
|
properties: {
|
|
3232
|
-
organization_id:
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
description: "
|
|
3238
|
-
|
|
3239
|
-
|
|
671
|
+
organization_id: orgapp_1.ORG_APP_PROPS.organization_id,
|
|
672
|
+
amount_in_dollars: { type: "number", description: "Amount in USD (minimum $50, maximum $20,000 per self-serve top-up)" },
|
|
673
|
+
payment_method: {
|
|
674
|
+
type: "string",
|
|
675
|
+
enum: ["checkout", "saved_card"],
|
|
676
|
+
description: "checkout (default): a Stripe Checkout page for the person to pay. saved_card: charge the organization's saved primary card now, only while a person has turned on the agent top-up switch in the console; requires idempotency_key.",
|
|
677
|
+
},
|
|
678
|
+
idempotency_key: {
|
|
679
|
+
type: "string",
|
|
680
|
+
minLength: 1,
|
|
681
|
+
maxLength: 255,
|
|
682
|
+
description: "REQUIRED for payment_method saved_card (1 to 255 characters). One unique key per intended top-up; reuse the same key on any retry of that same top-up so the card is never charged twice. Ignored for checkout.",
|
|
3240
683
|
},
|
|
3241
|
-
workflow_ids: { type: "array", items: { type: "string" }, description: "Optional: only these workflows' sessions (needs scopes)." },
|
|
3242
|
-
expires_at: { type: "string", description: "Optional ISO 8601 expiry." },
|
|
3243
684
|
confirm: {
|
|
3244
685
|
type: "boolean",
|
|
3245
|
-
description: "REQUIRED. Must be true
|
|
686
|
+
description: "REQUIRED. Must be true. Only set after explicit user confirmation of this exact action: checkout creates a payment page, saved_card charges the saved card immediately.",
|
|
3246
687
|
},
|
|
3247
688
|
},
|
|
3248
|
-
required: ["
|
|
689
|
+
required: ["amount_in_dollars"],
|
|
3249
690
|
},
|
|
3250
691
|
},
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
692
|
+
// Plan, payment methods, receipts and billing details
|
|
693
|
+
// Declared with what they do, their permission and their handler in tools/billing.ts.
|
|
694
|
+
...billing_1.BILLING_TOOLS.map((tool) => tool.def),
|
|
695
|
+
// ── Customization (verification UI branding) ────────────────────────
|
|
696
|
+
// Declared with what they do, their permission and their handler in tools/customization.ts.
|
|
697
|
+
...customization_1.BRANDING_TOOLS.map((tool) => tool.def),
|
|
698
|
+
// ── Webhook destinations ────────────────────────────────────────────
|
|
699
|
+
// Declared with what they do, their permission and their handler in tools/webhooks.ts.
|
|
700
|
+
...webhooks_1.WEBHOOK_TOOLS.map((tool) => tool.def),
|
|
701
|
+
// ── Lists (Blocklists, Allowlists & Custom) ─────────────────────────
|
|
702
|
+
// Declared with what they do, their permission and their handler in tools/lists.ts.
|
|
703
|
+
...lists_1.LIST_TOOLS.map((tool) => tool.def),
|
|
704
|
+
// ── Standalone: Identity & Documents ────────────────────────────────
|
|
705
|
+
// Declared with what they do, their permission and their handler in tools/standalone.ts.
|
|
706
|
+
...standalone_1.STANDALONE_DOCUMENT_TOOLS.map((tool) => tool.def),
|
|
707
|
+
// ── Standalone: KYB registry ────────────────────────────────────────
|
|
708
|
+
// Declared with what they do, their permission and their handler in tools/standalone.ts.
|
|
709
|
+
...standalone_1.STANDALONE_KYB_TOOLS.map((tool) => tool.def),
|
|
710
|
+
// ── Standalone: Biometrics & Face ───────────────────────────────────
|
|
711
|
+
// Declared with what they do, their permission and their handler in tools/standalone.ts.
|
|
712
|
+
...standalone_1.STANDALONE_BIOMETRIC_TOOLS.map((tool) => tool.def),
|
|
713
|
+
// ── Standalone: AML Screening ───────────────────────────────────────
|
|
714
|
+
// Declared with what they do, their permission and their handler in tools/standalone.ts.
|
|
715
|
+
...standalone_1.STANDALONE_AML_TOOLS.map((tool) => tool.def),
|
|
716
|
+
// ── Standalone: Email & Phone Verification ──────────────────────────
|
|
717
|
+
// Declared with what they do, their permission and their handler in tools/standalone.ts.
|
|
718
|
+
...standalone_1.STANDALONE_CONTACT_TOOLS.map((tool) => tool.def),
|
|
719
|
+
// ── Blocklist / Allowlist ───────────────────────────────────────────
|
|
720
|
+
// The blocklist and the allowlist are written from a SESSION: an entry is an item that session
|
|
721
|
+
// holds (its face, its document, its phone number, its email address), never a free value.
|
|
722
|
+
// Declared with what they do, their permission and their handler in tools/blocklist.ts.
|
|
723
|
+
...blocklist_1.BLOCKLIST_TOOLS.map((tool) => tool.def),
|
|
724
|
+
// ── Case management ─────────────────────────────────────────────────
|
|
725
|
+
// Declared with what they do, their permission and their handler in tools/cases.ts.
|
|
726
|
+
...cases_1.CASE_TOOLS.map((tool) => tool.def),
|
|
727
|
+
// ── Investigator (AI case reviewer; decisions need human approval) ──
|
|
728
|
+
...investigator_1.INVESTIGATOR_TOOL_DEFS,
|
|
729
|
+
// ── Reports (async exports) ─────────────────────────────────────────
|
|
730
|
+
// Declared with what they do, their permission and their handler in tools/reports.ts.
|
|
731
|
+
...reports_1.REPORT_TOOLS.map((tool) => tool.def),
|
|
732
|
+
// ── Audit logs + alerts ─────────────────────────────────────────────
|
|
733
|
+
// Declared with what they do, their permission and their handler in tools/observability.ts.
|
|
734
|
+
...observability_1.AUDIT_AND_ALERT_TOOLS.map((tool) => tool.def),
|
|
735
|
+
// ── Org members / roles / API keys (apx/auth/v2) ────────────────────
|
|
736
|
+
// Declared with what they do, their permission and their handler in tools/members.ts.
|
|
737
|
+
...members_1.ORG_MEMBER_TOOLS.map((tool) => tool.def),
|
|
3256
738
|
// ── Compliance ──────────────────────────────────────────────────────
|
|
3257
739
|
...(0, internal_tools_1.internalToolDefs)("compliance"),
|
|
3258
740
|
{
|
|
@@ -3730,6 +1212,10 @@ function createServer(options = {}) {
|
|
|
3730
1212
|
...(scopedOrg ? { organization_id: scopedOrg } : {}),
|
|
3731
1213
|
});
|
|
3732
1214
|
}
|
|
1215
|
+
else if (registered_1.REGISTERED_TOOLS.has(name)) {
|
|
1216
|
+
const registered = registered_1.REGISTERED_TOOLS.get(name);
|
|
1217
|
+
result = await registered.run(registered.routingIds ? withRoutingIds(args) : (args ?? {}));
|
|
1218
|
+
}
|
|
3733
1219
|
else
|
|
3734
1220
|
switch (name) {
|
|
3735
1221
|
// Auth
|
|
@@ -3775,300 +1261,11 @@ function createServer(options = {}) {
|
|
|
3775
1261
|
case "didit_context_get":
|
|
3776
1262
|
result = await context.getContext();
|
|
3777
1263
|
break;
|
|
3778
|
-
case "didit_session_search":
|
|
3779
|
-
result = await search.searchSessions(withRoutingIds(args));
|
|
3780
|
-
break;
|
|
3781
|
-
case "didit_transaction_search":
|
|
3782
|
-
result = await search.searchTransactions(withRoutingIds(args));
|
|
3783
|
-
break;
|
|
3784
|
-
case "didit_case_search":
|
|
3785
|
-
result = await search.searchCases(withRoutingIds(args));
|
|
3786
|
-
break;
|
|
3787
|
-
case "didit_vendor_user_search":
|
|
3788
|
-
result = await search.searchVendorUsers(withRoutingIds(args));
|
|
3789
|
-
break;
|
|
3790
|
-
case "didit_vendor_business_search":
|
|
3791
|
-
result = await search.searchVendorBusinesses(withRoutingIds(args));
|
|
3792
|
-
break;
|
|
3793
1264
|
case "didit_analytics":
|
|
3794
1265
|
// Like the *_search tools: the routing ids NARROW the fan-out (one org, or one app).
|
|
3795
1266
|
result = await analytics.analytics(withRoutingIds(args));
|
|
3796
1267
|
break;
|
|
3797
|
-
// Sessions
|
|
3798
|
-
case "didit_session_create":
|
|
3799
|
-
result = await sessions.createSession(args || {});
|
|
3800
|
-
break;
|
|
3801
|
-
case "didit_session_list":
|
|
3802
|
-
result = await sessions.listSessions(args);
|
|
3803
|
-
break;
|
|
3804
|
-
case "didit_session_get_decision":
|
|
3805
|
-
result = await sessions.getSessionDecision(args.session_id);
|
|
3806
|
-
break;
|
|
3807
|
-
case "didit_session_get_location_evidence":
|
|
3808
|
-
result = await sessions.getSessionLocationEvidence(args.session_id);
|
|
3809
|
-
break;
|
|
3810
|
-
case "didit_session_simulate": {
|
|
3811
|
-
const { session_id, ...data } = args;
|
|
3812
|
-
result = await sessions.simulateSandboxSession(session_id, data);
|
|
3813
|
-
break;
|
|
3814
|
-
}
|
|
3815
|
-
case "didit_session_update_status": {
|
|
3816
|
-
const { session_id, ...data } = args;
|
|
3817
|
-
result = await sessions.updateSessionStatus(session_id, data);
|
|
3818
|
-
break;
|
|
3819
|
-
}
|
|
3820
|
-
case "didit_session_update_data": {
|
|
3821
|
-
const { session_id, ...data } = args;
|
|
3822
|
-
result = await sessions.updateSessionData(session_id, data);
|
|
3823
|
-
break;
|
|
3824
|
-
}
|
|
3825
|
-
case "didit_session_update_poa_data": {
|
|
3826
|
-
const { session_id, ...data } = args;
|
|
3827
|
-
result = await sessions.updateSessionPoaData(session_id, data);
|
|
3828
|
-
break;
|
|
3829
|
-
}
|
|
3830
|
-
case "didit_session_delete":
|
|
3831
|
-
result = await sessions.deleteSession(args.session_id, args?.confirm);
|
|
3832
|
-
break;
|
|
3833
|
-
case "didit_session_batch_delete":
|
|
3834
|
-
result = await sessions.batchDeleteSessions(args?.session_numbers, args?.delete_all, args?.confirm);
|
|
3835
|
-
break;
|
|
3836
|
-
case "didit_session_generate_pdf":
|
|
3837
|
-
result = await sessions.generateSessionPdf(args.session_id);
|
|
3838
|
-
break;
|
|
3839
|
-
case "didit_session_get_signature_evidence":
|
|
3840
|
-
result = await sessions.getSignatureEvidence(args.session_id, args.node_id, args?.signature_id);
|
|
3841
|
-
break;
|
|
3842
|
-
case "didit_session_get_signed_document":
|
|
3843
|
-
result = await sessions.getSignedDocument(args.session_id, args.node_id, args.document_id);
|
|
3844
|
-
break;
|
|
3845
|
-
case "didit_session_get_signature_field_image":
|
|
3846
|
-
result = await sessions.getSignatureFieldImage(args.session_id, args.node_id, args.field_id);
|
|
3847
|
-
break;
|
|
3848
|
-
case "didit_session_validate_signatures":
|
|
3849
|
-
result = await sessions.validateSignatures(args.session_id, args.node_id, args?.signature_id);
|
|
3850
|
-
break;
|
|
3851
|
-
case "didit_session_list_reviews":
|
|
3852
|
-
result = await sessions.listSessionReviews(args.session_id, (0, paging_1.pageParams)(args));
|
|
3853
|
-
break;
|
|
3854
|
-
case "didit_session_add_review": {
|
|
3855
|
-
const { session_id, ...data } = args;
|
|
3856
|
-
result = await sessions.addSessionReview(session_id, data);
|
|
3857
|
-
break;
|
|
3858
|
-
}
|
|
3859
|
-
case "didit_session_share":
|
|
3860
|
-
result = await sessions.shareSession(args.session_id, args);
|
|
3861
|
-
break;
|
|
3862
|
-
case "didit_session_explain_decision":
|
|
3863
|
-
result = await (0, session_explain_1.explainSessionDecision)(args.session_id);
|
|
3864
|
-
break;
|
|
3865
|
-
case "didit_session_webhooks":
|
|
3866
|
-
result = await sessions.listSessionWebhooks(args.session_id, Number(args.wait_seconds ?? 0));
|
|
3867
|
-
break;
|
|
3868
|
-
case "didit_session_webhook_resend":
|
|
3869
|
-
result = await sessions.resendSessionWebhook(args.session_id, args.webhook_id);
|
|
3870
|
-
break;
|
|
3871
|
-
case "didit_session_import_shared":
|
|
3872
|
-
result = await sessions.importSharedSession(args);
|
|
3873
|
-
break;
|
|
3874
|
-
// Session imports
|
|
3875
|
-
case "didit_session_create_import":
|
|
3876
|
-
result = await sessions.createImport(args);
|
|
3877
|
-
break;
|
|
3878
|
-
case "didit_session_list_import_providers":
|
|
3879
|
-
result = await sessions.listImportProviders();
|
|
3880
|
-
break;
|
|
3881
|
-
case "didit_session_check_import_provider":
|
|
3882
|
-
result = await sessions.checkImportProvider(args);
|
|
3883
|
-
break;
|
|
3884
|
-
case "didit_session_manage_import":
|
|
3885
|
-
result = await sessions.manageImport(args.import_id, args.action, args?.data);
|
|
3886
|
-
break;
|
|
3887
|
-
case "didit_session_get_import_template":
|
|
3888
|
-
result = await sessions.getImportTemplate();
|
|
3889
|
-
break;
|
|
3890
|
-
case "didit_session_get_import":
|
|
3891
|
-
result = await sessions.getImport(args.import_id);
|
|
3892
|
-
break;
|
|
3893
|
-
case "didit_session_get_import_errors":
|
|
3894
|
-
result = await sessions.getImportErrors(args.import_id);
|
|
3895
|
-
break;
|
|
3896
|
-
// Workflows
|
|
3897
|
-
case "didit_workflow_list":
|
|
3898
|
-
result = await settings.listWorkflows((0, paging_1.pageParams)(args));
|
|
3899
|
-
break;
|
|
3900
|
-
case "didit_workflow_create":
|
|
3901
|
-
result = await settings.createWorkflow(args || {});
|
|
3902
|
-
break;
|
|
3903
|
-
case "didit_workflow_get":
|
|
3904
|
-
result = await settings.getWorkflow(args.workflow_id);
|
|
3905
|
-
break;
|
|
3906
|
-
case "didit_workflow_update": {
|
|
3907
|
-
const { workflow_id, ...data } = args;
|
|
3908
|
-
result = await settings.updateWorkflow(workflow_id, data);
|
|
3909
|
-
break;
|
|
3910
|
-
}
|
|
3911
|
-
case "didit_workflow_delete":
|
|
3912
|
-
result = await settings.deleteWorkflow(args.workflow_id);
|
|
3913
|
-
break;
|
|
3914
|
-
case "didit_workflow_search":
|
|
3915
|
-
result = await search.searchWorkflows(withRoutingIds(args));
|
|
3916
|
-
break;
|
|
3917
|
-
case "didit_workflow_get_graph":
|
|
3918
|
-
result = await workflowGraph.getWorkflowGraph(args.workflow_id, args, Boolean(args?.include_config));
|
|
3919
|
-
break;
|
|
3920
|
-
case "didit_workflow_get_field_definitions":
|
|
3921
|
-
result = await workflowGraph.getWorkflowFieldDefinitions(args.workflow_id, args);
|
|
3922
|
-
break;
|
|
3923
|
-
case "didit_workflow_get_feature_config_schema": {
|
|
3924
|
-
// Answered from the artifact this server ships with - no API call, so it
|
|
3925
|
-
// works before a workflow or an application even exists.
|
|
3926
|
-
const feature = args?.feature;
|
|
3927
|
-
if (feature && !feature_config_schema_1.FEATURE_CONFIG_SCHEMA.features[feature]) {
|
|
3928
|
-
throw new Error(`Unknown feature "${feature}". Known features: ${feature_config_schema_1.WORKFLOW_FEATURES.join(", ")}.`);
|
|
3929
|
-
}
|
|
3930
|
-
result = {
|
|
3931
|
-
schema_version: feature_config_schema_1.FEATURE_CONFIG_SCHEMA.schema_version,
|
|
3932
|
-
checksum: feature_config_schema_1.FEATURE_CONFIG_CHECKSUM,
|
|
3933
|
-
source: feature_config_schema_1.FEATURE_CONFIG_SCHEMA.source,
|
|
3934
|
-
value_kinds: feature_config_schema_1.FEATURE_CONFIG_SCHEMA.value_kinds,
|
|
3935
|
-
features: feature
|
|
3936
|
-
? { [feature]: feature_config_schema_1.FEATURE_CONFIG_SCHEMA.features[feature] }
|
|
3937
|
-
: feature_config_schema_1.FEATURE_CONFIG_SCHEMA.features,
|
|
3938
|
-
};
|
|
3939
|
-
break;
|
|
3940
|
-
}
|
|
3941
|
-
case "didit_workflow_get_id_verification_methods_catalog":
|
|
3942
|
-
result = await workflowGraph.getIdVerificationMethodsCatalog(args.workflow_id, args);
|
|
3943
|
-
break;
|
|
3944
|
-
case "didit_workflow_get_kyb_registry_catalog":
|
|
3945
|
-
result = await workflowGraph.getKybRegistryCatalog(args?.countries);
|
|
3946
|
-
break;
|
|
3947
|
-
case "didit_workflow_get_branch_fields":
|
|
3948
|
-
result = await workflowGraph.getWorkflowBranchFields(args.workflow_id, args.graph, (args?.branch_node_id ?? args?.node_id), args);
|
|
3949
|
-
break;
|
|
3950
|
-
case "didit_workflow_validate_graph":
|
|
3951
|
-
result = await workflowGraph.validateWorkflowGraph(args?.workflow_id, args.graph, args, Boolean(args?.include_config));
|
|
3952
|
-
break;
|
|
3953
|
-
case "didit_workflow_edit_graph":
|
|
3954
|
-
result = await workflowGraph.editWorkflowGraph(args.workflow_id, args.operations, Boolean(args?.publish), args);
|
|
3955
|
-
break;
|
|
3956
|
-
case "didit_workflow_set_graph":
|
|
3957
|
-
result = await workflowGraph.setWorkflowGraph(args.workflow_id, args.graph, Boolean(args?.publish), args);
|
|
3958
|
-
break;
|
|
3959
|
-
case "didit_workflow_create_draft":
|
|
3960
|
-
result = await workflowGraph.createWorkflowDraft(args.workflow_id, args);
|
|
3961
|
-
break;
|
|
3962
|
-
case "didit_workflow_publish":
|
|
3963
|
-
result = await workflowGraph.publishWorkflow(args.workflow_id, args);
|
|
3964
|
-
break;
|
|
3965
|
-
// Questionnaires
|
|
3966
|
-
case "didit_questionnaire_list":
|
|
3967
|
-
result = await questionnaires.listQuestionnaires((0, paging_1.pageParams)(args));
|
|
3968
|
-
break;
|
|
3969
|
-
case "didit_questionnaire_create":
|
|
3970
|
-
result = await questionnaires.createQuestionnaire(args);
|
|
3971
|
-
break;
|
|
3972
|
-
case "didit_questionnaire_append_choices": {
|
|
3973
|
-
const { questionnaire_id, ...data } = args;
|
|
3974
|
-
result = await questionnaires.appendQuestionnaireChoices(questionnaire_id, data);
|
|
3975
|
-
break;
|
|
3976
|
-
}
|
|
3977
|
-
case "didit_questionnaire_get":
|
|
3978
|
-
result = await questionnaires.getQuestionnaire(args.questionnaire_id, Boolean(args?.include_translations));
|
|
3979
|
-
break;
|
|
3980
|
-
case "didit_questionnaire_update": {
|
|
3981
|
-
const { questionnaire_id, ...data } = args;
|
|
3982
|
-
result = await questionnaires.updateQuestionnaire(questionnaire_id, data);
|
|
3983
|
-
break;
|
|
3984
|
-
}
|
|
3985
|
-
case "didit_questionnaire_delete":
|
|
3986
|
-
result = await questionnaires.deleteQuestionnaire(args.questionnaire_id);
|
|
3987
|
-
break;
|
|
3988
|
-
// Users
|
|
3989
|
-
case "didit_vendor_user_list":
|
|
3990
|
-
result = await users.listUsers(args);
|
|
3991
|
-
break;
|
|
3992
|
-
case "didit_vendor_user_create":
|
|
3993
|
-
result = await users.createUser(args);
|
|
3994
|
-
break;
|
|
3995
|
-
case "didit_vendor_user_get":
|
|
3996
|
-
result = await users.getUser(args.vendor_data);
|
|
3997
|
-
break;
|
|
3998
|
-
case "didit_vendor_user_update": {
|
|
3999
|
-
const { vendor_data, ...data } = args;
|
|
4000
|
-
result = await users.updateUser(vendor_data, data);
|
|
4001
|
-
break;
|
|
4002
|
-
}
|
|
4003
|
-
case "didit_vendor_user_update_status":
|
|
4004
|
-
result = await users.updateUserStatus(args.vendor_data, args.status);
|
|
4005
|
-
break;
|
|
4006
|
-
case "didit_vendor_user_delete":
|
|
4007
|
-
result = await users.deleteUsers(args?.vendor_data_list, args?.delete_all, args?.confirm);
|
|
4008
|
-
break;
|
|
4009
|
-
// Businesses
|
|
4010
|
-
case "didit_vendor_business_list":
|
|
4011
|
-
result = await businesses.listBusinesses(args);
|
|
4012
|
-
break;
|
|
4013
|
-
case "didit_vendor_business_create":
|
|
4014
|
-
result = await businesses.createBusiness(args);
|
|
4015
|
-
break;
|
|
4016
|
-
case "didit_vendor_business_get":
|
|
4017
|
-
result = await businesses.getBusiness(args.vendor_data);
|
|
4018
|
-
break;
|
|
4019
|
-
case "didit_vendor_business_update": {
|
|
4020
|
-
const { vendor_data, ...data } = args;
|
|
4021
|
-
result = await businesses.updateBusiness(vendor_data, data);
|
|
4022
|
-
break;
|
|
4023
|
-
}
|
|
4024
|
-
case "didit_vendor_business_update_status":
|
|
4025
|
-
result = await businesses.updateBusinessStatus(args.vendor_data, args.status);
|
|
4026
|
-
break;
|
|
4027
|
-
case "didit_vendor_business_delete":
|
|
4028
|
-
result = await businesses.deleteBusinesses(args?.vendor_data_list, args?.didit_internal_id_list, args?.delete_all, args?.confirm);
|
|
4029
|
-
break;
|
|
4030
1268
|
// Transactions
|
|
4031
|
-
case "didit_transaction_list":
|
|
4032
|
-
result = await transactions.listTransactions(args);
|
|
4033
|
-
break;
|
|
4034
|
-
case "didit_transaction_create":
|
|
4035
|
-
result = await transactions.createTransaction(args);
|
|
4036
|
-
break;
|
|
4037
|
-
case "didit_transaction_get":
|
|
4038
|
-
result = await transactions.getTransaction(args.transaction_id);
|
|
4039
|
-
break;
|
|
4040
|
-
case "didit_transaction_screen_wallet":
|
|
4041
|
-
result = await transactions.screenWallet(args);
|
|
4042
|
-
break;
|
|
4043
|
-
case "didit_transaction_rule_list":
|
|
4044
|
-
result = await transactions.listTransactionRules(args);
|
|
4045
|
-
break;
|
|
4046
|
-
case "didit_transaction_rule_get":
|
|
4047
|
-
result = await transactions.getTransactionRule(args.rule_uuid);
|
|
4048
|
-
break;
|
|
4049
|
-
case "didit_transaction_rule_create":
|
|
4050
|
-
result = await transactions.createTransactionRule(args);
|
|
4051
|
-
break;
|
|
4052
|
-
case "didit_transaction_rule_update": {
|
|
4053
|
-
const { rule_uuid, ...data } = args;
|
|
4054
|
-
result = await transactions.updateTransactionRule(rule_uuid, data);
|
|
4055
|
-
break;
|
|
4056
|
-
}
|
|
4057
|
-
case "didit_transaction_rule_delete":
|
|
4058
|
-
result = await transactions.deleteTransactionRule(args.rule_uuid);
|
|
4059
|
-
break;
|
|
4060
|
-
case "didit_transaction_rule_backtest":
|
|
4061
|
-
result = await transactions.backtestTransactionRule(args);
|
|
4062
|
-
break;
|
|
4063
|
-
case "didit_transaction_rule_library_list":
|
|
4064
|
-
result = await transactions.listTransactionRuleLibrary(args);
|
|
4065
|
-
break;
|
|
4066
|
-
case "didit_transaction_rule_install":
|
|
4067
|
-
result = await transactions.installTransactionRuleLibrary(args);
|
|
4068
|
-
break;
|
|
4069
|
-
case "didit_transaction_rule_uninstall":
|
|
4070
|
-
result = await transactions.uninstallTransactionRuleLibrary(args);
|
|
4071
|
-
break;
|
|
4072
1269
|
// Billing
|
|
4073
1270
|
case "didit_org_get_balance":
|
|
4074
1271
|
// The ChatGPT catalog carries no credit-purchase flow (app review), so no top-up links there.
|
|
@@ -4081,231 +1278,6 @@ function createServer(options = {}) {
|
|
|
4081
1278
|
case "didit_org_top_up":
|
|
4082
1279
|
result = await billing.topUp((args?.amount_in_dollars ?? args?.amount), args?.confirm, args?.organization_id, { payment_method: args?.payment_method, idempotency_key: args?.idempotency_key });
|
|
4083
1280
|
break;
|
|
4084
|
-
case "didit_billing_get_plan":
|
|
4085
|
-
result = await billing.getPlan(args?.organization_id);
|
|
4086
|
-
break;
|
|
4087
|
-
case "didit_billing_quote_plan":
|
|
4088
|
-
result = await billing.quotePlan(args?.plan, args?.billing_interval, args?.organization_id);
|
|
4089
|
-
break;
|
|
4090
|
-
case "didit_billing_list_payment_methods":
|
|
4091
|
-
result = await billing.listPaymentMethods(args?.organization_id);
|
|
4092
|
-
break;
|
|
4093
|
-
case "didit_billing_list_receipts":
|
|
4094
|
-
result = await billing.listReceipts(args?.organization_id, args?.limit, args?.offset);
|
|
4095
|
-
break;
|
|
4096
|
-
case "didit_billing_get_details":
|
|
4097
|
-
result = await billing.getBillingDetails(args?.organization_id);
|
|
4098
|
-
break;
|
|
4099
|
-
case "didit_billing_update_details": {
|
|
4100
|
-
// The dispatcher already moved organization_id into the request context (stripRoutingIds);
|
|
4101
|
-
// dropping it here too keeps the handler correct if that ever changes.
|
|
4102
|
-
const { organization_id: _org, application_id: _app, ...changes } = (args ?? {});
|
|
4103
|
-
result = await billing.updateBillingDetails(changes);
|
|
4104
|
-
break;
|
|
4105
|
-
}
|
|
4106
|
-
// Customization
|
|
4107
|
-
case "didit_branding_get":
|
|
4108
|
-
result = await customization.getCustomization();
|
|
4109
|
-
break;
|
|
4110
|
-
case "didit_branding_update":
|
|
4111
|
-
result = await customization.updateCustomization(args);
|
|
4112
|
-
break;
|
|
4113
|
-
// Webhook destinations
|
|
4114
|
-
case "didit_webhook_list":
|
|
4115
|
-
result = await webhooks.listDestinations();
|
|
4116
|
-
break;
|
|
4117
|
-
case "didit_webhook_create":
|
|
4118
|
-
result = await webhooks.createDestination(args);
|
|
4119
|
-
break;
|
|
4120
|
-
case "didit_webhook_get":
|
|
4121
|
-
result = await webhooks.getDestination(args.destination_uuid);
|
|
4122
|
-
break;
|
|
4123
|
-
case "didit_webhook_update": {
|
|
4124
|
-
const { destination_uuid, ...data } = args;
|
|
4125
|
-
result = await webhooks.updateDestination(destination_uuid, data);
|
|
4126
|
-
break;
|
|
4127
|
-
}
|
|
4128
|
-
case "didit_webhook_delete":
|
|
4129
|
-
result = await webhooks.deleteDestination(args.destination_uuid);
|
|
4130
|
-
break;
|
|
4131
|
-
// Lists
|
|
4132
|
-
case "didit_lists_list":
|
|
4133
|
-
result = await lists.listLists(args);
|
|
4134
|
-
break;
|
|
4135
|
-
case "didit_lists_create":
|
|
4136
|
-
result = await lists.createList(args);
|
|
4137
|
-
break;
|
|
4138
|
-
case "didit_lists_get":
|
|
4139
|
-
result = await lists.getListDetail(args.list_uuid);
|
|
4140
|
-
break;
|
|
4141
|
-
case "didit_lists_update": {
|
|
4142
|
-
const { list_uuid: ulListUuid, ...ulData } = args;
|
|
4143
|
-
result = await lists.updateList(ulListUuid, ulData);
|
|
4144
|
-
break;
|
|
4145
|
-
}
|
|
4146
|
-
case "didit_lists_delete":
|
|
4147
|
-
result = await lists.deleteList(args.list_uuid);
|
|
4148
|
-
break;
|
|
4149
|
-
case "didit_lists_entries_list": {
|
|
4150
|
-
const { list_uuid: leListUuid, ...leParams } = args;
|
|
4151
|
-
result = await lists.listEntries(leListUuid, leParams);
|
|
4152
|
-
break;
|
|
4153
|
-
}
|
|
4154
|
-
case "didit_lists_entry_create": {
|
|
4155
|
-
const { list_uuid: ceListUuid, ...ceData } = args;
|
|
4156
|
-
result = await lists.createEntry(ceListUuid, ceData);
|
|
4157
|
-
break;
|
|
4158
|
-
}
|
|
4159
|
-
case "didit_lists_entry_upload_face": {
|
|
4160
|
-
const { list_uuid: ufListUuid, image_path, image_base64, ...ufData } = args;
|
|
4161
|
-
result = await lists.uploadFaceEntry(ufListUuid, { image_path, image_base64, ...ufData });
|
|
4162
|
-
break;
|
|
4163
|
-
}
|
|
4164
|
-
case "didit_lists_entry_delete": {
|
|
4165
|
-
const { list_uuid: deListUuid, entry_uuid: deEntryUuid } = args;
|
|
4166
|
-
result = await lists.deleteEntry(deListUuid, deEntryUuid);
|
|
4167
|
-
break;
|
|
4168
|
-
}
|
|
4169
|
-
// Standalone: Identity & Documents
|
|
4170
|
-
case "didit_verify_id": {
|
|
4171
|
-
const { front_image_path, back_image_path, front_image_base64, back_image_base64, ...idOpts } = args;
|
|
4172
|
-
result = await standalone.idVerification({ path: front_image_path, base64: front_image_base64 }, back_image_path || back_image_base64 ? { path: back_image_path, base64: back_image_base64 } : undefined, idOpts);
|
|
4173
|
-
break;
|
|
4174
|
-
}
|
|
4175
|
-
case "didit_verify_poa": {
|
|
4176
|
-
const { document_image_path, document_image_base64, ...poaOpts } = args;
|
|
4177
|
-
result = await standalone.poaVerification({ path: document_image_path, base64: document_image_base64 }, poaOpts);
|
|
4178
|
-
break;
|
|
4179
|
-
}
|
|
4180
|
-
case "didit_verify_account_check": {
|
|
4181
|
-
const { organization_id: _o, application_id: _a, ...body } = args;
|
|
4182
|
-
result = await standalone.accountCheck(body);
|
|
4183
|
-
break;
|
|
4184
|
-
}
|
|
4185
|
-
case "didit_verify_database":
|
|
4186
|
-
result = await standalone.databaseValidation(args);
|
|
4187
|
-
break;
|
|
4188
|
-
// Standalone: KYB registry
|
|
4189
|
-
case "didit_verify_kyb_search":
|
|
4190
|
-
result = await standalone.kybSearch(args);
|
|
4191
|
-
break;
|
|
4192
|
-
case "didit_verify_kyb_select":
|
|
4193
|
-
result = await standalone.kybSelect(args);
|
|
4194
|
-
break;
|
|
4195
|
-
// Standalone: Biometrics
|
|
4196
|
-
case "didit_verify_passive_liveness": {
|
|
4197
|
-
const { image_path, image_base64, ...plOpts } = args;
|
|
4198
|
-
result = await standalone.passiveLiveness({ path: image_path, base64: image_base64 }, plOpts);
|
|
4199
|
-
break;
|
|
4200
|
-
}
|
|
4201
|
-
case "didit_verify_face_match": {
|
|
4202
|
-
const { image_1_path, image_2_path, image_1_base64, image_2_base64, ...fmOpts } = args;
|
|
4203
|
-
result = await standalone.faceMatch({ path: image_1_path, base64: image_1_base64 }, { path: image_2_path, base64: image_2_base64 }, fmOpts);
|
|
4204
|
-
break;
|
|
4205
|
-
}
|
|
4206
|
-
case "didit_verify_face_search": {
|
|
4207
|
-
const { image_path, image_base64, ...fsOpts } = args;
|
|
4208
|
-
result = await standalone.faceSearch({ path: image_path, base64: image_base64 }, fsOpts);
|
|
4209
|
-
break;
|
|
4210
|
-
}
|
|
4211
|
-
case "didit_verify_age": {
|
|
4212
|
-
const { image_path, image_base64, ...aeOpts } = args;
|
|
4213
|
-
result = await standalone.ageEstimation({ path: image_path, base64: image_base64 }, aeOpts);
|
|
4214
|
-
break;
|
|
4215
|
-
}
|
|
4216
|
-
// Standalone: AML
|
|
4217
|
-
case "didit_verify_aml":
|
|
4218
|
-
result = await standalone.amlScreening(args);
|
|
4219
|
-
break;
|
|
4220
|
-
// Standalone: Email & Phone
|
|
4221
|
-
case "didit_verify_email_send":
|
|
4222
|
-
result = await standalone.emailSend(args);
|
|
4223
|
-
break;
|
|
4224
|
-
case "didit_verify_email_check":
|
|
4225
|
-
result = await standalone.emailCheck(args);
|
|
4226
|
-
break;
|
|
4227
|
-
case "didit_verify_phone_send":
|
|
4228
|
-
result = await standalone.phoneSend(args);
|
|
4229
|
-
break;
|
|
4230
|
-
case "didit_verify_phone_check":
|
|
4231
|
-
result = await standalone.phoneCheck(args);
|
|
4232
|
-
break;
|
|
4233
|
-
// Blocklist / allowlist
|
|
4234
|
-
case "didit_blocklist_get":
|
|
4235
|
-
result = await blocklist.getBlocklist({ ...args, ...(0, paging_1.pageParams)(args) });
|
|
4236
|
-
break;
|
|
4237
|
-
case "didit_blocklist_add":
|
|
4238
|
-
result = await blocklist.addToBlocklist(args);
|
|
4239
|
-
break;
|
|
4240
|
-
case "didit_blocklist_remove":
|
|
4241
|
-
result = await blocklist.removeFromBlocklist(args);
|
|
4242
|
-
break;
|
|
4243
|
-
case "didit_allowlist_add":
|
|
4244
|
-
result = await blocklist.addToAllowlist(args);
|
|
4245
|
-
break;
|
|
4246
|
-
// Case management
|
|
4247
|
-
case "didit_case_list":
|
|
4248
|
-
result = await cases.listCases(args);
|
|
4249
|
-
break;
|
|
4250
|
-
case "didit_case_get":
|
|
4251
|
-
result = await cases.getCase(args.case_id);
|
|
4252
|
-
break;
|
|
4253
|
-
case "didit_case_create":
|
|
4254
|
-
result = await cases.createCase(args);
|
|
4255
|
-
break;
|
|
4256
|
-
case "didit_case_statistics":
|
|
4257
|
-
result = await cases.caseStatistics(args);
|
|
4258
|
-
break;
|
|
4259
|
-
case "didit_case_manage":
|
|
4260
|
-
result = await cases.manageCase(args.case_id, args.action, args?.data || {}, args?.confirm);
|
|
4261
|
-
break;
|
|
4262
|
-
// Reports
|
|
4263
|
-
case "didit_report_list":
|
|
4264
|
-
result = await reports.listReports({ ...args, ...(0, paging_1.pageParams)(args) });
|
|
4265
|
-
break;
|
|
4266
|
-
case "didit_report_get":
|
|
4267
|
-
result = await reports.getReport(args.report_id);
|
|
4268
|
-
break;
|
|
4269
|
-
case "didit_report_get_download_url":
|
|
4270
|
-
result = await reports.getReportDownloadUrl(args.report_id);
|
|
4271
|
-
break;
|
|
4272
|
-
case "didit_report_export":
|
|
4273
|
-
result = await reports.exportReport(args.kind, args?.data || {});
|
|
4274
|
-
break;
|
|
4275
|
-
// Audit logs + alerts
|
|
4276
|
-
case "didit_audit_log_list":
|
|
4277
|
-
// application_id is a filter of the organization's audit log, not routing.
|
|
4278
|
-
result = await observability.listAuditLogs(withRoutingIds(args));
|
|
4279
|
-
break;
|
|
4280
|
-
case "didit_alert_list":
|
|
4281
|
-
result = await observability.listAlerts(args);
|
|
4282
|
-
break;
|
|
4283
|
-
case "didit_alert_configure":
|
|
4284
|
-
result = await observability.configureAlert(args.alert_type, args?.data || {});
|
|
4285
|
-
break;
|
|
4286
|
-
// Org members / roles / API keys
|
|
4287
|
-
case "didit_org_list_members":
|
|
4288
|
-
result = await members.listMembers(args?.organization_id, args);
|
|
4289
|
-
break;
|
|
4290
|
-
case "didit_org_invite_member":
|
|
4291
|
-
result = await members.inviteMember(args, args?.organization_id);
|
|
4292
|
-
break;
|
|
4293
|
-
case "didit_org_update_member":
|
|
4294
|
-
result = await members.updateMember(args.member_id, args, args?.organization_id);
|
|
4295
|
-
break;
|
|
4296
|
-
case "didit_org_remove_member":
|
|
4297
|
-
result = await members.removeMember(args.member_id, args?.organization_id);
|
|
4298
|
-
break;
|
|
4299
|
-
case "didit_org_list_roles":
|
|
4300
|
-
result = await members.listRoles(args?.organization_id);
|
|
4301
|
-
break;
|
|
4302
|
-
case "didit_org_list_api_keys":
|
|
4303
|
-
// Routing ids are stripped from args above; the ones the caller sent are argOrg / argApp.
|
|
4304
|
-
result = await members.listApiKeys(argOrg, argApp);
|
|
4305
|
-
break;
|
|
4306
|
-
case "didit_org_create_api_key":
|
|
4307
|
-
result = await members.createApiKey(argOrg, argApp, (args ?? {}));
|
|
4308
|
-
break;
|
|
4309
1281
|
// Compliance
|
|
4310
1282
|
case "didit_workflow_build_graph":
|
|
4311
1283
|
result = await compliance.buildWorkflow(args);
|
|
@@ -4320,11 +1292,6 @@ function createServer(options = {}) {
|
|
|
4320
1292
|
isError: true,
|
|
4321
1293
|
};
|
|
4322
1294
|
}
|
|
4323
|
-
// Annotated here, after BOTH paths (the scoped list and the cross-app aggregate
|
|
4324
|
-
// fallback) have produced their rows, so the flag behaves the same either way.
|
|
4325
|
-
if (name === "didit_workflow_list" && args?.include_age_assurance) {
|
|
4326
|
-
result = await workflowGraph.annotateAgeAssurance(result);
|
|
4327
|
-
}
|
|
4328
1295
|
// Apply the endpoint's data boundary to BOTH response channels, including modern RPC.
|
|
4329
1296
|
result = (0, chatgpt_app_1.applyCatalogResult)(profile, name, result);
|
|
4330
1297
|
// `content` is the model-facing channel (a client with an outputSchema hands
|