@gpt-core/client 0.3.6 → 0.3.8

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
@@ -97,7 +97,6 @@ __export(index_exports, {
97
97
  getExtractionDocuments: () => getExtractionDocuments,
98
98
  getExtractionDocumentsById: () => getExtractionDocumentsById,
99
99
  getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
100
- getExtractionDocumentsByIdView: () => getExtractionDocumentsByIdView,
101
100
  getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
102
101
  getExtractionResultsById: () => getExtractionResultsById,
103
102
  getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
@@ -217,6 +216,7 @@ __export(index_exports, {
217
216
  postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
218
217
  postExtractionBatches: () => postExtractionBatches,
219
218
  postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
219
+ postExtractionDocumentsByIdView: () => postExtractionDocumentsByIdView,
220
220
  postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
221
221
  postExtractionResults: () => postExtractionResults,
222
222
  postExtractionSchemaFields: () => postExtractionSchemaFields,
@@ -1760,10 +1760,14 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
1760
1760
  url: "/notification_logs/{id}",
1761
1761
  ...options
1762
1762
  });
1763
- var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
1763
+ var postExtractionDocumentsByIdView = (options) => (options.client ?? client).post({
1764
1764
  security: [{ scheme: "bearer", type: "http" }],
1765
1765
  url: "/extraction/documents/{id}/view",
1766
- ...options
1766
+ ...options,
1767
+ headers: {
1768
+ "Content-Type": "application/vnd.api+json",
1769
+ ...options.headers
1770
+ }
1767
1771
  });
1768
1772
  var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
1769
1773
  security: [{ scheme: "bearer", type: "http" }],
@@ -2916,7 +2920,6 @@ async function collectStreamedMessage(stream) {
2916
2920
  getExtractionDocuments,
2917
2921
  getExtractionDocumentsById,
2918
2922
  getExtractionDocumentsByIdStatus,
2919
- getExtractionDocumentsByIdView,
2920
2923
  getExtractionDocumentsWorkspaceByWorkspaceId,
2921
2924
  getExtractionResultsById,
2922
2925
  getExtractionResultsDocumentByDocumentId,
@@ -3036,6 +3039,7 @@ async function collectStreamedMessage(stream) {
3036
3039
  postDocumentsPresignedUpload,
3037
3040
  postExtractionBatches,
3038
3041
  postExtractionDocumentsBeginUpload,
3042
+ postExtractionDocumentsByIdView,
3039
3043
  postExtractionDocumentsUpload,
3040
3044
  postExtractionResults,
3041
3045
  postExtractionSchemaFields,
package/dist/index.mjs CHANGED
@@ -1492,10 +1492,14 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
1492
1492
  url: "/notification_logs/{id}",
1493
1493
  ...options
1494
1494
  });
1495
- var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
1495
+ var postExtractionDocumentsByIdView = (options) => (options.client ?? client).post({
1496
1496
  security: [{ scheme: "bearer", type: "http" }],
1497
1497
  url: "/extraction/documents/{id}/view",
1498
- ...options
1498
+ ...options,
1499
+ headers: {
1500
+ "Content-Type": "application/vnd.api+json",
1501
+ ...options.headers
1502
+ }
1499
1503
  });
1500
1504
  var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
1501
1505
  security: [{ scheme: "bearer", type: "http" }],
@@ -2647,7 +2651,6 @@ export {
2647
2651
  getExtractionDocuments,
2648
2652
  getExtractionDocumentsById,
2649
2653
  getExtractionDocumentsByIdStatus,
2650
- getExtractionDocumentsByIdView,
2651
2654
  getExtractionDocumentsWorkspaceByWorkspaceId,
2652
2655
  getExtractionResultsById,
2653
2656
  getExtractionResultsDocumentByDocumentId,
@@ -2767,6 +2770,7 @@ export {
2767
2770
  postDocumentsPresignedUpload,
2768
2771
  postExtractionBatches,
2769
2772
  postExtractionDocumentsBeginUpload,
2773
+ postExtractionDocumentsByIdView,
2770
2774
  postExtractionDocumentsUpload,
2771
2775
  postExtractionResults,
2772
2776
  postExtractionSchemaFields,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
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",