@snokam/mcp-api 1.0.0 → 1.0.2
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/package.json +1 -1
- package/specs/production/accounting.json +307 -280
- package/specs/production/chatgpt.json +64 -0
- package/specs/test/accounting.json +307 -280
- package/specs/test/chatgpt.json +64 -0
|
@@ -11,6 +11,50 @@
|
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"paths": {
|
|
14
|
+
"/v1.0/protected/extract": {
|
|
15
|
+
"post": {
|
|
16
|
+
"tags": [
|
|
17
|
+
"Extraction"
|
|
18
|
+
],
|
|
19
|
+
"summary": "Extract structured data from a document or context",
|
|
20
|
+
"description": "Generic AI extraction: supply an instruction, a JSON schema (as a string), and a PDF and/or text context. Returns JSON matching the supplied schema.",
|
|
21
|
+
"operationId": "extractStructured",
|
|
22
|
+
"requestBody": {
|
|
23
|
+
"description": "Instruction, JSON schema, and the PDF and/or text to extract from",
|
|
24
|
+
"content": {
|
|
25
|
+
"application/json": {
|
|
26
|
+
"schema": {
|
|
27
|
+
"$ref": "#/components/schemas/extractStructuredRequest"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": true
|
|
32
|
+
},
|
|
33
|
+
"responses": {
|
|
34
|
+
"200": {
|
|
35
|
+
"description": "Payload of Object",
|
|
36
|
+
"content": {
|
|
37
|
+
"application/json": {
|
|
38
|
+
"schema": {
|
|
39
|
+
"type": "object"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"x-ms-summary": "Extracted JSON matching the supplied schema"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"security": [
|
|
47
|
+
{
|
|
48
|
+
"Implicit": [
|
|
49
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"ApiKey": []
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
14
58
|
"/v1.0/protected/health/{provider}": {
|
|
15
59
|
"get": {
|
|
16
60
|
"tags": [
|
|
@@ -1287,6 +1331,26 @@
|
|
|
1287
1331
|
},
|
|
1288
1332
|
"nullable": true
|
|
1289
1333
|
},
|
|
1334
|
+
"extractStructuredRequest": {
|
|
1335
|
+
"type": "object",
|
|
1336
|
+
"properties": {
|
|
1337
|
+
"instruction": {
|
|
1338
|
+
"type": "string"
|
|
1339
|
+
},
|
|
1340
|
+
"schema": {
|
|
1341
|
+
"type": "string"
|
|
1342
|
+
},
|
|
1343
|
+
"schemaName": {
|
|
1344
|
+
"type": "string"
|
|
1345
|
+
},
|
|
1346
|
+
"pdfBase64": {
|
|
1347
|
+
"type": "string"
|
|
1348
|
+
},
|
|
1349
|
+
"context": {
|
|
1350
|
+
"type": "string"
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1290
1354
|
"file": {
|
|
1291
1355
|
"type": "object",
|
|
1292
1356
|
"properties": {
|