@gpt-core/client 0.6.7 → 0.6.9
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 +740 -171
- package/dist/index.d.ts +740 -171
- package/dist/index.js +66 -12
- package/dist/index.mjs +60 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68,6 +68,7 @@ __export(index_exports, {
|
|
|
68
68
|
deleteTenantsById: () => deleteTenantsById,
|
|
69
69
|
deleteThreadsById: () => deleteThreadsById,
|
|
70
70
|
deleteTrainingExamplesById: () => deleteTrainingExamplesById,
|
|
71
|
+
deleteTrainingSessionsById: () => deleteTrainingSessionsById,
|
|
71
72
|
deleteUserProfilesById: () => deleteUserProfilesById,
|
|
72
73
|
deleteWebhookConfigsById: () => deleteWebhookConfigsById,
|
|
73
74
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId: () => deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
@@ -106,6 +107,7 @@ __export(index_exports, {
|
|
|
106
107
|
getExtractionDocumentsByIdStatus: () => getExtractionDocumentsByIdStatus,
|
|
107
108
|
getExtractionDocumentsByIdView: () => getExtractionDocumentsByIdView,
|
|
108
109
|
getExtractionDocumentsWorkspaceByWorkspaceId: () => getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
110
|
+
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue: () => getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
109
111
|
getExtractionResultsById: () => getExtractionResultsById,
|
|
110
112
|
getExtractionResultsDocumentByDocumentId: () => getExtractionResultsDocumentByDocumentId,
|
|
111
113
|
getExtractionSchemaFields: () => getExtractionSchemaFields,
|
|
@@ -157,6 +159,7 @@ __export(index_exports, {
|
|
|
157
159
|
getThreadsSearch: () => getThreadsSearch,
|
|
158
160
|
getTrainingExamples: () => getTrainingExamples,
|
|
159
161
|
getTrainingExamplesById: () => getTrainingExamplesById,
|
|
162
|
+
getTrainingSessionsById: () => getTrainingSessionsById,
|
|
160
163
|
getTransactions: () => getTransactions,
|
|
161
164
|
getTransactionsById: () => getTransactionsById,
|
|
162
165
|
getUserProfiles: () => getUserProfiles,
|
|
@@ -190,7 +193,9 @@ __export(index_exports, {
|
|
|
190
193
|
patchApplicationsByIdGrantCredits: () => patchApplicationsByIdGrantCredits,
|
|
191
194
|
patchBucketsById: () => patchBucketsById,
|
|
192
195
|
patchConfigsByKey: () => patchConfigsByKey,
|
|
196
|
+
patchExtractionDocumentsByIdExclude: () => patchExtractionDocumentsByIdExclude,
|
|
193
197
|
patchExtractionDocumentsByIdFinishUpload: () => patchExtractionDocumentsByIdFinishUpload,
|
|
198
|
+
patchExtractionDocumentsByIdInclude: () => patchExtractionDocumentsByIdInclude,
|
|
194
199
|
patchExtractionDocumentsByIdStatus: () => patchExtractionDocumentsByIdStatus,
|
|
195
200
|
patchExtractionResultsByIdCorrections: () => patchExtractionResultsByIdCorrections,
|
|
196
201
|
patchExtractionResultsByIdRegenerate: () => patchExtractionResultsByIdRegenerate,
|
|
@@ -227,8 +232,8 @@ __export(index_exports, {
|
|
|
227
232
|
postAgentVersions: () => postAgentVersions,
|
|
228
233
|
postAgents: () => postAgents,
|
|
229
234
|
postAgentsByIdClone: () => postAgentsByIdClone,
|
|
230
|
-
postAgentsByIdLearnFromDocument: () => postAgentsByIdLearnFromDocument,
|
|
231
235
|
postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
|
|
236
|
+
postAgentsByIdTeach: () => postAgentsByIdTeach,
|
|
232
237
|
postAgentsByIdTest: () => postAgentsByIdTest,
|
|
233
238
|
postAgentsByIdValidate: () => postAgentsByIdValidate,
|
|
234
239
|
postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
|
|
@@ -1282,6 +1287,16 @@ var getLlmAnalyticsPlatform = (options) => (options.client ?? client).get({
|
|
|
1282
1287
|
url: "/llm_analytics/platform",
|
|
1283
1288
|
...options
|
|
1284
1289
|
});
|
|
1290
|
+
var patchExtractionDocumentsByIdExclude = (options) => (options.client ?? client).patch({
|
|
1291
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1292
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1293
|
+
url: "/extraction/documents/{id}/exclude",
|
|
1294
|
+
...options,
|
|
1295
|
+
headers: {
|
|
1296
|
+
"Content-Type": "application/vnd.api+json",
|
|
1297
|
+
...options.headers
|
|
1298
|
+
}
|
|
1299
|
+
});
|
|
1285
1300
|
var postPayments = (options) => (options.client ?? client).post({
|
|
1286
1301
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1287
1302
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1758,6 +1773,16 @@ var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).pos
|
|
|
1758
1773
|
...options.headers
|
|
1759
1774
|
}
|
|
1760
1775
|
});
|
|
1776
|
+
var patchExtractionDocumentsByIdInclude = (options) => (options.client ?? client).patch({
|
|
1777
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1778
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1779
|
+
url: "/extraction/documents/{id}/include",
|
|
1780
|
+
...options,
|
|
1781
|
+
headers: {
|
|
1782
|
+
"Content-Type": "application/vnd.api+json",
|
|
1783
|
+
...options.headers
|
|
1784
|
+
}
|
|
1785
|
+
});
|
|
1761
1786
|
var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
1762
1787
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1763
1788
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1796,6 +1821,18 @@ var postStorageSignDownload = (options) => (options.client ?? client).post({
|
|
|
1796
1821
|
...options.headers
|
|
1797
1822
|
}
|
|
1798
1823
|
});
|
|
1824
|
+
var deleteTrainingSessionsById = (options) => (options.client ?? client).delete({
|
|
1825
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1826
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1827
|
+
url: "/training_sessions/{id}",
|
|
1828
|
+
...options
|
|
1829
|
+
});
|
|
1830
|
+
var getTrainingSessionsById = (options) => (options.client ?? client).get({
|
|
1831
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1832
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1833
|
+
url: "/training_sessions/{id}",
|
|
1834
|
+
...options
|
|
1835
|
+
});
|
|
1799
1836
|
var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
|
|
1800
1837
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1801
1838
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2008,6 +2045,28 @@ var getMessagesSearch = (options) => (options.client ?? client).get({
|
|
|
2008
2045
|
url: "/messages/search",
|
|
2009
2046
|
...options
|
|
2010
2047
|
});
|
|
2048
|
+
var postAgentsByIdTeach = (options) => (options.client ?? client).post({
|
|
2049
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2050
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2051
|
+
url: "/agents/{id}/teach",
|
|
2052
|
+
...options,
|
|
2053
|
+
headers: {
|
|
2054
|
+
"Content-Type": "application/vnd.api+json",
|
|
2055
|
+
...options.headers
|
|
2056
|
+
}
|
|
2057
|
+
});
|
|
2058
|
+
var getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = (options) => (options.client ?? client).get({
|
|
2059
|
+
querySerializer: {
|
|
2060
|
+
parameters: {
|
|
2061
|
+
filter: { object: { style: "form" } },
|
|
2062
|
+
page: { object: { style: "form" } },
|
|
2063
|
+
fields: { object: { style: "form" } }
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2067
|
+
url: "/extraction/documents/workspace/{workspace_id}/review_queue",
|
|
2068
|
+
...options
|
|
2069
|
+
});
|
|
2011
2070
|
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
2012
2071
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2013
2072
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2325,16 +2384,6 @@ var postAiConversations = (options) => (options.client ?? client).post({
|
|
|
2325
2384
|
...options.headers
|
|
2326
2385
|
}
|
|
2327
2386
|
});
|
|
2328
|
-
var postAgentsByIdLearnFromDocument = (options) => (options.client ?? client).post({
|
|
2329
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2330
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2331
|
-
url: "/agents/{id}/learn_from_document",
|
|
2332
|
-
...options,
|
|
2333
|
-
headers: {
|
|
2334
|
-
"Content-Type": "application/vnd.api+json",
|
|
2335
|
-
...options.headers
|
|
2336
|
-
}
|
|
2337
|
-
});
|
|
2338
2387
|
var postAiSearch = (options) => (options.client ?? client).post({
|
|
2339
2388
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2340
2389
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3703,6 +3752,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3703
3752
|
deleteTenantsById,
|
|
3704
3753
|
deleteThreadsById,
|
|
3705
3754
|
deleteTrainingExamplesById,
|
|
3755
|
+
deleteTrainingSessionsById,
|
|
3706
3756
|
deleteUserProfilesById,
|
|
3707
3757
|
deleteWebhookConfigsById,
|
|
3708
3758
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
@@ -3741,6 +3791,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3741
3791
|
getExtractionDocumentsByIdStatus,
|
|
3742
3792
|
getExtractionDocumentsByIdView,
|
|
3743
3793
|
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
3794
|
+
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
3744
3795
|
getExtractionResultsById,
|
|
3745
3796
|
getExtractionResultsDocumentByDocumentId,
|
|
3746
3797
|
getExtractionSchemaFields,
|
|
@@ -3792,6 +3843,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3792
3843
|
getThreadsSearch,
|
|
3793
3844
|
getTrainingExamples,
|
|
3794
3845
|
getTrainingExamplesById,
|
|
3846
|
+
getTrainingSessionsById,
|
|
3795
3847
|
getTransactions,
|
|
3796
3848
|
getTransactionsById,
|
|
3797
3849
|
getUserProfiles,
|
|
@@ -3825,7 +3877,9 @@ async function collectStreamedMessage(stream) {
|
|
|
3825
3877
|
patchApplicationsByIdGrantCredits,
|
|
3826
3878
|
patchBucketsById,
|
|
3827
3879
|
patchConfigsByKey,
|
|
3880
|
+
patchExtractionDocumentsByIdExclude,
|
|
3828
3881
|
patchExtractionDocumentsByIdFinishUpload,
|
|
3882
|
+
patchExtractionDocumentsByIdInclude,
|
|
3829
3883
|
patchExtractionDocumentsByIdStatus,
|
|
3830
3884
|
patchExtractionResultsByIdCorrections,
|
|
3831
3885
|
patchExtractionResultsByIdRegenerate,
|
|
@@ -3862,8 +3916,8 @@ async function collectStreamedMessage(stream) {
|
|
|
3862
3916
|
postAgentVersions,
|
|
3863
3917
|
postAgents,
|
|
3864
3918
|
postAgentsByIdClone,
|
|
3865
|
-
postAgentsByIdLearnFromDocument,
|
|
3866
3919
|
postAgentsByIdPublishVersion,
|
|
3920
|
+
postAgentsByIdTeach,
|
|
3867
3921
|
postAgentsByIdTest,
|
|
3868
3922
|
postAgentsByIdValidate,
|
|
3869
3923
|
postAgentsCloneForWorkspace,
|
package/dist/index.mjs
CHANGED
|
@@ -976,6 +976,16 @@ var getLlmAnalyticsPlatform = (options) => (options.client ?? client).get({
|
|
|
976
976
|
url: "/llm_analytics/platform",
|
|
977
977
|
...options
|
|
978
978
|
});
|
|
979
|
+
var patchExtractionDocumentsByIdExclude = (options) => (options.client ?? client).patch({
|
|
980
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
981
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
982
|
+
url: "/extraction/documents/{id}/exclude",
|
|
983
|
+
...options,
|
|
984
|
+
headers: {
|
|
985
|
+
"Content-Type": "application/vnd.api+json",
|
|
986
|
+
...options.headers
|
|
987
|
+
}
|
|
988
|
+
});
|
|
979
989
|
var postPayments = (options) => (options.client ?? client).post({
|
|
980
990
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
981
991
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1452,6 +1462,16 @@ var postTrainingExamplesBulkDelete = (options) => (options.client ?? client).pos
|
|
|
1452
1462
|
...options.headers
|
|
1453
1463
|
}
|
|
1454
1464
|
});
|
|
1465
|
+
var patchExtractionDocumentsByIdInclude = (options) => (options.client ?? client).patch({
|
|
1466
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1467
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1468
|
+
url: "/extraction/documents/{id}/include",
|
|
1469
|
+
...options,
|
|
1470
|
+
headers: {
|
|
1471
|
+
"Content-Type": "application/vnd.api+json",
|
|
1472
|
+
...options.headers
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1455
1475
|
var getLlmAnalyticsSummary = (options) => (options.client ?? client).get({
|
|
1456
1476
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1457
1477
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1490,6 +1510,18 @@ var postStorageSignDownload = (options) => (options.client ?? client).post({
|
|
|
1490
1510
|
...options.headers
|
|
1491
1511
|
}
|
|
1492
1512
|
});
|
|
1513
|
+
var deleteTrainingSessionsById = (options) => (options.client ?? client).delete({
|
|
1514
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1515
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1516
|
+
url: "/training_sessions/{id}",
|
|
1517
|
+
...options
|
|
1518
|
+
});
|
|
1519
|
+
var getTrainingSessionsById = (options) => (options.client ?? client).get({
|
|
1520
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1521
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1522
|
+
url: "/training_sessions/{id}",
|
|
1523
|
+
...options
|
|
1524
|
+
});
|
|
1493
1525
|
var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
|
|
1494
1526
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1495
1527
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1702,6 +1734,28 @@ var getMessagesSearch = (options) => (options.client ?? client).get({
|
|
|
1702
1734
|
url: "/messages/search",
|
|
1703
1735
|
...options
|
|
1704
1736
|
});
|
|
1737
|
+
var postAgentsByIdTeach = (options) => (options.client ?? client).post({
|
|
1738
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1739
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1740
|
+
url: "/agents/{id}/teach",
|
|
1741
|
+
...options,
|
|
1742
|
+
headers: {
|
|
1743
|
+
"Content-Type": "application/vnd.api+json",
|
|
1744
|
+
...options.headers
|
|
1745
|
+
}
|
|
1746
|
+
});
|
|
1747
|
+
var getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = (options) => (options.client ?? client).get({
|
|
1748
|
+
querySerializer: {
|
|
1749
|
+
parameters: {
|
|
1750
|
+
filter: { object: { style: "form" } },
|
|
1751
|
+
page: { object: { style: "form" } },
|
|
1752
|
+
fields: { object: { style: "form" } }
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1756
|
+
url: "/extraction/documents/workspace/{workspace_id}/review_queue",
|
|
1757
|
+
...options
|
|
1758
|
+
});
|
|
1705
1759
|
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
1706
1760
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1707
1761
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2019,16 +2073,6 @@ var postAiConversations = (options) => (options.client ?? client).post({
|
|
|
2019
2073
|
...options.headers
|
|
2020
2074
|
}
|
|
2021
2075
|
});
|
|
2022
|
-
var postAgentsByIdLearnFromDocument = (options) => (options.client ?? client).post({
|
|
2023
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2024
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2025
|
-
url: "/agents/{id}/learn_from_document",
|
|
2026
|
-
...options,
|
|
2027
|
-
headers: {
|
|
2028
|
-
"Content-Type": "application/vnd.api+json",
|
|
2029
|
-
...options.headers
|
|
2030
|
-
}
|
|
2031
|
-
});
|
|
2032
2076
|
var postAiSearch = (options) => (options.client ?? client).post({
|
|
2033
2077
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2034
2078
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3396,6 +3440,7 @@ export {
|
|
|
3396
3440
|
deleteTenantsById,
|
|
3397
3441
|
deleteThreadsById,
|
|
3398
3442
|
deleteTrainingExamplesById,
|
|
3443
|
+
deleteTrainingSessionsById,
|
|
3399
3444
|
deleteUserProfilesById,
|
|
3400
3445
|
deleteWebhookConfigsById,
|
|
3401
3446
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
@@ -3434,6 +3479,7 @@ export {
|
|
|
3434
3479
|
getExtractionDocumentsByIdStatus,
|
|
3435
3480
|
getExtractionDocumentsByIdView,
|
|
3436
3481
|
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
3482
|
+
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
3437
3483
|
getExtractionResultsById,
|
|
3438
3484
|
getExtractionResultsDocumentByDocumentId,
|
|
3439
3485
|
getExtractionSchemaFields,
|
|
@@ -3485,6 +3531,7 @@ export {
|
|
|
3485
3531
|
getThreadsSearch,
|
|
3486
3532
|
getTrainingExamples,
|
|
3487
3533
|
getTrainingExamplesById,
|
|
3534
|
+
getTrainingSessionsById,
|
|
3488
3535
|
getTransactions,
|
|
3489
3536
|
getTransactionsById,
|
|
3490
3537
|
getUserProfiles,
|
|
@@ -3518,7 +3565,9 @@ export {
|
|
|
3518
3565
|
patchApplicationsByIdGrantCredits,
|
|
3519
3566
|
patchBucketsById,
|
|
3520
3567
|
patchConfigsByKey,
|
|
3568
|
+
patchExtractionDocumentsByIdExclude,
|
|
3521
3569
|
patchExtractionDocumentsByIdFinishUpload,
|
|
3570
|
+
patchExtractionDocumentsByIdInclude,
|
|
3522
3571
|
patchExtractionDocumentsByIdStatus,
|
|
3523
3572
|
patchExtractionResultsByIdCorrections,
|
|
3524
3573
|
patchExtractionResultsByIdRegenerate,
|
|
@@ -3555,8 +3604,8 @@ export {
|
|
|
3555
3604
|
postAgentVersions,
|
|
3556
3605
|
postAgents,
|
|
3557
3606
|
postAgentsByIdClone,
|
|
3558
|
-
postAgentsByIdLearnFromDocument,
|
|
3559
3607
|
postAgentsByIdPublishVersion,
|
|
3608
|
+
postAgentsByIdTeach,
|
|
3560
3609
|
postAgentsByIdTest,
|
|
3561
3610
|
postAgentsByIdValidate,
|
|
3562
3611
|
postAgentsCloneForWorkspace,
|
package/package.json
CHANGED