@gpt-core/client 0.3.2 → 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.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,17 @@ __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
+ getExtractionDocuments: () => getExtractionDocuments,
96
+ getExtractionDocumentsById: () => getExtractionDocumentsById,
97
+ getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
98
+ getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
102
99
  getExtractionResultsById: () => getExtractionResultsById,
100
+ getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
101
+ getExtractionSchemaFields: () => getExtractionSchemaFields,
102
+ getExtractionSchemaFieldsById: () => getExtractionSchemaFieldsById,
103
+ getExtractionSchemasById: () => getExtractionSchemasById,
104
+ getExtractionSchemasWorkspaceByWorkspaceId: () => getExtractionSchemasWorkspaceByWorkspaceId,
103
105
  getInvitations: () => getInvitations,
104
106
  getInvitationsConsumeByToken: () => getInvitationsConsumeByToken,
105
107
  getLlmAnalytics: () => getLlmAnalytics,
@@ -165,8 +167,11 @@ __export(index_exports, {
165
167
  patchApplicationsById: () => patchApplicationsById,
166
168
  patchBucketsById: () => patchBucketsById,
167
169
  patchConfigsByKey: () => patchConfigsByKey,
168
- patchDocumentsById: () => patchDocumentsById,
169
- patchExtractionResultsById: () => patchExtractionResultsById,
170
+ patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
171
+ patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
172
+ patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
173
+ patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
174
+ patchExtractionSchemasById: () => patchExtractionSchemasById,
170
175
  patchInvitationsByIdAccept: () => patchInvitationsByIdAccept,
171
176
  patchInvitationsByIdResend: () => patchInvitationsByIdResend,
172
177
  patchInvitationsByIdRevoke: () => patchInvitationsByIdRevoke,
@@ -204,14 +209,12 @@ __export(index_exports, {
204
209
  postApplications: () => postApplications,
205
210
  postBuckets: () => postBuckets,
206
211
  postConfigs: () => postConfigs,
207
- postDocuments: () => postDocuments,
208
212
  postDocumentsBulkDelete: () => postDocumentsBulkDelete,
209
- postDocumentsBulkReprocess: () => postDocumentsBulkReprocess,
210
- postDocumentsByIdAnalyze: () => postDocumentsByIdAnalyze,
211
- postDocumentsByIdReprocess: () => postDocumentsByIdReprocess,
212
- postDocumentsExport: () => postDocumentsExport,
213
- postDocumentsImport: () => postDocumentsImport,
214
213
  postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
214
+ postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
215
+ postExtractionResults: () => postExtractionResults,
216
+ postExtractionSchemaFields: () => postExtractionSchemaFields,
217
+ postExtractionSchemas: () => postExtractionSchemas,
215
218
  postInvitationsAcceptByToken: () => postInvitationsAcceptByToken,
216
219
  postInvitationsInvite: () => postInvitationsInvite,
217
220
  postLlmAnalytics: () => postLlmAnalytics,
@@ -334,6 +337,7 @@ var createSseClient = ({
334
337
  const { done, value } = await reader.read();
335
338
  if (done) break;
336
339
  buffer += value;
340
+ buffer = buffer.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
337
341
  const chunks = buffer.split("\n\n");
338
342
  buffer = chunks.pop() ?? "";
339
343
  for (const chunk of chunks) {
@@ -1095,6 +1099,16 @@ var postAiSearchAdvanced = (options) => (options.client ?? client).post({
1095
1099
  ...options.headers
1096
1100
  }
1097
1101
  });
1102
+ var deleteExtractionDocumentsById = (options) => (options.client ?? client).delete({
1103
+ security: [{ scheme: "bearer", type: "http" }],
1104
+ url: "/extraction/documents/{id}",
1105
+ ...options
1106
+ });
1107
+ var getExtractionDocumentsById = (options) => (options.client ?? client).get({
1108
+ security: [{ scheme: "bearer", type: "http" }],
1109
+ url: "/extraction/documents/{id}",
1110
+ ...options
1111
+ });
1098
1112
  var getThreads = (options) => (options.client ?? client).get({
1099
1113
  security: [{ scheme: "bearer", type: "http" }],
1100
1114
  url: "/threads",
@@ -1109,6 +1123,11 @@ var postThreads = (options) => (options.client ?? client).post({
1109
1123
  ...options.headers
1110
1124
  }
1111
1125
  });
1126
+ var getExtractionSchemasWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1127
+ security: [{ scheme: "bearer", type: "http" }],
1128
+ url: "/extraction/schemas/workspace/{workspace_id}",
1129
+ ...options
1130
+ });
1112
1131
  var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
1113
1132
  security: [{ scheme: "bearer", type: "http" }],
1114
1133
  url: "/llm_analytics/costs",
@@ -1119,25 +1138,6 @@ var getAiChunksDocumentByDocumentId = (options) => (options.client ?? client).ge
1119
1138
  url: "/ai/chunks/document/{document_id}",
1120
1139
  ...options
1121
1140
  });
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
1141
  var getWorkspaces = (options) => (options.client ?? client).get({
1142
1142
  security: [{ scheme: "bearer", type: "http" }],
1143
1143
  url: "/workspaces",
@@ -1209,6 +1209,20 @@ var getInvitationsConsumeByToken = (options) => (options.client ?? client).get({
1209
1209
  url: "/invitations/consume/{token}",
1210
1210
  ...options
1211
1211
  });
1212
+ var getExtractionDocumentsByIdStatus = (options) => (options.client ?? client).get({
1213
+ security: [{ scheme: "bearer", type: "http" }],
1214
+ url: "/extraction/documents/{id}/status",
1215
+ ...options
1216
+ });
1217
+ var patchExtractionDocumentsByIdStatus = (options) => (options.client ?? client).patch({
1218
+ security: [{ scheme: "bearer", type: "http" }],
1219
+ url: "/extraction/documents/{id}/status",
1220
+ ...options,
1221
+ headers: {
1222
+ "Content-Type": "application/vnd.api+json",
1223
+ ...options.headers
1224
+ }
1225
+ });
1212
1226
  var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch({
1213
1227
  security: [{ scheme: "bearer", type: "http" }],
1214
1228
  url: "/workspaces/{id}/allocate",
@@ -1297,11 +1311,6 @@ var getBucketsByIdStats = (options) => (options.client ?? client).get({
1297
1311
  url: "/buckets/{id}/stats",
1298
1312
  ...options
1299
1313
  });
1300
- var getDocumentsSearch = (options) => (options.client ?? client).get({
1301
- security: [{ scheme: "bearer", type: "http" }],
1302
- url: "/documents/search",
1303
- ...options
1304
- });
1305
1314
  var getBucketsByIdObjects = (options) => (options.client ?? client).get({
1306
1315
  security: [{ scheme: "bearer", type: "http" }],
1307
1316
  url: "/buckets/{id}/objects",
@@ -1427,6 +1436,11 @@ var patchUsersById = (options) => (options.client ?? client).patch({
1427
1436
  ...options.headers
1428
1437
  }
1429
1438
  });
1439
+ var getExtractionResultsById = (options) => (options.client ?? client).get({
1440
+ security: [{ scheme: "bearer", type: "http" }],
1441
+ url: "/extraction/results/{id}",
1442
+ ...options
1443
+ });
1430
1444
  var postAgentsByIdValidate = (options) => (options.client ?? client).post({
1431
1445
  security: [{ scheme: "bearer", type: "http" }],
1432
1446
  url: "/agents/{id}/validate",
@@ -1478,20 +1492,6 @@ var postTenantMemberships = (options) => (options.client ?? client).post({
1478
1492
  ...options.headers
1479
1493
  }
1480
1494
  });
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
1495
  var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).post({
1496
1496
  security: [{ scheme: "bearer", type: "http" }],
1497
1497
  url: "/training_examples/bulk_delete",
@@ -1506,39 +1506,39 @@ var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
1506
1506
  url: "/llm_analytics/summary",
1507
1507
  ...options
1508
1508
  });
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({
1509
+ var deleteExtractionSchemaFieldsById = (options) => (options.client ?? client).delete({
1519
1510
  security: [{ scheme: "bearer", type: "http" }],
1520
- url: "/webhook_deliveries",
1511
+ url: "/extraction/schema-fields/{id}",
1521
1512
  ...options
1522
1513
  });
1523
- var deleteDocumentsById = (options) => (options.client ?? client).delete({
1514
+ var getExtractionSchemaFieldsById = (options) => (options.client ?? client).get({
1524
1515
  security: [{ scheme: "bearer", type: "http" }],
1525
- url: "/documents/{id}",
1516
+ url: "/extraction/schema-fields/{id}",
1526
1517
  ...options
1527
1518
  });
1528
- var getDocumentsById = (options) => (options.client ?? client).get({
1519
+ var patchExtractionSchemaFieldsById = (options) => (options.client ?? client).patch({
1529
1520
  security: [{ scheme: "bearer", type: "http" }],
1530
- url: "/documents/{id}",
1531
- ...options
1521
+ url: "/extraction/schema-fields/{id}",
1522
+ ...options,
1523
+ headers: {
1524
+ "Content-Type": "application/vnd.api+json",
1525
+ ...options.headers
1526
+ }
1532
1527
  });
1533
- var patchDocumentsById = (options) => (options.client ?? client).patch({
1528
+ var postStorageSignDownload = (options) => (options.client ?? client).post({
1534
1529
  security: [{ scheme: "bearer", type: "http" }],
1535
- url: "/documents/{id}",
1530
+ url: "/storage/sign_download",
1536
1531
  ...options,
1537
1532
  headers: {
1538
1533
  "Content-Type": "application/vnd.api+json",
1539
1534
  ...options.headers
1540
1535
  }
1541
1536
  });
1537
+ var getWebhookDeliveries = (options) => (options.client ?? client).get({
1538
+ security: [{ scheme: "bearer", type: "http" }],
1539
+ url: "/webhook_deliveries",
1540
+ ...options
1541
+ });
1542
1542
  var getSearch = (options) => (options.client ?? client).get({
1543
1543
  security: [{ scheme: "bearer", type: "http" }],
1544
1544
  url: "/search",
@@ -1549,15 +1549,6 @@ var getInvitations = (options) => (options.client ?? client).get({
1549
1549
  url: "/invitations",
1550
1550
  ...options
1551
1551
  });
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
1552
  var getSearchSemantic = (options) => (options.client ?? client).get({
1562
1553
  security: [{ scheme: "bearer", type: "http" }],
1563
1554
  url: "/search/semantic",
@@ -1647,36 +1638,50 @@ var postLlmAnalytics = (options) => (options.client ?? client).post({
1647
1638
  ...options.headers
1648
1639
  }
1649
1640
  });
1650
- var postDocumentsByIdReprocess = (options) => (options.client ?? client).post({
1641
+ var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch({
1651
1642
  security: [{ scheme: "bearer", type: "http" }],
1652
- url: "/documents/{id}/reprocess",
1643
+ url: "/users/{id}/reset-password",
1653
1644
  ...options,
1654
1645
  headers: {
1655
1646
  "Content-Type": "application/vnd.api+json",
1656
1647
  ...options.headers
1657
1648
  }
1658
1649
  });
1659
- var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch({
1650
+ var postDocumentsPresignedUpload = (options) => (options.client ?? client).post({
1660
1651
  security: [{ scheme: "bearer", type: "http" }],
1661
- url: "/users/{id}/reset-password",
1652
+ url: "/documents/presigned_upload",
1662
1653
  ...options,
1663
1654
  headers: {
1664
1655
  "Content-Type": "application/vnd.api+json",
1665
1656
  ...options.headers
1666
1657
  }
1667
1658
  });
1668
- var postDocumentsPresignedUpload = (options) => (options.client ?? client).post({
1659
+ var getMessagesSearch = (options) => (options.client ?? client).get({
1669
1660
  security: [{ scheme: "bearer", type: "http" }],
1670
- url: "/documents/presigned_upload",
1661
+ url: "/messages/search",
1662
+ ...options
1663
+ });
1664
+ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
1665
+ security: [{ scheme: "bearer", type: "http" }],
1666
+ url: "/extraction/documents/upload",
1671
1667
  ...options,
1672
1668
  headers: {
1673
1669
  "Content-Type": "application/vnd.api+json",
1674
1670
  ...options.headers
1675
1671
  }
1676
1672
  });
1677
- var getMessagesSearch = (options) => (options.client ?? client).get({
1673
+ var patchExtractionResultsByIdCorrections = (options) => (options.client ?? client).patch({
1678
1674
  security: [{ scheme: "bearer", type: "http" }],
1679
- url: "/messages/search",
1675
+ url: "/extraction/results/{id}/corrections",
1676
+ ...options,
1677
+ headers: {
1678
+ "Content-Type": "application/vnd.api+json",
1679
+ ...options.headers
1680
+ }
1681
+ });
1682
+ var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
1683
+ security: [{ scheme: "bearer", type: "http" }],
1684
+ url: "/extraction/results/document/{document_id}",
1680
1685
  ...options
1681
1686
  });
1682
1687
  var deleteWorkspacesById = (options) => (options.client ?? client).delete({
@@ -1721,15 +1726,6 @@ var postTenantsByIdRemoveStorage = (options) => (options.client ?? client).post(
1721
1726
  ...options.headers
1722
1727
  }
1723
1728
  });
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
1729
  var getNotificationLogsById = (options) => (options.client ?? client).get({
1734
1730
  security: [{ scheme: "bearer", type: "http" }],
1735
1731
  url: "/notification_logs/{id}",
@@ -1759,11 +1755,6 @@ var postAiGraphEdges = (options) => (options.client ?? client).post({
1759
1755
  ...options.headers
1760
1756
  }
1761
1757
  });
1762
- var postDocumentsExport = (options) => (options.client ?? client).post({
1763
- security: [{ scheme: "bearer", type: "http" }],
1764
- url: "/documents/export",
1765
- ...options
1766
- });
1767
1758
  var getTrainingExamples = (options) => (options.client ?? client).get({
1768
1759
  security: [{ scheme: "bearer", type: "http" }],
1769
1760
  url: "/training_examples",
@@ -1829,25 +1820,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
1829
1820
  ...options.headers
1830
1821
  }
1831
1822
  });
1832
- var getExtractionResults = (options) => (options.client ?? client).get({
1833
- security: [{ scheme: "bearer", type: "http" }],
1834
- url: "/extraction_results",
1835
- ...options
1836
- });
1837
1823
  var getAgentsById = (options) => (options.client ?? client).get({
1838
1824
  security: [{ scheme: "bearer", type: "http" }],
1839
1825
  url: "/agents/{id}",
1840
1826
  ...options
1841
1827
  });
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
1828
  var deleteApiKeysById = (options) => (options.client ?? client).delete({
1852
1829
  security: [{ scheme: "bearer", type: "http" }],
1853
1830
  url: "/api_keys/{id}",
@@ -1961,11 +1938,6 @@ var getThreadsSearch = (options) => (options.client ?? client).get({
1961
1938
  url: "/threads/search",
1962
1939
  ...options
1963
1940
  });
1964
- var getDocumentsByIdRelationshipsChunks = (options) => (options.client ?? client).get({
1965
- security: [{ scheme: "bearer", type: "http" }],
1966
- url: "/documents/{id}/relationships/chunks",
1967
- ...options
1968
- });
1969
1941
  var patchWalletPlan = (options) => (options.client ?? client).patch({
1970
1942
  security: [{ scheme: "bearer", type: "http" }],
1971
1943
  url: "/wallet/plan",
@@ -1985,6 +1957,20 @@ var getLlmAnalyticsById = (options) => (options.client ?? client).get({
1985
1957
  url: "/llm_analytics/{id}",
1986
1958
  ...options
1987
1959
  });
1960
+ var getExtractionSchemaFields = (options) => (options.client ?? client).get({
1961
+ security: [{ scheme: "bearer", type: "http" }],
1962
+ url: "/extraction/schema-fields",
1963
+ ...options
1964
+ });
1965
+ var postExtractionSchemaFields = (options) => (options.client ?? client).post({
1966
+ security: [{ scheme: "bearer", type: "http" }],
1967
+ url: "/extraction/schema-fields",
1968
+ ...options,
1969
+ headers: {
1970
+ "Content-Type": "application/vnd.api+json",
1971
+ ...options.headers
1972
+ }
1973
+ });
1988
1974
  var getSearchStatus = (options) => (options.client ?? client).get({
1989
1975
  security: [{ scheme: "bearer", type: "http" }],
1990
1976
  url: "/search/status",
@@ -2031,6 +2017,15 @@ var postSearchReindex = (options) => (options.client ?? client).post({
2031
2017
  ...options.headers
2032
2018
  }
2033
2019
  });
2020
+ var patchExtractionResultsByIdRegenerate = (options) => (options.client ?? client).patch({
2021
+ security: [{ scheme: "bearer", type: "http" }],
2022
+ url: "/extraction/results/{id}/regenerate",
2023
+ ...options,
2024
+ headers: {
2025
+ "Content-Type": "application/vnd.api+json",
2026
+ ...options.headers
2027
+ }
2028
+ });
2034
2029
  var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2035
2030
  security: [{ scheme: "bearer", type: "http" }],
2036
2031
  url: "/users/auth/confirm",
@@ -2040,6 +2035,15 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2040
2035
  ...options.headers
2041
2036
  }
2042
2037
  });
2038
+ var postExtractionSchemas = (options) => (options.client ?? client).post({
2039
+ security: [{ scheme: "bearer", type: "http" }],
2040
+ url: "/extraction/schemas",
2041
+ ...options,
2042
+ headers: {
2043
+ "Content-Type": "application/vnd.api+json",
2044
+ ...options.headers
2045
+ }
2046
+ });
2043
2047
  var getStorageStats = (options) => (options.client ?? client).get({
2044
2048
  security: [{ scheme: "bearer", type: "http" }],
2045
2049
  url: "/storage/stats",
@@ -2114,6 +2118,11 @@ var patchBucketsById = (options) => (options.client ?? client).patch({
2114
2118
  ...options.headers
2115
2119
  }
2116
2120
  });
2121
+ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2122
+ security: [{ scheme: "bearer", type: "http" }],
2123
+ url: "/extraction/documents/workspace/{workspace_id}",
2124
+ ...options
2125
+ });
2117
2126
  var deleteAiGraphEdgesById = (options) => (options.client ?? client).delete({
2118
2127
  security: [{ scheme: "bearer", type: "http" }],
2119
2128
  url: "/ai/graph/edges/{id}",
@@ -2143,6 +2152,20 @@ var getPlans = (options) => (options.client ?? client).get({
2143
2152
  url: "/plans",
2144
2153
  ...options
2145
2154
  });
2155
+ var getExtractionSchemasById = (options) => (options.client ?? client).get({
2156
+ security: [{ scheme: "bearer", type: "http" }],
2157
+ url: "/extraction/schemas/{id}",
2158
+ ...options
2159
+ });
2160
+ var patchExtractionSchemasById = (options) => (options.client ?? client).patch({
2161
+ security: [{ scheme: "bearer", type: "http" }],
2162
+ url: "/extraction/schemas/{id}",
2163
+ ...options,
2164
+ headers: {
2165
+ "Content-Type": "application/vnd.api+json",
2166
+ ...options.headers
2167
+ }
2168
+ });
2146
2169
  var postAgentsByIdTest = (options) => (options.client ?? client).post({
2147
2170
  security: [{ scheme: "bearer", type: "http" }],
2148
2171
  url: "/agents/{id}/test",
@@ -2152,9 +2175,9 @@ var postAgentsByIdTest = (options) => (options.client ?? client).post({
2152
2175
  ...options.headers
2153
2176
  }
2154
2177
  });
2155
- var getDocumentsProcessingQueue = (options) => (options.client ?? client).get({
2178
+ var getExtractionDocuments = (options) => (options.client ?? client).get({
2156
2179
  security: [{ scheme: "bearer", type: "http" }],
2157
- url: "/documents/processing_queue",
2180
+ url: "/extraction/documents",
2158
2181
  ...options
2159
2182
  });
2160
2183
  var deleteTenantMembershipsByTenantIdByUserId = (options) => (options.client ?? client).delete({
@@ -2230,6 +2253,15 @@ var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
2230
2253
  ...options.headers
2231
2254
  }
2232
2255
  });
2256
+ var postExtractionResults = (options) => (options.client ?? client).post({
2257
+ security: [{ scheme: "bearer", type: "http" }],
2258
+ url: "/extraction/results",
2259
+ ...options,
2260
+ headers: {
2261
+ "Content-Type": "application/vnd.api+json",
2262
+ ...options.headers
2263
+ }
2264
+ });
2233
2265
  var postAgentsByIdClone = (options) => (options.client ?? client).post({
2234
2266
  security: [{ scheme: "bearer", type: "http" }],
2235
2267
  url: "/agents/{id}/clone",
@@ -2383,11 +2415,6 @@ var getAgents = (options) => (options.client ?? client).get({
2383
2415
  url: "/agents",
2384
2416
  ...options
2385
2417
  });
2386
- var getDocumentsByIdExtractionResults = (options) => (options.client ?? client).get({
2387
- security: [{ scheme: "bearer", type: "http" }],
2388
- url: "/documents/{id}/extraction_results",
2389
- ...options
2390
- });
2391
2418
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
2392
2419
  security: [{ scheme: "bearer", type: "http" }],
2393
2420
  url: "/users/register_isv",
@@ -2799,8 +2826,8 @@ async function collectStreamedMessage(stream) {
2799
2826
  deleteApiKeysById,
2800
2827
  deleteApplicationsById,
2801
2828
  deleteBucketsById,
2802
- deleteDocumentsById,
2803
- deleteExtractionResultsById,
2829
+ deleteExtractionDocumentsById,
2830
+ deleteExtractionSchemaFieldsById,
2804
2831
  deleteMessagesById,
2805
2832
  deleteNotificationPreferencesById,
2806
2833
  deleteObjectsById,
@@ -2835,15 +2862,17 @@ async function collectStreamedMessage(stream) {
2835
2862
  getCreditPackages,
2836
2863
  getCreditPackagesById,
2837
2864
  getCreditPackagesSlugBySlug,
2838
- getDocuments,
2839
- getDocumentsById,
2840
- getDocumentsByIdExtractionResults,
2841
- getDocumentsByIdRelationshipsChunks,
2842
- getDocumentsProcessingQueue,
2843
- getDocumentsSearch,
2844
2865
  getDocumentsStats,
2845
- getExtractionResults,
2866
+ getExtractionDocuments,
2867
+ getExtractionDocumentsById,
2868
+ getExtractionDocumentsByIdStatus,
2869
+ getExtractionDocumentsWorkspaceByWorkspaceId,
2846
2870
  getExtractionResultsById,
2871
+ getExtractionResultsDocumentByDocumentId,
2872
+ getExtractionSchemaFields,
2873
+ getExtractionSchemaFieldsById,
2874
+ getExtractionSchemasById,
2875
+ getExtractionSchemasWorkspaceByWorkspaceId,
2847
2876
  getInvitations,
2848
2877
  getInvitationsConsumeByToken,
2849
2878
  getLlmAnalytics,
@@ -2909,8 +2938,11 @@ async function collectStreamedMessage(stream) {
2909
2938
  patchApplicationsById,
2910
2939
  patchBucketsById,
2911
2940
  patchConfigsByKey,
2912
- patchDocumentsById,
2913
- patchExtractionResultsById,
2941
+ patchExtractionDocumentsByIdStatus,
2942
+ patchExtractionResultsByIdCorrections,
2943
+ patchExtractionResultsByIdRegenerate,
2944
+ patchExtractionSchemaFieldsById,
2945
+ patchExtractionSchemasById,
2914
2946
  patchInvitationsByIdAccept,
2915
2947
  patchInvitationsByIdResend,
2916
2948
  patchInvitationsByIdRevoke,
@@ -2948,14 +2980,12 @@ async function collectStreamedMessage(stream) {
2948
2980
  postApplications,
2949
2981
  postBuckets,
2950
2982
  postConfigs,
2951
- postDocuments,
2952
2983
  postDocumentsBulkDelete,
2953
- postDocumentsBulkReprocess,
2954
- postDocumentsByIdAnalyze,
2955
- postDocumentsByIdReprocess,
2956
- postDocumentsExport,
2957
- postDocumentsImport,
2958
2984
  postDocumentsPresignedUpload,
2985
+ postExtractionDocumentsUpload,
2986
+ postExtractionResults,
2987
+ postExtractionSchemaFields,
2988
+ postExtractionSchemas,
2959
2989
  postInvitationsAcceptByToken,
2960
2990
  postInvitationsInvite,
2961
2991
  postLlmAnalytics,