@gpt-core/client 0.4.7 → 0.4.9

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
@@ -56,6 +56,7 @@ __export(index_exports, {
56
56
  deleteApplicationsById: () => deleteApplicationsById,
57
57
  deleteBucketsById: () => deleteBucketsById,
58
58
  deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
59
+ deleteExtractionFoldersById: () => deleteExtractionFoldersById,
59
60
  deleteExtractionSchemaFieldsById: () => deleteExtractionSchemaFieldsById,
60
61
  deleteMessagesById: () => deleteMessagesById,
61
62
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
@@ -98,7 +99,11 @@ __export(index_exports, {
98
99
  getExtractionDocuments: () => getExtractionDocuments,
99
100
  getExtractionDocumentsById: () => getExtractionDocumentsById,
100
101
  getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
102
+ getExtractionDocumentsFolderByFolderId: () => getExtractionDocumentsFolderByFolderId,
101
103
  getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
104
+ getExtractionFolders: () => getExtractionFolders,
105
+ getExtractionFoldersById: () => getExtractionFoldersById,
106
+ getExtractionFoldersWorkspaceByWorkspaceId: () => getExtractionFoldersWorkspaceByWorkspaceId,
102
107
  getExtractionResultsById: () => getExtractionResultsById,
103
108
  getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
104
109
  getExtractionSchemaFields: () => getExtractionSchemaFields,
@@ -176,6 +181,7 @@ __export(index_exports, {
176
181
  patchConfigsByKey: () => patchConfigsByKey,
177
182
  patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
178
183
  patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
184
+ patchExtractionFoldersById: () => patchExtractionFoldersById,
179
185
  patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
180
186
  patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
181
187
  patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
@@ -220,11 +226,11 @@ __export(index_exports, {
220
226
  postBuckets: () => postBuckets,
221
227
  postConfigs: () => postConfigs,
222
228
  postDocumentsBulkDelete: () => postDocumentsBulkDelete,
223
- postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
224
229
  postExtractionBatches: () => postExtractionBatches,
225
230
  postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
226
231
  postExtractionDocumentsByIdView: () => postExtractionDocumentsByIdView,
227
232
  postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
233
+ postExtractionFolders: () => postExtractionFolders,
228
234
  postExtractionResults: () => postExtractionResults,
229
235
  postExtractionSchemaFields: () => postExtractionSchemaFields,
230
236
  postExtractionSchemas: () => postExtractionSchemas,
@@ -1190,6 +1196,11 @@ var getSearchIndexes = (options) => (options.client ?? client).get({
1190
1196
  url: "/search/indexes",
1191
1197
  ...options
1192
1198
  });
1199
+ var getExtractionDocumentsFolderByFolderId = (options) => (options.client ?? client).get({
1200
+ security: [{ scheme: "bearer", type: "http" }],
1201
+ url: "/extraction/documents/folder/{folder_id}",
1202
+ ...options
1203
+ });
1193
1204
  var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
1194
1205
  security: [{ scheme: "bearer", type: "http" }],
1195
1206
  url: "/credit-packages/slug/{slug}",
@@ -1418,6 +1429,20 @@ var postInvitationsAcceptByToken = (options) => (options.client ?? client).post(
1418
1429
  ...options.headers
1419
1430
  }
1420
1431
  });
1432
+ var getExtractionFolders = (options) => (options.client ?? client).get({
1433
+ security: [{ scheme: "bearer", type: "http" }],
1434
+ url: "/extraction/folders",
1435
+ ...options
1436
+ });
1437
+ var postExtractionFolders = (options) => (options.client ?? client).post({
1438
+ security: [{ scheme: "bearer", type: "http" }],
1439
+ url: "/extraction/folders",
1440
+ ...options,
1441
+ headers: {
1442
+ "Content-Type": "application/vnd.api+json",
1443
+ ...options.headers
1444
+ }
1445
+ });
1421
1446
  var getExtractionBatchesByIdUploadUrls = (options) => (options.client ?? client).get({
1422
1447
  security: [{ scheme: "bearer", type: "http" }],
1423
1448
  url: "/extraction/batches/{id}/upload-urls",
@@ -1595,6 +1620,25 @@ var getSearch = (options) => (options.client ?? client).get({
1595
1620
  url: "/search",
1596
1621
  ...options
1597
1622
  });
1623
+ var deleteExtractionFoldersById = (options) => (options.client ?? client).delete({
1624
+ security: [{ scheme: "bearer", type: "http" }],
1625
+ url: "/extraction/folders/{id}",
1626
+ ...options
1627
+ });
1628
+ var getExtractionFoldersById = (options) => (options.client ?? client).get({
1629
+ security: [{ scheme: "bearer", type: "http" }],
1630
+ url: "/extraction/folders/{id}",
1631
+ ...options
1632
+ });
1633
+ var patchExtractionFoldersById = (options) => (options.client ?? client).patch({
1634
+ security: [{ scheme: "bearer", type: "http" }],
1635
+ url: "/extraction/folders/{id}",
1636
+ ...options,
1637
+ headers: {
1638
+ "Content-Type": "application/vnd.api+json",
1639
+ ...options.headers
1640
+ }
1641
+ });
1598
1642
  var getInvitations = (options) => (options.client ?? client).get({
1599
1643
  security: [{ scheme: "bearer", type: "http" }],
1600
1644
  url: "/invitations",
@@ -1698,15 +1742,6 @@ var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch(
1698
1742
  ...options.headers
1699
1743
  }
1700
1744
  });
1701
- var postDocumentsPresignedUpload = (options) => (options.client ?? client).post({
1702
- security: [{ scheme: "bearer", type: "http" }],
1703
- url: "/documents/presigned_upload",
1704
- ...options,
1705
- headers: {
1706
- "Content-Type": "application/vnd.api+json",
1707
- ...options.headers
1708
- }
1709
- });
1710
1745
  var getMessagesSearch = (options) => (options.client ?? client).get({
1711
1746
  security: [{ scheme: "bearer", type: "http" }],
1712
1747
  url: "/messages/search",
@@ -2393,6 +2428,11 @@ var patchUserProfilesById = (options) => (options.client ?? client).patch({
2393
2428
  ...options.headers
2394
2429
  }
2395
2430
  });
2431
+ var getExtractionFoldersWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2432
+ security: [{ scheme: "bearer", type: "http" }],
2433
+ url: "/extraction/folders/workspace/{workspace_id}",
2434
+ ...options
2435
+ });
2396
2436
  var deleteObjectsById = (options) => (options.client ?? client).delete({
2397
2437
  security: [{ scheme: "bearer", type: "http" }],
2398
2438
  url: "/objects/{id}",
@@ -2939,6 +2979,7 @@ async function collectStreamedMessage(stream) {
2939
2979
  deleteApplicationsById,
2940
2980
  deleteBucketsById,
2941
2981
  deleteExtractionDocumentsById,
2982
+ deleteExtractionFoldersById,
2942
2983
  deleteExtractionSchemaFieldsById,
2943
2984
  deleteMessagesById,
2944
2985
  deleteNotificationPreferencesById,
@@ -2981,7 +3022,11 @@ async function collectStreamedMessage(stream) {
2981
3022
  getExtractionDocuments,
2982
3023
  getExtractionDocumentsById,
2983
3024
  getExtractionDocumentsByIdStatus,
3025
+ getExtractionDocumentsFolderByFolderId,
2984
3026
  getExtractionDocumentsWorkspaceByWorkspaceId,
3027
+ getExtractionFolders,
3028
+ getExtractionFoldersById,
3029
+ getExtractionFoldersWorkspaceByWorkspaceId,
2985
3030
  getExtractionResultsById,
2986
3031
  getExtractionResultsDocumentByDocumentId,
2987
3032
  getExtractionSchemaFields,
@@ -3059,6 +3104,7 @@ async function collectStreamedMessage(stream) {
3059
3104
  patchConfigsByKey,
3060
3105
  patchExtractionDocumentsByIdFinishUpload,
3061
3106
  patchExtractionDocumentsByIdStatus,
3107
+ patchExtractionFoldersById,
3062
3108
  patchExtractionResultsByIdCorrections,
3063
3109
  patchExtractionResultsByIdRegenerate,
3064
3110
  patchExtractionSchemaFieldsById,
@@ -3103,11 +3149,11 @@ async function collectStreamedMessage(stream) {
3103
3149
  postBuckets,
3104
3150
  postConfigs,
3105
3151
  postDocumentsBulkDelete,
3106
- postDocumentsPresignedUpload,
3107
3152
  postExtractionBatches,
3108
3153
  postExtractionDocumentsBeginUpload,
3109
3154
  postExtractionDocumentsByIdView,
3110
3155
  postExtractionDocumentsUpload,
3156
+ postExtractionFolders,
3111
3157
  postExtractionResults,
3112
3158
  postExtractionSchemaFields,
3113
3159
  postExtractionSchemas,
package/dist/index.mjs CHANGED
@@ -914,6 +914,11 @@ var getSearchIndexes = (options) => (options.client ?? client).get({
914
914
  url: "/search/indexes",
915
915
  ...options
916
916
  });
917
+ var getExtractionDocumentsFolderByFolderId = (options) => (options.client ?? client).get({
918
+ security: [{ scheme: "bearer", type: "http" }],
919
+ url: "/extraction/documents/folder/{folder_id}",
920
+ ...options
921
+ });
917
922
  var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
918
923
  security: [{ scheme: "bearer", type: "http" }],
919
924
  url: "/credit-packages/slug/{slug}",
@@ -1142,6 +1147,20 @@ var postInvitationsAcceptByToken = (options) => (options.client ?? client).post(
1142
1147
  ...options.headers
1143
1148
  }
1144
1149
  });
1150
+ var getExtractionFolders = (options) => (options.client ?? client).get({
1151
+ security: [{ scheme: "bearer", type: "http" }],
1152
+ url: "/extraction/folders",
1153
+ ...options
1154
+ });
1155
+ var postExtractionFolders = (options) => (options.client ?? client).post({
1156
+ security: [{ scheme: "bearer", type: "http" }],
1157
+ url: "/extraction/folders",
1158
+ ...options,
1159
+ headers: {
1160
+ "Content-Type": "application/vnd.api+json",
1161
+ ...options.headers
1162
+ }
1163
+ });
1145
1164
  var getExtractionBatchesByIdUploadUrls = (options) => (options.client ?? client).get({
1146
1165
  security: [{ scheme: "bearer", type: "http" }],
1147
1166
  url: "/extraction/batches/{id}/upload-urls",
@@ -1319,6 +1338,25 @@ var getSearch = (options) => (options.client ?? client).get({
1319
1338
  url: "/search",
1320
1339
  ...options
1321
1340
  });
1341
+ var deleteExtractionFoldersById = (options) => (options.client ?? client).delete({
1342
+ security: [{ scheme: "bearer", type: "http" }],
1343
+ url: "/extraction/folders/{id}",
1344
+ ...options
1345
+ });
1346
+ var getExtractionFoldersById = (options) => (options.client ?? client).get({
1347
+ security: [{ scheme: "bearer", type: "http" }],
1348
+ url: "/extraction/folders/{id}",
1349
+ ...options
1350
+ });
1351
+ var patchExtractionFoldersById = (options) => (options.client ?? client).patch({
1352
+ security: [{ scheme: "bearer", type: "http" }],
1353
+ url: "/extraction/folders/{id}",
1354
+ ...options,
1355
+ headers: {
1356
+ "Content-Type": "application/vnd.api+json",
1357
+ ...options.headers
1358
+ }
1359
+ });
1322
1360
  var getInvitations = (options) => (options.client ?? client).get({
1323
1361
  security: [{ scheme: "bearer", type: "http" }],
1324
1362
  url: "/invitations",
@@ -1422,15 +1460,6 @@ var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch(
1422
1460
  ...options.headers
1423
1461
  }
1424
1462
  });
1425
- var postDocumentsPresignedUpload = (options) => (options.client ?? client).post({
1426
- security: [{ scheme: "bearer", type: "http" }],
1427
- url: "/documents/presigned_upload",
1428
- ...options,
1429
- headers: {
1430
- "Content-Type": "application/vnd.api+json",
1431
- ...options.headers
1432
- }
1433
- });
1434
1463
  var getMessagesSearch = (options) => (options.client ?? client).get({
1435
1464
  security: [{ scheme: "bearer", type: "http" }],
1436
1465
  url: "/messages/search",
@@ -2117,6 +2146,11 @@ var patchUserProfilesById = (options) => (options.client ?? client).patch({
2117
2146
  ...options.headers
2118
2147
  }
2119
2148
  });
2149
+ var getExtractionFoldersWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2150
+ security: [{ scheme: "bearer", type: "http" }],
2151
+ url: "/extraction/folders/workspace/{workspace_id}",
2152
+ ...options
2153
+ });
2120
2154
  var deleteObjectsById = (options) => (options.client ?? client).delete({
2121
2155
  security: [{ scheme: "bearer", type: "http" }],
2122
2156
  url: "/objects/{id}",
@@ -2662,6 +2696,7 @@ export {
2662
2696
  deleteApplicationsById,
2663
2697
  deleteBucketsById,
2664
2698
  deleteExtractionDocumentsById,
2699
+ deleteExtractionFoldersById,
2665
2700
  deleteExtractionSchemaFieldsById,
2666
2701
  deleteMessagesById,
2667
2702
  deleteNotificationPreferencesById,
@@ -2704,7 +2739,11 @@ export {
2704
2739
  getExtractionDocuments,
2705
2740
  getExtractionDocumentsById,
2706
2741
  getExtractionDocumentsByIdStatus,
2742
+ getExtractionDocumentsFolderByFolderId,
2707
2743
  getExtractionDocumentsWorkspaceByWorkspaceId,
2744
+ getExtractionFolders,
2745
+ getExtractionFoldersById,
2746
+ getExtractionFoldersWorkspaceByWorkspaceId,
2708
2747
  getExtractionResultsById,
2709
2748
  getExtractionResultsDocumentByDocumentId,
2710
2749
  getExtractionSchemaFields,
@@ -2782,6 +2821,7 @@ export {
2782
2821
  patchConfigsByKey,
2783
2822
  patchExtractionDocumentsByIdFinishUpload,
2784
2823
  patchExtractionDocumentsByIdStatus,
2824
+ patchExtractionFoldersById,
2785
2825
  patchExtractionResultsByIdCorrections,
2786
2826
  patchExtractionResultsByIdRegenerate,
2787
2827
  patchExtractionSchemaFieldsById,
@@ -2826,11 +2866,11 @@ export {
2826
2866
  postBuckets,
2827
2867
  postConfigs,
2828
2868
  postDocumentsBulkDelete,
2829
- postDocumentsPresignedUpload,
2830
2869
  postExtractionBatches,
2831
2870
  postExtractionDocumentsBeginUpload,
2832
2871
  postExtractionDocumentsByIdView,
2833
2872
  postExtractionDocumentsUpload,
2873
+ postExtractionFolders,
2834
2874
  postExtractionResults,
2835
2875
  postExtractionSchemaFields,
2836
2876
  postExtractionSchemas,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
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",