@gpt-core/client 0.3.3 → 0.3.6
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 +3412 -2368
- package/dist/index.d.ts +3412 -2368
- package/dist/index.js +231 -147
- package/dist/index.mjs +205 -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",
|
|
@@ -922,6 +919,15 @@ var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
|
|
|
922
919
|
url: "/credit-packages/slug/{slug}",
|
|
923
920
|
...options
|
|
924
921
|
});
|
|
922
|
+
var postExtractionBatches = (options) => (options.client ?? client).post({
|
|
923
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
924
|
+
url: "/extraction/batches",
|
|
925
|
+
...options,
|
|
926
|
+
headers: {
|
|
927
|
+
"Content-Type": "application/vnd.api+json",
|
|
928
|
+
...options.headers
|
|
929
|
+
}
|
|
930
|
+
});
|
|
925
931
|
var getLlmAnalyticsPlatform = (options) => (options.client ?? client).get({
|
|
926
932
|
security: [{ scheme: "bearer", type: "http" }],
|
|
927
933
|
url: "/llm_analytics/platform",
|
|
@@ -936,6 +942,11 @@ var postPayments = (options) => (options.client ?? client).post({
|
|
|
936
942
|
...options.headers
|
|
937
943
|
}
|
|
938
944
|
});
|
|
945
|
+
var getExtractionBatchesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
946
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
947
|
+
url: "/extraction/batches/workspace/{workspace_id}",
|
|
948
|
+
...options
|
|
949
|
+
});
|
|
939
950
|
var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
|
|
940
951
|
security: [{ scheme: "bearer", type: "http" }],
|
|
941
952
|
url: "/api_keys/{id}/revoke",
|
|
@@ -950,6 +961,29 @@ var getInvitationsConsumeByToken = (options) => (options.client ?? client).get({
|
|
|
950
961
|
url: "/invitations/consume/{token}",
|
|
951
962
|
...options
|
|
952
963
|
});
|
|
964
|
+
var getExtractionDocumentsByIdStatus = (options) => (options.client ?? client).get({
|
|
965
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
966
|
+
url: "/extraction/documents/{id}/status",
|
|
967
|
+
...options
|
|
968
|
+
});
|
|
969
|
+
var patchExtractionDocumentsByIdStatus = (options) => (options.client ?? client).patch({
|
|
970
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
971
|
+
url: "/extraction/documents/{id}/status",
|
|
972
|
+
...options,
|
|
973
|
+
headers: {
|
|
974
|
+
"Content-Type": "application/vnd.api+json",
|
|
975
|
+
...options.headers
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? client).patch({
|
|
979
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
980
|
+
url: "/extraction/documents/{id}/finish_upload",
|
|
981
|
+
...options,
|
|
982
|
+
headers: {
|
|
983
|
+
"Content-Type": "application/vnd.api+json",
|
|
984
|
+
...options.headers
|
|
985
|
+
}
|
|
986
|
+
});
|
|
953
987
|
var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch({
|
|
954
988
|
security: [{ scheme: "bearer", type: "http" }],
|
|
955
989
|
url: "/workspaces/{id}/allocate",
|
|
@@ -1038,11 +1072,6 @@ var getBucketsByIdStats = (options) => (options.client ?? client).get({
|
|
|
1038
1072
|
url: "/buckets/{id}/stats",
|
|
1039
1073
|
...options
|
|
1040
1074
|
});
|
|
1041
|
-
var getDocumentsSearch = (options) => (options.client ?? client).get({
|
|
1042
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1043
|
-
url: "/documents/search",
|
|
1044
|
-
...options
|
|
1045
|
-
});
|
|
1046
1075
|
var getBucketsByIdObjects = (options) => (options.client ?? client).get({
|
|
1047
1076
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1048
1077
|
url: "/buckets/{id}/objects",
|
|
@@ -1168,6 +1197,11 @@ var patchUsersById = (options) => (options.client ?? client).patch({
|
|
|
1168
1197
|
...options.headers
|
|
1169
1198
|
}
|
|
1170
1199
|
});
|
|
1200
|
+
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
1201
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1202
|
+
url: "/extraction/results/{id}",
|
|
1203
|
+
...options
|
|
1204
|
+
});
|
|
1171
1205
|
var postAgentsByIdValidate = (options) => (options.client ?? client).post({
|
|
1172
1206
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1173
1207
|
url: "/agents/{id}/validate",
|
|
@@ -1219,20 +1253,6 @@ var postTenantMemberships = (options) => (options.client ?? client).post({
|
|
|
1219
1253
|
...options.headers
|
|
1220
1254
|
}
|
|
1221
1255
|
});
|
|
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
1256
|
var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).post({
|
|
1237
1257
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1238
1258
|
url: "/training_examples/bulk_delete",
|
|
@@ -1247,39 +1267,39 @@ var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
|
1247
1267
|
url: "/llm_analytics/summary",
|
|
1248
1268
|
...options
|
|
1249
1269
|
});
|
|
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({
|
|
1270
|
+
var deleteExtractionSchemaFieldsById = (options) => (options.client ?? client).delete({
|
|
1260
1271
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1261
|
-
url: "/
|
|
1272
|
+
url: "/extraction/schema-fields/{id}",
|
|
1262
1273
|
...options
|
|
1263
1274
|
});
|
|
1264
|
-
var
|
|
1275
|
+
var getExtractionSchemaFieldsById = (options) => (options.client ?? client).get({
|
|
1265
1276
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1266
|
-
url: "/
|
|
1277
|
+
url: "/extraction/schema-fields/{id}",
|
|
1267
1278
|
...options
|
|
1268
1279
|
});
|
|
1269
|
-
var
|
|
1280
|
+
var patchExtractionSchemaFieldsById = (options) => (options.client ?? client).patch({
|
|
1270
1281
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1271
|
-
url: "/
|
|
1272
|
-
...options
|
|
1282
|
+
url: "/extraction/schema-fields/{id}",
|
|
1283
|
+
...options,
|
|
1284
|
+
headers: {
|
|
1285
|
+
"Content-Type": "application/vnd.api+json",
|
|
1286
|
+
...options.headers
|
|
1287
|
+
}
|
|
1273
1288
|
});
|
|
1274
|
-
var
|
|
1289
|
+
var postStorageSignDownload = (options) => (options.client ?? client).post({
|
|
1275
1290
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1276
|
-
url: "/
|
|
1291
|
+
url: "/storage/sign_download",
|
|
1277
1292
|
...options,
|
|
1278
1293
|
headers: {
|
|
1279
1294
|
"Content-Type": "application/vnd.api+json",
|
|
1280
1295
|
...options.headers
|
|
1281
1296
|
}
|
|
1282
1297
|
});
|
|
1298
|
+
var getWebhookDeliveries = (options) => (options.client ?? client).get({
|
|
1299
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1300
|
+
url: "/webhook_deliveries",
|
|
1301
|
+
...options
|
|
1302
|
+
});
|
|
1283
1303
|
var getSearch = (options) => (options.client ?? client).get({
|
|
1284
1304
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1285
1305
|
url: "/search",
|
|
@@ -1290,15 +1310,6 @@ var getInvitations = (options) => (options.client ?? client).get({
|
|
|
1290
1310
|
url: "/invitations",
|
|
1291
1311
|
...options
|
|
1292
1312
|
});
|
|
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
1313
|
var getSearchSemantic = (options) => (options.client ?? client).get({
|
|
1303
1314
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1304
1315
|
url: "/search/semantic",
|
|
@@ -1388,36 +1399,50 @@ var postLlmAnalytics = (options) => (options.client ?? client).post({
|
|
|
1388
1399
|
...options.headers
|
|
1389
1400
|
}
|
|
1390
1401
|
});
|
|
1391
|
-
var
|
|
1402
|
+
var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch({
|
|
1392
1403
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1393
|
-
url: "/
|
|
1404
|
+
url: "/users/{id}/reset-password",
|
|
1394
1405
|
...options,
|
|
1395
1406
|
headers: {
|
|
1396
1407
|
"Content-Type": "application/vnd.api+json",
|
|
1397
1408
|
...options.headers
|
|
1398
1409
|
}
|
|
1399
1410
|
});
|
|
1400
|
-
var
|
|
1411
|
+
var postDocumentsPresignedUpload = (options) => (options.client ?? client).post({
|
|
1401
1412
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1402
|
-
url: "/
|
|
1413
|
+
url: "/documents/presigned_upload",
|
|
1403
1414
|
...options,
|
|
1404
1415
|
headers: {
|
|
1405
1416
|
"Content-Type": "application/vnd.api+json",
|
|
1406
1417
|
...options.headers
|
|
1407
1418
|
}
|
|
1408
1419
|
});
|
|
1409
|
-
var
|
|
1420
|
+
var getMessagesSearch = (options) => (options.client ?? client).get({
|
|
1410
1421
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1411
|
-
url: "/
|
|
1422
|
+
url: "/messages/search",
|
|
1423
|
+
...options
|
|
1424
|
+
});
|
|
1425
|
+
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
1426
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1427
|
+
url: "/extraction/documents/upload",
|
|
1412
1428
|
...options,
|
|
1413
1429
|
headers: {
|
|
1414
1430
|
"Content-Type": "application/vnd.api+json",
|
|
1415
1431
|
...options.headers
|
|
1416
1432
|
}
|
|
1417
1433
|
});
|
|
1418
|
-
var
|
|
1434
|
+
var patchExtractionResultsByIdCorrections = (options) => (options.client ?? client).patch({
|
|
1419
1435
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1420
|
-
url: "/
|
|
1436
|
+
url: "/extraction/results/{id}/corrections",
|
|
1437
|
+
...options,
|
|
1438
|
+
headers: {
|
|
1439
|
+
"Content-Type": "application/vnd.api+json",
|
|
1440
|
+
...options.headers
|
|
1441
|
+
}
|
|
1442
|
+
});
|
|
1443
|
+
var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
|
|
1444
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1445
|
+
url: "/extraction/results/document/{document_id}",
|
|
1421
1446
|
...options
|
|
1422
1447
|
});
|
|
1423
1448
|
var deleteWorkspacesById = (options) => (options.client ?? client).delete({
|
|
@@ -1462,20 +1487,16 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
|
|
|
1462
1487
|
...options.headers
|
|
1463
1488
|
}
|
|
1464
1489
|
});
|
|
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
1490
|
var getNotificationLogsById = (options) => (options.client ?? client).get({
|
|
1475
1491
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1476
1492
|
url: "/notification_logs/{id}",
|
|
1477
1493
|
...options
|
|
1478
1494
|
});
|
|
1495
|
+
var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
|
|
1496
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1497
|
+
url: "/extraction/documents/{id}/view",
|
|
1498
|
+
...options
|
|
1499
|
+
});
|
|
1479
1500
|
var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
|
|
1480
1501
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1481
1502
|
url: "/webhook_deliveries/{id}",
|
|
@@ -1500,11 +1521,6 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
|
|
|
1500
1521
|
...options.headers
|
|
1501
1522
|
}
|
|
1502
1523
|
});
|
|
1503
|
-
var postDocumentsExport = (options) => (options.client ?? client).post({
|
|
1504
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1505
|
-
url: "/documents/export",
|
|
1506
|
-
...options
|
|
1507
|
-
});
|
|
1508
1524
|
var getTrainingExamples = (options) => (options.client ?? client).get({
|
|
1509
1525
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1510
1526
|
url: "/training_examples",
|
|
@@ -1570,25 +1586,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
|
|
|
1570
1586
|
...options.headers
|
|
1571
1587
|
}
|
|
1572
1588
|
});
|
|
1573
|
-
var getExtractionResults = (options) => (options.client ?? client).get({
|
|
1574
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1575
|
-
url: "/extraction_results",
|
|
1576
|
-
...options
|
|
1577
|
-
});
|
|
1578
1589
|
var getAgentsById = (options) => (options.client ?? client).get({
|
|
1579
1590
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1580
1591
|
url: "/agents/{id}",
|
|
1581
1592
|
...options
|
|
1582
1593
|
});
|
|
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
1594
|
var deleteApiKeysById = (options) => (options.client ?? client).delete({
|
|
1593
1595
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1594
1596
|
url: "/api_keys/{id}",
|
|
@@ -1702,11 +1704,6 @@ var getThreadsSearch = (options) => (options.client ?? client).get({
|
|
|
1702
1704
|
url: "/threads/search",
|
|
1703
1705
|
...options
|
|
1704
1706
|
});
|
|
1705
|
-
var getDocumentsByIdRelationshipsChunks = (options) => (options.client ?? client).get({
|
|
1706
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1707
|
-
url: "/documents/{id}/relationships/chunks",
|
|
1708
|
-
...options
|
|
1709
|
-
});
|
|
1710
1707
|
var patchWalletPlan = (options) => (options.client ?? client).patch({
|
|
1711
1708
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1712
1709
|
url: "/wallet/plan",
|
|
@@ -1726,6 +1723,20 @@ var getLlmAnalyticsById = (options) => (options.client ?? client).get({
|
|
|
1726
1723
|
url: "/llm_analytics/{id}",
|
|
1727
1724
|
...options
|
|
1728
1725
|
});
|
|
1726
|
+
var getExtractionSchemaFields = (options) => (options.client ?? client).get({
|
|
1727
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1728
|
+
url: "/extraction/schema-fields",
|
|
1729
|
+
...options
|
|
1730
|
+
});
|
|
1731
|
+
var postExtractionSchemaFields = (options) => (options.client ?? client).post({
|
|
1732
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1733
|
+
url: "/extraction/schema-fields",
|
|
1734
|
+
...options,
|
|
1735
|
+
headers: {
|
|
1736
|
+
"Content-Type": "application/vnd.api+json",
|
|
1737
|
+
...options.headers
|
|
1738
|
+
}
|
|
1739
|
+
});
|
|
1729
1740
|
var getSearchStatus = (options) => (options.client ?? client).get({
|
|
1730
1741
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1731
1742
|
url: "/search/status",
|
|
@@ -1772,6 +1783,15 @@ var postSearchReindex = (options) => (options.client ?? client).post({
|
|
|
1772
1783
|
...options.headers
|
|
1773
1784
|
}
|
|
1774
1785
|
});
|
|
1786
|
+
var patchExtractionResultsByIdRegenerate = (options) => (options.client ?? client).patch({
|
|
1787
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1788
|
+
url: "/extraction/results/{id}/regenerate",
|
|
1789
|
+
...options,
|
|
1790
|
+
headers: {
|
|
1791
|
+
"Content-Type": "application/vnd.api+json",
|
|
1792
|
+
...options.headers
|
|
1793
|
+
}
|
|
1794
|
+
});
|
|
1775
1795
|
var postUsersAuthConfirm = (options) => (options.client ?? client).post({
|
|
1776
1796
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1777
1797
|
url: "/users/auth/confirm",
|
|
@@ -1781,6 +1801,15 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
|
|
|
1781
1801
|
...options.headers
|
|
1782
1802
|
}
|
|
1783
1803
|
});
|
|
1804
|
+
var postExtractionSchemas = (options) => (options.client ?? client).post({
|
|
1805
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1806
|
+
url: "/extraction/schemas",
|
|
1807
|
+
...options,
|
|
1808
|
+
headers: {
|
|
1809
|
+
"Content-Type": "application/vnd.api+json",
|
|
1810
|
+
...options.headers
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1784
1813
|
var getStorageStats = (options) => (options.client ?? client).get({
|
|
1785
1814
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1786
1815
|
url: "/storage/stats",
|
|
@@ -1855,6 +1884,20 @@ var patchBucketsById = (options) => (options.client ?? client).patch({
|
|
|
1855
1884
|
...options.headers
|
|
1856
1885
|
}
|
|
1857
1886
|
});
|
|
1887
|
+
var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
1888
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1889
|
+
url: "/extraction/documents/workspace/{workspace_id}",
|
|
1890
|
+
...options
|
|
1891
|
+
});
|
|
1892
|
+
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
1893
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1894
|
+
url: "/extraction/documents/begin_upload",
|
|
1895
|
+
...options,
|
|
1896
|
+
headers: {
|
|
1897
|
+
"Content-Type": "application/vnd.api+json",
|
|
1898
|
+
...options.headers
|
|
1899
|
+
}
|
|
1900
|
+
});
|
|
1858
1901
|
var deleteAiGraphEdgesById = (options) => (options.client ?? client).delete({
|
|
1859
1902
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1860
1903
|
url: "/ai/graph/edges/{id}",
|
|
@@ -1884,6 +1927,20 @@ var getPlans = (options) => (options.client ?? client).get({
|
|
|
1884
1927
|
url: "/plans",
|
|
1885
1928
|
...options
|
|
1886
1929
|
});
|
|
1930
|
+
var getExtractionSchemasById = (options) => (options.client ?? client).get({
|
|
1931
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1932
|
+
url: "/extraction/schemas/{id}",
|
|
1933
|
+
...options
|
|
1934
|
+
});
|
|
1935
|
+
var patchExtractionSchemasById = (options) => (options.client ?? client).patch({
|
|
1936
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1937
|
+
url: "/extraction/schemas/{id}",
|
|
1938
|
+
...options,
|
|
1939
|
+
headers: {
|
|
1940
|
+
"Content-Type": "application/vnd.api+json",
|
|
1941
|
+
...options.headers
|
|
1942
|
+
}
|
|
1943
|
+
});
|
|
1887
1944
|
var postAgentsByIdTest = (options) => (options.client ?? client).post({
|
|
1888
1945
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1889
1946
|
url: "/agents/{id}/test",
|
|
@@ -1893,9 +1950,9 @@ var postAgentsByIdTest = (options) => (options.client ?? client).post({
|
|
|
1893
1950
|
...options.headers
|
|
1894
1951
|
}
|
|
1895
1952
|
});
|
|
1896
|
-
var
|
|
1953
|
+
var getExtractionDocuments = (options) => (options.client ?? client).get({
|
|
1897
1954
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1898
|
-
url: "/documents
|
|
1955
|
+
url: "/extraction/documents",
|
|
1899
1956
|
...options
|
|
1900
1957
|
});
|
|
1901
1958
|
var deleteTenantMembershipsByTenantIdByUserId = (options) => (options.client ?? client).delete({
|
|
@@ -1971,6 +2028,15 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
|
|
|
1971
2028
|
...options.headers
|
|
1972
2029
|
}
|
|
1973
2030
|
});
|
|
2031
|
+
var postExtractionResults = (options) => (options.client ?? client).post({
|
|
2032
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2033
|
+
url: "/extraction/results",
|
|
2034
|
+
...options,
|
|
2035
|
+
headers: {
|
|
2036
|
+
"Content-Type": "application/vnd.api+json",
|
|
2037
|
+
...options.headers
|
|
2038
|
+
}
|
|
2039
|
+
});
|
|
1974
2040
|
var postAgentsByIdClone = (options) => (options.client ?? client).post({
|
|
1975
2041
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1976
2042
|
url: "/agents/{id}/clone",
|
|
@@ -2124,11 +2190,6 @@ var getAgents = (options) => (options.client ?? client).get({
|
|
|
2124
2190
|
url: "/agents",
|
|
2125
2191
|
...options
|
|
2126
2192
|
});
|
|
2127
|
-
var getDocumentsByIdExtractionResults = (options) => (options.client ?? client).get({
|
|
2128
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2129
|
-
url: "/documents/{id}/extraction_results",
|
|
2130
|
-
...options
|
|
2131
|
-
});
|
|
2132
2193
|
var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
2133
2194
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2134
2195
|
url: "/users/register_isv",
|
|
@@ -2138,6 +2199,11 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
|
2138
2199
|
...options.headers
|
|
2139
2200
|
}
|
|
2140
2201
|
});
|
|
2202
|
+
var getExtractionBatchesById = (options) => (options.client ?? client).get({
|
|
2203
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2204
|
+
url: "/extraction/batches/{id}",
|
|
2205
|
+
...options
|
|
2206
|
+
});
|
|
2141
2207
|
var deleteWorkspaceMembershipsByWorkspaceIdByUserId = (options) => (options.client ?? client).delete({
|
|
2142
2208
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2143
2209
|
url: "/workspace-memberships/{workspace_id}/{user_id}",
|
|
@@ -2539,8 +2605,8 @@ export {
|
|
|
2539
2605
|
deleteApiKeysById,
|
|
2540
2606
|
deleteApplicationsById,
|
|
2541
2607
|
deleteBucketsById,
|
|
2542
|
-
|
|
2543
|
-
|
|
2608
|
+
deleteExtractionDocumentsById,
|
|
2609
|
+
deleteExtractionSchemaFieldsById,
|
|
2544
2610
|
deleteMessagesById,
|
|
2545
2611
|
deleteNotificationPreferencesById,
|
|
2546
2612
|
deleteObjectsById,
|
|
@@ -2575,15 +2641,20 @@ export {
|
|
|
2575
2641
|
getCreditPackages,
|
|
2576
2642
|
getCreditPackagesById,
|
|
2577
2643
|
getCreditPackagesSlugBySlug,
|
|
2578
|
-
getDocuments,
|
|
2579
|
-
getDocumentsById,
|
|
2580
|
-
getDocumentsByIdExtractionResults,
|
|
2581
|
-
getDocumentsByIdRelationshipsChunks,
|
|
2582
|
-
getDocumentsProcessingQueue,
|
|
2583
|
-
getDocumentsSearch,
|
|
2584
2644
|
getDocumentsStats,
|
|
2585
|
-
|
|
2645
|
+
getExtractionBatchesById,
|
|
2646
|
+
getExtractionBatchesWorkspaceByWorkspaceId,
|
|
2647
|
+
getExtractionDocuments,
|
|
2648
|
+
getExtractionDocumentsById,
|
|
2649
|
+
getExtractionDocumentsByIdStatus,
|
|
2650
|
+
getExtractionDocumentsByIdView,
|
|
2651
|
+
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
2586
2652
|
getExtractionResultsById,
|
|
2653
|
+
getExtractionResultsDocumentByDocumentId,
|
|
2654
|
+
getExtractionSchemaFields,
|
|
2655
|
+
getExtractionSchemaFieldsById,
|
|
2656
|
+
getExtractionSchemasById,
|
|
2657
|
+
getExtractionSchemasWorkspaceByWorkspaceId,
|
|
2587
2658
|
getInvitations,
|
|
2588
2659
|
getInvitationsConsumeByToken,
|
|
2589
2660
|
getLlmAnalytics,
|
|
@@ -2649,8 +2720,12 @@ export {
|
|
|
2649
2720
|
patchApplicationsById,
|
|
2650
2721
|
patchBucketsById,
|
|
2651
2722
|
patchConfigsByKey,
|
|
2652
|
-
|
|
2653
|
-
|
|
2723
|
+
patchExtractionDocumentsByIdFinishUpload,
|
|
2724
|
+
patchExtractionDocumentsByIdStatus,
|
|
2725
|
+
patchExtractionResultsByIdCorrections,
|
|
2726
|
+
patchExtractionResultsByIdRegenerate,
|
|
2727
|
+
patchExtractionSchemaFieldsById,
|
|
2728
|
+
patchExtractionSchemasById,
|
|
2654
2729
|
patchInvitationsByIdAccept,
|
|
2655
2730
|
patchInvitationsByIdResend,
|
|
2656
2731
|
patchInvitationsByIdRevoke,
|
|
@@ -2688,14 +2763,14 @@ export {
|
|
|
2688
2763
|
postApplications,
|
|
2689
2764
|
postBuckets,
|
|
2690
2765
|
postConfigs,
|
|
2691
|
-
postDocuments,
|
|
2692
2766
|
postDocumentsBulkDelete,
|
|
2693
|
-
postDocumentsBulkReprocess,
|
|
2694
|
-
postDocumentsByIdAnalyze,
|
|
2695
|
-
postDocumentsByIdReprocess,
|
|
2696
|
-
postDocumentsExport,
|
|
2697
|
-
postDocumentsImport,
|
|
2698
2767
|
postDocumentsPresignedUpload,
|
|
2768
|
+
postExtractionBatches,
|
|
2769
|
+
postExtractionDocumentsBeginUpload,
|
|
2770
|
+
postExtractionDocumentsUpload,
|
|
2771
|
+
postExtractionResults,
|
|
2772
|
+
postExtractionSchemaFields,
|
|
2773
|
+
postExtractionSchemas,
|
|
2699
2774
|
postInvitationsAcceptByToken,
|
|
2700
2775
|
postInvitationsInvite,
|
|
2701
2776
|
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.6",
|
|
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
|
}
|