@ideascol/agents-generator-sdk 0.6.0 → 0.6.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/bin/cli.js +181 -1
- package/dist/index.js +181 -1
- package/dist/lib/clients/agents-generator/index.d.ts +6 -0
- package/dist/lib/clients/agents-generator/models/BucketCreate.d.ts +2 -0
- package/dist/lib/clients/agents-generator/models/BucketResponse.d.ts +2 -0
- package/dist/lib/clients/agents-generator/models/BucketUpdate.d.ts +7 -0
- package/dist/lib/clients/agents-generator/models/FolderCreate.d.ts +1 -0
- package/dist/lib/clients/agents-generator/models/FolderResponse.d.ts +2 -0
- package/dist/lib/clients/agents-generator/models/FolderUpdate.d.ts +5 -0
- package/dist/lib/clients/agents-generator/models/VectorStoreInfoResponse.d.ts +8 -0
- package/dist/lib/clients/agents-generator/models/VectorStoreSearchRequest.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/VectorStoreSearchResponse.d.ts +6 -0
- package/dist/lib/clients/agents-generator/models/VectorStoreSearchResult.d.ts +5 -0
- package/dist/lib/clients/agents-generator/services/AdminFileLibraryService.d.ts +64 -0
- package/dist/lib/clients/agents-generator/services/FileLibraryService.d.ts +64 -0
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -598,7 +598,7 @@ var OpenAPI;
|
|
|
598
598
|
var init_OpenAPI = __esm(() => {
|
|
599
599
|
OpenAPI = {
|
|
600
600
|
BASE: "",
|
|
601
|
-
VERSION: "main-
|
|
601
|
+
VERSION: "main-bb6ddeb47d40a0cdae440044ad1b8b6f517b01c8",
|
|
602
602
|
WITH_CREDENTIALS: false,
|
|
603
603
|
CREDENTIALS: "include",
|
|
604
604
|
TOKEN: undefined,
|
|
@@ -1315,6 +1315,20 @@ class AdminFileLibraryService {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
});
|
|
1317
1317
|
}
|
|
1318
|
+
static updateBucket(bucketId, requestBody) {
|
|
1319
|
+
return request(OpenAPI, {
|
|
1320
|
+
method: "PUT",
|
|
1321
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
1322
|
+
path: {
|
|
1323
|
+
bucket_id: bucketId
|
|
1324
|
+
},
|
|
1325
|
+
body: requestBody,
|
|
1326
|
+
mediaType: "application/json",
|
|
1327
|
+
errors: {
|
|
1328
|
+
422: `Validation Error`
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1318
1332
|
static createFolder(requestBody) {
|
|
1319
1333
|
return request(OpenAPI, {
|
|
1320
1334
|
method: "POST",
|
|
@@ -1342,6 +1356,20 @@ class AdminFileLibraryService {
|
|
|
1342
1356
|
}
|
|
1343
1357
|
});
|
|
1344
1358
|
}
|
|
1359
|
+
static updateFolder(folderId, requestBody) {
|
|
1360
|
+
return request(OpenAPI, {
|
|
1361
|
+
method: "PUT",
|
|
1362
|
+
url: "/file-library/folders/{folder_id}",
|
|
1363
|
+
path: {
|
|
1364
|
+
folder_id: folderId
|
|
1365
|
+
},
|
|
1366
|
+
body: requestBody,
|
|
1367
|
+
mediaType: "application/json",
|
|
1368
|
+
errors: {
|
|
1369
|
+
422: `Validation Error`
|
|
1370
|
+
}
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1345
1373
|
static deleteFolder(folderId) {
|
|
1346
1374
|
return request(OpenAPI, {
|
|
1347
1375
|
method: "DELETE",
|
|
@@ -1380,6 +1408,30 @@ class AdminFileLibraryService {
|
|
|
1380
1408
|
}
|
|
1381
1409
|
});
|
|
1382
1410
|
}
|
|
1411
|
+
static downloadFile(fileId) {
|
|
1412
|
+
return request(OpenAPI, {
|
|
1413
|
+
method: "GET",
|
|
1414
|
+
url: "/file-library/files/{file_id}/download",
|
|
1415
|
+
path: {
|
|
1416
|
+
file_id: fileId
|
|
1417
|
+
},
|
|
1418
|
+
errors: {
|
|
1419
|
+
422: `Validation Error`
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
}
|
|
1423
|
+
static getFileContent(fileId) {
|
|
1424
|
+
return request(OpenAPI, {
|
|
1425
|
+
method: "GET",
|
|
1426
|
+
url: "/file-library/files/{file_id}/content",
|
|
1427
|
+
path: {
|
|
1428
|
+
file_id: fileId
|
|
1429
|
+
},
|
|
1430
|
+
errors: {
|
|
1431
|
+
422: `Validation Error`
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1383
1435
|
static deleteFile(fileId) {
|
|
1384
1436
|
return request(OpenAPI, {
|
|
1385
1437
|
method: "DELETE",
|
|
@@ -1418,6 +1470,44 @@ class AdminFileLibraryService {
|
|
|
1418
1470
|
}
|
|
1419
1471
|
});
|
|
1420
1472
|
}
|
|
1473
|
+
static searchVectorStore(folderId, requestBody) {
|
|
1474
|
+
return request(OpenAPI, {
|
|
1475
|
+
method: "POST",
|
|
1476
|
+
url: "/file-library/folders/{folder_id}/vector-store/search",
|
|
1477
|
+
path: {
|
|
1478
|
+
folder_id: folderId
|
|
1479
|
+
},
|
|
1480
|
+
body: requestBody,
|
|
1481
|
+
mediaType: "application/json",
|
|
1482
|
+
errors: {
|
|
1483
|
+
422: `Validation Error`
|
|
1484
|
+
}
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
static getVectorStoreInfo(folderId) {
|
|
1488
|
+
return request(OpenAPI, {
|
|
1489
|
+
method: "GET",
|
|
1490
|
+
url: "/file-library/folders/{folder_id}/vector-store/info",
|
|
1491
|
+
path: {
|
|
1492
|
+
folder_id: folderId
|
|
1493
|
+
},
|
|
1494
|
+
errors: {
|
|
1495
|
+
422: `Validation Error`
|
|
1496
|
+
}
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
static deleteVectorStore(folderId) {
|
|
1500
|
+
return request(OpenAPI, {
|
|
1501
|
+
method: "DELETE",
|
|
1502
|
+
url: "/file-library/folders/{folder_id}/vector-store",
|
|
1503
|
+
path: {
|
|
1504
|
+
folder_id: folderId
|
|
1505
|
+
},
|
|
1506
|
+
errors: {
|
|
1507
|
+
422: `Validation Error`
|
|
1508
|
+
}
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1421
1511
|
}
|
|
1422
1512
|
var init_AdminFileLibraryService = __esm(() => {
|
|
1423
1513
|
init_OpenAPI();
|
|
@@ -2027,6 +2117,20 @@ class FileLibraryService {
|
|
|
2027
2117
|
}
|
|
2028
2118
|
});
|
|
2029
2119
|
}
|
|
2120
|
+
static updateBucket(bucketId, requestBody) {
|
|
2121
|
+
return request(OpenAPI, {
|
|
2122
|
+
method: "PUT",
|
|
2123
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
2124
|
+
path: {
|
|
2125
|
+
bucket_id: bucketId
|
|
2126
|
+
},
|
|
2127
|
+
body: requestBody,
|
|
2128
|
+
mediaType: "application/json",
|
|
2129
|
+
errors: {
|
|
2130
|
+
422: `Validation Error`
|
|
2131
|
+
}
|
|
2132
|
+
});
|
|
2133
|
+
}
|
|
2030
2134
|
static createFolder(requestBody) {
|
|
2031
2135
|
return request(OpenAPI, {
|
|
2032
2136
|
method: "POST",
|
|
@@ -2054,6 +2158,20 @@ class FileLibraryService {
|
|
|
2054
2158
|
}
|
|
2055
2159
|
});
|
|
2056
2160
|
}
|
|
2161
|
+
static updateFolder(folderId, requestBody) {
|
|
2162
|
+
return request(OpenAPI, {
|
|
2163
|
+
method: "PUT",
|
|
2164
|
+
url: "/file-library/folders/{folder_id}",
|
|
2165
|
+
path: {
|
|
2166
|
+
folder_id: folderId
|
|
2167
|
+
},
|
|
2168
|
+
body: requestBody,
|
|
2169
|
+
mediaType: "application/json",
|
|
2170
|
+
errors: {
|
|
2171
|
+
422: `Validation Error`
|
|
2172
|
+
}
|
|
2173
|
+
});
|
|
2174
|
+
}
|
|
2057
2175
|
static deleteFolder(folderId) {
|
|
2058
2176
|
return request(OpenAPI, {
|
|
2059
2177
|
method: "DELETE",
|
|
@@ -2092,6 +2210,30 @@ class FileLibraryService {
|
|
|
2092
2210
|
}
|
|
2093
2211
|
});
|
|
2094
2212
|
}
|
|
2213
|
+
static downloadFile(fileId) {
|
|
2214
|
+
return request(OpenAPI, {
|
|
2215
|
+
method: "GET",
|
|
2216
|
+
url: "/file-library/files/{file_id}/download",
|
|
2217
|
+
path: {
|
|
2218
|
+
file_id: fileId
|
|
2219
|
+
},
|
|
2220
|
+
errors: {
|
|
2221
|
+
422: `Validation Error`
|
|
2222
|
+
}
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
static getFileContent(fileId) {
|
|
2226
|
+
return request(OpenAPI, {
|
|
2227
|
+
method: "GET",
|
|
2228
|
+
url: "/file-library/files/{file_id}/content",
|
|
2229
|
+
path: {
|
|
2230
|
+
file_id: fileId
|
|
2231
|
+
},
|
|
2232
|
+
errors: {
|
|
2233
|
+
422: `Validation Error`
|
|
2234
|
+
}
|
|
2235
|
+
});
|
|
2236
|
+
}
|
|
2095
2237
|
static deleteFile(fileId) {
|
|
2096
2238
|
return request(OpenAPI, {
|
|
2097
2239
|
method: "DELETE",
|
|
@@ -2130,6 +2272,44 @@ class FileLibraryService {
|
|
|
2130
2272
|
}
|
|
2131
2273
|
});
|
|
2132
2274
|
}
|
|
2275
|
+
static searchVectorStore(folderId, requestBody) {
|
|
2276
|
+
return request(OpenAPI, {
|
|
2277
|
+
method: "POST",
|
|
2278
|
+
url: "/file-library/folders/{folder_id}/vector-store/search",
|
|
2279
|
+
path: {
|
|
2280
|
+
folder_id: folderId
|
|
2281
|
+
},
|
|
2282
|
+
body: requestBody,
|
|
2283
|
+
mediaType: "application/json",
|
|
2284
|
+
errors: {
|
|
2285
|
+
422: `Validation Error`
|
|
2286
|
+
}
|
|
2287
|
+
});
|
|
2288
|
+
}
|
|
2289
|
+
static getVectorStoreInfo(folderId) {
|
|
2290
|
+
return request(OpenAPI, {
|
|
2291
|
+
method: "GET",
|
|
2292
|
+
url: "/file-library/folders/{folder_id}/vector-store/info",
|
|
2293
|
+
path: {
|
|
2294
|
+
folder_id: folderId
|
|
2295
|
+
},
|
|
2296
|
+
errors: {
|
|
2297
|
+
422: `Validation Error`
|
|
2298
|
+
}
|
|
2299
|
+
});
|
|
2300
|
+
}
|
|
2301
|
+
static deleteVectorStore(folderId) {
|
|
2302
|
+
return request(OpenAPI, {
|
|
2303
|
+
method: "DELETE",
|
|
2304
|
+
url: "/file-library/folders/{folder_id}/vector-store",
|
|
2305
|
+
path: {
|
|
2306
|
+
folder_id: folderId
|
|
2307
|
+
},
|
|
2308
|
+
errors: {
|
|
2309
|
+
422: `Validation Error`
|
|
2310
|
+
}
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2133
2313
|
}
|
|
2134
2314
|
var init_FileLibraryService = __esm(() => {
|
|
2135
2315
|
init_OpenAPI();
|
package/dist/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var OpenAPI;
|
|
|
166
166
|
var init_OpenAPI = __esm(() => {
|
|
167
167
|
OpenAPI = {
|
|
168
168
|
BASE: "",
|
|
169
|
-
VERSION: "main-
|
|
169
|
+
VERSION: "main-bb6ddeb47d40a0cdae440044ad1b8b6f517b01c8",
|
|
170
170
|
WITH_CREDENTIALS: false,
|
|
171
171
|
CREDENTIALS: "include",
|
|
172
172
|
TOKEN: undefined,
|
|
@@ -883,6 +883,20 @@ class AdminFileLibraryService {
|
|
|
883
883
|
}
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
|
+
static updateBucket(bucketId, requestBody) {
|
|
887
|
+
return request(OpenAPI, {
|
|
888
|
+
method: "PUT",
|
|
889
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
890
|
+
path: {
|
|
891
|
+
bucket_id: bucketId
|
|
892
|
+
},
|
|
893
|
+
body: requestBody,
|
|
894
|
+
mediaType: "application/json",
|
|
895
|
+
errors: {
|
|
896
|
+
422: `Validation Error`
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
}
|
|
886
900
|
static createFolder(requestBody) {
|
|
887
901
|
return request(OpenAPI, {
|
|
888
902
|
method: "POST",
|
|
@@ -910,6 +924,20 @@ class AdminFileLibraryService {
|
|
|
910
924
|
}
|
|
911
925
|
});
|
|
912
926
|
}
|
|
927
|
+
static updateFolder(folderId, requestBody) {
|
|
928
|
+
return request(OpenAPI, {
|
|
929
|
+
method: "PUT",
|
|
930
|
+
url: "/file-library/folders/{folder_id}",
|
|
931
|
+
path: {
|
|
932
|
+
folder_id: folderId
|
|
933
|
+
},
|
|
934
|
+
body: requestBody,
|
|
935
|
+
mediaType: "application/json",
|
|
936
|
+
errors: {
|
|
937
|
+
422: `Validation Error`
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
}
|
|
913
941
|
static deleteFolder(folderId) {
|
|
914
942
|
return request(OpenAPI, {
|
|
915
943
|
method: "DELETE",
|
|
@@ -948,6 +976,30 @@ class AdminFileLibraryService {
|
|
|
948
976
|
}
|
|
949
977
|
});
|
|
950
978
|
}
|
|
979
|
+
static downloadFile(fileId) {
|
|
980
|
+
return request(OpenAPI, {
|
|
981
|
+
method: "GET",
|
|
982
|
+
url: "/file-library/files/{file_id}/download",
|
|
983
|
+
path: {
|
|
984
|
+
file_id: fileId
|
|
985
|
+
},
|
|
986
|
+
errors: {
|
|
987
|
+
422: `Validation Error`
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
static getFileContent(fileId) {
|
|
992
|
+
return request(OpenAPI, {
|
|
993
|
+
method: "GET",
|
|
994
|
+
url: "/file-library/files/{file_id}/content",
|
|
995
|
+
path: {
|
|
996
|
+
file_id: fileId
|
|
997
|
+
},
|
|
998
|
+
errors: {
|
|
999
|
+
422: `Validation Error`
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
951
1003
|
static deleteFile(fileId) {
|
|
952
1004
|
return request(OpenAPI, {
|
|
953
1005
|
method: "DELETE",
|
|
@@ -986,6 +1038,44 @@ class AdminFileLibraryService {
|
|
|
986
1038
|
}
|
|
987
1039
|
});
|
|
988
1040
|
}
|
|
1041
|
+
static searchVectorStore(folderId, requestBody) {
|
|
1042
|
+
return request(OpenAPI, {
|
|
1043
|
+
method: "POST",
|
|
1044
|
+
url: "/file-library/folders/{folder_id}/vector-store/search",
|
|
1045
|
+
path: {
|
|
1046
|
+
folder_id: folderId
|
|
1047
|
+
},
|
|
1048
|
+
body: requestBody,
|
|
1049
|
+
mediaType: "application/json",
|
|
1050
|
+
errors: {
|
|
1051
|
+
422: `Validation Error`
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
static getVectorStoreInfo(folderId) {
|
|
1056
|
+
return request(OpenAPI, {
|
|
1057
|
+
method: "GET",
|
|
1058
|
+
url: "/file-library/folders/{folder_id}/vector-store/info",
|
|
1059
|
+
path: {
|
|
1060
|
+
folder_id: folderId
|
|
1061
|
+
},
|
|
1062
|
+
errors: {
|
|
1063
|
+
422: `Validation Error`
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
static deleteVectorStore(folderId) {
|
|
1068
|
+
return request(OpenAPI, {
|
|
1069
|
+
method: "DELETE",
|
|
1070
|
+
url: "/file-library/folders/{folder_id}/vector-store",
|
|
1071
|
+
path: {
|
|
1072
|
+
folder_id: folderId
|
|
1073
|
+
},
|
|
1074
|
+
errors: {
|
|
1075
|
+
422: `Validation Error`
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
989
1079
|
}
|
|
990
1080
|
var init_AdminFileLibraryService = __esm(() => {
|
|
991
1081
|
init_OpenAPI();
|
|
@@ -1595,6 +1685,20 @@ class FileLibraryService {
|
|
|
1595
1685
|
}
|
|
1596
1686
|
});
|
|
1597
1687
|
}
|
|
1688
|
+
static updateBucket(bucketId, requestBody) {
|
|
1689
|
+
return request(OpenAPI, {
|
|
1690
|
+
method: "PUT",
|
|
1691
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
1692
|
+
path: {
|
|
1693
|
+
bucket_id: bucketId
|
|
1694
|
+
},
|
|
1695
|
+
body: requestBody,
|
|
1696
|
+
mediaType: "application/json",
|
|
1697
|
+
errors: {
|
|
1698
|
+
422: `Validation Error`
|
|
1699
|
+
}
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1598
1702
|
static createFolder(requestBody) {
|
|
1599
1703
|
return request(OpenAPI, {
|
|
1600
1704
|
method: "POST",
|
|
@@ -1622,6 +1726,20 @@ class FileLibraryService {
|
|
|
1622
1726
|
}
|
|
1623
1727
|
});
|
|
1624
1728
|
}
|
|
1729
|
+
static updateFolder(folderId, requestBody) {
|
|
1730
|
+
return request(OpenAPI, {
|
|
1731
|
+
method: "PUT",
|
|
1732
|
+
url: "/file-library/folders/{folder_id}",
|
|
1733
|
+
path: {
|
|
1734
|
+
folder_id: folderId
|
|
1735
|
+
},
|
|
1736
|
+
body: requestBody,
|
|
1737
|
+
mediaType: "application/json",
|
|
1738
|
+
errors: {
|
|
1739
|
+
422: `Validation Error`
|
|
1740
|
+
}
|
|
1741
|
+
});
|
|
1742
|
+
}
|
|
1625
1743
|
static deleteFolder(folderId) {
|
|
1626
1744
|
return request(OpenAPI, {
|
|
1627
1745
|
method: "DELETE",
|
|
@@ -1660,6 +1778,30 @@ class FileLibraryService {
|
|
|
1660
1778
|
}
|
|
1661
1779
|
});
|
|
1662
1780
|
}
|
|
1781
|
+
static downloadFile(fileId) {
|
|
1782
|
+
return request(OpenAPI, {
|
|
1783
|
+
method: "GET",
|
|
1784
|
+
url: "/file-library/files/{file_id}/download",
|
|
1785
|
+
path: {
|
|
1786
|
+
file_id: fileId
|
|
1787
|
+
},
|
|
1788
|
+
errors: {
|
|
1789
|
+
422: `Validation Error`
|
|
1790
|
+
}
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1793
|
+
static getFileContent(fileId) {
|
|
1794
|
+
return request(OpenAPI, {
|
|
1795
|
+
method: "GET",
|
|
1796
|
+
url: "/file-library/files/{file_id}/content",
|
|
1797
|
+
path: {
|
|
1798
|
+
file_id: fileId
|
|
1799
|
+
},
|
|
1800
|
+
errors: {
|
|
1801
|
+
422: `Validation Error`
|
|
1802
|
+
}
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1663
1805
|
static deleteFile(fileId) {
|
|
1664
1806
|
return request(OpenAPI, {
|
|
1665
1807
|
method: "DELETE",
|
|
@@ -1698,6 +1840,44 @@ class FileLibraryService {
|
|
|
1698
1840
|
}
|
|
1699
1841
|
});
|
|
1700
1842
|
}
|
|
1843
|
+
static searchVectorStore(folderId, requestBody) {
|
|
1844
|
+
return request(OpenAPI, {
|
|
1845
|
+
method: "POST",
|
|
1846
|
+
url: "/file-library/folders/{folder_id}/vector-store/search",
|
|
1847
|
+
path: {
|
|
1848
|
+
folder_id: folderId
|
|
1849
|
+
},
|
|
1850
|
+
body: requestBody,
|
|
1851
|
+
mediaType: "application/json",
|
|
1852
|
+
errors: {
|
|
1853
|
+
422: `Validation Error`
|
|
1854
|
+
}
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1857
|
+
static getVectorStoreInfo(folderId) {
|
|
1858
|
+
return request(OpenAPI, {
|
|
1859
|
+
method: "GET",
|
|
1860
|
+
url: "/file-library/folders/{folder_id}/vector-store/info",
|
|
1861
|
+
path: {
|
|
1862
|
+
folder_id: folderId
|
|
1863
|
+
},
|
|
1864
|
+
errors: {
|
|
1865
|
+
422: `Validation Error`
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1869
|
+
static deleteVectorStore(folderId) {
|
|
1870
|
+
return request(OpenAPI, {
|
|
1871
|
+
method: "DELETE",
|
|
1872
|
+
url: "/file-library/folders/{folder_id}/vector-store",
|
|
1873
|
+
path: {
|
|
1874
|
+
folder_id: folderId
|
|
1875
|
+
},
|
|
1876
|
+
errors: {
|
|
1877
|
+
422: `Validation Error`
|
|
1878
|
+
}
|
|
1879
|
+
});
|
|
1880
|
+
}
|
|
1701
1881
|
}
|
|
1702
1882
|
var init_FileLibraryService = __esm(() => {
|
|
1703
1883
|
init_OpenAPI();
|
|
@@ -14,6 +14,7 @@ export type { ApiKeyWithSecret } from './models/ApiKeyWithSecret';
|
|
|
14
14
|
export type { Body_upload_file } from './models/Body_upload_file';
|
|
15
15
|
export type { BucketCreate } from './models/BucketCreate';
|
|
16
16
|
export type { BucketResponse } from './models/BucketResponse';
|
|
17
|
+
export type { BucketUpdate } from './models/BucketUpdate';
|
|
17
18
|
export type { CallbackTool } from './models/CallbackTool';
|
|
18
19
|
export { CollaboratorRole } from './models/CollaboratorRole';
|
|
19
20
|
export type { ConversationCreate } from './models/ConversationCreate';
|
|
@@ -29,6 +30,7 @@ export type { FileResponse } from './models/FileResponse';
|
|
|
29
30
|
export type { FileUploadItem } from './models/FileUploadItem';
|
|
30
31
|
export type { FolderCreate } from './models/FolderCreate';
|
|
31
32
|
export type { FolderResponse } from './models/FolderResponse';
|
|
33
|
+
export type { FolderUpdate } from './models/FolderUpdate';
|
|
32
34
|
export type { FolderUploadRequest } from './models/FolderUploadRequest';
|
|
33
35
|
export type { FolderUploadResponse } from './models/FolderUploadResponse';
|
|
34
36
|
export type { GenerateSchemaRequest } from './models/GenerateSchemaRequest';
|
|
@@ -48,6 +50,10 @@ export type { NodeData } from './models/NodeData';
|
|
|
48
50
|
export type { Position } from './models/Position';
|
|
49
51
|
export type { UpdateMCPServerRequest } from './models/UpdateMCPServerRequest';
|
|
50
52
|
export type { ValidationError } from './models/ValidationError';
|
|
53
|
+
export type { VectorStoreInfoResponse } from './models/VectorStoreInfoResponse';
|
|
54
|
+
export type { VectorStoreSearchRequest } from './models/VectorStoreSearchRequest';
|
|
55
|
+
export type { VectorStoreSearchResponse } from './models/VectorStoreSearchResponse';
|
|
56
|
+
export type { VectorStoreSearchResult } from './models/VectorStoreSearchResult';
|
|
51
57
|
export type { WorkspaceCollaboratorCreate } from './models/WorkspaceCollaboratorCreate';
|
|
52
58
|
export type { WorkspaceCollaboratorResponse } from './models/WorkspaceCollaboratorResponse';
|
|
53
59
|
export type { WorkspaceCollaboratorUpdate } from './models/WorkspaceCollaboratorUpdate';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type BucketResponse = {
|
|
2
2
|
name: string;
|
|
3
|
+
display_name?: (string | null);
|
|
3
4
|
credential_id: string;
|
|
4
5
|
openai_credential_id?: (string | null);
|
|
5
6
|
region?: (string | null);
|
|
7
|
+
description?: (string | null);
|
|
6
8
|
id: string;
|
|
7
9
|
user_id: string;
|
|
8
10
|
created_at: string;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { Body_upload_file } from '../models/Body_upload_file';
|
|
2
2
|
import type { BucketCreate } from '../models/BucketCreate';
|
|
3
3
|
import type { BucketResponse } from '../models/BucketResponse';
|
|
4
|
+
import type { BucketUpdate } from '../models/BucketUpdate';
|
|
4
5
|
import type { FileResponse } from '../models/FileResponse';
|
|
5
6
|
import type { FolderCreate } from '../models/FolderCreate';
|
|
6
7
|
import type { FolderResponse } from '../models/FolderResponse';
|
|
8
|
+
import type { FolderUpdate } from '../models/FolderUpdate';
|
|
7
9
|
import type { FolderUploadRequest } from '../models/FolderUploadRequest';
|
|
8
10
|
import type { FolderUploadResponse } from '../models/FolderUploadResponse';
|
|
11
|
+
import type { VectorStoreInfoResponse } from '../models/VectorStoreInfoResponse';
|
|
12
|
+
import type { VectorStoreSearchRequest } from '../models/VectorStoreSearchRequest';
|
|
13
|
+
import type { VectorStoreSearchResponse } from '../models/VectorStoreSearchResponse';
|
|
9
14
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
15
|
export declare class AdminFileLibraryService {
|
|
11
16
|
/**
|
|
@@ -43,6 +48,15 @@ export declare class AdminFileLibraryService {
|
|
|
43
48
|
* @throws ApiError
|
|
44
49
|
*/
|
|
45
50
|
static deleteBucket(bucketId: string, workspaceId?: (string | null)): CancelablePromise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Update Bucket
|
|
53
|
+
* Update a bucket
|
|
54
|
+
* @param bucketId
|
|
55
|
+
* @param requestBody
|
|
56
|
+
* @returns BucketResponse Successful Response
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
static updateBucket(bucketId: string, requestBody: BucketUpdate): CancelablePromise<BucketResponse>;
|
|
46
60
|
/**
|
|
47
61
|
* Create Folder
|
|
48
62
|
* Create a new folder
|
|
@@ -61,6 +75,15 @@ export declare class AdminFileLibraryService {
|
|
|
61
75
|
* @throws ApiError
|
|
62
76
|
*/
|
|
63
77
|
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null), workspaceId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
78
|
+
/**
|
|
79
|
+
* Update Folder
|
|
80
|
+
* Update a folder (name, color, etc.)
|
|
81
|
+
* @param folderId
|
|
82
|
+
* @param requestBody
|
|
83
|
+
* @returns FolderResponse Successful Response
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static updateFolder(folderId: string, requestBody: FolderUpdate): CancelablePromise<FolderResponse>;
|
|
64
87
|
/**
|
|
65
88
|
* Delete Folder
|
|
66
89
|
* Delete a folder
|
|
@@ -86,6 +109,22 @@ export declare class AdminFileLibraryService {
|
|
|
86
109
|
* @throws ApiError
|
|
87
110
|
*/
|
|
88
111
|
static getFilesByFolder(folderId: string): CancelablePromise<Array<FileResponse>>;
|
|
112
|
+
/**
|
|
113
|
+
* Download File
|
|
114
|
+
* Get a presigned URL to download/view a file from S3
|
|
115
|
+
* @param fileId
|
|
116
|
+
* @returns any Successful Response
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
static downloadFile(fileId: string): CancelablePromise<any>;
|
|
120
|
+
/**
|
|
121
|
+
* Get File Content
|
|
122
|
+
* Stream file content directly from S3 (avoids CORS issues)
|
|
123
|
+
* @param fileId
|
|
124
|
+
* @returns any Successful Response
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
static getFileContent(fileId: string): CancelablePromise<any>;
|
|
89
128
|
/**
|
|
90
129
|
* Delete File
|
|
91
130
|
* Delete a file
|
|
@@ -111,4 +150,29 @@ export declare class AdminFileLibraryService {
|
|
|
111
150
|
* @throws ApiError
|
|
112
151
|
*/
|
|
113
152
|
static createFolderVectorStore(folderId: string): CancelablePromise<FolderResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Search Vector Store
|
|
155
|
+
* Search a folder's vector store
|
|
156
|
+
* @param folderId
|
|
157
|
+
* @param requestBody
|
|
158
|
+
* @returns VectorStoreSearchResponse Successful Response
|
|
159
|
+
* @throws ApiError
|
|
160
|
+
*/
|
|
161
|
+
static searchVectorStore(folderId: string, requestBody: VectorStoreSearchRequest): CancelablePromise<VectorStoreSearchResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* Get Vector Store Info
|
|
164
|
+
* Get vector store information for a folder
|
|
165
|
+
* @param folderId
|
|
166
|
+
* @returns VectorStoreInfoResponse Successful Response
|
|
167
|
+
* @throws ApiError
|
|
168
|
+
*/
|
|
169
|
+
static getVectorStoreInfo(folderId: string): CancelablePromise<VectorStoreInfoResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* Delete Vector Store
|
|
172
|
+
* Delete a folder's vector store
|
|
173
|
+
* @param folderId
|
|
174
|
+
* @returns any Successful Response
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
static deleteVectorStore(folderId: string): CancelablePromise<any>;
|
|
114
178
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { Body_upload_file } from '../models/Body_upload_file';
|
|
2
2
|
import type { BucketCreate } from '../models/BucketCreate';
|
|
3
3
|
import type { BucketResponse } from '../models/BucketResponse';
|
|
4
|
+
import type { BucketUpdate } from '../models/BucketUpdate';
|
|
4
5
|
import type { FileResponse } from '../models/FileResponse';
|
|
5
6
|
import type { FolderCreate } from '../models/FolderCreate';
|
|
6
7
|
import type { FolderResponse } from '../models/FolderResponse';
|
|
8
|
+
import type { FolderUpdate } from '../models/FolderUpdate';
|
|
7
9
|
import type { FolderUploadRequest } from '../models/FolderUploadRequest';
|
|
8
10
|
import type { FolderUploadResponse } from '../models/FolderUploadResponse';
|
|
11
|
+
import type { VectorStoreInfoResponse } from '../models/VectorStoreInfoResponse';
|
|
12
|
+
import type { VectorStoreSearchRequest } from '../models/VectorStoreSearchRequest';
|
|
13
|
+
import type { VectorStoreSearchResponse } from '../models/VectorStoreSearchResponse';
|
|
9
14
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
15
|
export declare class FileLibraryService {
|
|
11
16
|
/**
|
|
@@ -43,6 +48,15 @@ export declare class FileLibraryService {
|
|
|
43
48
|
* @throws ApiError
|
|
44
49
|
*/
|
|
45
50
|
static deleteBucket(bucketId: string, workspaceId?: (string | null)): CancelablePromise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Update Bucket
|
|
53
|
+
* Update a bucket
|
|
54
|
+
* @param bucketId
|
|
55
|
+
* @param requestBody
|
|
56
|
+
* @returns BucketResponse Successful Response
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
static updateBucket(bucketId: string, requestBody: BucketUpdate): CancelablePromise<BucketResponse>;
|
|
46
60
|
/**
|
|
47
61
|
* Create Folder
|
|
48
62
|
* Create a new folder
|
|
@@ -61,6 +75,15 @@ export declare class FileLibraryService {
|
|
|
61
75
|
* @throws ApiError
|
|
62
76
|
*/
|
|
63
77
|
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null), workspaceId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
78
|
+
/**
|
|
79
|
+
* Update Folder
|
|
80
|
+
* Update a folder (name, color, etc.)
|
|
81
|
+
* @param folderId
|
|
82
|
+
* @param requestBody
|
|
83
|
+
* @returns FolderResponse Successful Response
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static updateFolder(folderId: string, requestBody: FolderUpdate): CancelablePromise<FolderResponse>;
|
|
64
87
|
/**
|
|
65
88
|
* Delete Folder
|
|
66
89
|
* Delete a folder
|
|
@@ -86,6 +109,22 @@ export declare class FileLibraryService {
|
|
|
86
109
|
* @throws ApiError
|
|
87
110
|
*/
|
|
88
111
|
static getFilesByFolder(folderId: string): CancelablePromise<Array<FileResponse>>;
|
|
112
|
+
/**
|
|
113
|
+
* Download File
|
|
114
|
+
* Get a presigned URL to download/view a file from S3
|
|
115
|
+
* @param fileId
|
|
116
|
+
* @returns any Successful Response
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
static downloadFile(fileId: string): CancelablePromise<any>;
|
|
120
|
+
/**
|
|
121
|
+
* Get File Content
|
|
122
|
+
* Stream file content directly from S3 (avoids CORS issues)
|
|
123
|
+
* @param fileId
|
|
124
|
+
* @returns any Successful Response
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
static getFileContent(fileId: string): CancelablePromise<any>;
|
|
89
128
|
/**
|
|
90
129
|
* Delete File
|
|
91
130
|
* Delete a file
|
|
@@ -111,4 +150,29 @@ export declare class FileLibraryService {
|
|
|
111
150
|
* @throws ApiError
|
|
112
151
|
*/
|
|
113
152
|
static createFolderVectorStore(folderId: string): CancelablePromise<FolderResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Search Vector Store
|
|
155
|
+
* Search a folder's vector store
|
|
156
|
+
* @param folderId
|
|
157
|
+
* @param requestBody
|
|
158
|
+
* @returns VectorStoreSearchResponse Successful Response
|
|
159
|
+
* @throws ApiError
|
|
160
|
+
*/
|
|
161
|
+
static searchVectorStore(folderId: string, requestBody: VectorStoreSearchRequest): CancelablePromise<VectorStoreSearchResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* Get Vector Store Info
|
|
164
|
+
* Get vector store information for a folder
|
|
165
|
+
* @param folderId
|
|
166
|
+
* @returns VectorStoreInfoResponse Successful Response
|
|
167
|
+
* @throws ApiError
|
|
168
|
+
*/
|
|
169
|
+
static getVectorStoreInfo(folderId: string): CancelablePromise<VectorStoreInfoResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* Delete Vector Store
|
|
172
|
+
* Delete a folder's vector store
|
|
173
|
+
* @param folderId
|
|
174
|
+
* @returns any Successful Response
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
static deleteVectorStore(folderId: string): CancelablePromise<any>;
|
|
114
178
|
}
|