@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.
Files changed (138) hide show
  1. package/README.md +14 -4
  2. package/dist/accept.d.ts +54 -0
  3. package/dist/accept.d.ts.map +1 -0
  4. package/dist/accept.js +98 -0
  5. package/dist/accept.js.map +1 -0
  6. package/dist/audit-log.d.ts.map +1 -1
  7. package/dist/audit-log.js +13 -4
  8. package/dist/audit-log.js.map +1 -1
  9. package/dist/auth/refusal-log.d.ts +62 -0
  10. package/dist/auth/refusal-log.d.ts.map +1 -0
  11. package/dist/auth/refusal-log.js +131 -0
  12. package/dist/auth/refusal-log.js.map +1 -0
  13. package/dist/chatgpt-app.d.ts +1 -0
  14. package/dist/chatgpt-app.d.ts.map +1 -1
  15. package/dist/chatgpt-app.js +4 -0
  16. package/dist/chatgpt-app.js.map +1 -1
  17. package/dist/config.d.ts +17 -1
  18. package/dist/config.d.ts.map +1 -1
  19. package/dist/config.js +62 -9
  20. package/dist/config.js.map +1 -1
  21. package/dist/connect-page.d.ts +10 -0
  22. package/dist/connect-page.d.ts.map +1 -0
  23. package/dist/connect-page.js +8 -0
  24. package/dist/connect-page.js.map +1 -0
  25. package/dist/connection-timeouts.d.ts +30 -0
  26. package/dist/connection-timeouts.d.ts.map +1 -0
  27. package/dist/connection-timeouts.js +52 -0
  28. package/dist/connection-timeouts.js.map +1 -0
  29. package/dist/http.d.ts.map +1 -1
  30. package/dist/http.js +95 -7
  31. package/dist/http.js.map +1 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +209 -3242
  34. package/dist/index.js.map +1 -1
  35. package/dist/permissions.d.ts.map +1 -1
  36. package/dist/permissions.js +3 -153
  37. package/dist/permissions.js.map +1 -1
  38. package/dist/release-version.d.ts +45 -0
  39. package/dist/release-version.d.ts.map +1 -0
  40. package/dist/release-version.js +90 -0
  41. package/dist/release-version.js.map +1 -0
  42. package/dist/schema/feature-config-schema.json +43 -4
  43. package/dist/security.d.ts.map +1 -1
  44. package/dist/security.js +41 -2
  45. package/dist/security.js.map +1 -1
  46. package/dist/tools/billing.d.ts +2 -0
  47. package/dist/tools/billing.d.ts.map +1 -1
  48. package/dist/tools/billing.js +124 -1
  49. package/dist/tools/billing.js.map +1 -1
  50. package/dist/tools/blocklist.d.ts +2 -0
  51. package/dist/tools/blocklist.d.ts.map +1 -1
  52. package/dist/tools/blocklist.js +94 -0
  53. package/dist/tools/blocklist.js.map +1 -1
  54. package/dist/tools/businesses.d.ts +2 -0
  55. package/dist/tools/businesses.d.ts.map +1 -1
  56. package/dist/tools/businesses.js +129 -0
  57. package/dist/tools/businesses.js.map +1 -1
  58. package/dist/tools/cases.d.ts +2 -0
  59. package/dist/tools/cases.d.ts.map +1 -1
  60. package/dist/tools/cases.js +131 -0
  61. package/dist/tools/cases.js.map +1 -1
  62. package/dist/tools/customization.d.ts +2 -0
  63. package/dist/tools/customization.d.ts.map +1 -1
  64. package/dist/tools/customization.js +43 -0
  65. package/dist/tools/customization.js.map +1 -1
  66. package/dist/tools/feature-config.d.ts +45 -0
  67. package/dist/tools/feature-config.d.ts.map +1 -1
  68. package/dist/tools/feature-config.js +100 -9
  69. package/dist/tools/feature-config.js.map +1 -1
  70. package/dist/tools/lists.d.ts +2 -0
  71. package/dist/tools/lists.d.ts.map +1 -1
  72. package/dist/tools/lists.js +193 -0
  73. package/dist/tools/lists.js.map +1 -1
  74. package/dist/tools/members.d.ts +2 -0
  75. package/dist/tools/members.d.ts.map +1 -1
  76. package/dist/tools/members.js +141 -0
  77. package/dist/tools/members.js.map +1 -1
  78. package/dist/tools/observability.d.ts +2 -0
  79. package/dist/tools/observability.d.ts.map +1 -1
  80. package/dist/tools/observability.js +77 -0
  81. package/dist/tools/observability.js.map +1 -1
  82. package/dist/tools/questionnaires.d.ts +2 -0
  83. package/dist/tools/questionnaires.d.ts.map +1 -1
  84. package/dist/tools/questionnaires.js +171 -0
  85. package/dist/tools/questionnaires.js.map +1 -1
  86. package/dist/tools/registered.d.ts +5 -0
  87. package/dist/tools/registered.d.ts.map +1 -0
  88. package/dist/tools/registered.js +30 -0
  89. package/dist/tools/registered.js.map +1 -0
  90. package/dist/tools/registry.d.ts +47 -0
  91. package/dist/tools/registry.d.ts.map +1 -0
  92. package/dist/tools/registry.js +40 -0
  93. package/dist/tools/registry.js.map +1 -0
  94. package/dist/tools/reports.d.ts +2 -0
  95. package/dist/tools/reports.d.ts.map +1 -1
  96. package/dist/tools/reports.js +65 -0
  97. package/dist/tools/reports.js.map +1 -1
  98. package/dist/tools/search.d.ts +2 -0
  99. package/dist/tools/search.d.ts.map +1 -1
  100. package/dist/tools/search.js +133 -3
  101. package/dist/tools/search.js.map +1 -1
  102. package/dist/tools/sessions.d.ts +3 -0
  103. package/dist/tools/sessions.d.ts.map +1 -1
  104. package/dist/tools/sessions.js +715 -8
  105. package/dist/tools/sessions.js.map +1 -1
  106. package/dist/tools/settings.d.ts +19 -0
  107. package/dist/tools/settings.d.ts.map +1 -1
  108. package/dist/tools/settings.js +93 -5
  109. package/dist/tools/settings.js.map +1 -1
  110. package/dist/tools/shared-schema.d.ts +27 -0
  111. package/dist/tools/shared-schema.d.ts.map +1 -0
  112. package/dist/tools/shared-schema.js +68 -0
  113. package/dist/tools/shared-schema.js.map +1 -0
  114. package/dist/tools/standalone.d.ts +6 -0
  115. package/dist/tools/standalone.d.ts.map +1 -1
  116. package/dist/tools/standalone.js +366 -0
  117. package/dist/tools/standalone.js.map +1 -1
  118. package/dist/tools/transactions.d.ts +3 -0
  119. package/dist/tools/transactions.d.ts.map +1 -1
  120. package/dist/tools/transactions.js +512 -0
  121. package/dist/tools/transactions.js.map +1 -1
  122. package/dist/tools/users.d.ts +2 -0
  123. package/dist/tools/users.d.ts.map +1 -1
  124. package/dist/tools/users.js +137 -0
  125. package/dist/tools/users.js.map +1 -1
  126. package/dist/tools/webhooks.d.ts +2 -0
  127. package/dist/tools/webhooks.d.ts.map +1 -1
  128. package/dist/tools/webhooks.js +98 -0
  129. package/dist/tools/webhooks.js.map +1 -1
  130. package/dist/tools/workflow-graph.d.ts +1 -0
  131. package/dist/tools/workflow-graph.d.ts.map +1 -1
  132. package/dist/tools/workflow-graph.js +107 -39
  133. package/dist/tools/workflow-graph.js.map +1 -1
  134. package/dist/tools/workflows.d.ts +3 -0
  135. package/dist/tools/workflows.d.ts.map +1 -0
  136. package/dist/tools/workflows.js +440 -0
  137. package/dist/tools/workflows.js.map +1 -0
  138. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUESTIONNAIRE_TOOLS = void 0;
3
4
  exports.buildQuestionnaireGraph = buildQuestionnaireGraph;
4
5
  exports.listQuestionnaires = listQuestionnaires;
5
6
  exports.createQuestionnaire = createQuestionnaire;
@@ -8,7 +9,53 @@ exports.updateQuestionnaire = updateQuestionnaire;
8
9
  exports.appendQuestionnaireChoices = appendQuestionnaireChoices;
9
10
  exports.deleteQuestionnaire = deleteQuestionnaire;
10
11
  const config_1 = require("../config");
12
+ const orgapp_1 = require("../orgapp");
11
13
  const security_1 = require("../security");
14
+ const paging_1 = require("../paging");
15
+ // The schema pieces of the questionnaire tools' definitions (below), moved here with them.
16
+ // Real backend FormElementType (questionnaires/config/choices.py) — uppercase.
17
+ const FORM_ELEMENT_TYPES = [
18
+ "SHORT_TEXT", "LONG_TEXT", "PARAGRAPH", "DROPDOWN", "SINGLE_CHOICE", "MULTIPLE_CHOICE",
19
+ "NUMBER", "IMAGE", "FILE_UPLOAD", "TIME", "EMAIL", "ADDRESS", "PHONE", "COUNTRY",
20
+ "DATE_PICKER", "CONSENT", "SECTION_HEADER", "SEPARATOR", "HEADING", "REPEATABLE_GROUP",
21
+ ];
22
+ const QUESTIONNAIRE_LANG_PROPS = {
23
+ languages: {
24
+ type: "array",
25
+ items: { type: "string" },
26
+ description: "Locales the questionnaire is offered in. Defaults to [\"en\"]; \"en\" must always be included.",
27
+ },
28
+ default_language: { type: "string", description: "Locale shown by default (must be in `languages`). Defaults to the first language." },
29
+ };
30
+ // A create with no status publishes immediately (backend QuestionnaireCreateSerializer.create),
31
+ // while an update with no status edits in place and never publishes — so the two tools must not
32
+ // advertise the same `status` wording.
33
+ const QUESTIONNAIRE_CREATE_STATUS_PROP = {
34
+ status: { type: "string", enum: ["draft", "published"], description: "Omit to publish immediately; 'draft' saves without publishing." },
35
+ };
36
+ const QUESTIONNAIRE_UPDATE_STATUS_PROP = {
37
+ status: {
38
+ type: "string",
39
+ enum: ["draft", "published"],
40
+ 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).",
41
+ },
42
+ };
43
+ const FORM_ELEMENTS_PROP = {
44
+ form_elements: {
45
+ type: "array",
46
+ 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.",
47
+ items: {
48
+ type: "object",
49
+ properties: {
50
+ element_type: { type: "string", enum: FORM_ELEMENT_TYPES, description: "Element type (UPPERCASE)" },
51
+ title: { type: "object", description: "Locale → label, e.g. {\"en\":\"Question text\"}" },
52
+ is_required: { type: "boolean" },
53
+ choices: { type: "array", items: { type: "object" }, description: "Options for DROPDOWN/SINGLE_CHOICE/MULTIPLE_CHOICE. Each: { value, label?, requires_text_input? }" },
54
+ },
55
+ required: ["element_type"],
56
+ },
57
+ },
58
+ };
12
59
  /** A translatable field must carry EVERY declared language or the backend rejects it, so a
13
60
  * plain string is broadcast to all of them (one language is the overwhelmingly common case). */
14
61
  function translatable(value, languages) {
@@ -148,4 +195,128 @@ async function appendQuestionnaireChoices(uuid, data) {
148
195
  async function deleteQuestionnaire(uuid) {
149
196
  return (0, config_1.apiRequest)((0, config_1.orgAppPath)(`/questionnaires/${(0, security_1.pathSegment)(uuid, "questionnaire_id")}/`), { method: "DELETE" });
150
197
  }
198
+ // ── The questionnaire tools (tools/registry.ts) ──────────────────────────────────
199
+ // Each tool declares here what index.ts and permissions.ts used to keep in their name-keyed tables.
200
+ // The definitions are listed where these tools always were, so the tool list does not change.
201
+ exports.QUESTIONNAIRE_TOOLS = [
202
+ {
203
+ def: {
204
+ name: "didit_questionnaire_list",
205
+ 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.",
206
+ inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS, ...paging_1.PAGE_PROPS } },
207
+ },
208
+ access: "read",
209
+ permission: "read:questionnaires", // GET …/questionnaires/ → questionnaire.py:96
210
+ run: (args) => listQuestionnaires((0, paging_1.pageParams)(args)),
211
+ },
212
+ {
213
+ def: {
214
+ name: "didit_questionnaire_create",
215
+ 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).",
216
+ inputSchema: {
217
+ type: "object",
218
+ properties: {
219
+ ...orgapp_1.ORG_APP_PROPS,
220
+ title: { type: "string", description: "Questionnaire title" },
221
+ description: { type: "string", description: "Description shown to the user" },
222
+ ...FORM_ELEMENTS_PROP,
223
+ ...QUESTIONNAIRE_LANG_PROPS,
224
+ ...QUESTIONNAIRE_CREATE_STATUS_PROP,
225
+ },
226
+ required: ["title", "form_elements"],
227
+ },
228
+ },
229
+ access: "write",
230
+ permission: "write:questionnaires", // POST …/questionnaires/ → questionnaire.py:149
231
+ run: (args) => createQuestionnaire(args),
232
+ },
233
+ {
234
+ def: {
235
+ name: "didit_questionnaire_append_choices",
236
+ 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.",
237
+ inputSchema: {
238
+ type: "object",
239
+ properties: {
240
+ ...orgapp_1.ORG_APP_PROPS,
241
+ questionnaire_id: { type: "string", description: "Questionnaire UUID" },
242
+ node_id: {
243
+ type: "string",
244
+ description: "Graph node id of the question (e.g. 'q1', positional from the create call). Optional when exactly one question has choices.",
245
+ },
246
+ choices: {
247
+ type: "array",
248
+ items: { type: "object" },
249
+ description: "Batch of choices to append, ~100 per call maximum. Each: { value, label?, requires_text_input? }",
250
+ },
251
+ publish: {
252
+ type: "boolean",
253
+ description: "Pass true on the LAST batch to publish the questionnaire; intermediate batches keep it a draft.",
254
+ },
255
+ },
256
+ required: ["questionnaire_id", "choices"],
257
+ },
258
+ },
259
+ access: "write",
260
+ permission: "write:questionnaires", // PATCH …/questionnaires/{uuid}/ → questionnaire.py:208
261
+ run: ({ questionnaire_id, ...data }) => appendQuestionnaireChoices(questionnaire_id, data),
262
+ },
263
+ {
264
+ def: {
265
+ name: "didit_questionnaire_get",
266
+ 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.",
267
+ inputSchema: {
268
+ type: "object",
269
+ properties: {
270
+ ...orgapp_1.ORG_APP_PROPS,
271
+ questionnaire_id: { type: "string", description: "Questionnaire UUID" },
272
+ include_translations: { type: "boolean", description: "Return every locale translation (default false returns English or the first available locale)" },
273
+ },
274
+ required: ["questionnaire_id"],
275
+ },
276
+ },
277
+ access: "read",
278
+ permission: "read:questionnaires", // GET …/questionnaires/{uuid}/ → questionnaire.py:204
279
+ run: (args) => getQuestionnaire(args.questionnaire_id, Boolean(args.include_translations)),
280
+ },
281
+ {
282
+ def: {
283
+ name: "didit_questionnaire_update",
284
+ 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.",
285
+ inputSchema: {
286
+ type: "object",
287
+ properties: {
288
+ ...orgapp_1.ORG_APP_PROPS,
289
+ questionnaire_id: { type: "string", description: "Questionnaire UUID" },
290
+ title: { type: "string" },
291
+ description: { type: "string" },
292
+ ...FORM_ELEMENTS_PROP,
293
+ ...QUESTIONNAIRE_LANG_PROPS,
294
+ ...QUESTIONNAIRE_UPDATE_STATUS_PROP,
295
+ },
296
+ required: ["questionnaire_id"],
297
+ },
298
+ },
299
+ // Replaces the questionnaire's questions, and can publish it: a client asks before running it.
300
+ access: "destructive",
301
+ permission: "write:questionnaires", // PATCH …/questionnaires/{uuid}/ → questionnaire.py:208
302
+ run: ({ questionnaire_id, ...data }) => updateQuestionnaire(questionnaire_id, data),
303
+ },
304
+ {
305
+ def: {
306
+ name: "didit_questionnaire_delete",
307
+ description: "Delete a questionnaire.",
308
+ inputSchema: {
309
+ type: "object",
310
+ properties: {
311
+ ...orgapp_1.ORG_APP_PROPS,
312
+ questionnaire_id: { type: "string", description: "Questionnaire UUID" },
313
+ },
314
+ required: ["questionnaire_id"],
315
+ },
316
+ },
317
+ access: "destructive",
318
+ permission: "write:questionnaires", // DELETE …/questionnaires/{uuid}/ → questionnaire.py:227
319
+ run: (args) => deleteQuestionnaire(args.questionnaire_id),
320
+ },
321
+ ];
151
322
  //# sourceMappingURL=questionnaires.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"questionnaires.js","sourceRoot":"","sources":["../../src/tools/questionnaires.ts"],"names":[],"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oBACV,GAAG,sBAAa;oBAChB,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,oBAAoB,EAAE;iBACxE;gBACD,QAAQ,EAAE,CAAC,kBAAkB,CAAC;aAC/B;SACF;QACD,MAAM,EAAE,aAAa;QACrB,UAAU,EAAE,sBAAsB,EAAE,yDAAyD;QAC7F,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,gBAAgB,CAAC;KAC1D;CACF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type RegisteredTool } from "./registry";
2
+ export declare const REGISTERED_TOOL_LIST: readonly RegisteredTool[];
3
+ export declare const REGISTERED_TOOLS: ReadonlyMap<string, RegisteredTool>;
4
+ export declare const REGISTERED_TOOL_PERMISSIONS: Record<string, string | null>;
5
+ //# sourceMappingURL=registered.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registered.d.ts","sourceRoot":"","sources":["../../src/tools/registered.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AA2BxE,eAAO,MAAM,oBAAoB,EAAE,SAAS,cAAc,EAAiB,CAAC;AAC5E,eAAO,MAAM,gBAAgB,qCAA+B,CAAC;AAC7D,eAAO,MAAM,2BAA2B,+BAAsC,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REGISTERED_TOOL_PERMISSIONS = exports.REGISTERED_TOOLS = exports.REGISTERED_TOOL_LIST = void 0;
4
+ // Every tool area whose tools are declared one object per tool (tools/registry.ts). index.ts lists
5
+ // their definitions, annotates them and dispatches to them from here, and permissions.ts takes
6
+ // their permission entries from here. An area moves here in one change, with its entries removed
7
+ // from the name-keyed tables in the same change (test/tool-registry.test.mjs holds that).
8
+ const registry_1 = require("./registry");
9
+ const webhooks_1 = require("./webhooks");
10
+ const workflows_1 = require("./workflows");
11
+ const standalone_1 = require("./standalone");
12
+ const sessions_1 = require("./sessions");
13
+ const billing_1 = require("./billing");
14
+ const blocklist_1 = require("./blocklist");
15
+ const members_1 = require("./members");
16
+ const observability_1 = require("./observability");
17
+ const reports_1 = require("./reports");
18
+ const businesses_1 = require("./businesses");
19
+ const users_1 = require("./users");
20
+ const transactions_1 = require("./transactions");
21
+ const search_1 = require("./search");
22
+ const cases_1 = require("./cases");
23
+ const lists_1 = require("./lists");
24
+ const questionnaires_1 = require("./questionnaires");
25
+ const customization_1 = require("./customization");
26
+ const AREAS = [webhooks_1.WEBHOOK_TOOLS, customization_1.BRANDING_TOOLS, questionnaires_1.QUESTIONNAIRE_TOOLS, lists_1.LIST_TOOLS, cases_1.CASE_TOOLS, transactions_1.TRANSACTION_RULE_TOOLS, search_1.SEARCH_TOOLS, transactions_1.TRANSACTION_TOOLS, users_1.VENDOR_USER_TOOLS, businesses_1.VENDOR_BUSINESS_TOOLS, reports_1.REPORT_TOOLS, observability_1.AUDIT_AND_ALERT_TOOLS, members_1.ORG_MEMBER_TOOLS, blocklist_1.BLOCKLIST_TOOLS, billing_1.BILLING_TOOLS, sessions_1.SESSION_TOOLS, sessions_1.SESSION_IMPORT_TOOLS, standalone_1.STANDALONE_DOCUMENT_TOOLS, standalone_1.STANDALONE_KYB_TOOLS, standalone_1.STANDALONE_BIOMETRIC_TOOLS, standalone_1.STANDALONE_AML_TOOLS, standalone_1.STANDALONE_CONTACT_TOOLS, workflows_1.WORKFLOW_TOOLS];
27
+ exports.REGISTERED_TOOL_LIST = AREAS.flat();
28
+ exports.REGISTERED_TOOLS = (0, registry_1.byName)(exports.REGISTERED_TOOL_LIST);
29
+ exports.REGISTERED_TOOL_PERMISSIONS = (0, registry_1.permissionsOf)(exports.REGISTERED_TOOL_LIST);
30
+ //# sourceMappingURL=registered.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registered.js","sourceRoot":"","sources":["../../src/tools/registered.ts"],"names":[],"mappings":";;;AAAA,mGAAmG;AACnG,+FAA+F;AAC/F,iGAAiG;AACjG,0FAA0F;AAC1F,yCAAwE;AACxE,yCAA2C;AAC3C,2CAA6C;AAC7C,6CAMsB;AACtB,yCAAiE;AACjE,uCAA0C;AAC1C,2CAA8C;AAC9C,uCAA6C;AAC7C,mDAAwD;AACxD,uCAAyC;AACzC,6CAAqD;AACrD,mCAA4C;AAC5C,iDAA2E;AAC3E,qCAAwC;AACxC,mCAAqC;AACrC,mCAAqC;AACrC,qDAAuD;AACvD,mDAAiD;AAEjD,MAAM,KAAK,GAA2C,CAAC,wBAAa,EAAE,8BAAc,EAAE,oCAAmB,EAAE,kBAAU,EAAE,kBAAU,EAAE,qCAAsB,EAAE,qBAAY,EAAE,gCAAiB,EAAE,yBAAiB,EAAE,kCAAqB,EAAE,sBAAY,EAAE,qCAAqB,EAAE,0BAAgB,EAAE,2BAAe,EAAE,uBAAa,EAAE,wBAAa,EAAE,+BAAoB,EAAE,sCAAyB,EAAE,iCAAoB,EAAE,uCAA0B,EAAE,iCAAoB,EAAE,qCAAwB,EAAE,0BAAc,CAAC,CAAC;AAEle,QAAA,oBAAoB,GAA8B,KAAK,CAAC,IAAI,EAAE,CAAC;AAC/D,QAAA,gBAAgB,GAAG,IAAA,iBAAM,EAAC,4BAAoB,CAAC,CAAC;AAChD,QAAA,2BAA2B,GAAG,IAAA,wBAAa,EAAC,4BAAoB,CAAC,CAAC"}
@@ -0,0 +1,47 @@
1
+ /** A tool as it is listed: name, description and input schema. A type, not an interface, so it fits the catalog's index-signature type. */
2
+ export type ToolDef = {
3
+ name: string;
4
+ description: string;
5
+ inputSchema: any;
6
+ };
7
+ /**
8
+ * What a call does. `read` changes nothing. `write` changes data. `destructive` is a change a client
9
+ * asks the person about before running it: a delete, an overwrite, a decision.
10
+ */
11
+ export type ToolAccess = "read" | "write" | "destructive";
12
+ export interface RegisteredTool {
13
+ def: ToolDef;
14
+ access: ToolAccess;
15
+ /** Reaches outside the Didit workspace: sends mail, registers an endpoint Didit delivers to, shares data. */
16
+ openWorld?: boolean;
17
+ /** The role permission the backend checks for it (permissions.ts); null when it has no per-role check. */
18
+ permission: string | null;
19
+ /** Runs a call. The routing ids and blank optional arguments are already removed (index.ts). */
20
+ run(args: Record<string, any>): Promise<unknown>;
21
+ /**
22
+ * For a list of one application: what runs instead when the caller named no application and has
23
+ * more than one, the same list across every application they can open (index.ts,
24
+ * aggregateFallbackFor). It gets the routing ids the caller did send, to narrow the span.
25
+ */
26
+ spanAllApplications?(args: Record<string, any>): Promise<unknown>;
27
+ /**
28
+ * The handler reads organization_id / application_id itself, to narrow a search across
29
+ * applications to one organization or one application: the dispatcher passes on the ones the
30
+ * caller sent (it removes them from every other tool's arguments).
31
+ */
32
+ routingIds?: true;
33
+ /** Acts on no organization or application: the dispatcher resolves no default scope for it (index.ts). */
34
+ scopeAgnostic?: true;
35
+ }
36
+ /** The annotations a client reads (MCP ToolAnnotations), from what the tool declares. */
37
+ export declare function registeredAnnotations(tool: RegisteredTool, title: string): {
38
+ title: string;
39
+ readOnlyHint: boolean;
40
+ openWorldHint: boolean;
41
+ destructiveHint: boolean;
42
+ };
43
+ /** The permission entries of a set of tools, in the shape of permissions.ts's table. */
44
+ export declare function permissionsOf(tools: readonly RegisteredTool[]): Record<string, string | null>;
45
+ /** A name lookup over a set of tools; a name registered twice is a programming error. */
46
+ export declare function byName(tools: readonly RegisteredTool[]): ReadonlyMap<string, RegisteredTool>;
47
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":"AAYA,2IAA2I;AAC3I,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,CAAC;AAE1D,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,6GAA6G;IAC7G,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0GAA0G;IAC1G,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gGAAgG;IAChG,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjD;;;;OAIG;IACH,mBAAmB,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE;;;;OAIG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,0GAA0G;IAC1G,aAAa,CAAC,EAAE,IAAI,CAAC;CACtB;AAED,yFAAyF;AACzF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM;;;;;EAOxE;AAED,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAE7F;AAED,yFAAyF;AACzF,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAO5F"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // One object per tool: what it is, what a call does, what the caller's role needs, and what runs it.
3
+ //
4
+ // Before this, a tool lived in five places of the server: its definition in the list in index.ts,
5
+ // its read / write / destructive class in name-keyed sets there (or in the verbs of its name), its
6
+ // open-world flag in another set, the permission its role needs in permissions.ts, and its handler
7
+ // in the dispatch switch. A test holds every name-keyed table to the tool list (NAME_KEYED_TABLES),
8
+ // so a rename that misses one table fails; but nothing tied the five facts of one tool together.
9
+ //
10
+ // A tool area moves here one at a time (webhooks first), in place of its entries in those tables.
11
+ // What a moved tool shows to a client does not change: the same definition object, at the same
12
+ // place in the list, with the same annotations and permission (test/tool-registry.test.mjs).
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.registeredAnnotations = registeredAnnotations;
15
+ exports.permissionsOf = permissionsOf;
16
+ exports.byName = byName;
17
+ /** The annotations a client reads (MCP ToolAnnotations), from what the tool declares. */
18
+ function registeredAnnotations(tool, title) {
19
+ return {
20
+ title,
21
+ readOnlyHint: tool.access === "read",
22
+ openWorldHint: tool.openWorld === true,
23
+ destructiveHint: tool.access === "destructive",
24
+ };
25
+ }
26
+ /** The permission entries of a set of tools, in the shape of permissions.ts's table. */
27
+ function permissionsOf(tools) {
28
+ return Object.fromEntries(tools.map((tool) => [tool.def.name, tool.permission]));
29
+ }
30
+ /** A name lookup over a set of tools; a name registered twice is a programming error. */
31
+ function byName(tools) {
32
+ const map = new Map();
33
+ for (const tool of tools) {
34
+ if (map.has(tool.def.name))
35
+ throw new Error(`Tool ${tool.def.name} is registered twice.`);
36
+ map.set(tool.def.name, tool);
37
+ }
38
+ return map;
39
+ }
40
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":";AAAA,qGAAqG;AACrG,EAAE;AACF,kGAAkG;AAClG,mGAAmG;AACnG,mGAAmG;AACnG,oGAAoG;AACpG,iGAAiG;AACjG,EAAE;AACF,kGAAkG;AAClG,+FAA+F;AAC/F,6FAA6F;;AAyC7F,sDAOC;AAGD,sCAEC;AAGD,wBAOC;AAvBD,yFAAyF;AACzF,SAAgB,qBAAqB,CAAC,IAAoB,EAAE,KAAa;IACvE,OAAO;QACL,KAAK;QACL,YAAY,EAAE,IAAI,CAAC,MAAM,KAAK,MAAM;QACpC,aAAa,EAAE,IAAI,CAAC,SAAS,KAAK,IAAI;QACtC,eAAe,EAAE,IAAI,CAAC,MAAM,KAAK,aAAa;KAC/C,CAAC;AACJ,CAAC;AAED,wFAAwF;AACxF,SAAgB,aAAa,CAAC,KAAgC;IAC5D,OAAO,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACnF,CAAC;AAED,yFAAyF;AACzF,SAAgB,MAAM,CAAC,KAAgC;IACrD,MAAM,GAAG,GAAG,IAAI,GAAG,EAA0B,CAAC;IAC9C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,IAAI,uBAAuB,CAAC,CAAC;QAC1F,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -1,5 +1,7 @@
1
+ import type { RegisteredTool } from "./registry";
1
2
  export declare function listReports(params?: Record<string, any>): Promise<any>;
2
3
  export declare function getReport(reportId: string): Promise<any>;
3
4
  export declare function getReportDownloadUrl(reportId: string): Promise<any>;
4
5
  export declare function exportReport(kind: string, data?: Record<string, any>): Promise<any>;
6
+ export declare const REPORT_TOOLS: readonly RegisteredTool[];
5
7
  //# sourceMappingURL=reports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/tools/reports.ts"],"names":[],"mappings":"AAuDA,wBAAsB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAE5E;AAED,wBAAsB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAE9D;AAED,wBAAsB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAEzE;AAGD,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAkB7F"}
1
+ {"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/tools/reports.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAyDjD,wBAAsB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAE5E;AAED,wBAAsB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAE9D;AAED,wBAAsB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAEzE;AAGD,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAkB7F;AAKD,eAAO,MAAM,YAAY,EAAE,SAAS,cAAc,EA0DjD,CAAC"}
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REPORT_TOOLS = void 0;
3
4
  exports.listReports = listReports;
4
5
  exports.getReport = getReport;
5
6
  exports.getReportDownloadUrl = getReportDownloadUrl;
6
7
  exports.exportReport = exportReport;
7
8
  const config_1 = require("../config");
9
+ const paging_1 = require("../paging");
10
+ const orgapp_1 = require("../orgapp");
8
11
  const security_1 = require("../security");
9
12
  // Async export reports — org/app-scoped console resource.
10
13
  // The `columns` schema the backend enforces per export `kind` (400 "Invalid columns" on
@@ -86,4 +89,66 @@ async function exportReport(kind, data = {}) {
86
89
  throw error;
87
90
  }
88
91
  }
92
+ // ── The report tools (tools/registry.ts) ──────────────────────────────────
93
+ // Each tool declares here what index.ts and permissions.ts used to keep in their name-keyed tables.
94
+ // The definitions are listed where these tools always were, so the tool list does not change.
95
+ exports.REPORT_TOOLS = [
96
+ {
97
+ def: {
98
+ name: "didit_report_list",
99
+ 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.",
100
+ inputSchema: {
101
+ type: "object",
102
+ properties: {
103
+ ...orgapp_1.ORG_APP_PROPS,
104
+ status: { type: "string", description: "Only these statuses, comma separated: PENDING, PROCESSING, READY, FAILED." },
105
+ report_type: {
106
+ type: "string",
107
+ description: "Only these report types, comma separated, for example SESSION_EXPORT, TRANSACTION_EXPORT, CASE_EXPORT, VENDOR_USER_EXPORT.",
108
+ },
109
+ 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." },
110
+ ...paging_1.PAGE_PROPS,
111
+ },
112
+ },
113
+ },
114
+ access: "read",
115
+ permission: null, // GET …/reports/ → reports.py:100, same
116
+ run: (args) => listReports({ ...args, ...(0, paging_1.pageParams)(args) }),
117
+ },
118
+ {
119
+ def: {
120
+ name: "didit_report_get",
121
+ description: "Get a report's status/details.",
122
+ inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS, report_id: { type: "string" } }, required: ["report_id"] },
123
+ },
124
+ access: "read",
125
+ permission: null, // GET …/reports/{id}/ → reports.py:129, @has_privileges([]) + row-level check
126
+ run: (args) => getReport(args.report_id),
127
+ },
128
+ {
129
+ def: {
130
+ name: "didit_report_get_download_url",
131
+ description: "Get a signed download URL for a finished report.",
132
+ inputSchema: { type: "object", properties: { ...orgapp_1.ORG_APP_PROPS, report_id: { type: "string" } }, required: ["report_id"] },
133
+ },
134
+ access: "read",
135
+ permission: null, // GET …/reports/{id}/download-url/ → reports.py:153, same
136
+ run: (args) => getReportDownloadUrl(args.report_id),
137
+ },
138
+ {
139
+ def: {
140
+ name: "didit_report_export",
141
+ 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`.",
142
+ inputSchema: {
143
+ type: "object",
144
+ properties: { ...orgapp_1.ORG_APP_PROPS, kind: { type: "string" }, data: { type: "object", description: "Filters for the export" } },
145
+ required: ["kind"],
146
+ },
147
+ },
148
+ // Its name reads like a read, but it starts an export job that writes a file.
149
+ access: "write",
150
+ permission: null, // POST …/reports/{kind}/ — permission varies by kind (read:sessions|transactions|businesses|users)
151
+ run: (args) => exportReport(args.kind, args.data || {}),
152
+ },
153
+ ];
89
154
  //# sourceMappingURL=reports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reports.js","sourceRoot":"","sources":["../../src/tools/reports.ts"],"names":[],"mappings":";;AAuDA,kCAEC;AAED,8BAEC;AAED,oDAEC;AAGD,oCAkBC;AAtFD,sCAAmD;AACnD,0CAAsD;AAEtD,0DAA0D;AAE1D,wFAAwF;AACxF,2FAA2F;AAC3F,wEAAwE;AACxE,yFAAyF;AACzF,uFAAuF;AACvF,qCAAqC;AACrC,MAAM,sBAAsB,GAAG;IAC7B,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM;IAC1F,qBAAqB,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU;IAChG,SAAS,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB;IACvG,YAAY,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY;IAC5G,qBAAqB,EAAE,QAAQ;IAC/B,WAAW,EAAE,YAAY,EAAE,aAA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CAAC,WAAW,CAAC,EAAE;SACnI;QACD,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,IAAI,EAAE,0DAA0D;QAC5E,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC;KACpD;IACD;QACE,GAAG,EAAE;YACH,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,+ZAA+Z;YAC5a,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE,EAAE,GAAG,sBAAa,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,wBAAwB,EAAE,EAAE;gBAC3H,QAAQ,EAAE,CAAC,MAAM,CAAC;aACnB;SACF;QACD,8EAA8E;QAC9E,MAAM,EAAE,OAAO;QACf,UAAU,EAAE,IAAI,EAAE,mGAAmG;QACrH,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;KACxD;CACF,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { RegisteredTool } from "./registry";
1
2
  interface SearchArgs {
2
3
  organization_id?: string;
3
4
  application_id?: string;
@@ -28,5 +29,6 @@ export declare function withWorkflowResolution<R>(result: R, scope: WorkflowScop
28
29
  /** Resolve the (org, app) + version row that owns a workflow id, for the graph tools. When the
29
30
  * caller already knows the org/app, a single scoped list avoids the cross-app fan-out. */
30
31
  export declare function resolveWorkflowScope(workflowId: string, organizationId?: string, applicationId?: string): Promise<WorkflowScope>;
32
+ export declare const SEARCH_TOOLS: readonly RegisteredTool[];
31
33
  export {};
32
34
  //# sourceMappingURL=search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/tools/search.ts"],"names":[],"mappings":"AAqEA,UAAU,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