@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.js CHANGED
@@ -55,8 +55,8 @@ __export(index_exports, {
55
55
  deleteApiKeysById: () => deleteApiKeysById,
56
56
  deleteApplicationsById: () => deleteApplicationsById,
57
57
  deleteBucketsById: () => deleteBucketsById,
58
- deleteDocumentsById: () => deleteDocumentsById,
59
- deleteExtractionResultsById: () => deleteExtractionResultsById,
58
+ deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
59
+ deleteExtractionSchemaFieldsById: () => deleteExtractionSchemaFieldsById,
60
60
  deleteMessagesById: () => deleteMessagesById,
61
61
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
62
62
  deleteObjectsById: () => deleteObjectsById,
@@ -91,15 +91,20 @@ __export(index_exports, {
91
91
  getCreditPackages: () => getCreditPackages,
92
92
  getCreditPackagesById: () => getCreditPackagesById,
93
93
  getCreditPackagesSlugBySlug: () => getCreditPackagesSlugBySlug,
94
- getDocuments: () => getDocuments,
95
- getDocumentsById: () => getDocumentsById,
96
- getDocumentsByIdExtractionResults: () => getDocumentsByIdExtractionResults,
97
- getDocumentsByIdRelationshipsChunks: () => getDocumentsByIdRelationshipsChunks,
98
- getDocumentsProcessingQueue: () => getDocumentsProcessingQueue,
99
- getDocumentsSearch: () => getDocumentsSearch,
100
94
  getDocumentsStats: () => getDocumentsStats,
101
- getExtractionResults: () => getExtractionResults,
95
+ getExtractionBatchesById: () => getExtractionBatchesById,
96
+ getExtractionBatchesWorkspaceByWorkspaceId: () => getExtractionBatchesWorkspaceByWorkspaceId,
97
+ getExtractionDocuments: () => getExtractionDocuments,
98
+ getExtractionDocumentsById: () => getExtractionDocumentsById,
99
+ getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
100
+ getExtractionDocumentsByIdView: () => getExtractionDocumentsByIdView,
101
+ getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
102
102
  getExtractionResultsById: () => getExtractionResultsById,
103
+ getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
104
+ getExtractionSchemaFields: () => getExtractionSchemaFields,
105
+ getExtractionSchemaFieldsById: () => getExtractionSchemaFieldsById,
106
+ getExtractionSchemasById: () => getExtractionSchemasById,
107
+ getExtractionSchemasWorkspaceByWorkspaceId: () => getExtractionSchemasWorkspaceByWorkspaceId,
103
108
  getInvitations: () => getInvitations,
104
109
  getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
105
110
  getLlmAnalytics: () => getLlmAnalytics,
@@ -165,8 +170,12 @@ __export(index_exports, {
165
170
  patchApplicationsById: () => patchApplicationsById,
166
171
  patchBucketsById: () => patchBucketsById,
167
172
  patchConfigsByKey: () => patchConfigsByKey,
168
- patchDocumentsById: () => patchDocumentsById,
169
- patchExtractionResultsById: () => patchExtractionResultsById,
173
+ patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
174
+ patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
175
+ patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
176
+ patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
177
+ patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
178
+ patchExtractionSchemasById: () => patchExtractionSchemasById,
170
179
  patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
171
180
  patchInvitationsByIdResend: () => patchInvitationsByIdResend,
172
181
  patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
@@ -204,14 +213,14 @@ __export(index_exports, {
204
213
  postApplications: () => postApplications,
205
214
  postBuckets: () => postBuckets,
206
215
  postConfigs: () => postConfigs,
207
- postDocuments: () => postDocuments,
208
216
  postDocumentsBulkDelete: () => postDocumentsBulkDelete,
209
- postDocumentsBulkReprocess: () => postDocumentsBulkReprocess,
210
- postDocumentsByIdAnalyze: () => postDocumentsByIdAnalyze,
211
- postDocumentsByIdReprocess: () => postDocumentsByIdReprocess,
212
- postDocumentsExport: () => postDocumentsExport,
213
- postDocumentsImport: () => postDocumentsImport,
214
217
  postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
218
+ postExtractionBatches: () => postExtractionBatches,
219
+ postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
220
+ postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
221
+ postExtractionResults: () => postExtractionResults,
222
+ postExtractionSchemaFields: () => postExtractionSchemaFields,
223
+ postExtractionSchemas: () => postExtractionSchemas,
215
224
  postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
216
225
  postInvitationsInvite: () => postInvitationsInvite,
217
226
  postLlmAnalytics: () => postLlmAnalytics,
@@ -334,6 +343,7 @@ var createSseClient = ({
334
343
  const { done, value } = await reader.read();
335
344
  if (done) break;
336
345
  buffer += value;
346
+ buffer = buffer.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
337
347
  const chunks = buffer.split("\n\n");
338
348
  buffer = chunks.pop() ?? "";
339
349
  for (const chunk of chunks) {
@@ -1095,6 +1105,16 @@ var postAiSearchAdvanced = (options) => (options.client ?? client).post({
1095
1105
  ...options.headers
1096
1106
  }
1097
1107
  });
1108
+ var deleteExtractionDocumentsById = (options) => (options.client ?? client).delete({
1109
+ security: [{ scheme: "bearer", type: "http" }],
1110
+ url: "/extraction/documents/{id}",
1111
+ ...options
1112
+ });
1113
+ var getExtractionDocumentsById = (options) => (options.client ?? client).get({
1114
+ security: [{ scheme: "bearer", type: "http" }],
1115
+ url: "/extraction/documents/{id}",
1116
+ ...options
1117
+ });
1098
1118
  var getThreads = (options) => (options.client ?? client).get({
1099
1119
  security: [{ scheme: "bearer", type: "http" }],
1100
1120
  url: "/threads",
@@ -1109,6 +1129,11 @@ var postThreads = (options) => (options.client ?? client).post({
1109
1129
  ...options.headers
1110
1130
  }
1111
1131
  });
1132
+ var getExtractionSchemasWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1133
+ security: [{ scheme: "bearer", type: "http" }],
1134
+ url: "/extraction/schemas/workspace/{workspace_id}",
1135
+ ...options
1136
+ });
1112
1137
  var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
1113
1138
  security: [{ scheme: "bearer", type: "http" }],
1114
1139
  url: "/llm_analytics/costs",
@@ -1119,25 +1144,6 @@ var getAiChunksDocumentByDocumentId = (options) => (options.client ?? client).ge
1119
1144
  url: "/ai/chunks/document/{document_id}",
1120
1145
  ...options
1121
1146
  });
1122
- var deleteExtractionResultsById = (options) => (options.client ?? client).delete({
1123
- security: [{ scheme: "bearer", type: "http" }],
1124
- url: "/extraction_results/{id}",
1125
- ...options
1126
- });
1127
- var getExtractionResultsById = (options) => (options.client ?? client).get({
1128
- security: [{ scheme: "bearer", type: "http" }],
1129
- url: "/extraction_results/{id}",
1130
- ...options
1131
- });
1132
- var patchExtractionResultsById = (options) => (options.client ?? client).patch({
1133
- security: [{ scheme: "bearer", type: "http" }],
1134
- url: "/extraction_results/{id}",
1135
- ...options,
1136
- headers: {
1137
- "Content-Type": "application/vnd.api+json",
1138
- ...options.headers
1139
- }
1140
- });
1141
1147
  var getWorkspaces = (options) => (options.client ?? client).get({
1142
1148
  security: [{ scheme: "bearer", type: "http" }],
1143
1149
  url: "/workspaces",
@@ -1181,6 +1187,15 @@ var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
1181
1187
  url: "/credit-packages/slug/{slug}",
1182
1188
  ...options
1183
1189
  });
1190
+ var postExtractionBatches = (options) => (options.client ?? client).post({
1191
+ security: [{ scheme: "bearer", type: "http" }],
1192
+ url: "/extraction/batches",
1193
+ ...options,
1194
+ headers: {
1195
+ "Content-Type": "application/vnd.api+json",
1196
+ ...options.headers
1197
+ }
1198
+ });
1184
1199
  var getLlmAnalyticsPlatform = (options) => (options.client ?? client).get({
1185
1200
  security: [{ scheme: "bearer", type: "http" }],
1186
1201
  url: "/llm_analytics/platform",
@@ -1195,6 +1210,11 @@ var postPayments = (options) => (options.client ?? client).post({
1195
1210
  ...options.headers
1196
1211
  }
1197
1212
  });
1213
+ var getExtractionBatchesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1214
+ security: [{ scheme: "bearer", type: "http" }],
1215
+ url: "/extraction/batches/workspace/{workspace_id}",
1216
+ ...options
1217
+ });
1198
1218
  var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
1199
1219
  security: [{ scheme: "bearer", type: "http" }],
1200
1220
  url: "/api_keys/{id}/revoke",
@@ -1209,6 +1229,29 @@ var getInvitationsConsumeByToken = (options) => (options.client ?? client).get({
1209
1229
  url: "/invitations/consume/{token}",
1210
1230
  ...options
1211
1231
  });
1232
+ var getExtractionDocumentsByIdStatus = (options) => (options.client ?? client).get({
1233
+ security: [{ scheme: "bearer", type: "http" }],
1234
+ url: "/extraction/documents/{id}/status",
1235
+ ...options
1236
+ });
1237
+ var patchExtractionDocumentsByIdStatus = (options) => (options.client ?? client).patch({
1238
+ security: [{ scheme: "bearer", type: "http" }],
1239
+ url: "/extraction/documents/{id}/status",
1240
+ ...options,
1241
+ headers: {
1242
+ "Content-Type": "application/vnd.api+json",
1243
+ ...options.headers
1244
+ }
1245
+ });
1246
+ var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? client).patch({
1247
+ security: [{ scheme: "bearer", type: "http" }],
1248
+ url: "/extraction/documents/{id}/finish_upload",
1249
+ ...options,
1250
+ headers: {
1251
+ "Content-Type": "application/vnd.api+json",
1252
+ ...options.headers
1253
+ }
1254
+ });
1212
1255
  var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch({
1213
1256
  security: [{ scheme: "bearer", type: "http" }],
1214
1257
  url: "/workspaces/{id}/allocate",
@@ -1297,11 +1340,6 @@ var getBucketsByIdStats = (options) => (options.client ?? client).get({
1297
1340
  url: "/buckets/{id}/stats",
1298
1341
  ...options
1299
1342
  });
1300
- var getDocumentsSearch = (options) => (options.client ?? client).get({
1301
- security: [{ scheme: "bearer", type: "http" }],
1302
- url: "/documents/search",
1303
- ...options
1304
- });
1305
1343
  var getBucketsByIdObjects = (options) => (options.client ?? client).get({
1306
1344
  security: [{ scheme: "bearer", type: "http" }],
1307
1345
  url: "/buckets/{id}/objects",
@@ -1427,6 +1465,11 @@ var patchUsersById = (options) => (options.client ?? client).patch({
1427
1465
  ...options.headers
1428
1466
  }
1429
1467
  });
1468
+ var getExtractionResultsById = (options) => (options.client ?? client).get({
1469
+ security: [{ scheme: "bearer", type: "http" }],
1470
+ url: "/extraction/results/{id}",
1471
+ ...options
1472
+ });
1430
1473
  var postAgentsByIdValidate = (options) => (options.client ?? client).post({
1431
1474
  security: [{ scheme: "bearer", type: "http" }],
1432
1475
  url: "/agents/{id}/validate",
@@ -1478,20 +1521,6 @@ var postTenantMemberships = (options) => (options.client ?? client).post({
1478
1521
  ...options.headers
1479
1522
  }
1480
1523
  });
1481
- var getDocuments = (options) => (options.client ?? client).get({
1482
- security: [{ scheme: "bearer", type: "http" }],
1483
- url: "/documents",
1484
- ...options
1485
- });
1486
- var postDocuments = (options) => (options.client ?? client).post({
1487
- security: [{ scheme: "bearer", type: "http" }],
1488
- url: "/documents",
1489
- ...options,
1490
- headers: {
1491
- "Content-Type": "application/vnd.api+json",
1492
- ...options.headers
1493
- }
1494
- });
1495
1524
  var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).post({
1496
1525
  security: [{ scheme: "bearer", type: "http" }],
1497
1526
  url: "/training_examples/bulk_delete",
@@ -1506,39 +1535,39 @@ var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
1506
1535
  url: "/llm_analytics/summary",
1507
1536
  ...options
1508
1537
  });
1509
- var postStorageSignDownload = (options) => (options.client ?? client).post({
1510
- security: [{ scheme: "bearer", type: "http" }],
1511
- url: "/storage/sign_download",
1512
- ...options,
1513
- headers: {
1514
- "Content-Type": "application/vnd.api+json",
1515
- ...options.headers
1516
- }
1517
- });
1518
- var getWebhookDeliveries = (options) => (options.client ?? client).get({
1538
+ var deleteExtractionSchemaFieldsById = (options) => (options.client ?? client).delete({
1519
1539
  security: [{ scheme: "bearer", type: "http" }],
1520
- url: "/webhook_deliveries",
1540
+ url: "/extraction/schema-fields/{id}",
1521
1541
  ...options
1522
1542
  });
1523
- var deleteDocumentsById = (options) => (options.client ?? client).delete({
1543
+ var getExtractionSchemaFieldsById = (options) => (options.client ?? client).get({
1524
1544
  security: [{ scheme: "bearer", type: "http" }],
1525
- url: "/documents/{id}",
1545
+ url: "/extraction/schema-fields/{id}",
1526
1546
  ...options
1527
1547
  });
1528
- var getDocumentsById = (options) => (options.client ?? client).get({
1548
+ var patchExtractionSchemaFieldsById = (options) => (options.client ?? client).patch({
1529
1549
  security: [{ scheme: "bearer", type: "http" }],
1530
- url: "/documents/{id}",
1531
- ...options
1550
+ url: "/extraction/schema-fields/{id}",
1551
+ ...options,
1552
+ headers: {
1553
+ "Content-Type": "application/vnd.api+json",
1554
+ ...options.headers
1555
+ }
1532
1556
  });
1533
- var patchDocumentsById = (options) => (options.client ?? client).patch({
1557
+ var postStorageSignDownload = (options) => (options.client ?? client).post({
1534
1558
  security: [{ scheme: "bearer", type: "http" }],
1535
- url: "/documents/{id}",
1559
+ url: "/storage/sign_download",
1536
1560
  ...options,
1537
1561
  headers: {
1538
1562
  "Content-Type": "application/vnd.api+json",
1539
1563
  ...options.headers
1540
1564
  }
1541
1565
  });
1566
+ var getWebhookDeliveries = (options) => (options.client ?? client).get({
1567
+ security: [{ scheme: "bearer", type: "http" }],
1568
+ url: "/webhook_deliveries",
1569
+ ...options
1570
+ });
1542
1571
  var getSearch = (options) => (options.client ?? client).get({
1543
1572
  security: [{ scheme: "bearer", type: "http" }],
1544
1573
  url: "/search",
@@ -1549,15 +1578,6 @@ var getInvitations = (options) => (options.client ?? client).get({
1549
1578
  url: "/invitations",
1550
1579
  ...options
1551
1580
  });
1552
- var postDocumentsByIdAnalyze = (options) => (options.client ?? client).post({
1553
- security: [{ scheme: "bearer", type: "http" }],
1554
- url: "/documents/{id}/analyze",
1555
- ...options,
1556
- headers: {
1557
- "Content-Type": "application/vnd.api+json",
1558
- ...options.headers
1559
- }
1560
- });
1561
1581
  var getSearchSemantic = (options) => (options.client ?? client).get({
1562
1582
  security: [{ scheme: "bearer", type: "http" }],
1563
1583
  url: "/search/semantic",
@@ -1647,36 +1667,50 @@ var postLlmAnalytics = (options) => (options.client ?? client).post({
1647
1667
  ...options.headers
1648
1668
  }
1649
1669
  });
1650
- var postDocumentsByIdReprocess = (options) => (options.client ?? client).post({
1670
+ var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch({
1651
1671
  security: [{ scheme: "bearer", type: "http" }],
1652
- url: "/documents/{id}/reprocess",
1672
+ url: "/users/{id}/reset-password",
1653
1673
  ...options,
1654
1674
  headers: {
1655
1675
  "Content-Type": "application/vnd.api+json",
1656
1676
  ...options.headers
1657
1677
  }
1658
1678
  });
1659
- var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch({
1679
+ var postDocumentsPresignedUpload = (options) => (options.client ?? client).post({
1660
1680
  security: [{ scheme: "bearer", type: "http" }],
1661
- url: "/users/{id}/reset-password",
1681
+ url: "/documents/presigned_upload",
1662
1682
  ...options,
1663
1683
  headers: {
1664
1684
  "Content-Type": "application/vnd.api+json",
1665
1685
  ...options.headers
1666
1686
  }
1667
1687
  });
1668
- var postDocumentsPresignedUpload = (options) => (options.client ?? client).post({
1688
+ var getMessagesSearch = (options) => (options.client ?? client).get({
1669
1689
  security: [{ scheme: "bearer", type: "http" }],
1670
- url: "/documents/presigned_upload",
1690
+ url: "/messages/search",
1691
+ ...options
1692
+ });
1693
+ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
1694
+ security: [{ scheme: "bearer", type: "http" }],
1695
+ url: "/extraction/documents/upload",
1671
1696
  ...options,
1672
1697
  headers: {
1673
1698
  "Content-Type": "application/vnd.api+json",
1674
1699
  ...options.headers
1675
1700
  }
1676
1701
  });
1677
- var getMessagesSearch = (options) => (options.client ?? client).get({
1702
+ var patchExtractionResultsByIdCorrections = (options) => (options.client ?? client).patch({
1678
1703
  security: [{ scheme: "bearer", type: "http" }],
1679
- url: "/messages/search",
1704
+ url: "/extraction/results/{id}/corrections",
1705
+ ...options,
1706
+ headers: {
1707
+ "Content-Type": "application/vnd.api+json",
1708
+ ...options.headers
1709
+ }
1710
+ });
1711
+ var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
1712
+ security: [{ scheme: "bearer", type: "http" }],
1713
+ url: "/extraction/results/document/{document_id}",
1680
1714
  ...options
1681
1715
  });
1682
1716
  var deleteWorkspacesById = (options) => (options.client ?? client).delete({
@@ -1721,20 +1755,16 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
1721
1755
  ...options.headers
1722
1756
  }
1723
1757
  });
1724
- var postDocumentsBulkReprocess = (options) => (options.client ?? client).post({
1725
- security: [{ scheme: "bearer", type: "http" }],
1726
- url: "/documents/bulk_reprocess",
1727
- ...options,
1728
- headers: {
1729
- "Content-Type": "application/vnd.api+json",
1730
- ...options.headers
1731
- }
1732
- });
1733
1758
  var getNotificationLogsById = (options) => (options.client ?? client).get({
1734
1759
  security: [{ scheme: "bearer", type: "http" }],
1735
1760
  url: "/notification_logs/{id}",
1736
1761
  ...options
1737
1762
  });
1763
+ var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
1764
+ security: [{ scheme: "bearer", type: "http" }],
1765
+ url: "/extraction/documents/{id}/view",
1766
+ ...options
1767
+ });
1738
1768
  var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
1739
1769
  security: [{ scheme: "bearer", type: "http" }],
1740
1770
  url: "/webhook_deliveries/{id}",
@@ -1759,11 +1789,6 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
1759
1789
  ...options.headers
1760
1790
  }
1761
1791
  });
1762
- var postDocumentsExport = (options) => (options.client ?? client).post({
1763
- security: [{ scheme: "bearer", type: "http" }],
1764
- url: "/documents/export",
1765
- ...options
1766
- });
1767
1792
  var getTrainingExamples = (options) => (options.client ?? client).get({
1768
1793
  security: [{ scheme: "bearer", type: "http" }],
1769
1794
  url: "/training_examples",
@@ -1829,25 +1854,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
1829
1854
  ...options.headers
1830
1855
  }
1831
1856
  });
1832
- var getExtractionResults = (options) => (options.client ?? client).get({
1833
- security: [{ scheme: "bearer", type: "http" }],
1834
- url: "/extraction_results",
1835
- ...options
1836
- });
1837
1857
  var getAgentsById = (options) => (options.client ?? client).get({
1838
1858
  security: [{ scheme: "bearer", type: "http" }],
1839
1859
  url: "/agents/{id}",
1840
1860
  ...options
1841
1861
  });
1842
- var postDocumentsImport = (options) => (options.client ?? client).post({
1843
- security: [{ scheme: "bearer", type: "http" }],
1844
- url: "/documents/import",
1845
- ...options,
1846
- headers: {
1847
- "Content-Type": "application/vnd.api+json",
1848
- ...options.headers
1849
- }
1850
- });
1851
1862
  var deleteApiKeysById = (options) => (options.client ?? client).delete({
1852
1863
  security: [{ scheme: "bearer", type: "http" }],
1853
1864
  url: "/api_keys/{id}",
@@ -1961,11 +1972,6 @@ var getThreadsSearch = (options) => (options.client ?? client).get({
1961
1972
  url: "/threads/search",
1962
1973
  ...options
1963
1974
  });
1964
- var getDocumentsByIdRelationshipsChunks = (options) => (options.client ?? client).get({
1965
- security: [{ scheme: "bearer", type: "http" }],
1966
- url: "/documents/{id}/relationships/chunks",
1967
- ...options
1968
- });
1969
1975
  var patchWalletPlan = (options) => (options.client ?? client).patch({
1970
1976
  security: [{ scheme: "bearer", type: "http" }],
1971
1977
  url: "/wallet/plan",
@@ -1985,6 +1991,20 @@ var getLlmAnalyticsById = (options) => (options.client ?? client).get({
1985
1991
  url: "/llm_analytics/{id}",
1986
1992
  ...options
1987
1993
  });
1994
+ var getExtractionSchemaFields = (options) => (options.client ?? client).get({
1995
+ security: [{ scheme: "bearer", type: "http" }],
1996
+ url: "/extraction/schema-fields",
1997
+ ...options
1998
+ });
1999
+ var postExtractionSchemaFields = (options) => (options.client ?? client).post({
2000
+ security: [{ scheme: "bearer", type: "http" }],
2001
+ url: "/extraction/schema-fields",
2002
+ ...options,
2003
+ headers: {
2004
+ "Content-Type": "application/vnd.api+json",
2005
+ ...options.headers
2006
+ }
2007
+ });
1988
2008
  var getSearchStatus = (options) => (options.client ?? client).get({
1989
2009
  security: [{ scheme: "bearer", type: "http" }],
1990
2010
  url: "/search/status",
@@ -2031,6 +2051,15 @@ var postSearchReindex = (options) => (options.client ?? client).post({
2031
2051
  ...options.headers
2032
2052
  }
2033
2053
  });
2054
+ var patchExtractionResultsByIdRegenerate = (options) => (options.client ?? client).patch({
2055
+ security: [{ scheme: "bearer", type: "http" }],
2056
+ url: "/extraction/results/{id}/regenerate",
2057
+ ...options,
2058
+ headers: {
2059
+ "Content-Type": "application/vnd.api+json",
2060
+ ...options.headers
2061
+ }
2062
+ });
2034
2063
  var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2035
2064
  security: [{ scheme: "bearer", type: "http" }],
2036
2065
  url: "/users/auth/confirm",
@@ -2040,6 +2069,15 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2040
2069
  ...options.headers
2041
2070
  }
2042
2071
  });
2072
+ var postExtractionSchemas = (options) => (options.client ?? client).post({
2073
+ security: [{ scheme: "bearer", type: "http" }],
2074
+ url: "/extraction/schemas",
2075
+ ...options,
2076
+ headers: {
2077
+ "Content-Type": "application/vnd.api+json",
2078
+ ...options.headers
2079
+ }
2080
+ });
2043
2081
  var getStorageStats = (options) => (options.client ?? client).get({
2044
2082
  security: [{ scheme: "bearer", type: "http" }],
2045
2083
  url: "/storage/stats",
@@ -2114,6 +2152,20 @@ var patchBucketsById = (options) => (options.client ?? client).patch({
2114
2152
  ...options.headers
2115
2153
  }
2116
2154
  });
2155
+ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2156
+ security: [{ scheme: "bearer", type: "http" }],
2157
+ url: "/extraction/documents/workspace/{workspace_id}",
2158
+ ...options
2159
+ });
2160
+ var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
2161
+ security: [{ scheme: "bearer", type: "http" }],
2162
+ url: "/extraction/documents/begin_upload",
2163
+ ...options,
2164
+ headers: {
2165
+ "Content-Type": "application/vnd.api+json",
2166
+ ...options.headers
2167
+ }
2168
+ });
2117
2169
  var deleteAiGraphEdgesById = (options) => (options.client ?? client).delete({
2118
2170
  security: [{ scheme: "bearer", type: "http" }],
2119
2171
  url: "/ai/graph/edges/{id}",
@@ -2143,6 +2195,20 @@ var getPlans = (options) => (options.client ?? client).get({
2143
2195
  url: "/plans",
2144
2196
  ...options
2145
2197
  });
2198
+ var getExtractionSchemasById = (options) => (options.client ?? client).get({
2199
+ security: [{ scheme: "bearer", type: "http" }],
2200
+ url: "/extraction/schemas/{id}",
2201
+ ...options
2202
+ });
2203
+ var patchExtractionSchemasById = (options) => (options.client ?? client).patch({
2204
+ security: [{ scheme: "bearer", type: "http" }],
2205
+ url: "/extraction/schemas/{id}",
2206
+ ...options,
2207
+ headers: {
2208
+ "Content-Type": "application/vnd.api+json",
2209
+ ...options.headers
2210
+ }
2211
+ });
2146
2212
  var postAgentsByIdTest = (options) => (options.client ?? client).post({
2147
2213
  security: [{ scheme: "bearer", type: "http" }],
2148
2214
  url: "/agents/{id}/test",
@@ -2152,9 +2218,9 @@ var postAgentsByIdTest = (options) => (options.client ?? client).post({
2152
2218
  ...options.headers
2153
2219
  }
2154
2220
  });
2155
- var getDocumentsProcessingQueue = (options) => (options.client ?? client).get({
2221
+ var getExtractionDocuments = (options) => (options.client ?? client).get({
2156
2222
  security: [{ scheme: "bearer", type: "http" }],
2157
- url: "/documents/processing_queue",
2223
+ url: "/extraction/documents",
2158
2224
  ...options
2159
2225
  });
2160
2226
  var deleteTenantMembershipsByTenantIdByUserId = (options) => (options.client ?? client).delete({
@@ -2230,6 +2296,15 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
2230
2296
  ...options.headers
2231
2297
  }
2232
2298
  });
2299
+ var postExtractionResults = (options) => (options.client ?? client).post({
2300
+ security: [{ scheme: "bearer", type: "http" }],
2301
+ url: "/extraction/results",
2302
+ ...options,
2303
+ headers: {
2304
+ "Content-Type": "application/vnd.api+json",
2305
+ ...options.headers
2306
+ }
2307
+ });
2233
2308
  var postAgentsByIdClone = (options) => (options.client ?? client).post({
2234
2309
  security: [{ scheme: "bearer", type: "http" }],
2235
2310
  url: "/agents/{id}/clone",
@@ -2383,11 +2458,6 @@ var getAgents = (options) => (options.client ?? client).get({
2383
2458
  url: "/agents",
2384
2459
  ...options
2385
2460
  });
2386
- var getDocumentsByIdExtractionResults = (options) => (options.client ?? client).get({
2387
- security: [{ scheme: "bearer", type: "http" }],
2388
- url: "/documents/{id}/extraction_results",
2389
- ...options
2390
- });
2391
2461
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
2392
2462
  security: [{ scheme: "bearer", type: "http" }],
2393
2463
  url: "/users/register_isv",
@@ -2397,6 +2467,11 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
2397
2467
  ...options.headers
2398
2468
  }
2399
2469
  });
2470
+ var getExtractionBatchesById = (options) => (options.client ?? client).get({
2471
+ security: [{ scheme: "bearer", type: "http" }],
2472
+ url: "/extraction/batches/{id}",
2473
+ ...options
2474
+ });
2400
2475
  var deleteWorkspaceMembershipsByWorkspaceIdByUserId = (options) => (options.client ?? client).delete({
2401
2476
  security: [{ scheme: "bearer", type: "http" }],
2402
2477
  url: "/workspace-memberships/{workspace_id}/{user_id}",
@@ -2799,8 +2874,8 @@ async function collectStreamedMessage(stream) {
2799
2874
  deleteApiKeysById,
2800
2875
  deleteApplicationsById,
2801
2876
  deleteBucketsById,
2802
- deleteDocumentsById,
2803
- deleteExtractionResultsById,
2877
+ deleteExtractionDocumentsById,
2878
+ deleteExtractionSchemaFieldsById,
2804
2879
  deleteMessagesById,
2805
2880
  deleteNotificationPreferencesById,
2806
2881
  deleteObjectsById,
@@ -2835,15 +2910,20 @@ async function collectStreamedMessage(stream) {
2835
2910
  getCreditPackages,
2836
2911
  getCreditPackagesById,
2837
2912
  getCreditPackagesSlugBySlug,
2838
- getDocuments,
2839
- getDocumentsById,
2840
- getDocumentsByIdExtractionResults,
2841
- getDocumentsByIdRelationshipsChunks,
2842
- getDocumentsProcessingQueue,
2843
- getDocumentsSearch,
2844
2913
  getDocumentsStats,
2845
- getExtractionResults,
2914
+ getExtractionBatchesById,
2915
+ getExtractionBatchesWorkspaceByWorkspaceId,
2916
+ getExtractionDocuments,
2917
+ getExtractionDocumentsById,
2918
+ getExtractionDocumentsByIdStatus,
2919
+ getExtractionDocumentsByIdView,
2920
+ getExtractionDocumentsWorkspaceByWorkspaceId,
2846
2921
  getExtractionResultsById,
2922
+ getExtractionResultsDocumentByDocumentId,
2923
+ getExtractionSchemaFields,
2924
+ getExtractionSchemaFieldsById,
2925
+ getExtractionSchemasById,
2926
+ getExtractionSchemasWorkspaceByWorkspaceId,
2847
2927
  getInvitations,
2848
2928
  getInvitationsConsumeByToken,
2849
2929
  getLlmAnalytics,
@@ -2909,8 +2989,12 @@ async function collectStreamedMessage(stream) {
2909
2989
  patchApplicationsById,
2910
2990
  patchBucketsById,
2911
2991
  patchConfigsByKey,
2912
- patchDocumentsById,
2913
- patchExtractionResultsById,
2992
+ patchExtractionDocumentsByIdFinishUpload,
2993
+ patchExtractionDocumentsByIdStatus,
2994
+ patchExtractionResultsByIdCorrections,
2995
+ patchExtractionResultsByIdRegenerate,
2996
+ patchExtractionSchemaFieldsById,
2997
+ patchExtractionSchemasById,
2914
2998
  patchInvitationsByIdAccept,
2915
2999
  patchInvitationsByIdResend,
2916
3000
  patchInvitationsByIdRevoke,
@@ -2948,14 +3032,14 @@ async function collectStreamedMessage(stream) {
2948
3032
  postApplications,
2949
3033
  postBuckets,
2950
3034
  postConfigs,
2951
- postDocuments,
2952
3035
  postDocumentsBulkDelete,
2953
- postDocumentsBulkReprocess,
2954
- postDocumentsByIdAnalyze,
2955
- postDocumentsByIdReprocess,
2956
- postDocumentsExport,
2957
- postDocumentsImport,
2958
3036
  postDocumentsPresignedUpload,
3037
+ postExtractionBatches,
3038
+ postExtractionDocumentsBeginUpload,
3039
+ postExtractionDocumentsUpload,
3040
+ postExtractionResults,
3041
+ postExtractionSchemaFields,
3042
+ postExtractionSchemas,
2959
3043
  postInvitationsAcceptByToken,
2960
3044
  postInvitationsInvite,
2961
3045
  postLlmAnalytics,