@gpt-core/client 0.3.5 → 0.3.6
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 +1092 -430
- package/dist/index.d.ts +1092 -430
- package/dist/index.js +54 -0
- package/dist/index.mjs +48 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -92,9 +92,12 @@ __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,
|
|
100
|
+
getExtractionDocumentsByIdView: () => getExtractionDocumentsByIdView,
|
|
98
101
|
getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
99
102
|
getExtractionResultsById: () => getExtractionResultsById,
|
|
100
103
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
@@ -167,6 +170,7 @@ __export(index_exports, {
|
|
|
167
170
|
patchApplicationsById: () => patchApplicationsById,
|
|
168
171
|
patchBucketsById: () => patchBucketsById,
|
|
169
172
|
patchConfigsByKey: () => patchConfigsByKey,
|
|
173
|
+
patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
|
|
170
174
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
171
175
|
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
172
176
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
@@ -211,6 +215,8 @@ __export(index_exports, {
|
|
|
211
215
|
postConfigs: () => postConfigs,
|
|
212
216
|
postDocumentsBulkDelete: () => postDocumentsBulkDelete,
|
|
213
217
|
postDocumentsPresignedUpload: () => postDocumentsPresignedUpload,
|
|
218
|
+
postExtractionBatches: () => postExtractionBatches,
|
|
219
|
+
postExtractionDocumentsBeginUpload: () => postExtractionDocumentsBeginUpload,
|
|
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,11 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
|
|
|
1731
1760
|
url: "/notification_logs/{id}",
|
|
1732
1761
|
...options
|
|
1733
1762
|
});
|
|
1763
|
+
var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
|
|
1764
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1765
|
+
url: "/extraction/documents/{id}/view",
|
|
1766
|
+
...options
|
|
1767
|
+
});
|
|
1734
1768
|
var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
|
|
1735
1769
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1736
1770
|
url: "/webhook_deliveries/{id}",
|
|
@@ -2123,6 +2157,15 @@ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client
|
|
|
2123
2157
|
url: "/extraction/documents/workspace/{workspace_id}",
|
|
2124
2158
|
...options
|
|
2125
2159
|
});
|
|
2160
|
+
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
2161
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2162
|
+
url: "/extraction/documents/begin_upload",
|
|
2163
|
+
...options,
|
|
2164
|
+
headers: {
|
|
2165
|
+
"Content-Type": "application/vnd.api+json",
|
|
2166
|
+
...options.headers
|
|
2167
|
+
}
|
|
2168
|
+
});
|
|
2126
2169
|
var deleteAiGraphEdgesById = (options) => (options.client ?? client).delete({
|
|
2127
2170
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2128
2171
|
url: "/ai/graph/edges/{id}",
|
|
@@ -2424,6 +2467,11 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
|
2424
2467
|
...options.headers
|
|
2425
2468
|
}
|
|
2426
2469
|
});
|
|
2470
|
+
var getExtractionBatchesById = (options) => (options.client ?? client).get({
|
|
2471
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2472
|
+
url: "/extraction/batches/{id}",
|
|
2473
|
+
...options
|
|
2474
|
+
});
|
|
2427
2475
|
var deleteWorkspaceMembershipsByWorkspaceIdByUserId = (options) => (options.client ?? client).delete({
|
|
2428
2476
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2429
2477
|
url: "/workspace-memberships/{workspace_id}/{user_id}",
|
|
@@ -2863,9 +2911,12 @@ async function collectStreamedMessage(stream) {
|
|
|
2863
2911
|
getCreditPackagesById,
|
|
2864
2912
|
getCreditPackagesSlugBySlug,
|
|
2865
2913
|
getDocumentsStats,
|
|
2914
|
+
getExtractionBatchesById,
|
|
2915
|
+
getExtractionBatchesWorkspaceByWorkspaceId,
|
|
2866
2916
|
getExtractionDocuments,
|
|
2867
2917
|
getExtractionDocumentsById,
|
|
2868
2918
|
getExtractionDocumentsByIdStatus,
|
|
2919
|
+
getExtractionDocumentsByIdView,
|
|
2869
2920
|
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
2870
2921
|
getExtractionResultsById,
|
|
2871
2922
|
getExtractionResultsDocumentByDocumentId,
|
|
@@ -2938,6 +2989,7 @@ async function collectStreamedMessage(stream) {
|
|
|
2938
2989
|
patchApplicationsById,
|
|
2939
2990
|
patchBucketsById,
|
|
2940
2991
|
patchConfigsByKey,
|
|
2992
|
+
patchExtractionDocumentsByIdFinishUpload,
|
|
2941
2993
|
patchExtractionDocumentsByIdStatus,
|
|
2942
2994
|
patchExtractionResultsByIdCorrections,
|
|
2943
2995
|
patchExtractionResultsByIdRegenerate,
|
|
@@ -2982,6 +3034,8 @@ async function collectStreamedMessage(stream) {
|
|
|
2982
3034
|
postConfigs,
|
|
2983
3035
|
postDocumentsBulkDelete,
|
|
2984
3036
|
postDocumentsPresignedUpload,
|
|
3037
|
+
postExtractionBatches,
|
|
3038
|
+
postExtractionDocumentsBeginUpload,
|
|
2985
3039
|
postExtractionDocumentsUpload,
|
|
2986
3040
|
postExtractionResults,
|
|
2987
3041
|
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,11 @@ var getNotificationLogsById = (options) => (options.client ?? client).get({
|
|
|
1469
1492
|
url: "/notification_logs/{id}",
|
|
1470
1493
|
...options
|
|
1471
1494
|
});
|
|
1495
|
+
var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
|
|
1496
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1497
|
+
url: "/extraction/documents/{id}/view",
|
|
1498
|
+
...options
|
|
1499
|
+
});
|
|
1472
1500
|
var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
|
|
1473
1501
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1474
1502
|
url: "/webhook_deliveries/{id}",
|
|
@@ -1861,6 +1889,15 @@ var getExtractionDocumentsWorkspaceByWorkspaceId = (options) => (options.client
|
|
|
1861
1889
|
url: "/extraction/documents/workspace/{workspace_id}",
|
|
1862
1890
|
...options
|
|
1863
1891
|
});
|
|
1892
|
+
var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
|
|
1893
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1894
|
+
url: "/extraction/documents/begin_upload",
|
|
1895
|
+
...options,
|
|
1896
|
+
headers: {
|
|
1897
|
+
"Content-Type": "application/vnd.api+json",
|
|
1898
|
+
...options.headers
|
|
1899
|
+
}
|
|
1900
|
+
});
|
|
1864
1901
|
var deleteAiGraphEdgesById = (options) => (options.client ?? client).delete({
|
|
1865
1902
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1866
1903
|
url: "/ai/graph/edges/{id}",
|
|
@@ -2162,6 +2199,11 @@ var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
|
2162
2199
|
...options.headers
|
|
2163
2200
|
}
|
|
2164
2201
|
});
|
|
2202
|
+
var getExtractionBatchesById = (options) => (options.client ?? client).get({
|
|
2203
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2204
|
+
url: "/extraction/batches/{id}",
|
|
2205
|
+
...options
|
|
2206
|
+
});
|
|
2165
2207
|
var deleteWorkspaceMembershipsByWorkspaceIdByUserId = (options) => (options.client ?? client).delete({
|
|
2166
2208
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2167
2209
|
url: "/workspace-memberships/{workspace_id}/{user_id}",
|
|
@@ -2600,9 +2642,12 @@ export {
|
|
|
2600
2642
|
getCreditPackagesById,
|
|
2601
2643
|
getCreditPackagesSlugBySlug,
|
|
2602
2644
|
getDocumentsStats,
|
|
2645
|
+
getExtractionBatchesById,
|
|
2646
|
+
getExtractionBatchesWorkspaceByWorkspaceId,
|
|
2603
2647
|
getExtractionDocuments,
|
|
2604
2648
|
getExtractionDocumentsById,
|
|
2605
2649
|
getExtractionDocumentsByIdStatus,
|
|
2650
|
+
getExtractionDocumentsByIdView,
|
|
2606
2651
|
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
2607
2652
|
getExtractionResultsById,
|
|
2608
2653
|
getExtractionResultsDocumentByDocumentId,
|
|
@@ -2675,6 +2720,7 @@ export {
|
|
|
2675
2720
|
patchApplicationsById,
|
|
2676
2721
|
patchBucketsById,
|
|
2677
2722
|
patchConfigsByKey,
|
|
2723
|
+
patchExtractionDocumentsByIdFinishUpload,
|
|
2678
2724
|
patchExtractionDocumentsByIdStatus,
|
|
2679
2725
|
patchExtractionResultsByIdCorrections,
|
|
2680
2726
|
patchExtractionResultsByIdRegenerate,
|
|
@@ -2719,6 +2765,8 @@ export {
|
|
|
2719
2765
|
postConfigs,
|
|
2720
2766
|
postDocumentsBulkDelete,
|
|
2721
2767
|
postDocumentsPresignedUpload,
|
|
2768
|
+
postExtractionBatches,
|
|
2769
|
+
postExtractionDocumentsBeginUpload,
|
|
2722
2770
|
postExtractionDocumentsUpload,
|
|
2723
2771
|
postExtractionResults,
|
|
2724
2772
|
postExtractionSchemaFields,
|
package/package.json
CHANGED