@talonic/mcp 0.1.43 → 0.1.45
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/CHANGELOG.md +10 -0
- package/dist/content.d.ts +1 -1
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +289 -10
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +289 -10
- package/dist/index.js.map +1 -1
- package/dist/server.js +289 -10
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/http-server.js
CHANGED
|
@@ -104,6 +104,186 @@ function registerWebhooksResource(server, getToken, baseUrl) {
|
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
106
|
}
|
|
107
|
+
|
|
108
|
+
// src/widgets/extraction-result.ts
|
|
109
|
+
function getExtractionResultWidgetHtml() {
|
|
110
|
+
return WIDGET_HTML;
|
|
111
|
+
}
|
|
112
|
+
var WIDGET_HTML = `<!doctype html>
|
|
113
|
+
<html lang="en">
|
|
114
|
+
<head>
|
|
115
|
+
<meta charset="utf-8" />
|
|
116
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
117
|
+
<title>Talonic \u2014 Extraction Result</title>
|
|
118
|
+
<style>
|
|
119
|
+
:root {
|
|
120
|
+
--bg: #ffffff;
|
|
121
|
+
--fg: #111827;
|
|
122
|
+
--muted: #6b7280;
|
|
123
|
+
--border: #e5e7eb;
|
|
124
|
+
--accent: #4f46e5;
|
|
125
|
+
--good: #16a34a;
|
|
126
|
+
--warn: #d97706;
|
|
127
|
+
--bad: #dc2626;
|
|
128
|
+
}
|
|
129
|
+
@media (prefers-color-scheme: dark) {
|
|
130
|
+
:root {
|
|
131
|
+
--bg: #0f1115;
|
|
132
|
+
--fg: #f3f4f6;
|
|
133
|
+
--muted: #9ca3af;
|
|
134
|
+
--border: #1f2937;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, sans-serif; }
|
|
138
|
+
.root { padding: 16px; }
|
|
139
|
+
.empty { color: var(--muted); padding: 24px; text-align: center; }
|
|
140
|
+
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
|
|
141
|
+
.doc { font-weight: 600; }
|
|
142
|
+
.doc-meta { color: var(--muted); font-size: 12px; }
|
|
143
|
+
.confidence { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
|
|
144
|
+
.bar { width: 60px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
|
|
145
|
+
.bar > span { display: block; height: 100%; background: var(--good); }
|
|
146
|
+
.bar.warn > span { background: var(--warn); }
|
|
147
|
+
.bar.bad > span { background: var(--bad); }
|
|
148
|
+
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
|
|
149
|
+
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 13px; }
|
|
150
|
+
th { color: var(--muted); font-weight: 500; font-size: 12px; }
|
|
151
|
+
.field-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
|
|
152
|
+
.field-val { font-variant-numeric: tabular-nums; word-break: break-word; }
|
|
153
|
+
.actions { margin-top: 12px; display: flex; gap: 8px; }
|
|
154
|
+
button { background: var(--bg); color: var(--fg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer; }
|
|
155
|
+
button:hover { border-color: var(--accent); }
|
|
156
|
+
</style>
|
|
157
|
+
</head>
|
|
158
|
+
<body>
|
|
159
|
+
<div id="root" class="root">
|
|
160
|
+
<div class="empty">Waiting for extraction result\u2026</div>
|
|
161
|
+
</div>
|
|
162
|
+
<script>
|
|
163
|
+
(function () {
|
|
164
|
+
var root = document.getElementById("root");
|
|
165
|
+
|
|
166
|
+
function escapeHtml(s) {
|
|
167
|
+
return String(s).replace(/[&<>"']/g, function (c) {
|
|
168
|
+
return { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }[c];
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function confidenceClass(v) {
|
|
173
|
+
if (typeof v !== "number") return "";
|
|
174
|
+
if (v >= 0.85) return "";
|
|
175
|
+
if (v >= 0.7) return "warn";
|
|
176
|
+
return "bad";
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function render(payload) {
|
|
180
|
+
if (!payload || typeof payload !== "object") {
|
|
181
|
+
root.innerHTML = '<div class="empty">No data.</div>';
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
var doc = payload.document || {};
|
|
185
|
+
var data = payload.data || {};
|
|
186
|
+
var conf = payload.confidence || {};
|
|
187
|
+
var overall = typeof conf.overall === "number" ? conf.overall : null;
|
|
188
|
+
var fields = conf.fields || {};
|
|
189
|
+
|
|
190
|
+
var rows = Object.keys(data).map(function (k) {
|
|
191
|
+
var v = data[k];
|
|
192
|
+
var fc = fields[k];
|
|
193
|
+
var pct = typeof fc === "number" ? Math.round(fc * 100) + "%" : "\u2014";
|
|
194
|
+
var cls = confidenceClass(fc);
|
|
195
|
+
var bar = typeof fc === "number"
|
|
196
|
+
? '<div class="bar ' + cls + '"><span style="width:' + Math.round(fc * 100) + '%"></span></div>'
|
|
197
|
+
: "";
|
|
198
|
+
return '<tr>'
|
|
199
|
+
+ '<td class="field-name">' + escapeHtml(k) + '</td>'
|
|
200
|
+
+ '<td class="field-val">' + escapeHtml(typeof v === "object" ? JSON.stringify(v) : v) + '</td>'
|
|
201
|
+
+ '<td>' + bar + ' <span style="color:var(--muted);font-size:12px">' + pct + '</span></td>'
|
|
202
|
+
+ '</tr>';
|
|
203
|
+
}).join("");
|
|
204
|
+
|
|
205
|
+
var overallHtml = overall === null
|
|
206
|
+
? ""
|
|
207
|
+
: '<div class="confidence">'
|
|
208
|
+
+ '<span>Overall</span>'
|
|
209
|
+
+ '<div class="bar ' + confidenceClass(overall) + '"><span style="width:' + Math.round(overall * 100) + '%"></span></div>'
|
|
210
|
+
+ '<span>' + Math.round(overall * 100) + '%</span>'
|
|
211
|
+
+ '</div>';
|
|
212
|
+
|
|
213
|
+
root.innerHTML = ''
|
|
214
|
+
+ '<div class="header">'
|
|
215
|
+
+ ' <div>'
|
|
216
|
+
+ ' <div class="doc">' + escapeHtml(doc.filename || "Document") + '</div>'
|
|
217
|
+
+ ' <div class="doc-meta">'
|
|
218
|
+
+ (doc.pages ? doc.pages + (doc.pages === 1 ? " page" : " pages") : "")
|
|
219
|
+
+ (doc.type_detected ? " \xB7 " + escapeHtml(doc.type_detected) : "")
|
|
220
|
+
+ (doc.language_detected ? " \xB7 " + escapeHtml(doc.language_detected) : "")
|
|
221
|
+
+ ' </div>'
|
|
222
|
+
+ ' </div>'
|
|
223
|
+
+ overallHtml
|
|
224
|
+
+ '</div>'
|
|
225
|
+
+ '<table>'
|
|
226
|
+
+ ' <thead><tr><th>Field</th><th>Value</th><th>Confidence</th></tr></thead>'
|
|
227
|
+
+ ' <tbody>' + (rows || '<tr><td colspan="3" class="empty">No fields extracted.</td></tr>') + '</tbody>'
|
|
228
|
+
+ '</table>'
|
|
229
|
+
+ '<div class="actions">'
|
|
230
|
+
+ ' <button id="copy-json">Copy JSON</button>'
|
|
231
|
+
+ ' <button id="download-json">Download JSON</button>'
|
|
232
|
+
+ '</div>';
|
|
233
|
+
|
|
234
|
+
var json = JSON.stringify(data, null, 2);
|
|
235
|
+
document.getElementById("copy-json").addEventListener("click", function () {
|
|
236
|
+
navigator.clipboard && navigator.clipboard.writeText(json);
|
|
237
|
+
});
|
|
238
|
+
document.getElementById("download-json").addEventListener("click", function () {
|
|
239
|
+
var blob = new Blob([json], { type: "application/json" });
|
|
240
|
+
var url = URL.createObjectURL(blob);
|
|
241
|
+
var a = document.createElement("a");
|
|
242
|
+
a.href = url;
|
|
243
|
+
a.download = (doc.filename || "extraction") + ".json";
|
|
244
|
+
a.click();
|
|
245
|
+
setTimeout(function () { URL.revokeObjectURL(url); }, 1000);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// Apps SDK delivers tool results via JSON-RPC notifications over postMessage.
|
|
250
|
+
// The host posts { method: "ui/notifications/tool-result", params: { structuredContent } }.
|
|
251
|
+
window.addEventListener("message", function (event) {
|
|
252
|
+
var msg = event.data;
|
|
253
|
+
if (!msg || msg.method !== "ui/notifications/tool-result") return;
|
|
254
|
+
var sc = msg.params && msg.params.structuredContent;
|
|
255
|
+
render(sc);
|
|
256
|
+
});
|
|
257
|
+
})();
|
|
258
|
+
</script>
|
|
259
|
+
</body>
|
|
260
|
+
</html>`;
|
|
261
|
+
|
|
262
|
+
// src/widgets/types.ts
|
|
263
|
+
var EXTRACTION_RESULT_WIDGET_URI = "ui://widget/extraction-result.html";
|
|
264
|
+
var EXTRACTION_RESULT_WIDGET_MIME = "text/html;profile=mcp-app";
|
|
265
|
+
|
|
266
|
+
// src/widgets/register.ts
|
|
267
|
+
function registerExtractionResultWidget(server) {
|
|
268
|
+
server.registerResource(
|
|
269
|
+
"extraction-result-widget",
|
|
270
|
+
EXTRACTION_RESULT_WIDGET_URI,
|
|
271
|
+
{
|
|
272
|
+
title: "Talonic Extraction Result",
|
|
273
|
+
description: "Inline view of extracted data, document metadata, and per-field confidence.",
|
|
274
|
+
mimeType: EXTRACTION_RESULT_WIDGET_MIME
|
|
275
|
+
},
|
|
276
|
+
async () => ({
|
|
277
|
+
contents: [
|
|
278
|
+
{
|
|
279
|
+
uri: EXTRACTION_RESULT_WIDGET_URI,
|
|
280
|
+
mimeType: EXTRACTION_RESULT_WIDGET_MIME,
|
|
281
|
+
text: getExtractionResultWidgetHtml()
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
})
|
|
285
|
+
);
|
|
286
|
+
}
|
|
107
287
|
function jsonOk(value) {
|
|
108
288
|
const result = {
|
|
109
289
|
content: [
|
|
@@ -201,7 +381,12 @@ var DESCRIPTION = [
|
|
|
201
381
|
"- markdown: present only when `include_markdown: true`.",
|
|
202
382
|
"- provenance: present only when `include_provenance: true`. Per-field source evidence:",
|
|
203
383
|
" { field_name: { source_text, section, page } }. Useful for audit trails and citations.",
|
|
204
|
-
"Cost, EUR price, and remaining credit balance are not surfaced in v0.1 and may appear in a later version."
|
|
384
|
+
"Cost, EUR price, and remaining credit balance are not surfaced in v0.1 and may appear in a later version.",
|
|
385
|
+
"",
|
|
386
|
+
"LARGE FILES / HOSTED ENVIRONMENTS:",
|
|
387
|
+
"For files larger than ~32KB, or when running in a hosted/sandboxed environment (Claude.ai, ChatGPT),",
|
|
388
|
+
"use talonic_request_upload first to get a browser upload link, then use the returned document_id",
|
|
389
|
+
"with this tool."
|
|
205
390
|
].join("\n");
|
|
206
391
|
var inputSchema = {
|
|
207
392
|
file_data: z.string().optional().describe(
|
|
@@ -329,6 +514,9 @@ function registerExtract(server, getTalonic) {
|
|
|
329
514
|
readOnlyHint: false,
|
|
330
515
|
destructiveHint: false,
|
|
331
516
|
openWorldHint: true
|
|
517
|
+
},
|
|
518
|
+
_meta: {
|
|
519
|
+
"openai/outputTemplate": EXTRACTION_RESULT_WIDGET_URI
|
|
332
520
|
}
|
|
333
521
|
},
|
|
334
522
|
async (args) => handleExtract(getTalonic(), args)
|
|
@@ -362,7 +550,8 @@ var DESCRIPTION2 = [
|
|
|
362
550
|
"",
|
|
363
551
|
"SCHEMA TYPING:",
|
|
364
552
|
"- Numeric operators (`gt`, `gte`, `lt`, `lte`, `between`) only resolve correctly when the schema field is typed as `number`. A field typed as `string` that holds numeric content (e.g. '\u20AC1,500.00') will silently return zero matches even after extraction. Pick the right type at schema design time.",
|
|
365
|
-
"-
|
|
553
|
+
"- **Preventive check:** call `talonic_search` first and inspect `fieldMatches[].dataType` / `fields[].dataType` on the field you intend to filter. If `dataType !== 'number'`, do NOT use a numeric operator on it \u2014 either pick a different field, switch to a string-friendly operator (`eq`, `contains`), or warn the user that the schema field needs a `data_type` change before the filter can succeed.",
|
|
554
|
+
"- **Reactive fallback:** if the filter response contains a `warnings` array, surface its `message` (and `suggestion`, if present) to the user verbatim \u2014 these explain *why* a query returned zero or unexpected results and typically suggest a schema-design change. Do not silently retry without flagging the warning.",
|
|
366
555
|
"",
|
|
367
556
|
"TIPS:",
|
|
368
557
|
"- To discover available field names, call talonic_search first with a related query.",
|
|
@@ -825,7 +1014,10 @@ var outputSchema7 = {
|
|
|
825
1014
|
displayName: z.string().optional(),
|
|
826
1015
|
matchedValue: z.string().optional(),
|
|
827
1016
|
documentCount: z.number().nullable().optional(),
|
|
828
|
-
filterable: z.boolean().describe("Only filterable: true entries can be used with talonic_filter.")
|
|
1017
|
+
filterable: z.boolean().describe("Only filterable: true entries can be used with talonic_filter."),
|
|
1018
|
+
dataType: z.string().nullable().optional().describe(
|
|
1019
|
+
"Field's declared data type (e.g. `string`, `number`, `array`). Use this to guard numeric operators in `talonic_filter` (`gt`/`gte`/`lt`/`lte`/`between`) \u2014 they only resolve correctly when `dataType === 'number'`. `null` on non-materialized informational entries."
|
|
1020
|
+
)
|
|
829
1021
|
})
|
|
830
1022
|
).describe(
|
|
831
1023
|
"Field-level matches with a filterable flag indicating whether the entry can drive talonic_filter."
|
|
@@ -840,7 +1032,10 @@ var outputSchema7 = {
|
|
|
840
1032
|
canonicalName: z.string().optional(),
|
|
841
1033
|
displayName: z.string().optional(),
|
|
842
1034
|
documentCount: z.number().nullable().optional(),
|
|
843
|
-
filterable: z.boolean().optional()
|
|
1035
|
+
filterable: z.boolean().optional(),
|
|
1036
|
+
dataType: z.string().nullable().optional().describe(
|
|
1037
|
+
"Field's declared data type (e.g. `string`, `number`, `array`). Use this to guard numeric operators in `talonic_filter` (`gt`/`gte`/`lt`/`lte`/`between`) \u2014 they only resolve correctly when `dataType === 'number'`."
|
|
1038
|
+
)
|
|
844
1039
|
})
|
|
845
1040
|
).describe(
|
|
846
1041
|
"Field-registry entries matching the query. filterable: true entries are usable with talonic_filter."
|
|
@@ -875,6 +1070,88 @@ function registerSearch(server, getTalonic) {
|
|
|
875
1070
|
);
|
|
876
1071
|
}
|
|
877
1072
|
var DESCRIPTION8 = [
|
|
1073
|
+
"STATUS: stable.",
|
|
1074
|
+
"",
|
|
1075
|
+
"Request a file upload link for the user. Use this when the user wants to",
|
|
1076
|
+
"extract a file but you cannot deliver it directly (e.g., the file is too",
|
|
1077
|
+
"large for tool-call arguments, or you're running in a sandboxed environment",
|
|
1078
|
+
"like Claude.ai).",
|
|
1079
|
+
"",
|
|
1080
|
+
"Returns an upload URL the user can open in their browser to drop the file,",
|
|
1081
|
+
"plus a document_id to track the upload.",
|
|
1082
|
+
"",
|
|
1083
|
+
"After showing the URL to the user, poll with talonic_get_document until",
|
|
1084
|
+
"status is 'uploaded', then proceed with talonic_extract using the document_id.",
|
|
1085
|
+
"",
|
|
1086
|
+
"USE WHEN:",
|
|
1087
|
+
"- The user has a file to extract but you cannot send it via tool-call arguments",
|
|
1088
|
+
" (e.g., file is larger than ~32KB, or the environment blocks outbound data).",
|
|
1089
|
+
"- You are running in a hosted/sandboxed environment (Claude.ai, ChatGPT) where",
|
|
1090
|
+
" file_data cannot be used reliably.",
|
|
1091
|
+
"- The user explicitly asks for an upload link.",
|
|
1092
|
+
"",
|
|
1093
|
+
"DO NOT USE WHEN:",
|
|
1094
|
+
"- You can deliver the file directly via file_data (local-stdio installs with small files).",
|
|
1095
|
+
"- The file is already accessible via a public URL (use file_url on talonic_extract instead).",
|
|
1096
|
+
"- The document is already in the workspace (use document_id on talonic_extract instead)."
|
|
1097
|
+
].join("\n");
|
|
1098
|
+
var inputSchema7 = {
|
|
1099
|
+
filename: z.string().min(1).describe(
|
|
1100
|
+
"The name of the file being uploaded, including extension (e.g. 'invoice.pdf'). Used to pre-allocate the document and infer MIME type."
|
|
1101
|
+
)
|
|
1102
|
+
};
|
|
1103
|
+
var outputSchema8 = {
|
|
1104
|
+
document_id: z.string().describe("The pre-allocated document ID. Use with talonic_get_document to poll status, and with talonic_extract once uploaded."),
|
|
1105
|
+
upload_url: z.string().describe("URL the user should open in their browser to drop the file."),
|
|
1106
|
+
expires_at: z.string().describe("ISO 8601 timestamp when the upload link expires.")
|
|
1107
|
+
};
|
|
1108
|
+
async function handleRequestUpload(getToken, baseUrl, args) {
|
|
1109
|
+
try {
|
|
1110
|
+
const base = baseUrl ?? "https://api.talonic.com";
|
|
1111
|
+
const token = getToken();
|
|
1112
|
+
const res = await fetch(`${base}/v1/documents/upload-session`, {
|
|
1113
|
+
method: "POST",
|
|
1114
|
+
headers: {
|
|
1115
|
+
Authorization: `Bearer ${token}`,
|
|
1116
|
+
"Content-Type": "application/json",
|
|
1117
|
+
Accept: "application/json"
|
|
1118
|
+
},
|
|
1119
|
+
body: JSON.stringify({ filename: args.filename })
|
|
1120
|
+
});
|
|
1121
|
+
if (!res.ok) {
|
|
1122
|
+
const body = await res.text().catch(() => "");
|
|
1123
|
+
return toolError(
|
|
1124
|
+
new Error(`Talonic API error: HTTP ${res.status}${body ? ` \u2014 ${body}` : ""}`)
|
|
1125
|
+
);
|
|
1126
|
+
}
|
|
1127
|
+
const data = await res.json();
|
|
1128
|
+
return jsonOk({
|
|
1129
|
+
document_id: data.document_id,
|
|
1130
|
+
upload_url: data.upload_url,
|
|
1131
|
+
expires_at: data.expires_at
|
|
1132
|
+
});
|
|
1133
|
+
} catch (err) {
|
|
1134
|
+
return toolError(err);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
function registerRequestUpload(server, getToken, baseUrl) {
|
|
1138
|
+
server.registerTool(
|
|
1139
|
+
"talonic_request_upload",
|
|
1140
|
+
{
|
|
1141
|
+
title: "Request File Upload",
|
|
1142
|
+
description: DESCRIPTION8,
|
|
1143
|
+
inputSchema: inputSchema7,
|
|
1144
|
+
outputSchema: outputSchema8,
|
|
1145
|
+
annotations: {
|
|
1146
|
+
title: "Request File Upload",
|
|
1147
|
+
readOnlyHint: false,
|
|
1148
|
+
openWorldHint: true
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
async (args) => handleRequestUpload(getToken, baseUrl, args)
|
|
1152
|
+
);
|
|
1153
|
+
}
|
|
1154
|
+
var DESCRIPTION9 = [
|
|
878
1155
|
"STATUS: stable.",
|
|
879
1156
|
"",
|
|
880
1157
|
"Get the OCR-converted markdown for a document. Accepts an existing document_id,",
|
|
@@ -904,7 +1181,7 @@ var DESCRIPTION8 = [
|
|
|
904
1181
|
"- file_url: a URL the Talonic API will fetch directly. Use for documents already on the",
|
|
905
1182
|
" public web. Best path for Claude.ai users dealing with files larger than the parameter cap."
|
|
906
1183
|
].join("\n");
|
|
907
|
-
var
|
|
1184
|
+
var inputSchema8 = {
|
|
908
1185
|
document_id: z.string().min(1).optional().describe(
|
|
909
1186
|
"The Talonic document id whose markdown you want. Get this from a previous talonic_extract or talonic_search response."
|
|
910
1187
|
),
|
|
@@ -919,7 +1196,7 @@ var inputSchema7 = {
|
|
|
919
1196
|
),
|
|
920
1197
|
file_url: z.string().optional().describe("URL to a document file. The Talonic API fetches it server-side.")
|
|
921
1198
|
};
|
|
922
|
-
var
|
|
1199
|
+
var outputSchema9 = {
|
|
923
1200
|
document_id: z.string().describe("ID of the document the markdown was extracted from."),
|
|
924
1201
|
markdown: z.string().describe("OCR-converted markdown text content of the document."),
|
|
925
1202
|
cost: z.object({
|
|
@@ -982,9 +1259,9 @@ function registerToMarkdown(server, getTalonic) {
|
|
|
982
1259
|
"talonic_to_markdown",
|
|
983
1260
|
{
|
|
984
1261
|
title: "Document to Markdown",
|
|
985
|
-
description:
|
|
986
|
-
inputSchema:
|
|
987
|
-
outputSchema:
|
|
1262
|
+
description: DESCRIPTION9,
|
|
1263
|
+
inputSchema: inputSchema8,
|
|
1264
|
+
outputSchema: outputSchema9,
|
|
988
1265
|
annotations: {
|
|
989
1266
|
title: "Document to Markdown",
|
|
990
1267
|
readOnlyHint: false,
|
|
@@ -998,7 +1275,7 @@ function registerToMarkdown(server, getTalonic) {
|
|
|
998
1275
|
|
|
999
1276
|
// package.json
|
|
1000
1277
|
var package_default = {
|
|
1001
|
-
version: "0.1.
|
|
1278
|
+
version: "0.1.45"};
|
|
1002
1279
|
|
|
1003
1280
|
// src/version.ts
|
|
1004
1281
|
var VERSION = package_default.version;
|
|
@@ -1069,8 +1346,10 @@ function createServer(options) {
|
|
|
1069
1346
|
registerToMarkdown(server, getTalonic);
|
|
1070
1347
|
registerExtract(server, getTalonic);
|
|
1071
1348
|
registerGetBalance(server, getTalonic);
|
|
1349
|
+
registerRequestUpload(server, getToken, baseUrl);
|
|
1072
1350
|
registerSchemasResource(server, getTalonic);
|
|
1073
1351
|
registerWebhooksResource(server, getToken, baseUrl);
|
|
1352
|
+
registerExtractionResultWidget(server);
|
|
1074
1353
|
return server;
|
|
1075
1354
|
}
|
|
1076
1355
|
|