@gpt-core/client 0.6.8 → 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 +454 -105
- package/dist/index.d.ts +454 -105
- package/dist/index.js +42 -12
- package/dist/index.mjs +38 -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,
|
|
@@ -229,8 +232,8 @@ __export(index_exports, {
|
|
|
229
232
|
postAgentVersions: () => postAgentVersions,
|
|
230
233
|
postAgents: () => postAgents,
|
|
231
234
|
postAgentsByIdClone: () => postAgentsByIdClone,
|
|
232
|
-
postAgentsByIdLearnFromDocument: () => postAgentsByIdLearnFromDocument,
|
|
233
235
|
postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
|
|
236
|
+
postAgentsByIdTeach: () => postAgentsByIdTeach,
|
|
234
237
|
postAgentsByIdTest: () => postAgentsByIdTest,
|
|
235
238
|
postAgentsByIdValidate: () => postAgentsByIdValidate,
|
|
236
239
|
postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
|
|
@@ -1818,6 +1821,18 @@ var postStorageSignDownload = (options) => (options.client ?? client).post({
|
|
|
1818
1821
|
...options.headers
|
|
1819
1822
|
}
|
|
1820
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
|
+
});
|
|
1821
1836
|
var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
|
|
1822
1837
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1823
1838
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2030,6 +2045,28 @@ var getMessagesSearch = (options) => (options.client ?? client).get({
|
|
|
2030
2045
|
url: "/messages/search",
|
|
2031
2046
|
...options
|
|
2032
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
|
+
});
|
|
2033
2070
|
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
2034
2071
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2035
2072
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2347,16 +2384,6 @@ var postAiConversations = (options) => (options.client ?? client).post({
|
|
|
2347
2384
|
...options.headers
|
|
2348
2385
|
}
|
|
2349
2386
|
});
|
|
2350
|
-
var postAgentsByIdLearnFromDocument = (options) => (options.client ?? client).post({
|
|
2351
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2352
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2353
|
-
url: "/agents/{id}/learn_from_document",
|
|
2354
|
-
...options,
|
|
2355
|
-
headers: {
|
|
2356
|
-
"Content-Type": "application/vnd.api+json",
|
|
2357
|
-
...options.headers
|
|
2358
|
-
}
|
|
2359
|
-
});
|
|
2360
2387
|
var postAiSearch = (options) => (options.client ?? client).post({
|
|
2361
2388
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2362
2389
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3725,6 +3752,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3725
3752
|
deleteTenantsById,
|
|
3726
3753
|
deleteThreadsById,
|
|
3727
3754
|
deleteTrainingExamplesById,
|
|
3755
|
+
deleteTrainingSessionsById,
|
|
3728
3756
|
deleteUserProfilesById,
|
|
3729
3757
|
deleteWebhookConfigsById,
|
|
3730
3758
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
@@ -3763,6 +3791,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3763
3791
|
getExtractionDocumentsByIdStatus,
|
|
3764
3792
|
getExtractionDocumentsByIdView,
|
|
3765
3793
|
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
3794
|
+
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
3766
3795
|
getExtractionResultsById,
|
|
3767
3796
|
getExtractionResultsDocumentByDocumentId,
|
|
3768
3797
|
getExtractionSchemaFields,
|
|
@@ -3814,6 +3843,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3814
3843
|
getThreadsSearch,
|
|
3815
3844
|
getTrainingExamples,
|
|
3816
3845
|
getTrainingExamplesById,
|
|
3846
|
+
getTrainingSessionsById,
|
|
3817
3847
|
getTransactions,
|
|
3818
3848
|
getTransactionsById,
|
|
3819
3849
|
getUserProfiles,
|
|
@@ -3886,8 +3916,8 @@ async function collectStreamedMessage(stream) {
|
|
|
3886
3916
|
postAgentVersions,
|
|
3887
3917
|
postAgents,
|
|
3888
3918
|
postAgentsByIdClone,
|
|
3889
|
-
postAgentsByIdLearnFromDocument,
|
|
3890
3919
|
postAgentsByIdPublishVersion,
|
|
3920
|
+
postAgentsByIdTeach,
|
|
3891
3921
|
postAgentsByIdTest,
|
|
3892
3922
|
postAgentsByIdValidate,
|
|
3893
3923
|
postAgentsCloneForWorkspace,
|
package/dist/index.mjs
CHANGED
|
@@ -1510,6 +1510,18 @@ var postStorageSignDownload = (options) => (options.client ?? client).post({
|
|
|
1510
1510
|
...options.headers
|
|
1511
1511
|
}
|
|
1512
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
|
+
});
|
|
1513
1525
|
var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
|
|
1514
1526
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1515
1527
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1722,6 +1734,28 @@ var getMessagesSearch = (options) => (options.client ?? client).get({
|
|
|
1722
1734
|
url: "/messages/search",
|
|
1723
1735
|
...options
|
|
1724
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
|
+
});
|
|
1725
1759
|
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
1726
1760
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1727
1761
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2039,16 +2073,6 @@ var postAiConversations = (options) => (options.client ?? client).post({
|
|
|
2039
2073
|
...options.headers
|
|
2040
2074
|
}
|
|
2041
2075
|
});
|
|
2042
|
-
var postAgentsByIdLearnFromDocument = (options) => (options.client ?? client).post({
|
|
2043
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2044
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2045
|
-
url: "/agents/{id}/learn_from_document",
|
|
2046
|
-
...options,
|
|
2047
|
-
headers: {
|
|
2048
|
-
"Content-Type": "application/vnd.api+json",
|
|
2049
|
-
...options.headers
|
|
2050
|
-
}
|
|
2051
|
-
});
|
|
2052
2076
|
var postAiSearch = (options) => (options.client ?? client).post({
|
|
2053
2077
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2054
2078
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3416,6 +3440,7 @@ export {
|
|
|
3416
3440
|
deleteTenantsById,
|
|
3417
3441
|
deleteThreadsById,
|
|
3418
3442
|
deleteTrainingExamplesById,
|
|
3443
|
+
deleteTrainingSessionsById,
|
|
3419
3444
|
deleteUserProfilesById,
|
|
3420
3445
|
deleteWebhookConfigsById,
|
|
3421
3446
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
@@ -3454,6 +3479,7 @@ export {
|
|
|
3454
3479
|
getExtractionDocumentsByIdStatus,
|
|
3455
3480
|
getExtractionDocumentsByIdView,
|
|
3456
3481
|
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
3482
|
+
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
3457
3483
|
getExtractionResultsById,
|
|
3458
3484
|
getExtractionResultsDocumentByDocumentId,
|
|
3459
3485
|
getExtractionSchemaFields,
|
|
@@ -3505,6 +3531,7 @@ export {
|
|
|
3505
3531
|
getThreadsSearch,
|
|
3506
3532
|
getTrainingExamples,
|
|
3507
3533
|
getTrainingExamplesById,
|
|
3534
|
+
getTrainingSessionsById,
|
|
3508
3535
|
getTransactions,
|
|
3509
3536
|
getTransactionsById,
|
|
3510
3537
|
getUserProfiles,
|
|
@@ -3577,8 +3604,8 @@ export {
|
|
|
3577
3604
|
postAgentVersions,
|
|
3578
3605
|
postAgents,
|
|
3579
3606
|
postAgentsByIdClone,
|
|
3580
|
-
postAgentsByIdLearnFromDocument,
|
|
3581
3607
|
postAgentsByIdPublishVersion,
|
|
3608
|
+
postAgentsByIdTeach,
|
|
3582
3609
|
postAgentsByIdTest,
|
|
3583
3610
|
postAgentsByIdValidate,
|
|
3584
3611
|
postAgentsCloneForWorkspace,
|
package/package.json
CHANGED