@gpt-core/client 0.5.9 → 0.5.92
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 +553 -129
- package/dist/index.d.ts +553 -129
- package/dist/index.js +57 -12
- package/dist/index.mjs +52 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49,6 +49,7 @@ __export(index_exports, {
|
|
|
49
49
|
calculateBackoff: () => calculateBackoff,
|
|
50
50
|
client: () => client,
|
|
51
51
|
collectStreamedMessage: () => collectStreamedMessage,
|
|
52
|
+
deleteAgentsById: () => deleteAgentsById,
|
|
52
53
|
deleteAiConversationsById: () => deleteAiConversationsById,
|
|
53
54
|
deleteAiGraphEdgesById: () => deleteAiGraphEdgesById,
|
|
54
55
|
deleteAiGraphNodesById: () => deleteAiGraphNodesById,
|
|
@@ -169,6 +170,7 @@ __export(index_exports, {
|
|
|
169
170
|
isRetryableError: () => isRetryableError,
|
|
170
171
|
paginateAll: () => paginateAll,
|
|
171
172
|
paginateToArray: () => paginateToArray,
|
|
173
|
+
patchAgentsById: () => patchAgentsById,
|
|
172
174
|
patchApiKeysById: () => patchApiKeysById,
|
|
173
175
|
patchApiKeysByIdAllocate: () => patchApiKeysByIdAllocate,
|
|
174
176
|
patchApiKeysByIdRevoke: () => patchApiKeysByIdRevoke,
|
|
@@ -194,7 +196,8 @@ __export(index_exports, {
|
|
|
194
196
|
patchTrainingExamplesById: () => patchTrainingExamplesById,
|
|
195
197
|
patchUserProfilesById: () => patchUserProfilesById,
|
|
196
198
|
patchUsersAuthResetPassword: () => patchUsersAuthResetPassword,
|
|
197
|
-
|
|
199
|
+
patchUsersByIdAdmin: () => patchUsersByIdAdmin,
|
|
200
|
+
patchUsersByIdAdminEmail: () => patchUsersByIdAdminEmail,
|
|
198
201
|
patchUsersByIdConfirmEmail: () => patchUsersByIdConfirmEmail,
|
|
199
202
|
patchUsersByIdResetPassword: () => patchUsersByIdResetPassword,
|
|
200
203
|
patchWalletAddons: () => patchWalletAddons,
|
|
@@ -205,6 +208,7 @@ __export(index_exports, {
|
|
|
205
208
|
patchWorkspaceMembershipsByWorkspaceIdByUserId: () => patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
206
209
|
patchWorkspacesById: () => patchWorkspacesById,
|
|
207
210
|
patchWorkspacesByIdAllocate: () => patchWorkspacesByIdAllocate,
|
|
211
|
+
postAgents: () => postAgents,
|
|
208
212
|
postAgentsByIdClone: () => postAgentsByIdClone,
|
|
209
213
|
postAgentsByIdLearnFromDocument: () => postAgentsByIdLearnFromDocument,
|
|
210
214
|
postAgentsByIdTest: () => postAgentsByIdTest,
|
|
@@ -1401,6 +1405,16 @@ var deleteSearchSavedById = (options) => (options.client ?? client).delete({
|
|
|
1401
1405
|
url: "/search/saved/{id}",
|
|
1402
1406
|
...options
|
|
1403
1407
|
});
|
|
1408
|
+
var patchUsersByIdAdminEmail = (options) => (options.client ?? client).patch({
|
|
1409
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1410
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1411
|
+
url: "/users/{id}/admin/email",
|
|
1412
|
+
...options,
|
|
1413
|
+
headers: {
|
|
1414
|
+
"Content-Type": "application/vnd.api+json",
|
|
1415
|
+
...options.headers
|
|
1416
|
+
}
|
|
1417
|
+
});
|
|
1404
1418
|
var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch({
|
|
1405
1419
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1406
1420
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1570,16 +1584,6 @@ var getUsersById = (options) => (options.client ?? client).get({
|
|
|
1570
1584
|
url: "/users/{id}",
|
|
1571
1585
|
...options
|
|
1572
1586
|
});
|
|
1573
|
-
var patchUsersById = (options) => (options.client ?? client).patch({
|
|
1574
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1575
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1576
|
-
url: "/users/{id}",
|
|
1577
|
-
...options,
|
|
1578
|
-
headers: {
|
|
1579
|
-
"Content-Type": "application/vnd.api+json",
|
|
1580
|
-
...options.headers
|
|
1581
|
-
}
|
|
1582
|
-
});
|
|
1583
1587
|
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
1584
1588
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1585
1589
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2141,12 +2145,38 @@ var postApiKeys = (options) => (options.client ?? client).post({
|
|
|
2141
2145
|
...options.headers
|
|
2142
2146
|
}
|
|
2143
2147
|
});
|
|
2148
|
+
var patchUsersByIdAdmin = (options) => (options.client ?? client).patch({
|
|
2149
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2150
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2151
|
+
url: "/users/{id}/admin",
|
|
2152
|
+
...options,
|
|
2153
|
+
headers: {
|
|
2154
|
+
"Content-Type": "application/vnd.api+json",
|
|
2155
|
+
...options.headers
|
|
2156
|
+
}
|
|
2157
|
+
});
|
|
2158
|
+
var deleteAgentsById = (options) => (options.client ?? client).delete({
|
|
2159
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2160
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2161
|
+
url: "/agents/{id}",
|
|
2162
|
+
...options
|
|
2163
|
+
});
|
|
2144
2164
|
var getAgentsById = (options) => (options.client ?? client).get({
|
|
2145
2165
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2146
2166
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2147
2167
|
url: "/agents/{id}",
|
|
2148
2168
|
...options
|
|
2149
2169
|
});
|
|
2170
|
+
var patchAgentsById = (options) => (options.client ?? client).patch({
|
|
2171
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2172
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2173
|
+
url: "/agents/{id}",
|
|
2174
|
+
...options,
|
|
2175
|
+
headers: {
|
|
2176
|
+
"Content-Type": "application/vnd.api+json",
|
|
2177
|
+
...options.headers
|
|
2178
|
+
}
|
|
2179
|
+
});
|
|
2150
2180
|
var deleteApiKeysById = (options) => (options.client ?? client).delete({
|
|
2151
2181
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2152
2182
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2980,6 +3010,7 @@ var getAgents = (options) => (options.client ?? client).get({
|
|
|
2980
3010
|
querySerializer: {
|
|
2981
3011
|
parameters: {
|
|
2982
3012
|
filter: { object: { style: "form" } },
|
|
3013
|
+
page: { object: { style: "form" } },
|
|
2983
3014
|
fields: { object: { style: "form" } }
|
|
2984
3015
|
}
|
|
2985
3016
|
},
|
|
@@ -2987,6 +3018,16 @@ var getAgents = (options) => (options.client ?? client).get({
|
|
|
2987
3018
|
url: "/agents",
|
|
2988
3019
|
...options
|
|
2989
3020
|
});
|
|
3021
|
+
var postAgents = (options) => (options.client ?? client).post({
|
|
3022
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
3023
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3024
|
+
url: "/agents",
|
|
3025
|
+
...options,
|
|
3026
|
+
headers: {
|
|
3027
|
+
"Content-Type": "application/vnd.api+json",
|
|
3028
|
+
...options.headers
|
|
3029
|
+
}
|
|
3030
|
+
});
|
|
2990
3031
|
var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
2991
3032
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2992
3033
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3444,6 +3485,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3444
3485
|
calculateBackoff,
|
|
3445
3486
|
client,
|
|
3446
3487
|
collectStreamedMessage,
|
|
3488
|
+
deleteAgentsById,
|
|
3447
3489
|
deleteAiConversationsById,
|
|
3448
3490
|
deleteAiGraphEdgesById,
|
|
3449
3491
|
deleteAiGraphNodesById,
|
|
@@ -3564,6 +3606,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3564
3606
|
isRetryableError,
|
|
3565
3607
|
paginateAll,
|
|
3566
3608
|
paginateToArray,
|
|
3609
|
+
patchAgentsById,
|
|
3567
3610
|
patchApiKeysById,
|
|
3568
3611
|
patchApiKeysByIdAllocate,
|
|
3569
3612
|
patchApiKeysByIdRevoke,
|
|
@@ -3589,7 +3632,8 @@ async function collectStreamedMessage(stream) {
|
|
|
3589
3632
|
patchTrainingExamplesById,
|
|
3590
3633
|
patchUserProfilesById,
|
|
3591
3634
|
patchUsersAuthResetPassword,
|
|
3592
|
-
|
|
3635
|
+
patchUsersByIdAdmin,
|
|
3636
|
+
patchUsersByIdAdminEmail,
|
|
3593
3637
|
patchUsersByIdConfirmEmail,
|
|
3594
3638
|
patchUsersByIdResetPassword,
|
|
3595
3639
|
patchWalletAddons,
|
|
@@ -3600,6 +3644,7 @@ async function collectStreamedMessage(stream) {
|
|
|
3600
3644
|
patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
3601
3645
|
patchWorkspacesById,
|
|
3602
3646
|
patchWorkspacesByIdAllocate,
|
|
3647
|
+
postAgents,
|
|
3603
3648
|
postAgentsByIdClone,
|
|
3604
3649
|
postAgentsByIdLearnFromDocument,
|
|
3605
3650
|
postAgentsByIdTest,
|
package/dist/index.mjs
CHANGED
|
@@ -1119,6 +1119,16 @@ var deleteSearchSavedById = (options) => (options.client ?? client).delete({
|
|
|
1119
1119
|
url: "/search/saved/{id}",
|
|
1120
1120
|
...options
|
|
1121
1121
|
});
|
|
1122
|
+
var patchUsersByIdAdminEmail = (options) => (options.client ?? client).patch({
|
|
1123
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1124
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1125
|
+
url: "/users/{id}/admin/email",
|
|
1126
|
+
...options,
|
|
1127
|
+
headers: {
|
|
1128
|
+
"Content-Type": "application/vnd.api+json",
|
|
1129
|
+
...options.headers
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1122
1132
|
var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch({
|
|
1123
1133
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1124
1134
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1288,16 +1298,6 @@ var getUsersById = (options) => (options.client ?? client).get({
|
|
|
1288
1298
|
url: "/users/{id}",
|
|
1289
1299
|
...options
|
|
1290
1300
|
});
|
|
1291
|
-
var patchUsersById = (options) => (options.client ?? client).patch({
|
|
1292
|
-
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1293
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1294
|
-
url: "/users/{id}",
|
|
1295
|
-
...options,
|
|
1296
|
-
headers: {
|
|
1297
|
-
"Content-Type": "application/vnd.api+json",
|
|
1298
|
-
...options.headers
|
|
1299
|
-
}
|
|
1300
|
-
});
|
|
1301
1301
|
var getExtractionResultsById = (options) => (options.client ?? client).get({
|
|
1302
1302
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1303
1303
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -1859,12 +1859,38 @@ var postApiKeys = (options) => (options.client ?? client).post({
|
|
|
1859
1859
|
...options.headers
|
|
1860
1860
|
}
|
|
1861
1861
|
});
|
|
1862
|
+
var patchUsersByIdAdmin = (options) => (options.client ?? client).patch({
|
|
1863
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1864
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1865
|
+
url: "/users/{id}/admin",
|
|
1866
|
+
...options,
|
|
1867
|
+
headers: {
|
|
1868
|
+
"Content-Type": "application/vnd.api+json",
|
|
1869
|
+
...options.headers
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
var deleteAgentsById = (options) => (options.client ?? client).delete({
|
|
1873
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1874
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1875
|
+
url: "/agents/{id}",
|
|
1876
|
+
...options
|
|
1877
|
+
});
|
|
1862
1878
|
var getAgentsById = (options) => (options.client ?? client).get({
|
|
1863
1879
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1864
1880
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1865
1881
|
url: "/agents/{id}",
|
|
1866
1882
|
...options
|
|
1867
1883
|
});
|
|
1884
|
+
var patchAgentsById = (options) => (options.client ?? client).patch({
|
|
1885
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1886
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1887
|
+
url: "/agents/{id}",
|
|
1888
|
+
...options,
|
|
1889
|
+
headers: {
|
|
1890
|
+
"Content-Type": "application/vnd.api+json",
|
|
1891
|
+
...options.headers
|
|
1892
|
+
}
|
|
1893
|
+
});
|
|
1868
1894
|
var deleteApiKeysById = (options) => (options.client ?? client).delete({
|
|
1869
1895
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
1870
1896
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -2698,6 +2724,7 @@ var getAgents = (options) => (options.client ?? client).get({
|
|
|
2698
2724
|
querySerializer: {
|
|
2699
2725
|
parameters: {
|
|
2700
2726
|
filter: { object: { style: "form" } },
|
|
2727
|
+
page: { object: { style: "form" } },
|
|
2701
2728
|
fields: { object: { style: "form" } }
|
|
2702
2729
|
}
|
|
2703
2730
|
},
|
|
@@ -2705,6 +2732,16 @@ var getAgents = (options) => (options.client ?? client).get({
|
|
|
2705
2732
|
url: "/agents",
|
|
2706
2733
|
...options
|
|
2707
2734
|
});
|
|
2735
|
+
var postAgents = (options) => (options.client ?? client).post({
|
|
2736
|
+
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2737
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
2738
|
+
url: "/agents",
|
|
2739
|
+
...options,
|
|
2740
|
+
headers: {
|
|
2741
|
+
"Content-Type": "application/vnd.api+json",
|
|
2742
|
+
...options.headers
|
|
2743
|
+
}
|
|
2744
|
+
});
|
|
2708
2745
|
var postUsersRegisterIsv = (options) => (options.client ?? client).post({
|
|
2709
2746
|
querySerializer: { parameters: { fields: { object: { style: "form" } } } },
|
|
2710
2747
|
security: [{ scheme: "bearer", type: "http" }],
|
|
@@ -3161,6 +3198,7 @@ export {
|
|
|
3161
3198
|
calculateBackoff,
|
|
3162
3199
|
client,
|
|
3163
3200
|
collectStreamedMessage,
|
|
3201
|
+
deleteAgentsById,
|
|
3164
3202
|
deleteAiConversationsById,
|
|
3165
3203
|
deleteAiGraphEdgesById,
|
|
3166
3204
|
deleteAiGraphNodesById,
|
|
@@ -3281,6 +3319,7 @@ export {
|
|
|
3281
3319
|
isRetryableError,
|
|
3282
3320
|
paginateAll,
|
|
3283
3321
|
paginateToArray,
|
|
3322
|
+
patchAgentsById,
|
|
3284
3323
|
patchApiKeysById,
|
|
3285
3324
|
patchApiKeysByIdAllocate,
|
|
3286
3325
|
patchApiKeysByIdRevoke,
|
|
@@ -3306,7 +3345,8 @@ export {
|
|
|
3306
3345
|
patchTrainingExamplesById,
|
|
3307
3346
|
patchUserProfilesById,
|
|
3308
3347
|
patchUsersAuthResetPassword,
|
|
3309
|
-
|
|
3348
|
+
patchUsersByIdAdmin,
|
|
3349
|
+
patchUsersByIdAdminEmail,
|
|
3310
3350
|
patchUsersByIdConfirmEmail,
|
|
3311
3351
|
patchUsersByIdResetPassword,
|
|
3312
3352
|
patchWalletAddons,
|
|
@@ -3317,6 +3357,7 @@ export {
|
|
|
3317
3357
|
patchWorkspaceMembershipsByWorkspaceIdByUserId,
|
|
3318
3358
|
patchWorkspacesById,
|
|
3319
3359
|
patchWorkspacesByIdAllocate,
|
|
3360
|
+
postAgents,
|
|
3320
3361
|
postAgentsByIdClone,
|
|
3321
3362
|
postAgentsByIdLearnFromDocument,
|
|
3322
3363
|
postAgentsByIdTest,
|
package/package.json
CHANGED