@gpt-core/client 0.3.8 → 0.4.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.d.mts +715 -8
- package/dist/index.d.ts +715 -8
- package/dist/index.js +36 -0
- package/dist/index.mjs +32 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -93,6 +93,7 @@ __export(index_exports, {
|
|
|
93
93
|
getCreditPackagesSlugBySlug: () => getCreditPackagesSlugBySlug,
|
|
94
94
|
getDocumentsStats: () => getDocumentsStats,
|
|
95
95
|
getExtractionBatchesById: () => getExtractionBatchesById,
|
|
96
|
+
getExtractionBatchesByIdUploadUrls: () => getExtractionBatchesByIdUploadUrls,
|
|
96
97
|
getExtractionBatchesWorkspaceByWorkspaceId: () => getExtractionBatchesWorkspaceByWorkspaceId,
|
|
97
98
|
getExtractionDocuments: () => getExtractionDocuments,
|
|
98
99
|
getExtractionDocumentsById: () => getExtractionDocumentsById,
|
|
@@ -157,6 +158,7 @@ __export(index_exports, {
|
|
|
157
158
|
getWorkspaceMemberships: () => getWorkspaceMemberships,
|
|
158
159
|
getWorkspaces: () => getWorkspaces,
|
|
159
160
|
getWorkspacesById: () => getWorkspacesById,
|
|
161
|
+
getWorkspacesByWorkspaceIdExtractionExportsById: () => getWorkspacesByWorkspaceIdExtractionExportsById,
|
|
160
162
|
getWorkspacesMine: () => getWorkspacesMine,
|
|
161
163
|
handleApiError: () => handleApiError,
|
|
162
164
|
isRetryableError: () => isRetryableError,
|
|
@@ -199,6 +201,7 @@ __export(index_exports, {
|
|
|
199
201
|
postAgentsByIdClone: () => postAgentsByIdClone,
|
|
200
202
|
postAgentsByIdTest: () => postAgentsByIdTest,
|
|
201
203
|
postAgentsByIdValidate: () => postAgentsByIdValidate,
|
|
204
|
+
postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
|
|
202
205
|
postAgentsPredict: () => postAgentsPredict,
|
|
203
206
|
postAiChunksSearch: () => postAiChunksSearch,
|
|
204
207
|
postAiConversations: () => postAiConversations,
|
|
@@ -258,6 +261,7 @@ __export(index_exports, {
|
|
|
258
261
|
postWebhookDeliveriesByIdRetry: () => postWebhookDeliveriesByIdRetry,
|
|
259
262
|
postWorkspaceMemberships: () => postWorkspaceMemberships,
|
|
260
263
|
postWorkspaces: () => postWorkspaces,
|
|
264
|
+
postWorkspacesByWorkspaceIdExtractionExports: () => postWorkspacesByWorkspaceIdExtractionExports,
|
|
261
265
|
retryWithBackoff: () => retryWithBackoff,
|
|
262
266
|
sleep: () => sleep,
|
|
263
267
|
streamMessage: () => streamMessage,
|
|
@@ -1410,6 +1414,11 @@ var postInvitationsAcceptByToken = (options) => (options.client ?? client).post(
|
|
|
1410
1414
|
...options.headers
|
|
1411
1415
|
}
|
|
1412
1416
|
});
|
|
1417
|
+
var getExtractionBatchesByIdUploadUrls = (options) => (options.client ?? client).get({
|
|
1418
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1419
|
+
url: "/extraction/batches/{id}/upload-urls",
|
|
1420
|
+
...options
|
|
1421
|
+
});
|
|
1413
1422
|
var postDocumentsBulkDelete = (options) => (options.client ?? client).post({
|
|
1414
1423
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1415
1424
|
url: "/documents/bulk_delete",
|
|
@@ -1437,6 +1446,15 @@ var postThreadsByIdMessages = (options) => (options.client ?? client).post({
|
|
|
1437
1446
|
...options.headers
|
|
1438
1447
|
}
|
|
1439
1448
|
});
|
|
1449
|
+
var postAgentsCloneForWorkspace = (options) => (options.client ?? client).post({
|
|
1450
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1451
|
+
url: "/agents/clone_for_workspace",
|
|
1452
|
+
...options,
|
|
1453
|
+
headers: {
|
|
1454
|
+
"Content-Type": "application/vnd.api+json",
|
|
1455
|
+
...options.headers
|
|
1456
|
+
}
|
|
1457
|
+
});
|
|
1440
1458
|
var patchInvitationsByIdAccept = (options) => (options.client ?? client).patch({
|
|
1441
1459
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1442
1460
|
url: "/invitations/{id}/accept",
|
|
@@ -1807,6 +1825,11 @@ var postTrainingExamples = (options) => (options.client ?? client).post({
|
|
|
1807
1825
|
...options.headers
|
|
1808
1826
|
}
|
|
1809
1827
|
});
|
|
1828
|
+
var getWorkspacesByWorkspaceIdExtractionExportsById = (options) => (options.client ?? client).get({
|
|
1829
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1830
|
+
url: "/workspaces/{workspace_id}/extraction/exports/{id}",
|
|
1831
|
+
...options
|
|
1832
|
+
});
|
|
1810
1833
|
var getBuckets = (options) => (options.client ?? client).get({
|
|
1811
1834
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1812
1835
|
url: "/buckets",
|
|
@@ -2476,6 +2499,15 @@ var getExtractionBatchesById = (options) => (options.client ?? client).get({
|
|
|
2476
2499
|
url: "/extraction/batches/{id}",
|
|
2477
2500
|
...options
|
|
2478
2501
|
});
|
|
2502
|
+
var postWorkspacesByWorkspaceIdExtractionExports = (options) => (options.client ?? client).post({
|
|
2503
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2504
|
+
url: "/workspaces/{workspace_id}/extraction/exports",
|
|
2505
|
+
...options,
|
|
2506
|
+
headers: {
|
|
2507
|
+
"Content-Type": "application/vnd.api+json",
|
|
2508
|
+
...options.headers
|
|
2509
|
+
}
|
|
2510
|
+
});
|
|
2479
2511
|
var deleteWorkspaceMembershipsByWorkspaceIdByUserId = (options) => (options.client ?? client).delete({
|
|
2480
2512
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2481
2513
|
url: "/workspace-memberships/{workspace_id}/{user_id}",
|
|
@@ -2916,6 +2948,7 @@ async function collectStreamedMessage(stream) {
|
|
|
2916
2948
|
getCreditPackagesSlugBySlug,
|
|
2917
2949
|
getDocumentsStats,
|
|
2918
2950
|
getExtractionBatchesById,
|
|
2951
|
+
getExtractionBatchesByIdUploadUrls,
|
|
2919
2952
|
getExtractionBatchesWorkspaceByWorkspaceId,
|
|
2920
2953
|
getExtractionDocuments,
|
|
2921
2954
|
getExtractionDocumentsById,
|
|
@@ -2980,6 +3013,7 @@ async function collectStreamedMessage(stream) {
|
|
|
2980
3013
|
getWorkspaceMemberships,
|
|
2981
3014
|
getWorkspaces,
|
|
2982
3015
|
getWorkspacesById,
|
|
3016
|
+
getWorkspacesByWorkspaceIdExtractionExportsById,
|
|
2983
3017
|
getWorkspacesMine,
|
|
2984
3018
|
handleApiError,
|
|
2985
3019
|
isRetryableError,
|
|
@@ -3022,6 +3056,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3022
3056
|
postAgentsByIdClone,
|
|
3023
3057
|
postAgentsByIdTest,
|
|
3024
3058
|
postAgentsByIdValidate,
|
|
3059
|
+
postAgentsCloneForWorkspace,
|
|
3025
3060
|
postAgentsPredict,
|
|
3026
3061
|
postAiChunksSearch,
|
|
3027
3062
|
postAiConversations,
|
|
@@ -3081,6 +3116,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3081
3116
|
postWebhookDeliveriesByIdRetry,
|
|
3082
3117
|
postWorkspaceMemberships,
|
|
3083
3118
|
postWorkspaces,
|
|
3119
|
+
postWorkspacesByWorkspaceIdExtractionExports,
|
|
3084
3120
|
retryWithBackoff,
|
|
3085
3121
|
sleep,
|
|
3086
3122
|
streamMessage,
|
package/dist/index.mjs
CHANGED
|
@@ -1142,6 +1142,11 @@ var postInvitationsAcceptByToken = (options) => (options.client ?? client).post(
|
|
|
1142
1142
|
...options.headers
|
|
1143
1143
|
}
|
|
1144
1144
|
});
|
|
1145
|
+
var getExtractionBatchesByIdUploadUrls = (options) => (options.client ?? client).get({
|
|
1146
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1147
|
+
url: "/extraction/batches/{id}/upload-urls",
|
|
1148
|
+
...options
|
|
1149
|
+
});
|
|
1145
1150
|
var postDocumentsBulkDelete = (options) => (options.client ?? client).post({
|
|
1146
1151
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1147
1152
|
url: "/documents/bulk_delete",
|
|
@@ -1169,6 +1174,15 @@ var postThreadsByIdMessages = (options) => (options.client ?? client).post({
|
|
|
1169
1174
|
...options.headers
|
|
1170
1175
|
}
|
|
1171
1176
|
});
|
|
1177
|
+
var postAgentsCloneForWorkspace = (options) => (options.client ?? client).post({
|
|
1178
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1179
|
+
url: "/agents/clone_for_workspace",
|
|
1180
|
+
...options,
|
|
1181
|
+
headers: {
|
|
1182
|
+
"Content-Type": "application/vnd.api+json",
|
|
1183
|
+
...options.headers
|
|
1184
|
+
}
|
|
1185
|
+
});
|
|
1172
1186
|
var patchInvitationsByIdAccept = (options) => (options.client ?? client).patch({
|
|
1173
1187
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1174
1188
|
url: "/invitations/{id}/accept",
|
|
@@ -1539,6 +1553,11 @@ var postTrainingExamples = (options) => (options.client ?? client).post({
|
|
|
1539
1553
|
...options.headers
|
|
1540
1554
|
}
|
|
1541
1555
|
});
|
|
1556
|
+
var getWorkspacesByWorkspaceIdExtractionExportsById = (options) => (options.client ?? client).get({
|
|
1557
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1558
|
+
url: "/workspaces/{workspace_id}/extraction/exports/{id}",
|
|
1559
|
+
...options
|
|
1560
|
+
});
|
|
1542
1561
|
var getBuckets = (options) => (options.client ?? client).get({
|
|
1543
1562
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1544
1563
|
url: "/buckets",
|
|
@@ -2208,6 +2227,15 @@ var getExtractionBatchesById = (options) => (options.client ?? client).get({
|
|
|
2208
2227
|
url: "/extraction/batches/{id}",
|
|
2209
2228
|
...options
|
|
2210
2229
|
});
|
|
2230
|
+
var postWorkspacesByWorkspaceIdExtractionExports = (options) => (options.client ?? client).post({
|
|
2231
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2232
|
+
url: "/workspaces/{workspace_id}/extraction/exports",
|
|
2233
|
+
...options,
|
|
2234
|
+
headers: {
|
|
2235
|
+
"Content-Type": "application/vnd.api+json",
|
|
2236
|
+
...options.headers
|
|
2237
|
+
}
|
|
2238
|
+
});
|
|
2211
2239
|
var deleteWorkspaceMembershipsByWorkspaceIdByUserId = (options) => (options.client ?? client).delete({
|
|
2212
2240
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2213
2241
|
url: "/workspace-memberships/{workspace_id}/{user_id}",
|
|
@@ -2647,6 +2675,7 @@ export {
|
|
|
2647
2675
|
getCreditPackagesSlugBySlug,
|
|
2648
2676
|
getDocumentsStats,
|
|
2649
2677
|
getExtractionBatchesById,
|
|
2678
|
+
getExtractionBatchesByIdUploadUrls,
|
|
2650
2679
|
getExtractionBatchesWorkspaceByWorkspaceId,
|
|
2651
2680
|
getExtractionDocuments,
|
|
2652
2681
|
getExtractionDocumentsById,
|
|
@@ -2711,6 +2740,7 @@ export {
|
|
|
2711
2740
|
getWorkspaceMemberships,
|
|
2712
2741
|
getWorkspaces,
|
|
2713
2742
|
getWorkspacesById,
|
|
2743
|
+
getWorkspacesByWorkspaceIdExtractionExportsById,
|
|
2714
2744
|
getWorkspacesMine,
|
|
2715
2745
|
handleApiError,
|
|
2716
2746
|
isRetryableError,
|
|
@@ -2753,6 +2783,7 @@ export {
|
|
|
2753
2783
|
postAgentsByIdClone,
|
|
2754
2784
|
postAgentsByIdTest,
|
|
2755
2785
|
postAgentsByIdValidate,
|
|
2786
|
+
postAgentsCloneForWorkspace,
|
|
2756
2787
|
postAgentsPredict,
|
|
2757
2788
|
postAiChunksSearch,
|
|
2758
2789
|
postAiConversations,
|
|
@@ -2812,6 +2843,7 @@ export {
|
|
|
2812
2843
|
postWebhookDeliveriesByIdRetry,
|
|
2813
2844
|
postWorkspaceMemberships,
|
|
2814
2845
|
postWorkspaces,
|
|
2846
|
+
postWorkspacesByWorkspaceIdExtractionExports,
|
|
2815
2847
|
retryWithBackoff,
|
|
2816
2848
|
sleep,
|
|
2817
2849
|
streamMessage,
|
package/package.json
CHANGED