@gpt-core/client 0.4.9 → 0.5.1

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,7 +56,6 @@ __export(index_exports, {
56
56
  deleteApplicationsById: () => deleteApplicationsById,
57
57
  deleteBucketsById: () => deleteBucketsById,
58
58
  deleteExtractionDocumentsById: () => deleteExtractionDocumentsById,
59
- deleteExtractionFoldersById: () => deleteExtractionFoldersById,
60
59
  deleteExtractionSchemaFieldsById: () => deleteExtractionSchemaFieldsById,
61
60
  deleteMessagesById: () => deleteMessagesById,
62
61
  deleteNotificationPreferencesById: () => deleteNotificationPreferencesById,
@@ -99,11 +98,7 @@ __export(index_exports, {
99
98
  getExtractionDocuments: () => getExtractionDocuments,
100
99
  getExtractionDocumentsById: () => getExtractionDocumentsById,
101
100
  getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
102
- getExtractionDocumentsFolderByFolderId: () => getExtractionDocumentsFolderByFolderId,
103
101
  getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
104
- getExtractionFolders: () => getExtractionFolders,
105
- getExtractionFoldersById: () => getExtractionFoldersById,
106
- getExtractionFoldersWorkspaceByWorkspaceId: () => getExtractionFoldersWorkspaceByWorkspaceId,
107
102
  getExtractionResultsById: () => getExtractionResultsById,
108
103
  getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
109
104
  getExtractionSchemaFields: () => getExtractionSchemaFields,
@@ -160,8 +155,6 @@ __export(index_exports, {
160
155
  getWebhookConfigsById: () => getWebhookConfigsById,
161
156
  getWebhookDeliveries: () => getWebhookDeliveries,
162
157
  getWebhookDeliveriesById: () => getWebhookDeliveriesById,
163
- getWebhookEvents: () => getWebhookEvents,
164
- getWebhookEventsById: () => getWebhookEventsById,
165
158
  getWorkspaceMemberships: () => getWorkspaceMemberships,
166
159
  getWorkspaces: () => getWorkspaces,
167
160
  getWorkspacesById: () => getWorkspacesById,
@@ -181,7 +174,6 @@ __export(index_exports, {
181
174
  patchConfigsByKey: () => patchConfigsByKey,
182
175
  patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
183
176
  patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
184
- patchExtractionFoldersById: () => patchExtractionFoldersById,
185
177
  patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
186
178
  patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
187
179
  patchExtractionSchemaFieldsById: () => patchExtractionSchemaFieldsById,
@@ -226,11 +218,11 @@ __export(index_exports, {
226
218
  postBuckets: () => postBuckets,
227
219
  postConfigs: () => postConfigs,
228
220
  postDocumentsBulkDelete: () => postDocumentsBulkDelete,
221
+ postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
229
222
  postExtractionBatches: () => postExtractionBatches,
230
223
  postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
231
224
  postExtractionDocumentsByIdView: () => postExtractionDocumentsByIdView,
232
225
  postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
233
- postExtractionFolders: () => postExtractionFolders,
234
226
  postExtractionResults: () => postExtractionResults,
235
227
  postExtractionSchemaFields: () => postExtractionSchemaFields,
236
228
  postExtractionSchemas: () => postExtractionSchemas,
@@ -1196,11 +1188,6 @@ var getSearchIndexes = (options) => (options.client ?? client).get({
1196
1188
  url: "/search/indexes",
1197
1189
  ...options
1198
1190
  });
1199
- var getExtractionDocumentsFolderByFolderId = (options) => (options.client ?? client).get({
1200
- security: [{ scheme: "bearer", type: "http" }],
1201
- url: "/extraction/documents/folder/{folder_id}",
1202
- ...options
1203
- });
1204
1191
  var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
1205
1192
  security: [{ scheme: "bearer", type: "http" }],
1206
1193
  url: "/credit-packages/slug/{slug}",
@@ -1429,20 +1416,6 @@ var postInvitationsAcceptByToken = (options) => (options.client ?? client).post(
1429
1416
  ...options.headers
1430
1417
  }
1431
1418
  });
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
- });
1446
1419
  var getExtractionBatchesByIdUploadUrls = (options) => (options.client ?? client).get({
1447
1420
  security: [{ scheme: "bearer", type: "http" }],
1448
1421
  url: "/extraction/batches/{id}/upload-urls",
@@ -1620,25 +1593,6 @@ var getSearch = (options) => (options.client ?? client).get({
1620
1593
  url: "/search",
1621
1594
  ...options
1622
1595
  });
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
- });
1642
1596
  var getInvitations = (options) => (options.client ?? client).get({
1643
1597
  security: [{ scheme: "bearer", type: "http" }],
1644
1598
  url: "/invitations",
@@ -1742,6 +1696,15 @@ var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch(
1742
1696
  ...options.headers
1743
1697
  }
1744
1698
  });
1699
+ var postDocumentsPresignedUpload = (options) => (options.client ?? client).post({
1700
+ security: [{ scheme: "bearer", type: "http" }],
1701
+ url: "/documents/presigned_upload",
1702
+ ...options,
1703
+ headers: {
1704
+ "Content-Type": "application/vnd.api+json",
1705
+ ...options.headers
1706
+ }
1707
+ });
1745
1708
  var getMessagesSearch = (options) => (options.client ?? client).get({
1746
1709
  security: [{ scheme: "bearer", type: "http" }],
1747
1710
  url: "/messages/search",
@@ -1972,16 +1935,6 @@ var deleteAiGraphNodesById = (options) => (options.client ?? client).delete({
1972
1935
  url: "/ai/graph/nodes/{id}",
1973
1936
  ...options
1974
1937
  });
1975
- var getWebhookEventsById = (options) => (options.client ?? client).get({
1976
- security: [{ scheme: "bearer", type: "http" }],
1977
- url: "/webhook_events/{id}",
1978
- ...options
1979
- });
1980
- var getWebhookEvents = (options) => (options.client ?? client).get({
1981
- security: [{ scheme: "bearer", type: "http" }],
1982
- url: "/webhook_events",
1983
- ...options
1984
- });
1985
1938
  var patchWalletAddonsByAddonSlugCancel = (options) => (options.client ?? client).patch({
1986
1939
  security: [{ scheme: "bearer", type: "http" }],
1987
1940
  url: "/wallet/addons/{addon_slug}/cancel",
@@ -2428,11 +2381,6 @@ var patchUserProfilesById = (options) => (options.client ?? client).patch({
2428
2381
  ...options.headers
2429
2382
  }
2430
2383
  });
2431
- var getExtractionFoldersWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2432
- security: [{ scheme: "bearer", type: "http" }],
2433
- url: "/extraction/folders/workspace/{workspace_id}",
2434
- ...options
2435
- });
2436
2384
  var deleteObjectsById = (options) => (options.client ?? client).delete({
2437
2385
  security: [{ scheme: "bearer", type: "http" }],
2438
2386
  url: "/objects/{id}",
@@ -2979,7 +2927,6 @@ async function collectStreamedMessage(stream) {
2979
2927
  deleteApplicationsById,
2980
2928
  deleteBucketsById,
2981
2929
  deleteExtractionDocumentsById,
2982
- deleteExtractionFoldersById,
2983
2930
  deleteExtractionSchemaFieldsById,
2984
2931
  deleteMessagesById,
2985
2932
  deleteNotificationPreferencesById,
@@ -3022,11 +2969,7 @@ async function collectStreamedMessage(stream) {
3022
2969
  getExtractionDocuments,
3023
2970
  getExtractionDocumentsById,
3024
2971
  getExtractionDocumentsByIdStatus,
3025
- getExtractionDocumentsFolderByFolderId,
3026
2972
  getExtractionDocumentsWorkspaceByWorkspaceId,
3027
- getExtractionFolders,
3028
- getExtractionFoldersById,
3029
- getExtractionFoldersWorkspaceByWorkspaceId,
3030
2973
  getExtractionResultsById,
3031
2974
  getExtractionResultsDocumentByDocumentId,
3032
2975
  getExtractionSchemaFields,
@@ -3083,8 +3026,6 @@ async function collectStreamedMessage(stream) {
3083
3026
  getWebhookConfigsById,
3084
3027
  getWebhookDeliveries,
3085
3028
  getWebhookDeliveriesById,
3086
- getWebhookEvents,
3087
- getWebhookEventsById,
3088
3029
  getWorkspaceMemberships,
3089
3030
  getWorkspaces,
3090
3031
  getWorkspacesById,
@@ -3104,7 +3045,6 @@ async function collectStreamedMessage(stream) {
3104
3045
  patchConfigsByKey,
3105
3046
  patchExtractionDocumentsByIdFinishUpload,
3106
3047
  patchExtractionDocumentsByIdStatus,
3107
- patchExtractionFoldersById,
3108
3048
  patchExtractionResultsByIdCorrections,
3109
3049
  patchExtractionResultsByIdRegenerate,
3110
3050
  patchExtractionSchemaFieldsById,
@@ -3149,11 +3089,11 @@ async function collectStreamedMessage(stream) {
3149
3089
  postBuckets,
3150
3090
  postConfigs,
3151
3091
  postDocumentsBulkDelete,
3092
+ postDocumentsPresignedUpload,
3152
3093
  postExtractionBatches,
3153
3094
  postExtractionDocumentsBeginUpload,
3154
3095
  postExtractionDocumentsByIdView,
3155
3096
  postExtractionDocumentsUpload,
3156
- postExtractionFolders,
3157
3097
  postExtractionResults,
3158
3098
  postExtractionSchemaFields,
3159
3099
  postExtractionSchemas,
package/dist/index.mjs CHANGED
@@ -914,11 +914,6 @@ 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
- });
922
917
  var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
923
918
  security: [{ scheme: "bearer", type: "http" }],
924
919
  url: "/credit-packages/slug/{slug}",
@@ -1147,20 +1142,6 @@ var postInvitationsAcceptByToken = (options) => (options.client ?? client).post(
1147
1142
  ...options.headers
1148
1143
  }
1149
1144
  });
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
- });
1164
1145
  var getExtractionBatchesByIdUploadUrls = (options) => (options.client ?? client).get({
1165
1146
  security: [{ scheme: "bearer", type: "http" }],
1166
1147
  url: "/extraction/batches/{id}/upload-urls",
@@ -1338,25 +1319,6 @@ var getSearch = (options) => (options.client ?? client).get({
1338
1319
  url: "/search",
1339
1320
  ...options
1340
1321
  });
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
- });
1360
1322
  var getInvitations = (options) => (options.client ?? client).get({
1361
1323
  security: [{ scheme: "bearer", type: "http" }],
1362
1324
  url: "/invitations",
@@ -1460,6 +1422,15 @@ var patchUsersByIdResetPassword = (options) => (options.client ?? client).patch(
1460
1422
  ...options.headers
1461
1423
  }
1462
1424
  });
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
+ });
1463
1434
  var getMessagesSearch = (options) => (options.client ?? client).get({
1464
1435
  security: [{ scheme: "bearer", type: "http" }],
1465
1436
  url: "/messages/search",
@@ -1690,16 +1661,6 @@ var deleteAiGraphNodesById = (options) => (options.client ?? client).delete({
1690
1661
  url: "/ai/graph/nodes/{id}",
1691
1662
  ...options
1692
1663
  });
1693
- var getWebhookEventsById = (options) => (options.client ?? client).get({
1694
- security: [{ scheme: "bearer", type: "http" }],
1695
- url: "/webhook_events/{id}",
1696
- ...options
1697
- });
1698
- var getWebhookEvents = (options) => (options.client ?? client).get({
1699
- security: [{ scheme: "bearer", type: "http" }],
1700
- url: "/webhook_events",
1701
- ...options
1702
- });
1703
1664
  var patchWalletAddonsByAddonSlugCancel = (options) => (options.client ?? client).patch({
1704
1665
  security: [{ scheme: "bearer", type: "http" }],
1705
1666
  url: "/wallet/addons/{addon_slug}/cancel",
@@ -2146,11 +2107,6 @@ var patchUserProfilesById = (options) => (options.client ?? client).patch({
2146
2107
  ...options.headers
2147
2108
  }
2148
2109
  });
2149
- var getExtractionFoldersWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2150
- security: [{ scheme: "bearer", type: "http" }],
2151
- url: "/extraction/folders/workspace/{workspace_id}",
2152
- ...options
2153
- });
2154
2110
  var deleteObjectsById = (options) => (options.client ?? client).delete({
2155
2111
  security: [{ scheme: "bearer", type: "http" }],
2156
2112
  url: "/objects/{id}",
@@ -2696,7 +2652,6 @@ export {
2696
2652
  deleteApplicationsById,
2697
2653
  deleteBucketsById,
2698
2654
  deleteExtractionDocumentsById,
2699
- deleteExtractionFoldersById,
2700
2655
  deleteExtractionSchemaFieldsById,
2701
2656
  deleteMessagesById,
2702
2657
  deleteNotificationPreferencesById,
@@ -2739,11 +2694,7 @@ export {
2739
2694
  getExtractionDocuments,
2740
2695
  getExtractionDocumentsById,
2741
2696
  getExtractionDocumentsByIdStatus,
2742
- getExtractionDocumentsFolderByFolderId,
2743
2697
  getExtractionDocumentsWorkspaceByWorkspaceId,
2744
- getExtractionFolders,
2745
- getExtractionFoldersById,
2746
- getExtractionFoldersWorkspaceByWorkspaceId,
2747
2698
  getExtractionResultsById,
2748
2699
  getExtractionResultsDocumentByDocumentId,
2749
2700
  getExtractionSchemaFields,
@@ -2800,8 +2751,6 @@ export {
2800
2751
  getWebhookConfigsById,
2801
2752
  getWebhookDeliveries,
2802
2753
  getWebhookDeliveriesById,
2803
- getWebhookEvents,
2804
- getWebhookEventsById,
2805
2754
  getWorkspaceMemberships,
2806
2755
  getWorkspaces,
2807
2756
  getWorkspacesById,
@@ -2821,7 +2770,6 @@ export {
2821
2770
  patchConfigsByKey,
2822
2771
  patchExtractionDocumentsByIdFinishUpload,
2823
2772
  patchExtractionDocumentsByIdStatus,
2824
- patchExtractionFoldersById,
2825
2773
  patchExtractionResultsByIdCorrections,
2826
2774
  patchExtractionResultsByIdRegenerate,
2827
2775
  patchExtractionSchemaFieldsById,
@@ -2866,11 +2814,11 @@ export {
2866
2814
  postBuckets,
2867
2815
  postConfigs,
2868
2816
  postDocumentsBulkDelete,
2817
+ postDocumentsPresignedUpload,
2869
2818
  postExtractionBatches,
2870
2819
  postExtractionDocumentsBeginUpload,
2871
2820
  postExtractionDocumentsByIdView,
2872
2821
  postExtractionDocumentsUpload,
2873
- postExtractionFolders,
2874
2822
  postExtractionResults,
2875
2823
  postExtractionSchemaFields,
2876
2824
  postExtractionSchemas,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.4.9",
3
+ "version": "0.5.1",
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",