@gpt-core/client 0.6.73 → 0.6.91
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 +617 -160
- package/dist/index.d.ts +617 -160
- package/dist/index.js +55 -12
- package/dist/index.mjs +50 -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,8 @@ __export(index_exports, {
|
|
|
157
159
|
getThreadsSearch: () => getThreadsSearch,
|
|
158
160
|
getTrainingExamples: () => getTrainingExamples,
|
|
159
161
|
getTrainingExamplesById: () => getTrainingExamplesById,
|
|
162
|
+
getTrainingSessionsAgentsByAgentIdSessions: () => getTrainingSessionsAgentsByAgentIdSessions,
|
|
163
|
+
getTrainingSessionsById: () => getTrainingSessionsById,
|
|
160
164
|
getTransactions: () => getTransactions,
|
|
161
165
|
getTransactionsById: () => getTransactionsById,
|
|
162
166
|
getUserProfiles: () => getUserProfiles,
|
|
@@ -229,8 +233,8 @@ __export(index_exports, {
|
|
|
229
233
|
postAgentVersions: () => postAgentVersions,
|
|
230
234
|
postAgents: () => postAgents,
|
|
231
235
|
postAgentsByIdClone: () => postAgentsByIdClone,
|
|
232
|
-
postAgentsByIdLearnFromDocument: () => postAgentsByIdLearnFromDocument,
|
|
233
236
|
postAgentsByIdPublishVersion: () => postAgentsByIdPublishVersion,
|
|
237
|
+
postAgentsByIdTeach: () => postAgentsByIdTeach,
|
|
234
238
|
postAgentsByIdTest: () => postAgentsByIdTest,
|
|
235
239
|
postAgentsByIdValidate: () => postAgentsByIdValidate,
|
|
236
240
|
postAgentsCloneForWorkspace: () => postAgentsCloneForWorkspace,
|
|
@@ -1192,6 +1196,17 @@ var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
|
|
|
1192
1196
|
url: "/llm_analytics/costs",
|
|
1193
1197
|
...options
|
|
1194
1198
|
});
|
|
1199
|
+
var getTrainingSessionsAgentsByAgentIdSessions = (options) => (options.client ?? client).get({
|
|
1200
|
+
querySerializer: {
|
|
1201
|
+
parameters: {
|
|
1202
|
+
filter: { object: { style: "form" } },
|
|
1203
|
+
fields: { object: { style: "form" } }
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1207
|
+
url: "/training_sessions/agents/{agent_id}/sessions",
|
|
1208
|
+
...options
|
|
1209
|
+
});
|
|
1195
1210
|
var getAiChunksDocumentByDocumentId = (options) => (options.client ?? client).get({
|
|
1196
1211
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1197
1212
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1818,6 +1833,18 @@ var postStorageSignDownload = (options) => (options.client ?? client).post({
|
|
|
1818
1833
|
...options.headers
|
|
1819
1834
|
}
|
|
1820
1835
|
});
|
|
1836
|
+
var deleteTrainingSessionsById = (options) => (options.client ?? client).delete({
|
|
1837
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1838
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1839
|
+
url: "/training_sessions/{id}",
|
|
1840
|
+
...options
|
|
1841
|
+
});
|
|
1842
|
+
var getTrainingSessionsById = (options) => (options.client ?? client).get({
|
|
1843
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1844
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1845
|
+
url: "/training_sessions/{id}",
|
|
1846
|
+
...options
|
|
1847
|
+
});
|
|
1821
1848
|
var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
|
|
1822
1849
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1823
1850
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2030,6 +2057,28 @@ var getMessagesSearch = (options) => (options.client ?? client).get({
|
|
|
2030
2057
|
url: "/messages/search",
|
|
2031
2058
|
...options
|
|
2032
2059
|
});
|
|
2060
|
+
var postAgentsByIdTeach = (options) => (options.client ?? client).post({
|
|
2061
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2062
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2063
|
+
url: "/agents/{id}/teach",
|
|
2064
|
+
...options,
|
|
2065
|
+
headers: {
|
|
2066
|
+
"Content-Type": "application/vnd.api+json",
|
|
2067
|
+
...options.headers
|
|
2068
|
+
}
|
|
2069
|
+
});
|
|
2070
|
+
var getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = (options) => (options.client ?? client).get({
|
|
2071
|
+
querySerializer: {
|
|
2072
|
+
parameters: {
|
|
2073
|
+
filter: { object: { style: "form" } },
|
|
2074
|
+
page: { object: { style: "form" } },
|
|
2075
|
+
fields: { object: { style: "form" } }
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2079
|
+
url: "/extraction/documents/workspace/{workspace_id}/review_queue",
|
|
2080
|
+
...options
|
|
2081
|
+
});
|
|
2033
2082
|
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
2034
2083
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2035
2084
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2347,16 +2396,6 @@ var postAiConversations = (options) => (options.client ?? client).post({
|
|
|
2347
2396
|
...options.headers
|
|
2348
2397
|
}
|
|
2349
2398
|
});
|
|
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
2399
|
var postAiSearch = (options) => (options.client ?? client).post({
|
|
2361
2400
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2362
2401
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3725,6 +3764,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3725
3764
|
deleteTenantsById,
|
|
3726
3765
|
deleteThreadsById,
|
|
3727
3766
|
deleteTrainingExamplesById,
|
|
3767
|
+
deleteTrainingSessionsById,
|
|
3728
3768
|
deleteUserProfilesById,
|
|
3729
3769
|
deleteWebhookConfigsById,
|
|
3730
3770
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
@@ -3763,6 +3803,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3763
3803
|
getExtractionDocumentsByIdStatus,
|
|
3764
3804
|
getExtractionDocumentsByIdView,
|
|
3765
3805
|
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
3806
|
+
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
3766
3807
|
getExtractionResultsById,
|
|
3767
3808
|
getExtractionResultsDocumentByDocumentId,
|
|
3768
3809
|
getExtractionSchemaFields,
|
|
@@ -3814,6 +3855,8 @@ async function collectStreamedMessage(stream) {
|
|
|
3814
3855
|
getThreadsSearch,
|
|
3815
3856
|
getTrainingExamples,
|
|
3816
3857
|
getTrainingExamplesById,
|
|
3858
|
+
getTrainingSessionsAgentsByAgentIdSessions,
|
|
3859
|
+
getTrainingSessionsById,
|
|
3817
3860
|
getTransactions,
|
|
3818
3861
|
getTransactionsById,
|
|
3819
3862
|
getUserProfiles,
|
|
@@ -3886,8 +3929,8 @@ async function collectStreamedMessage(stream) {
|
|
|
3886
3929
|
postAgentVersions,
|
|
3887
3930
|
postAgents,
|
|
3888
3931
|
postAgentsByIdClone,
|
|
3889
|
-
postAgentsByIdLearnFromDocument,
|
|
3890
3932
|
postAgentsByIdPublishVersion,
|
|
3933
|
+
postAgentsByIdTeach,
|
|
3891
3934
|
postAgentsByIdTest,
|
|
3892
3935
|
postAgentsByIdValidate,
|
|
3893
3936
|
postAgentsCloneForWorkspace,
|
package/dist/index.mjs
CHANGED
|
@@ -884,6 +884,17 @@ var getLlmAnalyticsCosts = (options) => (options.client ?? client).get({
|
|
|
884
884
|
url: "/llm_analytics/costs",
|
|
885
885
|
...options
|
|
886
886
|
});
|
|
887
|
+
var getTrainingSessionsAgentsByAgentIdSessions = (options) => (options.client ?? client).get({
|
|
888
|
+
querySerializer: {
|
|
889
|
+
parameters: {
|
|
890
|
+
filter: { object: { style: "form" } },
|
|
891
|
+
fields: { object: { style: "form" } }
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
895
|
+
url: "/training_sessions/agents/{agent_id}/sessions",
|
|
896
|
+
...options
|
|
897
|
+
});
|
|
887
898
|
var getAiChunksDocumentByDocumentId = (options) => (options.client ?? client).get({
|
|
888
899
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
889
900
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1510,6 +1521,18 @@ var postStorageSignDownload = (options) => (options.client ?? client).post({
|
|
|
1510
1521
|
...options.headers
|
|
1511
1522
|
}
|
|
1512
1523
|
});
|
|
1524
|
+
var deleteTrainingSessionsById = (options) => (options.client ?? client).delete({
|
|
1525
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1526
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1527
|
+
url: "/training_sessions/{id}",
|
|
1528
|
+
...options
|
|
1529
|
+
});
|
|
1530
|
+
var getTrainingSessionsById = (options) => (options.client ?? client).get({
|
|
1531
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1532
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1533
|
+
url: "/training_sessions/{id}",
|
|
1534
|
+
...options
|
|
1535
|
+
});
|
|
1513
1536
|
var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
|
|
1514
1537
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1515
1538
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1722,6 +1745,28 @@ var getMessagesSearch = (options) => (options.client ?? client).get({
|
|
|
1722
1745
|
url: "/messages/search",
|
|
1723
1746
|
...options
|
|
1724
1747
|
});
|
|
1748
|
+
var postAgentsByIdTeach = (options) => (options.client ?? client).post({
|
|
1749
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1750
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1751
|
+
url: "/agents/{id}/teach",
|
|
1752
|
+
...options,
|
|
1753
|
+
headers: {
|
|
1754
|
+
"Content-Type": "application/vnd.api+json",
|
|
1755
|
+
...options.headers
|
|
1756
|
+
}
|
|
1757
|
+
});
|
|
1758
|
+
var getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue = (options) => (options.client ?? client).get({
|
|
1759
|
+
querySerializer: {
|
|
1760
|
+
parameters: {
|
|
1761
|
+
filter: { object: { style: "form" } },
|
|
1762
|
+
page: { object: { style: "form" } },
|
|
1763
|
+
fields: { object: { style: "form" } }
|
|
1764
|
+
}
|
|
1765
|
+
},
|
|
1766
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1767
|
+
url: "/extraction/documents/workspace/{workspace_id}/review_queue",
|
|
1768
|
+
...options
|
|
1769
|
+
});
|
|
1725
1770
|
var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
|
|
1726
1771
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1727
1772
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2039,16 +2084,6 @@ var postAiConversations = (options) => (options.client ?? client).post({
|
|
|
2039
2084
|
...options.headers
|
|
2040
2085
|
}
|
|
2041
2086
|
});
|
|
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
2087
|
var postAiSearch = (options) => (options.client ?? client).post({
|
|
2053
2088
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2054
2089
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3416,6 +3451,7 @@ export {
|
|
|
3416
3451
|
deleteTenantsById,
|
|
3417
3452
|
deleteThreadsById,
|
|
3418
3453
|
deleteTrainingExamplesById,
|
|
3454
|
+
deleteTrainingSessionsById,
|
|
3419
3455
|
deleteUserProfilesById,
|
|
3420
3456
|
deleteWebhookConfigsById,
|
|
3421
3457
|
deleteWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
@@ -3454,6 +3490,7 @@ export {
|
|
|
3454
3490
|
getExtractionDocumentsByIdStatus,
|
|
3455
3491
|
getExtractionDocumentsByIdView,
|
|
3456
3492
|
getExtractionDocumentsWorkspaceByWorkspaceId,
|
|
3493
|
+
getExtractionDocumentsWorkspaceByWorkspaceIdReviewQueue,
|
|
3457
3494
|
getExtractionResultsById,
|
|
3458
3495
|
getExtractionResultsDocumentByDocumentId,
|
|
3459
3496
|
getExtractionSchemaFields,
|
|
@@ -3505,6 +3542,8 @@ export {
|
|
|
3505
3542
|
getThreadsSearch,
|
|
3506
3543
|
getTrainingExamples,
|
|
3507
3544
|
getTrainingExamplesById,
|
|
3545
|
+
getTrainingSessionsAgentsByAgentIdSessions,
|
|
3546
|
+
getTrainingSessionsById,
|
|
3508
3547
|
getTransactions,
|
|
3509
3548
|
getTransactionsById,
|
|
3510
3549
|
getUserProfiles,
|
|
@@ -3577,8 +3616,8 @@ export {
|
|
|
3577
3616
|
postAgentVersions,
|
|
3578
3617
|
postAgents,
|
|
3579
3618
|
postAgentsByIdClone,
|
|
3580
|
-
postAgentsByIdLearnFromDocument,
|
|
3581
3619
|
postAgentsByIdPublishVersion,
|
|
3620
|
+
postAgentsByIdTeach,
|
|
3582
3621
|
postAgentsByIdTest,
|
|
3583
3622
|
postAgentsByIdValidate,
|
|
3584
3623
|
postAgentsCloneForWorkspace,
|
package/package.json
CHANGED