@gpt-core/client 0.3.5 → 0.3.7
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.d.mts +785 -36
- package/dist/index.d.ts +785 -36
- package/dist/index.js +58 -0
- package/dist/index.mjs +52 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -92,6 +92,8 @@ __export(index_exports, {
|
|
|
92
92
|
getCreditPackagesById: () => getCreditPackagesById,
|
|
93
93
|
getCreditPackagesSlugBySlug: () => getCreditPackagesSlugBySlug,
|
|
94
94
|
getDocumentsStats: () => getDocumentsStats,
|
|
95
|
+
getExtractionBatchesById: () => getExtractionBatchesById,
|
|
96
|
+
getExtractionBatchesWorkspaceByWorkspaceId: () => getExtractionBatchesWorkspaceByWorkspaceId,
|
|
95
97
|
getExtractionDocuments: () => getExtractionDocuments,
|
|
96
98
|
getExtractionDocumentsById: () => getExtractionDocumentsById,
|
|
97
99
|
getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
|
|
@@ -167,6 +169,7 @@ __export(index_exports, {
|
|
|
167
169
|
patchApplicationsById: () => patchApplicationsById,
|
|
168
170
|
patchBucketsById: () => patchBucketsById,
|
|
169
171
|
patchConfigsByKey: () => patchConfigsByKey,
|
|
172
|
+
patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
|
|
170
173
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
171
174
|
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
172
175
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
@@ -211,6 +214,9 @@ __export(index_exports, {
|
|
|
211
214
|
postConfigs: () => postConfigs,
|
|
212
215
|
postDocumentsBulkDelete: () => postDocumentsBulkDelete,
|
|
213
216
|
postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
|
|
217
|
+
postExtractionBatches: () => postExtractionBatches,
|
|
218
|
+
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
219
|
+
postExtractionDocumentsByIdView: () => postExtractionDocumentsByIdView,
|
|
214
220
|
postExtractionDocumentsUpload: () => postExtractionDocumentsUpload,
|
|
215
221
|
postExtractionResults: () => postExtractionResults,
|
|
216
222
|
postExtractionSchemaFields: () => postExtractionSchemaFields,
|
|
@@ -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",
|
|
@@ -1223,6 +1243,15 @@ var patchExtractionDocumentsByIdStatus = (options) => (options.client ?? client)
|
|
|
1223
1243
|
...options.headers
|
|
1224
1244
|
}
|
|
1225
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
|
+
});
|
|
1226
1255
|
var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch({
|
|
1227
1256
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1228
1257
|
url: "/workspaces/{id}/allocate",
|
|
@@ -1731,6 +1760,15 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
|
|
|
1731
1760
|
url: "/notification_logs/{id}",
|
|
1732
1761
|
...options
|
|
1733
1762
|
});
|
|
1763
|
+
var postExtractionDocumentsByIdView = (options) => (options.client ?? client).post({
|
|
1764
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1765
|
+
url: "/extraction/documents/{id}/view",
|
|
1766
|
+
...options,
|
|
1767
|
+
headers: {
|
|
1768
|
+
"Content-Type": "application/vnd.api+json",
|
|
1769
|
+
...options.headers
|
|
1770
|
+
}
|
|
1771
|
+
});
|
|
1734
1772
|
var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
|
|
1735
1773
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1736
1774
|
url: "/webhook_deliveries/{id}",
|
|
@@ -2123,6 +2161,15 @@ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client
|
|
|
2123
2161
|
url: "/extraction/documents/workspace/{workspace_id}",
|
|
2124
2162
|
...options
|
|
2125
2163
|
});
|
|
2164
|
+
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
2165
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2166
|
+
url: "/extraction/documents/begin_upload",
|
|
2167
|
+
...options,
|
|
2168
|
+
headers: {
|
|
2169
|
+
"Content-Type": "application/vnd.api+json",
|
|
2170
|
+
...options.headers
|
|
2171
|
+
}
|
|
2172
|
+
});
|
|
2126
2173
|
var deleteAiGraphEdgesById = (options) => (options.client ?? client).delete({
|
|
2127
2174
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2128
2175
|
url: "/ai/graph/edges/{id}",
|
|
@@ -2424,6 +2471,11 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
|
2424
2471
|
...options.headers
|
|
2425
2472
|
}
|
|
2426
2473
|
});
|
|
2474
|
+
var getExtractionBatchesById = (options) => (options.client ?? client).get({
|
|
2475
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2476
|
+
url: "/extraction/batches/{id}",
|
|
2477
|
+
...options
|
|
2478
|
+
});
|
|
2427
2479
|
var deleteWorkspaceMembershipsByWorkspaceIdByUserId = (options) => (options.client ?? client).delete({
|
|
2428
2480
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2429
2481
|
url: "/workspace-memberships/{workspace_id}/{user_id}",
|
|
@@ -2863,6 +2915,8 @@ async function collectStreamedMessage(stream) {
|
|
|
2863
2915
|
getCreditPackagesById,
|
|
2864
2916
|
getCreditPackagesSlugBySlug,
|
|
2865
2917
|
getDocumentsStats,
|
|
2918
|
+
getExtractionBatchesById,
|
|
2919
|
+
getExtractionBatchesWorkspaceByWorkspaceId,
|
|
2866
2920
|
getExtractionDocuments,
|
|
2867
2921
|
getExtractionDocumentsById,
|
|
2868
2922
|
getExtractionDocumentsByIdStatus,
|
|
@@ -2938,6 +2992,7 @@ async function collectStreamedMessage(stream) {
|
|
|
2938
2992
|
patchApplicationsById,
|
|
2939
2993
|
patchBucketsById,
|
|
2940
2994
|
patchConfigsByKey,
|
|
2995
|
+
patchExtractionDocumentsByIdFinishUpload,
|
|
2941
2996
|
patchExtractionDocumentsByIdStatus,
|
|
2942
2997
|
patchExtractionResultsByIdCorrections,
|
|
2943
2998
|
patchExtractionResultsByIdRegenerate,
|
|
@@ -2982,6 +3037,9 @@ async function collectStreamedMessage(stream) {
|
|
|
2982
3037
|
postConfigs,
|
|
2983
3038
|
postDocumentsBulkDelete,
|
|
2984
3039
|
postDocumentsPresignedUpload,
|
|
3040
|
+
postExtractionBatches,
|
|
3041
|
+
postExtractionDocumentsBeginUpload,
|
|
3042
|
+
postExtractionDocumentsByIdView,
|
|
2985
3043
|
postExtractionDocumentsUpload,
|
|
2986
3044
|
postExtractionResults,
|
|
2987
3045
|
postExtractionSchemaFields,
|
package/dist/index.mjs
CHANGED
|
@@ -919,6 +919,15 @@ var getCreditPackagesSlugBySlug = (options) => (options.client ?? client).get({
|
|
|
919
919
|
url: "/credit-packages/slug/{slug}",
|
|
920
920
|
...options
|
|
921
921
|
});
|
|
922
|
+
var postExtractionBatches = (options) => (options.client ?? client).post({
|
|
923
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
924
|
+
url: "/extraction/batches",
|
|
925
|
+
...options,
|
|
926
|
+
headers: {
|
|
927
|
+
"Content-Type": "application/vnd.api+json",
|
|
928
|
+
...options.headers
|
|
929
|
+
}
|
|
930
|
+
});
|
|
922
931
|
var getLlmAnalyticsPlatform = (options) => (options.client ?? client).get({
|
|
923
932
|
security: [{ scheme: "bearer", type: "http" }],
|
|
924
933
|
url: "/llm_analytics/platform",
|
|
@@ -933,6 +942,11 @@ var postPayments = (options) => (options.client ?? client).post({
|
|
|
933
942
|
...options.headers
|
|
934
943
|
}
|
|
935
944
|
});
|
|
945
|
+
var getExtractionBatchesWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
|
|
946
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
947
|
+
url: "/extraction/batches/workspace/{workspace_id}",
|
|
948
|
+
...options
|
|
949
|
+
});
|
|
936
950
|
var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
|
|
937
951
|
security: [{ scheme: "bearer", type: "http" }],
|
|
938
952
|
url: "/api_keys/{id}/revoke",
|
|
@@ -961,6 +975,15 @@ var patchExtractionDocumentsByIdStatus = (options) => (options.client ?? client)
|
|
|
961
975
|
...options.headers
|
|
962
976
|
}
|
|
963
977
|
});
|
|
978
|
+
var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? client).patch({
|
|
979
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
980
|
+
url: "/extraction/documents/{id}/finish_upload",
|
|
981
|
+
...options,
|
|
982
|
+
headers: {
|
|
983
|
+
"Content-Type": "application/vnd.api+json",
|
|
984
|
+
...options.headers
|
|
985
|
+
}
|
|
986
|
+
});
|
|
964
987
|
var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch({
|
|
965
988
|
security: [{ scheme: "bearer", type: "http" }],
|
|
966
989
|
url: "/workspaces/{id}/allocate",
|
|
@@ -1469,6 +1492,15 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
|
|
|
1469
1492
|
url: "/notification_logs/{id}",
|
|
1470
1493
|
...options
|
|
1471
1494
|
});
|
|
1495
|
+
var postExtractionDocumentsByIdView = (options) => (options.client ?? client).post({
|
|
1496
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1497
|
+
url: "/extraction/documents/{id}/view",
|
|
1498
|
+
...options,
|
|
1499
|
+
headers: {
|
|
1500
|
+
"Content-Type": "application/vnd.api+json",
|
|
1501
|
+
...options.headers
|
|
1502
|
+
}
|
|
1503
|
+
});
|
|
1472
1504
|
var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
|
|
1473
1505
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1474
1506
|
url: "/webhook_deliveries/{id}",
|
|
@@ -1861,6 +1893,15 @@ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client
|
|
|
1861
1893
|
url: "/extraction/documents/workspace/{workspace_id}",
|
|
1862
1894
|
...options
|
|
1863
1895
|
});
|
|
1896
|
+
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
1897
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1898
|
+
url: "/extraction/documents/begin_upload",
|
|
1899
|
+
...options,
|
|
1900
|
+
headers: {
|
|
1901
|
+
"Content-Type": "application/vnd.api+json",
|
|
1902
|
+
...options.headers
|
|
1903
|
+
}
|
|
1904
|
+
});
|
|
1864
1905
|
var deleteAiGraphEdgesById = (options) => (options.client ?? client).delete({
|
|
1865
1906
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1866
1907
|
url: "/ai/graph/edges/{id}",
|
|
@@ -2162,6 +2203,11 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
|
2162
2203
|
...options.headers
|
|
2163
2204
|
}
|
|
2164
2205
|
});
|
|
2206
|
+
var getExtractionBatchesById = (options) => (options.client ?? client).get({
|
|
2207
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2208
|
+
url: "/extraction/batches/{id}",
|
|
2209
|
+
...options
|
|
2210
|
+
});
|
|
2165
2211
|
var deleteWorkspaceMembershipsByWorkspaceIdByUserId = (options) => (options.client ?? client).delete({
|
|
2166
2212
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2167
2213
|
url: "/workspace-memberships/{workspace_id}/{user_id}",
|
|
@@ -2600,6 +2646,8 @@ export {
|
|
|
2600
2646
|
getCreditPackagesById,
|
|
2601
2647
|
getCreditPackagesSlugBySlug,
|
|
2602
2648
|
getDocumentsStats,
|
|
2649
|
+
getExtractionBatchesById,
|
|
2650
|
+
getExtractionBatchesWorkspaceByWorkspaceId,
|
|
2603
2651
|
getExtractionDocuments,
|
|
2604
2652
|
getExtractionDocumentsById,
|
|
2605
2653
|
getExtractionDocumentsByIdStatus,
|
|
@@ -2675,6 +2723,7 @@ export {
|
|
|
2675
2723
|
patchApplicationsById,
|
|
2676
2724
|
patchBucketsById,
|
|
2677
2725
|
patchConfigsByKey,
|
|
2726
|
+
patchExtractionDocumentsByIdFinishUpload,
|
|
2678
2727
|
patchExtractionDocumentsByIdStatus,
|
|
2679
2728
|
patchExtractionResultsByIdCorrections,
|
|
2680
2729
|
patchExtractionResultsByIdRegenerate,
|
|
@@ -2719,6 +2768,9 @@ export {
|
|
|
2719
2768
|
postConfigs,
|
|
2720
2769
|
postDocumentsBulkDelete,
|
|
2721
2770
|
postDocumentsPresignedUpload,
|
|
2771
|
+
postExtractionBatches,
|
|
2772
|
+
postExtractionDocumentsBeginUpload,
|
|
2773
|
+
postExtractionDocumentsByIdView,
|
|
2722
2774
|
postExtractionDocumentsUpload,
|
|
2723
2775
|
postExtractionResults,
|
|
2724
2776
|
postExtractionSchemaFields,
|
package/package.json
CHANGED