@didit-protocol/mcp-server 5.1.35 → 5.1.41
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 +131 -29
- package/dist/app-api-key.d.ts +5 -0
- package/dist/app-api-key.d.ts.map +1 -0
- package/dist/app-api-key.js +108 -0
- package/dist/app-api-key.js.map +1 -0
- package/dist/auth/cached-verifier.d.ts +38 -0
- package/dist/auth/cached-verifier.d.ts.map +1 -0
- package/dist/auth/cached-verifier.js +82 -0
- package/dist/auth/cached-verifier.js.map +1 -0
- package/dist/auth/introspection-verifier.d.ts +12 -0
- package/dist/auth/introspection-verifier.d.ts.map +1 -1
- package/dist/auth/introspection-verifier.js +40 -14
- package/dist/auth/introspection-verifier.js.map +1 -1
- package/dist/chatgpt-app.d.ts +1 -0
- package/dist/chatgpt-app.d.ts.map +1 -1
- package/dist/chatgpt-app.js +2 -0
- package/dist/chatgpt-app.js.map +1 -1
- package/dist/config.d.ts +8 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +24 -7
- package/dist/config.js.map +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +43 -1
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +294 -33
- package/dist/index.js.map +1 -1
- package/dist/investigator-agent.d.ts +4 -0
- package/dist/investigator-agent.d.ts.map +1 -0
- package/dist/investigator-agent.js +10 -0
- package/dist/investigator-agent.js.map +1 -0
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +18 -3
- package/dist/permissions.js.map +1 -1
- package/dist/schema/feature-config-schema.json +941 -28
- package/dist/security.js +2 -2
- package/dist/security.js.map +1 -1
- package/dist/signature-download.d.ts +31 -0
- package/dist/signature-download.d.ts.map +1 -0
- package/dist/signature-download.js +122 -0
- package/dist/signature-download.js.map +1 -0
- package/dist/tools/billing.d.ts +1 -0
- package/dist/tools/billing.d.ts.map +1 -1
- package/dist/tools/billing.js +5 -3
- package/dist/tools/billing.js.map +1 -1
- package/dist/tools/compliance.d.ts.map +1 -1
- package/dist/tools/compliance.js +37 -0
- package/dist/tools/compliance.js.map +1 -1
- package/dist/tools/investigator.d.ts +19 -0
- package/dist/tools/investigator.d.ts.map +1 -0
- package/dist/tools/investigator.js +449 -0
- package/dist/tools/investigator.js.map +1 -0
- package/dist/tools/observability.d.ts +6 -0
- package/dist/tools/observability.d.ts.map +1 -1
- package/dist/tools/observability.js +11 -3
- package/dist/tools/observability.js.map +1 -1
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/search.js +89 -5
- package/dist/tools/search.js.map +1 -1
- package/dist/tools/session-explain-levers.d.ts +6 -0
- package/dist/tools/session-explain-levers.d.ts.map +1 -1
- package/dist/tools/session-explain-levers.js +40 -7
- package/dist/tools/session-explain-levers.js.map +1 -1
- package/dist/tools/sessions.d.ts +18 -0
- package/dist/tools/sessions.d.ts.map +1 -1
- package/dist/tools/sessions.js +155 -2
- package/dist/tools/sessions.js.map +1 -1
- package/dist/tools/standalone.d.ts +5 -0
- package/dist/tools/standalone.d.ts.map +1 -1
- package/dist/tools/standalone.js +18 -2
- package/dist/tools/standalone.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -55,6 +55,7 @@ const privileged_tools_1 = require("./privileged-tools");
|
|
|
55
55
|
const internal_tools_1 = require("./internal-tools");
|
|
56
56
|
const blocklist = __importStar(require("./tools/blocklist"));
|
|
57
57
|
const cases = __importStar(require("./tools/cases"));
|
|
58
|
+
const investigator_1 = require("./tools/investigator");
|
|
58
59
|
const reports = __importStar(require("./tools/reports"));
|
|
59
60
|
const observability = __importStar(require("./tools/observability"));
|
|
60
61
|
const members = __importStar(require("./tools/members"));
|
|
@@ -396,6 +397,7 @@ const TOOL_GROUP_BY_PREFIX = [
|
|
|
396
397
|
["vendor_", "Vendor Users & Businesses"],
|
|
397
398
|
["transaction_", "Transactions (AML)"],
|
|
398
399
|
["case_", "Cases"],
|
|
400
|
+
["investigator_", "Investigator"],
|
|
399
401
|
["webhook_", "Webhooks & Alerts"],
|
|
400
402
|
["alert_", "Webhooks & Alerts"],
|
|
401
403
|
["report_", "Reports & Audit"],
|
|
@@ -541,6 +543,8 @@ const EXPLICIT_DESTRUCTIVE_TOOLS = new Set([
|
|
|
541
543
|
"didit_workflow_edit_graph",
|
|
542
544
|
"didit_workflow_set_graph",
|
|
543
545
|
"didit_workflow_publish",
|
|
546
|
+
// Investigator decisions and policy answers: human decisions behind confirm:true.
|
|
547
|
+
...investigator_1.INVESTIGATOR_DECISION_TOOLS,
|
|
544
548
|
...internal_tools_1.INTERNAL_DESTRUCTIVE_TOOLS,
|
|
545
549
|
]);
|
|
546
550
|
// Tools that can reach outside the current Didit workspace/account boundary by
|
|
@@ -556,6 +560,7 @@ const EXPLICIT_OPEN_WORLD_TOOLS = new Set([
|
|
|
556
560
|
...internal_tools_1.INTERNAL_OPEN_WORLD_TOOLS,
|
|
557
561
|
"didit_verify_email_send",
|
|
558
562
|
"didit_verify_phone_send",
|
|
563
|
+
"didit_session_check_import_provider",
|
|
559
564
|
"didit_webhook_create",
|
|
560
565
|
"didit_webhook_update",
|
|
561
566
|
]);
|
|
@@ -564,7 +569,13 @@ const EXPLICIT_OPEN_WORLD_TOOLS = new Set([
|
|
|
564
569
|
const EXPLICIT_WRITE_TOOLS = new Set([
|
|
565
570
|
"didit_report_export",
|
|
566
571
|
"didit_session_generate_pdf",
|
|
572
|
+
"didit_session_get_signature_evidence",
|
|
573
|
+
"didit_session_get_signature_field_image",
|
|
574
|
+
"didit_session_get_signed_document",
|
|
575
|
+
"didit_session_manage_import",
|
|
576
|
+
"didit_session_validate_signatures",
|
|
567
577
|
"didit_session_webhook_resend",
|
|
578
|
+
...investigator_1.INVESTIGATOR_WRITE_TOOLS,
|
|
568
579
|
]);
|
|
569
580
|
// The inverse: tools whose names carry no read-like token but whose handlers never
|
|
570
581
|
// change server state (requirements/workflow-check are deterministic reads over the
|
|
@@ -894,7 +905,7 @@ function createServer(options = {}) {
|
|
|
894
905
|
},
|
|
895
906
|
{
|
|
896
907
|
name: "didit_session_list",
|
|
897
|
-
description: `List verification sessions for ONE app. If you have multiple apps (or pass no scope) this automatically spans every app, newest first
|
|
908
|
+
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.`,
|
|
898
909
|
inputSchema: {
|
|
899
910
|
type: "object",
|
|
900
911
|
properties: {
|
|
@@ -922,6 +933,17 @@ function createServer(options = {}) {
|
|
|
922
933
|
required: ["session_id"],
|
|
923
934
|
},
|
|
924
935
|
},
|
|
936
|
+
{
|
|
937
|
+
name: "didit_session_get_location_evidence",
|
|
938
|
+
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.",
|
|
939
|
+
inputSchema: {
|
|
940
|
+
type: "object",
|
|
941
|
+
properties: {
|
|
942
|
+
session_id: { type: "string", description: "Session UUID" },
|
|
943
|
+
},
|
|
944
|
+
required: ["session_id"],
|
|
945
|
+
},
|
|
946
|
+
},
|
|
925
947
|
{
|
|
926
948
|
name: "didit_session_update_status",
|
|
927
949
|
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.",
|
|
@@ -1029,6 +1051,73 @@ function createServer(options = {}) {
|
|
|
1029
1051
|
required: ["session_id"],
|
|
1030
1052
|
},
|
|
1031
1053
|
},
|
|
1054
|
+
{
|
|
1055
|
+
name: "didit_session_get_signature_evidence",
|
|
1056
|
+
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, " +
|
|
1057
|
+
"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) " +
|
|
1058
|
+
"signature, the verified identity session, the code confirmation, the certificate and the timestamp. Pass the evidence_file path's signer as " +
|
|
1059
|
+
"signature_id; a Business Verification step with several signers needs it, otherwise the route picks one. Fetch the URL to save the PDF; no " +
|
|
1060
|
+
"Authorization header is needed. Treat the URL as sensitive. Requires configured MCP HTTP downloads (see the README).",
|
|
1061
|
+
inputSchema: {
|
|
1062
|
+
type: "object",
|
|
1063
|
+
properties: {
|
|
1064
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
1065
|
+
session_id: { type: "string", description: "REQUIRED. The User Verification (KYC) or Business Verification (KYB) session." },
|
|
1066
|
+
node_id: { type: "string", description: "REQUIRED. The E-signature step: node_id of the item in the decision's signatures[]." },
|
|
1067
|
+
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." },
|
|
1068
|
+
},
|
|
1069
|
+
required: ["session_id", "node_id"],
|
|
1070
|
+
},
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
name: "didit_session_get_signed_document",
|
|
1074
|
+
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 " +
|
|
1075
|
+
"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 " +
|
|
1076
|
+
"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 " +
|
|
1077
|
+
"mismatch, nothing returned). Use the id of the document in signatures[].documents[]. Treat the URL as sensitive. Requires configured MCP HTTP downloads.",
|
|
1078
|
+
inputSchema: {
|
|
1079
|
+
type: "object",
|
|
1080
|
+
properties: {
|
|
1081
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
1082
|
+
session_id: { type: "string", description: "REQUIRED. The User Verification (KYC) or Business Verification (KYB) session." },
|
|
1083
|
+
node_id: { type: "string", description: "REQUIRED. The E-signature step: node_id of the item in the decision's signatures[]." },
|
|
1084
|
+
document_id: { type: "string", description: "REQUIRED. id of the document in signatures[].documents[]." },
|
|
1085
|
+
},
|
|
1086
|
+
required: ["session_id", "node_id", "document_id"],
|
|
1087
|
+
},
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
name: "didit_session_get_signature_field_image",
|
|
1091
|
+
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. " +
|
|
1092
|
+
"Use the field id from the image_url of signatures[].documents[].fields[]. Treat the URL as sensitive. Requires configured MCP HTTP downloads.",
|
|
1093
|
+
inputSchema: {
|
|
1094
|
+
type: "object",
|
|
1095
|
+
properties: {
|
|
1096
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
1097
|
+
session_id: { type: "string", description: "REQUIRED. The User Verification (KYC) or Business Verification (KYB) session." },
|
|
1098
|
+
node_id: { type: "string", description: "REQUIRED. The E-signature step: node_id of the item in the decision's signatures[]." },
|
|
1099
|
+
field_id: { type: "string", description: "REQUIRED. The field on this signer's copy, as in the field's image_url." },
|
|
1100
|
+
},
|
|
1101
|
+
required: ["session_id", "node_id", "field_id"],
|
|
1102
|
+
},
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
name: "didit_session_validate_signatures",
|
|
1106
|
+
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 " +
|
|
1107
|
+
"SHA-256 and, for an Advanced (AES) signature, validates the PAdES signature, the certificate, the revocation data and the timestamp (a Simple signature " +
|
|
1108
|
+
"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 " +
|
|
1109
|
+
"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.",
|
|
1110
|
+
inputSchema: {
|
|
1111
|
+
type: "object",
|
|
1112
|
+
properties: {
|
|
1113
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
1114
|
+
session_id: { type: "string", description: "REQUIRED. The User Verification (KYC) or Business Verification (KYB) session." },
|
|
1115
|
+
node_id: { type: "string", description: "REQUIRED. The E-signature step: node_id of the item in the decision's signatures[]." },
|
|
1116
|
+
signature_id: { type: "string", description: "id of one signer's item in signatures[]; omit to check every signer of the step." },
|
|
1117
|
+
},
|
|
1118
|
+
required: ["session_id", "node_id"],
|
|
1119
|
+
},
|
|
1120
|
+
},
|
|
1032
1121
|
{
|
|
1033
1122
|
name: "didit_session_list_reviews",
|
|
1034
1123
|
description: "List the review history and activity log for a session.",
|
|
@@ -1120,18 +1209,80 @@ function createServer(options = {}) {
|
|
|
1120
1209
|
// ── Session Imports (bulk migration) ────────────────────────────────
|
|
1121
1210
|
{
|
|
1122
1211
|
name: "didit_session_create_import",
|
|
1123
|
-
description: "Create a bulk import job
|
|
1212
|
+
description: "Create a bulk import job: a hosted CSV/NDJSON file (source_file_url) of historical verifications, or (source=provider) a migration from another " +
|
|
1213
|
+
"identity verification provider. File imports use Didit's canonical schema; label a record's source with the optional per-row `provider` column in the " +
|
|
1214
|
+
"file. A provider migration reads Sumsub, Onfido, Persona and ComplyCube with the customer's READ-ONLY key (`credentials`, named as that provider's " +
|
|
1215
|
+
"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 " +
|
|
1216
|
+
"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 " +
|
|
1217
|
+
"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 " +
|
|
1218
|
+
"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 " +
|
|
1219
|
+
"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 " +
|
|
1220
|
+
"enabled for the organization by Didit and are refused on a sandbox application (403).",
|
|
1124
1221
|
inputSchema: {
|
|
1125
1222
|
type: "object",
|
|
1126
1223
|
properties: {
|
|
1127
|
-
source_file_url: { type: "string", description: "
|
|
1224
|
+
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." },
|
|
1128
1225
|
import_type: { type: "string", enum: ["user_verification", "business_verification", "status_rules", "transactions"], description: "What the rows represent (default user_verification)" },
|
|
1129
|
-
source_format: { type: "string", enum: ["csv", "ndjson"], description: "File format (default
|
|
1226
|
+
source_format: { type: "string", enum: ["csv", "ndjson"], description: "File format (default: inferred from the URL)" },
|
|
1130
1227
|
workflow_id: { type: "string", description: "Workflow to associate imported sessions with" },
|
|
1228
|
+
source: { type: "string", enum: ["file", "provider"], description: "provider makes this a migration from another provider. Omit for a file import." },
|
|
1229
|
+
provider: { type: "string", description: "Migration source id from didit_session_list_import_providers (for example sumsub, onfido, persona). Required when source is provider." },
|
|
1230
|
+
credentials: {
|
|
1231
|
+
type: "object",
|
|
1232
|
+
additionalProperties: { type: "string" },
|
|
1233
|
+
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.",
|
|
1234
|
+
},
|
|
1235
|
+
options: { type: "object", description: "Provider options, for example { region } (Onfido: eu, us, ca)." },
|
|
1236
|
+
status_mapping: {
|
|
1237
|
+
type: "object",
|
|
1238
|
+
additionalProperties: { type: "string", enum: ["Approved", "Declined", "In Review", "Expired", "Not Finished", "Abandoned"] },
|
|
1239
|
+
description: "Edits to the provider's default status mapping: source status to Didit status. Not Finished and Abandoned are skipped and counted, never imported.",
|
|
1240
|
+
},
|
|
1241
|
+
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." },
|
|
1242
|
+
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." },
|
|
1243
|
+
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." },
|
|
1131
1244
|
},
|
|
1132
1245
|
required: ["source_file_url"],
|
|
1133
1246
|
},
|
|
1134
1247
|
},
|
|
1248
|
+
{
|
|
1249
|
+
name: "didit_session_list_import_providers",
|
|
1250
|
+
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.",
|
|
1251
|
+
inputSchema: { type: "object", properties: {} },
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
name: "didit_session_check_import_provider",
|
|
1255
|
+
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 " +
|
|
1256
|
+
"(the first record ID of the export). The key is secret: never log or repeat it.",
|
|
1257
|
+
inputSchema: {
|
|
1258
|
+
type: "object",
|
|
1259
|
+
properties: {
|
|
1260
|
+
provider: { type: "string", description: "REQUIRED. Provider id from didit_session_list_import_providers." },
|
|
1261
|
+
credentials: { type: "object", additionalProperties: { type: "string" }, description: "REQUIRED. SECRET. The provider's read-only key, named as its credential_fields." },
|
|
1262
|
+
options: { type: "object", description: "Provider options, for example { region }." },
|
|
1263
|
+
record_ids: { type: "array", items: { type: "string" }, description: "For providers read by record IDs: the first record ID of the export." },
|
|
1264
|
+
},
|
|
1265
|
+
required: ["provider", "credentials"],
|
|
1266
|
+
},
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
name: "didit_session_manage_import",
|
|
1270
|
+
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), " +
|
|
1271
|
+
"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 " +
|
|
1272
|
+
"in credentials, since the old one was erased; everything already in Didit is skipped).",
|
|
1273
|
+
inputSchema: {
|
|
1274
|
+
type: "object",
|
|
1275
|
+
properties: {
|
|
1276
|
+
import_id: { type: "string", description: "REQUIRED. Import job ID." },
|
|
1277
|
+
action: { type: "string", enum: ["start", "pause", "resume", "cancel", "retry"], description: "REQUIRED." },
|
|
1278
|
+
data: {
|
|
1279
|
+
type: "object",
|
|
1280
|
+
description: "start: { status_mapping, face_templates, lawful_basis_confirmed }. retry: { credentials } (SECRET, never echo it). Other actions take none.",
|
|
1281
|
+
},
|
|
1282
|
+
},
|
|
1283
|
+
required: ["import_id", "action"],
|
|
1284
|
+
},
|
|
1285
|
+
},
|
|
1135
1286
|
{
|
|
1136
1287
|
name: "didit_session_get_import_template",
|
|
1137
1288
|
description: "Download the canonical import template (column headers and format) used by didit_session_create_import.",
|
|
@@ -1607,7 +1758,7 @@ function createServer(options = {}) {
|
|
|
1607
1758
|
},
|
|
1608
1759
|
{
|
|
1609
1760
|
name: "didit_vendor_user_delete",
|
|
1610
|
-
description: "Batch delete users by vendor_data list, or delete all users.",
|
|
1761
|
+
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.",
|
|
1611
1762
|
inputSchema: {
|
|
1612
1763
|
type: "object",
|
|
1613
1764
|
properties: {
|
|
@@ -1700,7 +1851,7 @@ function createServer(options = {}) {
|
|
|
1700
1851
|
},
|
|
1701
1852
|
{
|
|
1702
1853
|
name: "didit_vendor_business_delete",
|
|
1703
|
-
description: "Batch delete businesses by vendor_data list and/or didit_internal_id list, or delete all businesses.",
|
|
1854
|
+
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.",
|
|
1704
1855
|
inputSchema: {
|
|
1705
1856
|
type: "object",
|
|
1706
1857
|
properties: {
|
|
@@ -1832,7 +1983,9 @@ function createServer(options = {}) {
|
|
|
1832
1983
|
"aggregation or actions to a created rule. Prefer mode:'TEST', backtest the exact saved config, then switch " +
|
|
1833
1984
|
"to ACTIVE only after confirming the hit rate. title is unique among non-deleted rules in the app. " +
|
|
1834
1985
|
"actions is REQUIRED: every outcome the user named (review, decline, approve, score, case) must appear " +
|
|
1835
|
-
"there; pass [] ONLY when the user explicitly wants a monitor-only rule that does nothing on match."
|
|
1986
|
+
"there; pass [] ONLY when the user explicitly wants a monitor-only rule that does nothing on match. " +
|
|
1987
|
+
"To change a library (PRESET) rule, send its definition as a copy with metadata.based_on (the library key) " +
|
|
1988
|
+
"and metadata.based_on_rule_uuid.",
|
|
1836
1989
|
inputSchema: {
|
|
1837
1990
|
type: "object",
|
|
1838
1991
|
properties: {
|
|
@@ -1858,7 +2011,10 @@ function createServer(options = {}) {
|
|
|
1858
2011
|
{
|
|
1859
2012
|
name: "didit_transaction_rule_update",
|
|
1860
2013
|
description: "Partially update a transaction-monitoring rule. Send every changed persisted field in this PATCH. PRESET " +
|
|
1861
|
-
"rules only allow mode changes
|
|
2014
|
+
"rules only allow mode changes: to change a PRESET rule's conditions, create a CUSTOM copy with " +
|
|
2015
|
+
"didit_transaction_rule_create (the library rule's definition plus metadata.based_on = its library key and " +
|
|
2016
|
+
"metadata.based_on_rule_uuid), then set the library rule's mode to DISABLED so a transaction does not alert " +
|
|
2017
|
+
"twice. Before raising impact, backtest the exact candidate config and keep the rule " +
|
|
1862
2018
|
"in TEST until the result is acceptable.",
|
|
1863
2019
|
inputSchema: {
|
|
1864
2020
|
type: "object",
|
|
@@ -1973,24 +2129,23 @@ function createServer(options = {}) {
|
|
|
1973
2129
|
// ── Billing ─────────────────────────────────────────────────────────
|
|
1974
2130
|
{
|
|
1975
2131
|
name: "didit_org_get_balance",
|
|
1976
|
-
description: "Get current credit balance and auto-refill settings.
|
|
1977
|
-
"
|
|
1978
|
-
"
|
|
1979
|
-
"
|
|
1980
|
-
"
|
|
1981
|
-
"
|
|
1982
|
-
"
|
|
1983
|
-
"this organization) and `usage_summary.white_label_sessions`.
|
|
1984
|
-
"free-tier work; zero does not.",
|
|
2132
|
+
description: "Get current credit balance and auto-refill settings. Every check is billed from the first one: " +
|
|
2133
|
+
"from 1 Nov 2026 the Free plan carries $10 of monthly credit usable on any feature, paid plans carry " +
|
|
2134
|
+
"their monthly plan credit (Growth $115, Scale $350), and no workflow is free of charge. Never answer " +
|
|
2135
|
+
"a \"not enough credits\" report from this result alone: read the failing workflow with " +
|
|
2136
|
+
"didit_workflow_list first - `is_white_label_enabled: true` adds $0.20/session, which is a common " +
|
|
2137
|
+
"cause of credit running out faster than expected. This result also carries `allow_free_usage` " +
|
|
2138
|
+
"(organizations on negotiated terms keep the monthly free allowance they were sold until renewal; " +
|
|
2139
|
+
"false means that allowance is off for this organization) and `usage_summary.white_label_sessions`.",
|
|
1985
2140
|
inputSchema: { type: "object", properties: { organization_id: orgapp_1.ORG_APP_PROPS.organization_id } },
|
|
1986
2141
|
},
|
|
1987
2142
|
{
|
|
1988
2143
|
name: "didit_org_top_up",
|
|
1989
|
-
description: "Create a Stripe checkout session to top up credits. Returns a checkout URL.",
|
|
2144
|
+
description: "Create a Stripe checkout session to top up credits ($50 to $20,000 per top-up). Returns a checkout URL.",
|
|
1990
2145
|
inputSchema: {
|
|
1991
2146
|
type: "object",
|
|
1992
2147
|
properties: {
|
|
1993
|
-
amount_in_dollars: { type: "number", description: "Amount in USD (minimum $50)" },
|
|
2148
|
+
amount_in_dollars: { type: "number", description: "Amount in USD (minimum $50, maximum $20,000 per self-serve top-up)" },
|
|
1994
2149
|
success_url: { type: "string", description: "Optional redirect after successful payment" },
|
|
1995
2150
|
cancel_url: { type: "string", description: "Optional redirect if payment is cancelled" },
|
|
1996
2151
|
confirm: {
|
|
@@ -2264,6 +2419,44 @@ function createServer(options = {}) {
|
|
|
2264
2419
|
},
|
|
2265
2420
|
},
|
|
2266
2421
|
},
|
|
2422
|
+
{
|
|
2423
|
+
name: "didit_verify_account_check",
|
|
2424
|
+
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. " +
|
|
2425
|
+
"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 " +
|
|
2426
|
+
"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 " +
|
|
2427
|
+
"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. " +
|
|
2428
|
+
"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 " +
|
|
2429
|
+
"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. " +
|
|
2430
|
+
"Where Bank Verification is not switched on (production at the moment) it answers 404 bank_verification_not_available. A sandbox application calls no bank " +
|
|
2431
|
+
"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 " +
|
|
2432
|
+
"without, 0003 and 0006 no_match, 0004 cannot_verify, 0005 a 503, 0009 a 400, anything else match).",
|
|
2433
|
+
inputSchema: {
|
|
2434
|
+
type: "object",
|
|
2435
|
+
properties: {
|
|
2436
|
+
...orgapp_1.ORG_APP_PROPS,
|
|
2437
|
+
country: { type: "string", description: "REQUIRED. The account's country, ISO 3166-1 alpha-3 (for example GBR, NGA)." },
|
|
2438
|
+
account: {
|
|
2439
|
+
type: "object",
|
|
2440
|
+
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, " +
|
|
2441
|
+
"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. " +
|
|
2442
|
+
"Spaces, dashes and dots are ignored; a key the country needs and does not get is a 400 that names it.",
|
|
2443
|
+
properties: {
|
|
2444
|
+
iban: { type: "string" }, account_number: { type: "string" }, sort_code: { type: "string" }, routing_number: { type: "string" },
|
|
2445
|
+
transit_institution: { type: "string" }, bsb: { type: "string" }, ifsc: { type: "string" }, bank_code: { type: "string" },
|
|
2446
|
+
bic: { type: "string" }, clabe: { type: "string" }, cbu_cvu: { type: "string" }, registration_id: { type: "string" },
|
|
2447
|
+
},
|
|
2448
|
+
},
|
|
2449
|
+
holder: {
|
|
2450
|
+
type: "object",
|
|
2451
|
+
description: "REQUIRED. The name to check: full_name for a person, or business_name for a company (a business name checks a business account).",
|
|
2452
|
+
properties: { full_name: { type: "string" }, business_name: { type: "string" } },
|
|
2453
|
+
},
|
|
2454
|
+
vendor_data: { type: "string", description: "Your own reference for this check, returned unchanged." },
|
|
2455
|
+
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." },
|
|
2456
|
+
},
|
|
2457
|
+
required: ["country", "account", "holder"],
|
|
2458
|
+
},
|
|
2459
|
+
},
|
|
2267
2460
|
{
|
|
2268
2461
|
name: "didit_verify_database",
|
|
2269
2462
|
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.",
|
|
@@ -2313,7 +2506,7 @@ function createServer(options = {}) {
|
|
|
2313
2506
|
},
|
|
2314
2507
|
{
|
|
2315
2508
|
name: "didit_verify_kyb_select",
|
|
2316
|
-
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.",
|
|
2509
|
+
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).",
|
|
2317
2510
|
inputSchema: {
|
|
2318
2511
|
type: "object",
|
|
2319
2512
|
properties: {
|
|
@@ -2430,7 +2623,7 @@ function createServer(options = {}) {
|
|
|
2430
2623
|
},
|
|
2431
2624
|
{
|
|
2432
2625
|
name: "didit_verify_phone_send",
|
|
2433
|
-
description: "Send a one-time verification code to a phone number
|
|
2626
|
+
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.",
|
|
2434
2627
|
inputSchema: {
|
|
2435
2628
|
type: "object",
|
|
2436
2629
|
properties: {
|
|
@@ -2442,13 +2635,13 @@ function createServer(options = {}) {
|
|
|
2442
2635
|
},
|
|
2443
2636
|
{
|
|
2444
2637
|
name: "didit_verify_phone_check",
|
|
2445
|
-
description: "
|
|
2638
|
+
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.",
|
|
2446
2639
|
inputSchema: {
|
|
2447
2640
|
type: "object",
|
|
2448
2641
|
properties: {
|
|
2449
2642
|
...orgapp_1.ORG_APP_PROPS,
|
|
2450
2643
|
phone_number: { type: "string" },
|
|
2451
|
-
code: { type: "string", description: "Verification code from SMS" },
|
|
2644
|
+
code: { type: "string", description: "Verification code from the WhatsApp or SMS message" },
|
|
2452
2645
|
},
|
|
2453
2646
|
required: ["phone_number", "code"],
|
|
2454
2647
|
},
|
|
@@ -2513,6 +2706,8 @@ function createServer(options = {}) {
|
|
|
2513
2706
|
required: ["case_id", "action"],
|
|
2514
2707
|
},
|
|
2515
2708
|
},
|
|
2709
|
+
// ── Investigator (AI case reviewer; decisions need human approval) ──
|
|
2710
|
+
...investigator_1.INVESTIGATOR_TOOL_DEFS,
|
|
2516
2711
|
// ── Reports (async exports) ─────────────────────────────────────────
|
|
2517
2712
|
{
|
|
2518
2713
|
name: "didit_report_list",
|
|
@@ -2541,8 +2736,29 @@ function createServer(options = {}) {
|
|
|
2541
2736
|
// ── Audit logs + alerts ─────────────────────────────────────────────
|
|
2542
2737
|
{
|
|
2543
2738
|
name: "didit_audit_log_list",
|
|
2544
|
-
description: "List audit
|
|
2545
|
-
|
|
2739
|
+
description: "List the organization's audit log, newest first: who did what in the organization (members, API keys, " +
|
|
2740
|
+
"Didit itself, the Didit assistant and the Investigator). Each entry has actor {type, name, email}, action, " +
|
|
2741
|
+
"description, target {type, id, label} and changes. Decisions the Investigator took on its own are entries " +
|
|
2742
|
+
"with actor_type 'investigator' and changes.investigator {run_id, outcome, recommendation, confidence, policy}. " +
|
|
2743
|
+
"A person's decision on an Investigator report is that member's entry with changes.investigator.outcome " +
|
|
2744
|
+
"'accepted' or 'overridden'. To answer \"who approved session 20458\", pass search='20458' (or target_id=<the " +
|
|
2745
|
+
"record's uuid>) and read the actor of the decision entry.",
|
|
2746
|
+
inputSchema: {
|
|
2747
|
+
type: "object",
|
|
2748
|
+
properties: {
|
|
2749
|
+
organization_id: orgapp_1.ORG_APP_PROPS.organization_id,
|
|
2750
|
+
application_id: { type: "string", description: "Only this application's entries (application UUID). Omit for the whole organization." },
|
|
2751
|
+
actor_type: { type: "string", enum: ["member", "api_key", "system", "assistant_delegated", "investigator"], description: "Only this kind of actor." },
|
|
2752
|
+
action_category: { type: "string", description: "e.g. sessions, transactions, cases, api-keys, members; comma-separated for several." },
|
|
2753
|
+
target_type: { type: "string", description: "The kind of record acted on, e.g. session, transaction, case." },
|
|
2754
|
+
target_id: { type: "string", description: "The UUID of the record acted on." },
|
|
2755
|
+
search: { type: "string", description: "A session number, event id (evt_...), email, IP, path or record label." },
|
|
2756
|
+
created_at_start: { type: "string", description: "ISO date-time, inclusive." },
|
|
2757
|
+
created_at_end: { type: "string", description: "ISO date-time, inclusive." },
|
|
2758
|
+
page: { type: "integer", minimum: 1, description: "1-based page (default 1)." },
|
|
2759
|
+
page_size: { type: "integer", minimum: 1, maximum: 100, description: "Entries per page (default 25, max 100)." },
|
|
2760
|
+
},
|
|
2761
|
+
},
|
|
2546
2762
|
},
|
|
2547
2763
|
{
|
|
2548
2764
|
name: "didit_alert_list",
|
|
@@ -2632,11 +2848,14 @@ function createServer(options = {}) {
|
|
|
2632
2848
|
features: {
|
|
2633
2849
|
type: "array",
|
|
2634
2850
|
items: { type: "string" },
|
|
2635
|
-
description: "
|
|
2851
|
+
description: "The TRUNK: the steps EVERY session runs, by feature code (OCR, LIVENESS, FACE_MATCH, NFC, " +
|
|
2636
2852
|
"PROOF_OF_ADDRESS, QUESTIONNAIRE, PHONE_VERIFICATION, EMAIL_VERIFICATION, AGE_ESTIMATION, " +
|
|
2637
2853
|
"IP_ANALYSIS, AML, DATABASE_VALIDATION, DOCUMENT_AI; KYB: KYB_REGISTRY, KYB_DOCUMENTS, " +
|
|
2638
|
-
"KYB_KEY_PEOPLE). NEVER add 'standard' steps uninvited ('only id
|
|
2639
|
-
"nothing else); the builder itself adds true dependencies and orders
|
|
2854
|
+
"KYB_KEY_PEOPLE). ONLY steps the user NAMED: NEVER add 'standard' steps uninvited ('only id " +
|
|
2855
|
+
"verification' means OCR and nothing else); the builder itself adds true dependencies and orders " +
|
|
2856
|
+
"the chain. A step only SOME countries take goes in that branch's features ONLY, never here too " +
|
|
2857
|
+
"('ID verification, then liveness and AML for UAE IDs, otherwise finish' = features [OCR] + " +
|
|
2858
|
+
"branches [{countries: ['UAE'], features: ['LIVENESS', 'AML']}]).",
|
|
2640
2859
|
},
|
|
2641
2860
|
countries: {
|
|
2642
2861
|
type: "object",
|
|
@@ -2698,7 +2917,11 @@ function createServer(options = {}) {
|
|
|
2698
2917
|
items: { type: "string" },
|
|
2699
2918
|
description: "Countries exactly as the user named them (a name or ISO3 code per entry).",
|
|
2700
2919
|
},
|
|
2701
|
-
features: {
|
|
2920
|
+
features: {
|
|
2921
|
+
type: "array",
|
|
2922
|
+
items: { type: "string" },
|
|
2923
|
+
description: "The steps ONLY these countries take, after the trunk's routing step. Never repeat a trunk step here.",
|
|
2924
|
+
},
|
|
2702
2925
|
},
|
|
2703
2926
|
required: ["countries", "features"],
|
|
2704
2927
|
additionalProperties: false,
|
|
@@ -2802,6 +3025,7 @@ function createServer(options = {}) {
|
|
|
2802
3025
|
undefined,
|
|
2803
3026
|
applicationId: argApp || process.env.MCP_DEFAULT_APP || undefined,
|
|
2804
3027
|
toolName: request.params.name,
|
|
3028
|
+
actorVia: (0, investigator_1.actorViaFromHeaders)(extra?.requestInfo?.headers),
|
|
2805
3029
|
}, () => (0, audit_log_1.auditToolCall)({ tool: request.params.name, args: callArgs, authInfo, hosted, permissionCheck }, async () => {
|
|
2806
3030
|
const { name } = request.params;
|
|
2807
3031
|
// organization_id / application_id are ROUTING, consumed above into
|
|
@@ -2821,8 +3045,10 @@ function createServer(options = {}) {
|
|
|
2821
3045
|
// ...but a handful of handlers take the routing ids as EXPLICIT PARAMETERS rather than
|
|
2822
3046
|
// resolving them from requestContext, and the strip above hands them `undefined`:
|
|
2823
3047
|
// the auth-service tools build their URL path from the argument (and the reveal tool
|
|
2824
|
-
// deliberately refuses every context/env fallback),
|
|
2825
|
-
// NARROW their fan-out
|
|
3048
|
+
// deliberately refuses every context/env fallback), the *_search tools use the ids to
|
|
3049
|
+
// NARROW their fan-out, and the staff tools either build a URL path from organization_id
|
|
3050
|
+
// (the staff organization read) or filter by it (the staff warnings search and siblings).
|
|
3051
|
+
// Re-attach only what the caller actually sent, and only for those.
|
|
2826
3052
|
const withRoutingIds = (a) => ({
|
|
2827
3053
|
...(a ?? {}),
|
|
2828
3054
|
...(argOrg ? { organization_id: argOrg } : {}),
|
|
@@ -2866,11 +3092,16 @@ function createServer(options = {}) {
|
|
|
2866
3092
|
// (same shape as the *_search sibling) instead of throwing, so the first call succeeds.
|
|
2867
3093
|
const aggregate = aggregateFallbackFor(name);
|
|
2868
3094
|
if ((0, privileged_tools_1.isPrivilegedToolName)(name)) {
|
|
2869
|
-
|
|
3095
|
+
// Same re-attachment as the auth-service/*_search branches: the staff organization read builds
|
|
3096
|
+
// its URL path from organization_id, so the stripped args would always be undefined.
|
|
3097
|
+
result = await (0, privileged_tools_1.dispatchPrivilegedTool)(name, withRoutingIds(args));
|
|
2870
3098
|
}
|
|
2871
3099
|
else if ((0, internal_tools_1.isInternalToolName)(name)) {
|
|
2872
3100
|
result = await (0, internal_tools_1.dispatchInternalTool)(name, args);
|
|
2873
3101
|
}
|
|
3102
|
+
else if ((0, investigator_1.isInvestigatorToolName)(name)) {
|
|
3103
|
+
result = await (0, investigator_1.dispatchInvestigatorTool)(name, args);
|
|
3104
|
+
}
|
|
2874
3105
|
else if (aggregate) {
|
|
2875
3106
|
// Scope survives the fallback: when the org resolved but the app did not, span only
|
|
2876
3107
|
// that org's apps rather than every org the caller can reach.
|
|
@@ -2943,6 +3174,9 @@ function createServer(options = {}) {
|
|
|
2943
3174
|
case "didit_session_get_decision":
|
|
2944
3175
|
result = await sessions.getSessionDecision(args.session_id);
|
|
2945
3176
|
break;
|
|
3177
|
+
case "didit_session_get_location_evidence":
|
|
3178
|
+
result = await sessions.getSessionLocationEvidence(args.session_id);
|
|
3179
|
+
break;
|
|
2946
3180
|
case "didit_session_update_status": {
|
|
2947
3181
|
const { session_id, ...data } = args;
|
|
2948
3182
|
result = await sessions.updateSessionStatus(session_id, data);
|
|
@@ -2967,6 +3201,18 @@ function createServer(options = {}) {
|
|
|
2967
3201
|
case "didit_session_generate_pdf":
|
|
2968
3202
|
result = await sessions.generateSessionPdf(args.session_id);
|
|
2969
3203
|
break;
|
|
3204
|
+
case "didit_session_get_signature_evidence":
|
|
3205
|
+
result = await sessions.getSignatureEvidence(args.session_id, args.node_id, args?.signature_id);
|
|
3206
|
+
break;
|
|
3207
|
+
case "didit_session_get_signed_document":
|
|
3208
|
+
result = await sessions.getSignedDocument(args.session_id, args.node_id, args.document_id);
|
|
3209
|
+
break;
|
|
3210
|
+
case "didit_session_get_signature_field_image":
|
|
3211
|
+
result = await sessions.getSignatureFieldImage(args.session_id, args.node_id, args.field_id);
|
|
3212
|
+
break;
|
|
3213
|
+
case "didit_session_validate_signatures":
|
|
3214
|
+
result = await sessions.validateSignatures(args.session_id, args.node_id, args?.signature_id);
|
|
3215
|
+
break;
|
|
2970
3216
|
case "didit_session_list_reviews":
|
|
2971
3217
|
result = await sessions.listSessionReviews(args.session_id);
|
|
2972
3218
|
break;
|
|
@@ -2994,6 +3240,15 @@ function createServer(options = {}) {
|
|
|
2994
3240
|
case "didit_session_create_import":
|
|
2995
3241
|
result = await sessions.createImport(args);
|
|
2996
3242
|
break;
|
|
3243
|
+
case "didit_session_list_import_providers":
|
|
3244
|
+
result = await sessions.listImportProviders();
|
|
3245
|
+
break;
|
|
3246
|
+
case "didit_session_check_import_provider":
|
|
3247
|
+
result = await sessions.checkImportProvider(args);
|
|
3248
|
+
break;
|
|
3249
|
+
case "didit_session_manage_import":
|
|
3250
|
+
result = await sessions.manageImport(args.import_id, args.action, args?.data);
|
|
3251
|
+
break;
|
|
2997
3252
|
case "didit_session_get_import_template":
|
|
2998
3253
|
result = await sessions.getImportTemplate();
|
|
2999
3254
|
break;
|
|
@@ -3260,6 +3515,11 @@ function createServer(options = {}) {
|
|
|
3260
3515
|
result = await standalone.poaVerification({ path: document_image_path, base64: document_image_base64 }, poaOpts);
|
|
3261
3516
|
break;
|
|
3262
3517
|
}
|
|
3518
|
+
case "didit_verify_account_check": {
|
|
3519
|
+
const { organization_id: _o, application_id: _a, ...body } = args;
|
|
3520
|
+
result = await standalone.accountCheck(body);
|
|
3521
|
+
break;
|
|
3522
|
+
}
|
|
3263
3523
|
case "didit_verify_database":
|
|
3264
3524
|
result = await standalone.databaseValidation(args);
|
|
3265
3525
|
break;
|
|
@@ -3352,7 +3612,8 @@ function createServer(options = {}) {
|
|
|
3352
3612
|
break;
|
|
3353
3613
|
// Audit logs + alerts
|
|
3354
3614
|
case "didit_audit_log_list":
|
|
3355
|
-
|
|
3615
|
+
// application_id is a filter of the organization's audit log, not routing.
|
|
3616
|
+
result = await observability.listAuditLogs(withRoutingIds(args));
|
|
3356
3617
|
break;
|
|
3357
3618
|
case "didit_alert_list":
|
|
3358
3619
|
result = await observability.listAlerts(args);
|