@gpt-core/client 0.3.3 → 0.3.5
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/dist/index.d.mts +2276 -1894
- package/dist/index.d.ts +2276 -1894
- package/dist/index.js +177 -147
- package/dist/index.mjs +157 -130
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -75,6 +75,7 @@ var createSseClient = ({
|
|
|
75
75
|
const { done, value } = await reader.read();
|
|
76
76
|
if (done) break;
|
|
77
77
|
buffer += value;
|
|
78
|
+
buffer = buffer.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
78
79
|
const chunks = buffer.split("\n\n");
|
|
79
80
|
buffer = chunks.pop() ?? "";
|
|
80
81
|
for (const chunk of chunks) {
|
|
@@ -836,6 +837,16 @@ var postAiSearchAdvanced = (options) => (options.client ?? client).post({
|
|
|
836
837
|
...options.headers
|
|
837
838
|
}
|
|
838
839
|
});
|
|
840
|
+
var deleteExtractionDocumentsById = (options) => (options.client ?? client).delete({
|
|
841
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
842
|
+
url: "/extraction/documents/{id}",
|
|
843
|
+
...options
|
|
844
|
+
});
|
|
845
|
+
var getExtractionDocumentsById = (options) => (options.client ?? client).get({
|
|
846
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
847
|
+
url: "/extraction/documents/{id}",
|
|
848
|
+
...options
|
|
849
|
+
});
|
|
839
850
|
var getThreads = (options) => (options.client ?? client).get({
|
|
840
851
|
security: [{ scheme: "bearer", type: "http" }],
|
|
841
852
|
url: "/threads",
|
|
@@ -850,6 +861,11 @@ var postThreads = (options) => (options.client ?? client).post({
|
|
|
850
861
|
...options.headers
|
|
851
862
|
}
|
|
852
863
|
});
|
|
864
|
+
var getExtractionSchemasWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
865
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
866
|
+
url: "/extraction/schemas/workspace/{workspace_id}",
|
|
867
|
+
...options
|
|
868
|
+
});
|
|
853
869
|
var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
|
|
854
870
|
security: [{ scheme: "bearer", type: "http" }],
|
|
855
871
|
url: "/llm_analytics/costs",
|
|
@@ -860,25 +876,6 @@ var getAiChunksDocumentByDocumentId = (options) => (options.client ?? client).ge
|
|
|
860
876
|
url: "/ai/chunks/document/{document_id}",
|
|
861
877
|
...options
|
|
862
878
|
});
|
|
863
|
-
var deleteExtractionResultsById = (options) => (options.client ?? client).delete({
|
|
864
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
865
|
-
url: "/extraction_results/{id}",
|
|
866
|
-
...options
|
|
867
|
-
});
|
|
868
|
-
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
869
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
870
|
-
url: "/extraction_results/{id}",
|
|
871
|
-
...options
|
|
872
|
-
});
|
|
873
|
-
var patchExtractionResultsById = (options) => (options.client ?? client).patch({
|
|
874
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
875
|
-
url: "/extraction_results/{id}",
|
|
876
|
-
...options,
|
|
877
|
-
headers: {
|
|
878
|
-
"Content-Type": "application/vnd.api+json",
|
|
879
|
-
...options.headers
|
|
880
|
-
}
|
|
881
|
-
});
|
|
882
879
|
var getWorkspaces = (options) => (options.client ?? client).get({
|
|
883
880
|
security: [{ scheme: "bearer", type: "http" }],
|
|
884
881
|
url: "/workspaces",
|
|
@@ -950,6 +947,20 @@ var getInvitationsConsumeByToken = (options) => (options.client ?? client).get({
|
|
|
950
947
|
url: "/invitations/consume/{token}",
|
|
951
948
|
...options
|
|
952
949
|
});
|
|
950
|
+
var getExtractionDocumentsByIdStatus = (options) => (options.client ?? client).get({
|
|
951
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
952
|
+
url: "/extraction/documents/{id}/status",
|
|
953
|
+
...options
|
|
954
|
+
});
|
|
955
|
+
var patchExtractionDocumentsByIdStatus = (options) => (options.client ?? client).patch({
|
|
956
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
957
|
+
url: "/extraction/documents/{id}/status",
|
|
958
|
+
...options,
|
|
959
|
+
headers: {
|
|
960
|
+
"Content-Type": "application/vnd.api+json",
|
|
961
|
+
...options.headers
|
|
962
|
+
}
|
|
963
|
+
});
|
|
953
964
|
var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch({
|
|
954
965
|
security: [{ scheme: "bearer", type: "http" }],
|
|
955
966
|
url: "/workspaces/{id}/allocate",
|
|
@@ -1038,11 +1049,6 @@ var getBucketsByIdStats = (options) => (options.client ?? client).get({
|
|
|
1038
1049
|
url: "/buckets/{id}/stats",
|
|
1039
1050
|
...options
|
|
1040
1051
|
});
|
|
1041
|
-
var getDocumentsSearch = (options) => (options.client ?? client).get({
|
|
1042
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1043
|
-
url: "/documents/search",
|
|
1044
|
-
...options
|
|
1045
|
-
});
|
|
1046
1052
|
var getBucketsByIdObjects = (options) => (options.client ?? client).get({
|
|
1047
1053
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1048
1054
|
url: "/buckets/{id}/objects",
|
|
@@ -1168,6 +1174,11 @@ var patchUsersById = (options) => (options.client ?? client).patch({
|
|
|
1168
1174
|
...options.headers
|
|
1169
1175
|
}
|
|
1170
1176
|
});
|
|
1177
|
+
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
1178
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1179
|
+
url: "/extraction/results/{id}",
|
|
1180
|
+
...options
|
|
1181
|
+
});
|
|
1171
1182
|
var postAgentsByIdValidate = (options) => (options.client ?? client).post({
|
|
1172
1183
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1173
1184
|
url: "/agents/{id}/validate",
|
|
@@ -1219,20 +1230,6 @@ var postTenantMemberships = (options) => (options.client ?? client).post({
|
|
|
1219
1230
|
...options.headers
|
|
1220
1231
|
}
|
|
1221
1232
|
});
|
|
1222
|
-
var getDocuments = (options) => (options.client ?? client).get({
|
|
1223
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1224
|
-
url: "/documents",
|
|
1225
|
-
...options
|
|
1226
|
-
});
|
|
1227
|
-
var postDocuments = (options) => (options.client ?? client).post({
|
|
1228
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1229
|
-
url: "/documents",
|
|
1230
|
-
...options,
|
|
1231
|
-
headers: {
|
|
1232
|
-
"Content-Type": "application/vnd.api+json",
|
|
1233
|
-
...options.headers
|
|
1234
|
-
}
|
|
1235
|
-
});
|
|
1236
1233
|
var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).post({
|
|
1237
1234
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1238
1235
|
url: "/training_examples/bulk_delete",
|
|
@@ -1247,39 +1244,39 @@ var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
|
1247
1244
|
url: "/llm_analytics/summary",
|
|
1248
1245
|
...options
|
|
1249
1246
|
});
|
|
1250
|
-
var
|
|
1251
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1252
|
-
url: "/storage/sign_download",
|
|
1253
|
-
...options,
|
|
1254
|
-
headers: {
|
|
1255
|
-
"Content-Type": "application/vnd.api+json",
|
|
1256
|
-
...options.headers
|
|
1257
|
-
}
|
|
1258
|
-
});
|
|
1259
|
-
var getWebhookDeliveries = (options) => (options.client ?? client).get({
|
|
1247
|
+
var deleteExtractionSchemaFieldsById = (options) => (options.client ?? client).delete({
|
|
1260
1248
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1261
|
-
url: "/
|
|
1249
|
+
url: "/extraction/schema-fields/{id}",
|
|
1262
1250
|
...options
|
|
1263
1251
|
});
|
|
1264
|
-
var
|
|
1252
|
+
var getExtractionSchemaFieldsById = (options) => (options.client ?? client).get({
|
|
1265
1253
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1266
|
-
url: "/
|
|
1254
|
+
url: "/extraction/schema-fields/{id}",
|
|
1267
1255
|
...options
|
|
1268
1256
|
});
|
|
1269
|
-
var
|
|
1257
|
+
var patchExtractionSchemaFieldsById = (options) => (options.client ?? client).patch({
|
|
1270
1258
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1271
|
-
url: "/
|
|
1272
|
-
...options
|
|
1259
|
+
url: "/extraction/schema-fields/{id}",
|
|
1260
|
+
...options,
|
|
1261
|
+
headers: {
|
|
1262
|
+
"Content-Type": "application/vnd.api+json",
|
|
1263
|
+
...options.headers
|
|
1264
|
+
}
|
|
1273
1265
|
});
|
|
1274
|
-
var
|
|
1266
|
+
var postStorageSignDownload = (options) => (options.client ?? client).post({
|
|
1275
1267
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1276
|
-
url: "/
|
|
1268
|
+
url: "/storage/sign_download",
|
|
1277
1269
|
...options,
|
|
1278
1270
|
headers: {
|
|
1279
1271
|
"Content-Type": "application/vnd.api+json",
|
|
1280
1272
|
...options.headers
|
|
1281
1273
|
}
|
|
1282
1274
|
});
|
|
1275
|
+
var getWebhookDeliveries = (options) => (options.client ?? client).get({
|
|
1276
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1277
|
+
url: "/webhook_deliveries",
|
|
1278
|
+
...options
|
|
1279
|
+
});
|
|
1283
1280
|
var getSearch = (options) => (options.client ?? client).get({
|
|
1284
1281
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1285
1282
|
url: "/search",
|
|
@@ -1290,15 +1287,6 @@ var getInvitations = (options) => (options.client ?? client).get({
|
|
|
1290
1287
|
url: "/invitations",
|
|
1291
1288
|
...options
|
|
1292
1289
|
});
|
|
1293
|
-
var postDocumentsByIdAnalyze = (options) => (options.client ?? client).post({
|
|
1294
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1295
|
-
url: "/documents/{id}/analyze",
|
|
1296
|
-
...options,
|
|
1297
|
-
headers: {
|
|
1298
|
-
"Content-Type": "application/vnd.api+json",
|
|
1299
|
-
...options.headers
|
|
1300
|
-
}
|
|
1301
|
-
});
|
|
1302
1290
|
var getSearchSemantic = (options) => (options.client ?? client).get({
|
|
1303
1291
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1304
1292
|
url: "/search/semantic",
|
|
@@ -1388,36 +1376,50 @@ var postLlmAnalytics = (options) => (options.client ?? client).post({
|
|
|
1388
1376
|
...options.headers
|
|
1389
1377
|
}
|
|
1390
1378
|
});
|
|
1391
|
-
var
|
|
1379
|
+
var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch({
|
|
1392
1380
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1393
|
-
url: "/
|
|
1381
|
+
url: "/users/{id}/reset-password",
|
|
1394
1382
|
...options,
|
|
1395
1383
|
headers: {
|
|
1396
1384
|
"Content-Type": "application/vnd.api+json",
|
|
1397
1385
|
...options.headers
|
|
1398
1386
|
}
|
|
1399
1387
|
});
|
|
1400
|
-
var
|
|
1388
|
+
var postDocumentsPresignedUpload = (options) => (options.client ?? client).post({
|
|
1401
1389
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1402
|
-
url: "/
|
|
1390
|
+
url: "/documents/presigned_upload",
|
|
1403
1391
|
...options,
|
|
1404
1392
|
headers: {
|
|
1405
1393
|
"Content-Type": "application/vnd.api+json",
|
|
1406
1394
|
...options.headers
|
|
1407
1395
|
}
|
|
1408
1396
|
});
|
|
1409
|
-
var
|
|
1397
|
+
var getMessagesSearch = (options) => (options.client ?? client).get({
|
|
1410
1398
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1411
|
-
url: "/
|
|
1399
|
+
url: "/messages/search",
|
|
1400
|
+
...options
|
|
1401
|
+
});
|
|
1402
|
+
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
1403
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1404
|
+
url: "/extraction/documents/upload",
|
|
1412
1405
|
...options,
|
|
1413
1406
|
headers: {
|
|
1414
1407
|
"Content-Type": "application/vnd.api+json",
|
|
1415
1408
|
...options.headers
|
|
1416
1409
|
}
|
|
1417
1410
|
});
|
|
1418
|
-
var
|
|
1411
|
+
var patchExtractionResultsByIdCorrections = (options) => (options.client ?? client).patch({
|
|
1419
1412
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1420
|
-
url: "/
|
|
1413
|
+
url: "/extraction/results/{id}/corrections",
|
|
1414
|
+
...options,
|
|
1415
|
+
headers: {
|
|
1416
|
+
"Content-Type": "application/vnd.api+json",
|
|
1417
|
+
...options.headers
|
|
1418
|
+
}
|
|
1419
|
+
});
|
|
1420
|
+
var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
|
|
1421
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1422
|
+
url: "/extraction/results/document/{document_id}",
|
|
1421
1423
|
...options
|
|
1422
1424
|
});
|
|
1423
1425
|
var deleteWorkspacesById = (options) => (options.client ?? client).delete({
|
|
@@ -1462,15 +1464,6 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
|
|
|
1462
1464
|
...options.headers
|
|
1463
1465
|
}
|
|
1464
1466
|
});
|
|
1465
|
-
var postDocumentsBulkReprocess = (options) => (options.client ?? client).post({
|
|
1466
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1467
|
-
url: "/documents/bulk_reprocess",
|
|
1468
|
-
...options,
|
|
1469
|
-
headers: {
|
|
1470
|
-
"Content-Type": "application/vnd.api+json",
|
|
1471
|
-
...options.headers
|
|
1472
|
-
}
|
|
1473
|
-
});
|
|
1474
1467
|
var getNotificationLogsById = (options) => (options.client ?? client).get({
|
|
1475
1468
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1476
1469
|
url: "/notification_logs/{id}",
|
|
@@ -1500,11 +1493,6 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
|
|
|
1500
1493
|
...options.headers
|
|
1501
1494
|
}
|
|
1502
1495
|
});
|
|
1503
|
-
var postDocumentsExport = (options) => (options.client ?? client).post({
|
|
1504
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1505
|
-
url: "/documents/export",
|
|
1506
|
-
...options
|
|
1507
|
-
});
|
|
1508
1496
|
var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
1509
1497
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1510
1498
|
url: "/training_examples",
|
|
@@ -1570,25 +1558,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
|
|
|
1570
1558
|
...options.headers
|
|
1571
1559
|
}
|
|
1572
1560
|
});
|
|
1573
|
-
var getExtractionResults = (options) => (options.client ?? client).get({
|
|
1574
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1575
|
-
url: "/extraction_results",
|
|
1576
|
-
...options
|
|
1577
|
-
});
|
|
1578
1561
|
var getAgentsById = (options) => (options.client ?? client).get({
|
|
1579
1562
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1580
1563
|
url: "/agents/{id}",
|
|
1581
1564
|
...options
|
|
1582
1565
|
});
|
|
1583
|
-
var postDocumentsImport = (options) => (options.client ?? client).post({
|
|
1584
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1585
|
-
url: "/documents/import",
|
|
1586
|
-
...options,
|
|
1587
|
-
headers: {
|
|
1588
|
-
"Content-Type": "application/vnd.api+json",
|
|
1589
|
-
...options.headers
|
|
1590
|
-
}
|
|
1591
|
-
});
|
|
1592
1566
|
var deleteApiKeysById = (options) => (options.client ?? client).delete({
|
|
1593
1567
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1594
1568
|
url: "/api_keys/{id}",
|
|
@@ -1702,11 +1676,6 @@ var getThreadsSearch = (options) => (options.client ?? client).get({
|
|
|
1702
1676
|
url: "/threads/search",
|
|
1703
1677
|
...options
|
|
1704
1678
|
});
|
|
1705
|
-
var getDocumentsByIdRelationshipsChunks = (options) => (options.client ?? client).get({
|
|
1706
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1707
|
-
url: "/documents/{id}/relationships/chunks",
|
|
1708
|
-
...options
|
|
1709
|
-
});
|
|
1710
1679
|
var patchWalletPlan = (options) => (options.client ?? client).patch({
|
|
1711
1680
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1712
1681
|
url: "/wallet/plan",
|
|
@@ -1726,6 +1695,20 @@ var getLlmAnalyticsById = (options) => (options.client ?? client).get({
|
|
|
1726
1695
|
url: "/llm_analytics/{id}",
|
|
1727
1696
|
...options
|
|
1728
1697
|
});
|
|
1698
|
+
var getExtractionSchemaFields = (options) => (options.client ?? client).get({
|
|
1699
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1700
|
+
url: "/extraction/schema-fields",
|
|
1701
|
+
...options
|
|
1702
|
+
});
|
|
1703
|
+
var postExtractionSchemaFields = (options) => (options.client ?? client).post({
|
|
1704
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1705
|
+
url: "/extraction/schema-fields",
|
|
1706
|
+
...options,
|
|
1707
|
+
headers: {
|
|
1708
|
+
"Content-Type": "application/vnd.api+json",
|
|
1709
|
+
...options.headers
|
|
1710
|
+
}
|
|
1711
|
+
});
|
|
1729
1712
|
var getSearchStatus = (options) => (options.client ?? client).get({
|
|
1730
1713
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1731
1714
|
url: "/search/status",
|
|
@@ -1772,6 +1755,15 @@ var postSearchReindex = (options) => (options.client ?? client).post({
|
|
|
1772
1755
|
...options.headers
|
|
1773
1756
|
}
|
|
1774
1757
|
});
|
|
1758
|
+
var patchExtractionResultsByIdRegenerate = (options) => (options.client ?? client).patch({
|
|
1759
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1760
|
+
url: "/extraction/results/{id}/regenerate",
|
|
1761
|
+
...options,
|
|
1762
|
+
headers: {
|
|
1763
|
+
"Content-Type": "application/vnd.api+json",
|
|
1764
|
+
...options.headers
|
|
1765
|
+
}
|
|
1766
|
+
});
|
|
1775
1767
|
var postUsersAuthConfirm = (options) => (options.client ?? client).post({
|
|
1776
1768
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1777
1769
|
url: "/users/auth/confirm",
|
|
@@ -1781,6 +1773,15 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
|
|
|
1781
1773
|
...options.headers
|
|
1782
1774
|
}
|
|
1783
1775
|
});
|
|
1776
|
+
var postExtractionSchemas = (options) => (options.client ?? client).post({
|
|
1777
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1778
|
+
url: "/extraction/schemas",
|
|
1779
|
+
...options,
|
|
1780
|
+
headers: {
|
|
1781
|
+
"Content-Type": "application/vnd.api+json",
|
|
1782
|
+
...options.headers
|
|
1783
|
+
}
|
|
1784
|
+
});
|
|
1784
1785
|
var getStorageStats = (options) => (options.client ?? client).get({
|
|
1785
1786
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1786
1787
|
url: "/storage/stats",
|
|
@@ -1855,6 +1856,11 @@ var patchBucketsById = (options) => (options.client ?? client).patch({
|
|
|
1855
1856
|
...options.headers
|
|
1856
1857
|
}
|
|
1857
1858
|
});
|
|
1859
|
+
var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1860
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1861
|
+
url: "/extraction/documents/workspace/{workspace_id}",
|
|
1862
|
+
...options
|
|
1863
|
+
});
|
|
1858
1864
|
var deleteAiGraphEdgesById = (options) => (options.client ?? client).delete({
|
|
1859
1865
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1860
1866
|
url: "/ai/graph/edges/{id}",
|
|
@@ -1884,6 +1890,20 @@ var getPlans = (options) => (options.client ?? client).get({
|
|
|
1884
1890
|
url: "/plans",
|
|
1885
1891
|
...options
|
|
1886
1892
|
});
|
|
1893
|
+
var getExtractionSchemasById = (options) => (options.client ?? client).get({
|
|
1894
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1895
|
+
url: "/extraction/schemas/{id}",
|
|
1896
|
+
...options
|
|
1897
|
+
});
|
|
1898
|
+
var patchExtractionSchemasById = (options) => (options.client ?? client).patch({
|
|
1899
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1900
|
+
url: "/extraction/schemas/{id}",
|
|
1901
|
+
...options,
|
|
1902
|
+
headers: {
|
|
1903
|
+
"Content-Type": "application/vnd.api+json",
|
|
1904
|
+
...options.headers
|
|
1905
|
+
}
|
|
1906
|
+
});
|
|
1887
1907
|
var postAgentsByIdTest = (options) => (options.client ?? client).post({
|
|
1888
1908
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1889
1909
|
url: "/agents/{id}/test",
|
|
@@ -1893,9 +1913,9 @@ var postAgentsByIdTest = (options) => (options.client ?? client).post({
|
|
|
1893
1913
|
...options.headers
|
|
1894
1914
|
}
|
|
1895
1915
|
});
|
|
1896
|
-
var
|
|
1916
|
+
var getExtractionDocuments = (options) => (options.client ?? client).get({
|
|
1897
1917
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1898
|
-
url: "/documents
|
|
1918
|
+
url: "/extraction/documents",
|
|
1899
1919
|
...options
|
|
1900
1920
|
});
|
|
1901
1921
|
var deleteTenantMembershipsByTenantIdByUserId = (options) => (options.client ?? client).delete({
|
|
@@ -1971,6 +1991,15 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
|
1971
1991
|
...options.headers
|
|
1972
1992
|
}
|
|
1973
1993
|
});
|
|
1994
|
+
var postExtractionResults = (options) => (options.client ?? client).post({
|
|
1995
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1996
|
+
url: "/extraction/results",
|
|
1997
|
+
...options,
|
|
1998
|
+
headers: {
|
|
1999
|
+
"Content-Type": "application/vnd.api+json",
|
|
2000
|
+
...options.headers
|
|
2001
|
+
}
|
|
2002
|
+
});
|
|
1974
2003
|
var postAgentsByIdClone = (options) => (options.client ?? client).post({
|
|
1975
2004
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1976
2005
|
url: "/agents/{id}/clone",
|
|
@@ -2124,11 +2153,6 @@ var getAgents = (options) => (options.client ?? client).get({
|
|
|
2124
2153
|
url: "/agents",
|
|
2125
2154
|
...options
|
|
2126
2155
|
});
|
|
2127
|
-
var getDocumentsByIdExtractionResults = (options) => (options.client ?? client).get({
|
|
2128
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2129
|
-
url: "/documents/{id}/extraction_results",
|
|
2130
|
-
...options
|
|
2131
|
-
});
|
|
2132
2156
|
var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
2133
2157
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2134
2158
|
url: "/users/register_isv",
|
|
@@ -2539,8 +2563,8 @@ export {
|
|
|
2539
2563
|
deleteApiKeysById,
|
|
2540
2564
|
deleteApplicationsById,
|
|
2541
2565
|
deleteBucketsById,
|
|
2542
|
-
|
|
2543
|
-
|
|
2566
|
+
deleteExtractionDocumentsById,
|
|
2567
|
+
deleteExtractionSchemaFieldsById,
|
|
2544
2568
|
deleteMessagesById,
|
|
2545
2569
|
deleteNotificationPreferencesById,
|
|
2546
2570
|
deleteObjectsById,
|
|
@@ -2575,15 +2599,17 @@ export {
|
|
|
2575
2599
|
getCreditPackages,
|
|
2576
2600
|
getCreditPackagesById,
|
|
2577
2601
|
getCreditPackagesSlugBySlug,
|
|
2578
|
-
getDocuments,
|
|
2579
|
-
getDocumentsById,
|
|
2580
|
-
getDocumentsByIdExtractionResults,
|
|
2581
|
-
getDocumentsByIdRelationshipsChunks,
|
|
2582
|
-
getDocumentsProcessingQueue,
|
|
2583
|
-
getDocumentsSearch,
|
|
2584
2602
|
getDocumentsStats,
|
|
2585
|
-
|
|
2603
|
+
getExtractionDocuments,
|
|
2604
|
+
getExtractionDocumentsById,
|
|
2605
|
+
getExtractionDocumentsByIdStatus,
|
|
2606
|
+
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
2586
2607
|
getExtractionResultsById,
|
|
2608
|
+
getExtractionResultsDocumentByDocumentId,
|
|
2609
|
+
getExtractionSchemaFields,
|
|
2610
|
+
getExtractionSchemaFieldsById,
|
|
2611
|
+
getExtractionSchemasById,
|
|
2612
|
+
getExtractionSchemasWorkspaceByWorkspaceId,
|
|
2587
2613
|
getInvitations,
|
|
2588
2614
|
getInvitationsConsumeByToken,
|
|
2589
2615
|
getLlmAnalytics,
|
|
@@ -2649,8 +2675,11 @@ export {
|
|
|
2649
2675
|
patchApplicationsById,
|
|
2650
2676
|
patchBucketsById,
|
|
2651
2677
|
patchConfigsByKey,
|
|
2652
|
-
|
|
2653
|
-
|
|
2678
|
+
patchExtractionDocumentsByIdStatus,
|
|
2679
|
+
patchExtractionResultsByIdCorrections,
|
|
2680
|
+
patchExtractionResultsByIdRegenerate,
|
|
2681
|
+
patchExtractionSchemaFieldsById,
|
|
2682
|
+
patchExtractionSchemasById,
|
|
2654
2683
|
patchInvitationsByIdAccept,
|
|
2655
2684
|
patchInvitationsByIdResend,
|
|
2656
2685
|
patchInvitationsByIdRevoke,
|
|
@@ -2688,14 +2717,12 @@ export {
|
|
|
2688
2717
|
postApplications,
|
|
2689
2718
|
postBuckets,
|
|
2690
2719
|
postConfigs,
|
|
2691
|
-
postDocuments,
|
|
2692
2720
|
postDocumentsBulkDelete,
|
|
2693
|
-
postDocumentsBulkReprocess,
|
|
2694
|
-
postDocumentsByIdAnalyze,
|
|
2695
|
-
postDocumentsByIdReprocess,
|
|
2696
|
-
postDocumentsExport,
|
|
2697
|
-
postDocumentsImport,
|
|
2698
2721
|
postDocumentsPresignedUpload,
|
|
2722
|
+
postExtractionDocumentsUpload,
|
|
2723
|
+
postExtractionResults,
|
|
2724
|
+
postExtractionSchemaFields,
|
|
2725
|
+
postExtractionSchemas,
|
|
2699
2726
|
postInvitationsAcceptByToken,
|
|
2700
2727
|
postInvitationsInvite,
|
|
2701
2728
|
postLlmAnalytics,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpt-core/client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "TypeScript SDK for GPT Core Client API - Document extraction, AI agents, and workspace management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"test:coverage": "vitest run --coverage"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"eventsource-parser": "^
|
|
40
|
-
"zod": "^3.
|
|
39
|
+
"eventsource-parser": "^3.0.6",
|
|
40
|
+
"zod": "^3.24.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@hey-api/openapi-ts": "^0.88.1",
|
|
44
|
-
"@vitest/ui": "^
|
|
44
|
+
"@vitest/ui": "^4.0.15",
|
|
45
45
|
"msw": "^2.12.4",
|
|
46
46
|
"tsup": "^8.5.1",
|
|
47
47
|
"typescript": "^5.9.3",
|
|
48
|
-
"vitest": "^
|
|
48
|
+
"vitest": "^4.0.15"
|
|
49
49
|
}
|
|
50
50
|
}
|