@ideascol/agents-generator-sdk 0.0.6 → 0.0.8
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 +158 -4
- package/dist/index.js +155 -0
- package/dist/lib/clients/agents-generator/index.d.ts +10 -0
- package/dist/lib/clients/agents-generator/models/Body_upload_file_file_library_folders__folder_id__files_post.d.ts +3 -0
- package/dist/lib/clients/agents-generator/models/BucketCreate.d.ts +7 -0
- package/dist/lib/clients/agents-generator/models/BucketResponse.d.ts +10 -0
- package/dist/lib/clients/agents-generator/models/FileResponse.d.ts +10 -0
- package/dist/lib/clients/agents-generator/models/FileUploadItem.d.ts +7 -0
- package/dist/lib/clients/agents-generator/models/FolderCreate.d.ts +5 -0
- package/dist/lib/clients/agents-generator/models/FolderResponse.d.ts +10 -0
- package/dist/lib/clients/agents-generator/models/FolderUploadRequest.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/FolderUploadResponse.d.ts +8 -0
- package/dist/lib/clients/agents-generator/services/FileLibraryService.d.ts +109 -0
- package/dist/lib/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -1128,6 +1128,157 @@ var init_DefaultService = __esm(() => {
|
|
|
1128
1128
|
init_request();
|
|
1129
1129
|
});
|
|
1130
1130
|
|
|
1131
|
+
// src/lib/clients/agents-generator/services/FileLibraryService.ts
|
|
1132
|
+
class FileLibraryService {
|
|
1133
|
+
static getBucketsFileLibraryBucketsGet() {
|
|
1134
|
+
return request(OpenAPI, {
|
|
1135
|
+
method: "GET",
|
|
1136
|
+
url: "/file-library/buckets"
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
static createBucketFileLibraryBucketsPost(requestBody) {
|
|
1140
|
+
return request(OpenAPI, {
|
|
1141
|
+
method: "POST",
|
|
1142
|
+
url: "/file-library/buckets",
|
|
1143
|
+
body: requestBody,
|
|
1144
|
+
mediaType: "application/json",
|
|
1145
|
+
errors: {
|
|
1146
|
+
422: `Validation Error`
|
|
1147
|
+
}
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1150
|
+
static getBucketFileLibraryBucketsBucketIdGet(bucketId) {
|
|
1151
|
+
return request(OpenAPI, {
|
|
1152
|
+
method: "GET",
|
|
1153
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
1154
|
+
path: {
|
|
1155
|
+
bucket_id: bucketId
|
|
1156
|
+
},
|
|
1157
|
+
errors: {
|
|
1158
|
+
422: `Validation Error`
|
|
1159
|
+
}
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
static deleteBucketFileLibraryBucketsBucketIdDelete(bucketId) {
|
|
1163
|
+
return request(OpenAPI, {
|
|
1164
|
+
method: "DELETE",
|
|
1165
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
1166
|
+
path: {
|
|
1167
|
+
bucket_id: bucketId
|
|
1168
|
+
},
|
|
1169
|
+
errors: {
|
|
1170
|
+
422: `Validation Error`
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
static createFolderFileLibraryFoldersPost(requestBody) {
|
|
1175
|
+
return request(OpenAPI, {
|
|
1176
|
+
method: "POST",
|
|
1177
|
+
url: "/file-library/folders",
|
|
1178
|
+
body: requestBody,
|
|
1179
|
+
mediaType: "application/json",
|
|
1180
|
+
errors: {
|
|
1181
|
+
422: `Validation Error`
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
static getFoldersFileLibraryBucketsBucketIdFoldersGet(bucketId, parentFolderId) {
|
|
1186
|
+
return request(OpenAPI, {
|
|
1187
|
+
method: "GET",
|
|
1188
|
+
url: "/file-library/buckets/{bucket_id}/folders",
|
|
1189
|
+
path: {
|
|
1190
|
+
bucket_id: bucketId
|
|
1191
|
+
},
|
|
1192
|
+
query: {
|
|
1193
|
+
parent_folder_id: parentFolderId
|
|
1194
|
+
},
|
|
1195
|
+
errors: {
|
|
1196
|
+
422: `Validation Error`
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
static deleteFolderFileLibraryFoldersFolderIdDelete(folderId) {
|
|
1201
|
+
return request(OpenAPI, {
|
|
1202
|
+
method: "DELETE",
|
|
1203
|
+
url: "/file-library/folders/{folder_id}",
|
|
1204
|
+
path: {
|
|
1205
|
+
folder_id: folderId
|
|
1206
|
+
},
|
|
1207
|
+
errors: {
|
|
1208
|
+
422: `Validation Error`
|
|
1209
|
+
}
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
static uploadFileFileLibraryFoldersFolderIdFilesPost(folderId, formData) {
|
|
1213
|
+
return request(OpenAPI, {
|
|
1214
|
+
method: "POST",
|
|
1215
|
+
url: "/file-library/folders/{folder_id}/files",
|
|
1216
|
+
path: {
|
|
1217
|
+
folder_id: folderId
|
|
1218
|
+
},
|
|
1219
|
+
formData,
|
|
1220
|
+
mediaType: "multipart/form-data",
|
|
1221
|
+
errors: {
|
|
1222
|
+
422: `Validation Error`
|
|
1223
|
+
}
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
static getFilesFileLibraryFoldersFolderIdFilesGet(folderId) {
|
|
1227
|
+
return request(OpenAPI, {
|
|
1228
|
+
method: "GET",
|
|
1229
|
+
url: "/file-library/folders/{folder_id}/files",
|
|
1230
|
+
path: {
|
|
1231
|
+
folder_id: folderId
|
|
1232
|
+
},
|
|
1233
|
+
errors: {
|
|
1234
|
+
422: `Validation Error`
|
|
1235
|
+
}
|
|
1236
|
+
});
|
|
1237
|
+
}
|
|
1238
|
+
static deleteFileFileLibraryFilesFileIdDelete(fileId) {
|
|
1239
|
+
return request(OpenAPI, {
|
|
1240
|
+
method: "DELETE",
|
|
1241
|
+
url: "/file-library/files/{file_id}",
|
|
1242
|
+
path: {
|
|
1243
|
+
file_id: fileId
|
|
1244
|
+
},
|
|
1245
|
+
errors: {
|
|
1246
|
+
422: `Validation Error`
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1250
|
+
static uploadFolderFileLibraryFoldersParentFolderIdUploadFolderPost(parentFolderId, requestBody) {
|
|
1251
|
+
return request(OpenAPI, {
|
|
1252
|
+
method: "POST",
|
|
1253
|
+
url: "/file-library/folders/{parent_folder_id}/upload-folder",
|
|
1254
|
+
path: {
|
|
1255
|
+
parent_folder_id: parentFolderId
|
|
1256
|
+
},
|
|
1257
|
+
body: requestBody,
|
|
1258
|
+
mediaType: "application/json",
|
|
1259
|
+
errors: {
|
|
1260
|
+
422: `Validation Error`
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
static createFolderVectorStoreFileLibraryFoldersFolderIdCreateVectorStorePost(folderId) {
|
|
1265
|
+
return request(OpenAPI, {
|
|
1266
|
+
method: "POST",
|
|
1267
|
+
url: "/file-library/folders/{folder_id}/create-vector-store",
|
|
1268
|
+
path: {
|
|
1269
|
+
folder_id: folderId
|
|
1270
|
+
},
|
|
1271
|
+
errors: {
|
|
1272
|
+
422: `Validation Error`
|
|
1273
|
+
}
|
|
1274
|
+
});
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
var init_FileLibraryService = __esm(() => {
|
|
1278
|
+
init_OpenAPI();
|
|
1279
|
+
init_request();
|
|
1280
|
+
});
|
|
1281
|
+
|
|
1131
1282
|
// src/lib/clients/agents-generator/services/McpServersService.ts
|
|
1132
1283
|
class McpServersService {
|
|
1133
1284
|
static getMcpServersMcpServersGet() {
|
|
@@ -1182,6 +1333,7 @@ var init_agents_generator = __esm(() => {
|
|
|
1182
1333
|
init_AgentService();
|
|
1183
1334
|
init_ConversationsService();
|
|
1184
1335
|
init_DefaultService();
|
|
1336
|
+
init_FileLibraryService();
|
|
1185
1337
|
init_McpServersService();
|
|
1186
1338
|
init_RootService();
|
|
1187
1339
|
});
|
|
@@ -1192,6 +1344,7 @@ class AgentClient {
|
|
|
1192
1344
|
conversations;
|
|
1193
1345
|
mcpServers;
|
|
1194
1346
|
root;
|
|
1347
|
+
fileLibrary;
|
|
1195
1348
|
ApiError;
|
|
1196
1349
|
CancelError;
|
|
1197
1350
|
CancelablePromise;
|
|
@@ -1210,6 +1363,7 @@ class AgentClient {
|
|
|
1210
1363
|
this.conversations = ConversationsService;
|
|
1211
1364
|
this.mcpServers = McpServersService;
|
|
1212
1365
|
this.root = RootService;
|
|
1366
|
+
this.fileLibrary = FileLibraryService;
|
|
1213
1367
|
this.conversationsStream = ConversationsServiceStream;
|
|
1214
1368
|
this.ApiError = ApiError;
|
|
1215
1369
|
this.CancelError = CancelError;
|
|
@@ -1409,8 +1563,8 @@ var init_lib = __esm(() => {
|
|
|
1409
1563
|
// src/commands/agentsCommand.ts
|
|
1410
1564
|
var import_cli_maker, commandAgents, agentsCommand_default;
|
|
1411
1565
|
var init_agentsCommand = __esm(() => {
|
|
1412
|
-
import_cli_maker = __toESM(require_dist());
|
|
1413
1566
|
init_lib();
|
|
1567
|
+
import_cli_maker = __toESM(require_dist());
|
|
1414
1568
|
commandAgents = {
|
|
1415
1569
|
name: "getAgents",
|
|
1416
1570
|
description: "Get the list of agents",
|
|
@@ -1432,8 +1586,8 @@ var init_agentsCommand = __esm(() => {
|
|
|
1432
1586
|
// src/commands/rootCommand.ts
|
|
1433
1587
|
var import_cli_maker2, rootCommand, rootCommand_default;
|
|
1434
1588
|
var init_rootCommand = __esm(() => {
|
|
1435
|
-
import_cli_maker2 = __toESM(require_dist());
|
|
1436
1589
|
init_lib();
|
|
1590
|
+
import_cli_maker2 = __toESM(require_dist());
|
|
1437
1591
|
rootCommand = {
|
|
1438
1592
|
name: "version",
|
|
1439
1593
|
description: "Get the version of the API",
|
|
@@ -1463,8 +1617,8 @@ var init_rootCommand = __esm(() => {
|
|
|
1463
1617
|
// src/commands/conversationsCommand.ts
|
|
1464
1618
|
var import_cli_maker3, commandConversations, conversationsCommand_default;
|
|
1465
1619
|
var init_conversationsCommand = __esm(() => {
|
|
1466
|
-
import_cli_maker3 = __toESM(require_dist());
|
|
1467
1620
|
init_agents_generator();
|
|
1621
|
+
import_cli_maker3 = __toESM(require_dist());
|
|
1468
1622
|
commandConversations = {
|
|
1469
1623
|
name: "getConversations",
|
|
1470
1624
|
description: "Get the list of conversations",
|
|
@@ -1506,11 +1660,11 @@ __export(exports_cli, {
|
|
|
1506
1660
|
});
|
|
1507
1661
|
var import_cli_maker4, cli;
|
|
1508
1662
|
var init_cli = __esm(() => {
|
|
1509
|
-
import_cli_maker4 = __toESM(require_dist());
|
|
1510
1663
|
init_agents_generator();
|
|
1511
1664
|
init_agentsCommand();
|
|
1512
1665
|
init_rootCommand();
|
|
1513
1666
|
init_conversationsCommand();
|
|
1667
|
+
import_cli_maker4 = __toESM(require_dist());
|
|
1514
1668
|
cli = new import_cli_maker4.CLI("@ideascol/agents-generator-sdk", "agents-generator-sdk", {
|
|
1515
1669
|
interactive: true,
|
|
1516
1670
|
version: OpenAPI.VERSION
|
package/dist/index.js
CHANGED
|
@@ -696,6 +696,157 @@ var init_DefaultService = __esm(() => {
|
|
|
696
696
|
init_request();
|
|
697
697
|
});
|
|
698
698
|
|
|
699
|
+
// src/lib/clients/agents-generator/services/FileLibraryService.ts
|
|
700
|
+
class FileLibraryService {
|
|
701
|
+
static getBucketsFileLibraryBucketsGet() {
|
|
702
|
+
return request(OpenAPI, {
|
|
703
|
+
method: "GET",
|
|
704
|
+
url: "/file-library/buckets"
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
static createBucketFileLibraryBucketsPost(requestBody) {
|
|
708
|
+
return request(OpenAPI, {
|
|
709
|
+
method: "POST",
|
|
710
|
+
url: "/file-library/buckets",
|
|
711
|
+
body: requestBody,
|
|
712
|
+
mediaType: "application/json",
|
|
713
|
+
errors: {
|
|
714
|
+
422: `Validation Error`
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
static getBucketFileLibraryBucketsBucketIdGet(bucketId) {
|
|
719
|
+
return request(OpenAPI, {
|
|
720
|
+
method: "GET",
|
|
721
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
722
|
+
path: {
|
|
723
|
+
bucket_id: bucketId
|
|
724
|
+
},
|
|
725
|
+
errors: {
|
|
726
|
+
422: `Validation Error`
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
static deleteBucketFileLibraryBucketsBucketIdDelete(bucketId) {
|
|
731
|
+
return request(OpenAPI, {
|
|
732
|
+
method: "DELETE",
|
|
733
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
734
|
+
path: {
|
|
735
|
+
bucket_id: bucketId
|
|
736
|
+
},
|
|
737
|
+
errors: {
|
|
738
|
+
422: `Validation Error`
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
static createFolderFileLibraryFoldersPost(requestBody) {
|
|
743
|
+
return request(OpenAPI, {
|
|
744
|
+
method: "POST",
|
|
745
|
+
url: "/file-library/folders",
|
|
746
|
+
body: requestBody,
|
|
747
|
+
mediaType: "application/json",
|
|
748
|
+
errors: {
|
|
749
|
+
422: `Validation Error`
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
static getFoldersFileLibraryBucketsBucketIdFoldersGet(bucketId, parentFolderId) {
|
|
754
|
+
return request(OpenAPI, {
|
|
755
|
+
method: "GET",
|
|
756
|
+
url: "/file-library/buckets/{bucket_id}/folders",
|
|
757
|
+
path: {
|
|
758
|
+
bucket_id: bucketId
|
|
759
|
+
},
|
|
760
|
+
query: {
|
|
761
|
+
parent_folder_id: parentFolderId
|
|
762
|
+
},
|
|
763
|
+
errors: {
|
|
764
|
+
422: `Validation Error`
|
|
765
|
+
}
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
static deleteFolderFileLibraryFoldersFolderIdDelete(folderId) {
|
|
769
|
+
return request(OpenAPI, {
|
|
770
|
+
method: "DELETE",
|
|
771
|
+
url: "/file-library/folders/{folder_id}",
|
|
772
|
+
path: {
|
|
773
|
+
folder_id: folderId
|
|
774
|
+
},
|
|
775
|
+
errors: {
|
|
776
|
+
422: `Validation Error`
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
static uploadFileFileLibraryFoldersFolderIdFilesPost(folderId, formData) {
|
|
781
|
+
return request(OpenAPI, {
|
|
782
|
+
method: "POST",
|
|
783
|
+
url: "/file-library/folders/{folder_id}/files",
|
|
784
|
+
path: {
|
|
785
|
+
folder_id: folderId
|
|
786
|
+
},
|
|
787
|
+
formData,
|
|
788
|
+
mediaType: "multipart/form-data",
|
|
789
|
+
errors: {
|
|
790
|
+
422: `Validation Error`
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
static getFilesFileLibraryFoldersFolderIdFilesGet(folderId) {
|
|
795
|
+
return request(OpenAPI, {
|
|
796
|
+
method: "GET",
|
|
797
|
+
url: "/file-library/folders/{folder_id}/files",
|
|
798
|
+
path: {
|
|
799
|
+
folder_id: folderId
|
|
800
|
+
},
|
|
801
|
+
errors: {
|
|
802
|
+
422: `Validation Error`
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
static deleteFileFileLibraryFilesFileIdDelete(fileId) {
|
|
807
|
+
return request(OpenAPI, {
|
|
808
|
+
method: "DELETE",
|
|
809
|
+
url: "/file-library/files/{file_id}",
|
|
810
|
+
path: {
|
|
811
|
+
file_id: fileId
|
|
812
|
+
},
|
|
813
|
+
errors: {
|
|
814
|
+
422: `Validation Error`
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
static uploadFolderFileLibraryFoldersParentFolderIdUploadFolderPost(parentFolderId, requestBody) {
|
|
819
|
+
return request(OpenAPI, {
|
|
820
|
+
method: "POST",
|
|
821
|
+
url: "/file-library/folders/{parent_folder_id}/upload-folder",
|
|
822
|
+
path: {
|
|
823
|
+
parent_folder_id: parentFolderId
|
|
824
|
+
},
|
|
825
|
+
body: requestBody,
|
|
826
|
+
mediaType: "application/json",
|
|
827
|
+
errors: {
|
|
828
|
+
422: `Validation Error`
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
static createFolderVectorStoreFileLibraryFoldersFolderIdCreateVectorStorePost(folderId) {
|
|
833
|
+
return request(OpenAPI, {
|
|
834
|
+
method: "POST",
|
|
835
|
+
url: "/file-library/folders/{folder_id}/create-vector-store",
|
|
836
|
+
path: {
|
|
837
|
+
folder_id: folderId
|
|
838
|
+
},
|
|
839
|
+
errors: {
|
|
840
|
+
422: `Validation Error`
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
var init_FileLibraryService = __esm(() => {
|
|
846
|
+
init_OpenAPI();
|
|
847
|
+
init_request();
|
|
848
|
+
});
|
|
849
|
+
|
|
699
850
|
// src/lib/clients/agents-generator/services/McpServersService.ts
|
|
700
851
|
class McpServersService {
|
|
701
852
|
static getMcpServersMcpServersGet() {
|
|
@@ -750,6 +901,7 @@ var init_agents_generator = __esm(() => {
|
|
|
750
901
|
init_AgentService();
|
|
751
902
|
init_ConversationsService();
|
|
752
903
|
init_DefaultService();
|
|
904
|
+
init_FileLibraryService();
|
|
753
905
|
init_McpServersService();
|
|
754
906
|
init_RootService();
|
|
755
907
|
});
|
|
@@ -760,6 +912,7 @@ class AgentClient {
|
|
|
760
912
|
conversations;
|
|
761
913
|
mcpServers;
|
|
762
914
|
root;
|
|
915
|
+
fileLibrary;
|
|
763
916
|
ApiError;
|
|
764
917
|
CancelError;
|
|
765
918
|
CancelablePromise;
|
|
@@ -778,6 +931,7 @@ class AgentClient {
|
|
|
778
931
|
this.conversations = ConversationsService;
|
|
779
932
|
this.mcpServers = McpServersService;
|
|
780
933
|
this.root = RootService;
|
|
934
|
+
this.fileLibrary = FileLibraryService;
|
|
781
935
|
this.conversationsStream = ConversationsServiceStream;
|
|
782
936
|
this.ApiError = ApiError;
|
|
783
937
|
this.CancelError = CancelError;
|
|
@@ -980,6 +1134,7 @@ __export(exports_src, {
|
|
|
980
1134
|
RootService: () => RootService,
|
|
981
1135
|
OpenAPI: () => OpenAPI,
|
|
982
1136
|
McpServersService: () => McpServersService,
|
|
1137
|
+
FileLibraryService: () => FileLibraryService,
|
|
983
1138
|
DefaultService: () => DefaultService,
|
|
984
1139
|
ConversationsService: () => ConversationsService,
|
|
985
1140
|
CancelablePromise: () => CancelablePromise,
|
|
@@ -6,6 +6,9 @@ export type { AgentInitResponse } from './models/AgentInitResponse';
|
|
|
6
6
|
export type { AgentQueryRequest } from './models/AgentQueryRequest';
|
|
7
7
|
export type { AgentQueryResponse } from './models/AgentQueryResponse';
|
|
8
8
|
export type { AgentRequest } from './models/AgentRequest';
|
|
9
|
+
export type { Body_upload_file_file_library_folders__folder_id__files_post } from './models/Body_upload_file_file_library_folders__folder_id__files_post';
|
|
10
|
+
export type { BucketCreate } from './models/BucketCreate';
|
|
11
|
+
export type { BucketResponse } from './models/BucketResponse';
|
|
9
12
|
export type { ConversationCreate } from './models/ConversationCreate';
|
|
10
13
|
export type { ConversationResponse } from './models/ConversationResponse';
|
|
11
14
|
export type { ConversationUpdate } from './models/ConversationUpdate';
|
|
@@ -13,6 +16,12 @@ export type { CredentialCreate } from './models/CredentialCreate';
|
|
|
13
16
|
export type { CredentialUpdate } from './models/CredentialUpdate';
|
|
14
17
|
export type { Edge } from './models/Edge';
|
|
15
18
|
export type { ErrorResponse } from './models/ErrorResponse';
|
|
19
|
+
export type { FileResponse } from './models/FileResponse';
|
|
20
|
+
export type { FileUploadItem } from './models/FileUploadItem';
|
|
21
|
+
export type { FolderCreate } from './models/FolderCreate';
|
|
22
|
+
export type { FolderResponse } from './models/FolderResponse';
|
|
23
|
+
export type { FolderUploadRequest } from './models/FolderUploadRequest';
|
|
24
|
+
export type { FolderUploadResponse } from './models/FolderUploadResponse';
|
|
16
25
|
export type { Handoff } from './models/Handoff';
|
|
17
26
|
export type { HTTPValidationError } from './models/HTTPValidationError';
|
|
18
27
|
export type { MarkerEnd } from './models/MarkerEnd';
|
|
@@ -29,5 +38,6 @@ export type { ValidationError } from './models/ValidationError';
|
|
|
29
38
|
export { AgentService } from './services/AgentService';
|
|
30
39
|
export { ConversationsService } from './services/ConversationsService';
|
|
31
40
|
export { DefaultService } from './services/DefaultService';
|
|
41
|
+
export { FileLibraryService } from './services/FileLibraryService';
|
|
32
42
|
export { McpServersService } from './services/McpServersService';
|
|
33
43
|
export { RootService } from './services/RootService';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FileResponse } from './FileResponse';
|
|
2
|
+
import type { FolderResponse } from './FolderResponse';
|
|
3
|
+
export type FolderUploadResponse = {
|
|
4
|
+
created_folders: Array<FolderResponse>;
|
|
5
|
+
uploaded_files: Array<FileResponse>;
|
|
6
|
+
vector_stores: Record<string, string>;
|
|
7
|
+
errors: Array<string>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { Body_upload_file_file_library_folders__folder_id__files_post } from '../models/Body_upload_file_file_library_folders__folder_id__files_post';
|
|
2
|
+
import type { BucketCreate } from '../models/BucketCreate';
|
|
3
|
+
import type { BucketResponse } from '../models/BucketResponse';
|
|
4
|
+
import type { FileResponse } from '../models/FileResponse';
|
|
5
|
+
import type { FolderCreate } from '../models/FolderCreate';
|
|
6
|
+
import type { FolderResponse } from '../models/FolderResponse';
|
|
7
|
+
import type { FolderUploadRequest } from '../models/FolderUploadRequest';
|
|
8
|
+
import type { FolderUploadResponse } from '../models/FolderUploadResponse';
|
|
9
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
|
+
export declare class FileLibraryService {
|
|
11
|
+
/**
|
|
12
|
+
* Get Buckets
|
|
13
|
+
* Get all buckets for the user
|
|
14
|
+
* @returns BucketResponse Successful Response
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
static getBucketsFileLibraryBucketsGet(): CancelablePromise<Array<BucketResponse>>;
|
|
18
|
+
/**
|
|
19
|
+
* Create Bucket
|
|
20
|
+
* Create a new S3 bucket
|
|
21
|
+
* @param requestBody
|
|
22
|
+
* @returns BucketResponse Successful Response
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
static createBucketFileLibraryBucketsPost(requestBody: BucketCreate): CancelablePromise<BucketResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Get Bucket
|
|
28
|
+
* Get a specific bucket
|
|
29
|
+
* @param bucketId
|
|
30
|
+
* @returns BucketResponse Successful Response
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static getBucketFileLibraryBucketsBucketIdGet(bucketId: string): CancelablePromise<BucketResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Delete Bucket
|
|
36
|
+
* Delete a bucket
|
|
37
|
+
* @param bucketId
|
|
38
|
+
* @returns any Successful Response
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static deleteBucketFileLibraryBucketsBucketIdDelete(bucketId: string): CancelablePromise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* Create Folder
|
|
44
|
+
* Create a new folder
|
|
45
|
+
* @param requestBody
|
|
46
|
+
* @returns FolderResponse Successful Response
|
|
47
|
+
* @throws ApiError
|
|
48
|
+
*/
|
|
49
|
+
static createFolderFileLibraryFoldersPost(requestBody: FolderCreate): CancelablePromise<FolderResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Get Folders
|
|
52
|
+
* Get folders in a bucket
|
|
53
|
+
* @param bucketId
|
|
54
|
+
* @param parentFolderId
|
|
55
|
+
* @returns FolderResponse Successful Response
|
|
56
|
+
* @throws ApiError
|
|
57
|
+
*/
|
|
58
|
+
static getFoldersFileLibraryBucketsBucketIdFoldersGet(bucketId: string, parentFolderId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
59
|
+
/**
|
|
60
|
+
* Delete Folder
|
|
61
|
+
* Delete a folder
|
|
62
|
+
* @param folderId
|
|
63
|
+
* @returns any Successful Response
|
|
64
|
+
* @throws ApiError
|
|
65
|
+
*/
|
|
66
|
+
static deleteFolderFileLibraryFoldersFolderIdDelete(folderId: string): CancelablePromise<any>;
|
|
67
|
+
/**
|
|
68
|
+
* Upload File
|
|
69
|
+
* Upload a file to a folder
|
|
70
|
+
* @param folderId
|
|
71
|
+
* @param formData
|
|
72
|
+
* @returns FileResponse Successful Response
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static uploadFileFileLibraryFoldersFolderIdFilesPost(folderId: string, formData: Body_upload_file_file_library_folders__folder_id__files_post): CancelablePromise<FileResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Get Files
|
|
78
|
+
* Get files in a folder
|
|
79
|
+
* @param folderId
|
|
80
|
+
* @returns FileResponse Successful Response
|
|
81
|
+
* @throws ApiError
|
|
82
|
+
*/
|
|
83
|
+
static getFilesFileLibraryFoldersFolderIdFilesGet(folderId: string): CancelablePromise<Array<FileResponse>>;
|
|
84
|
+
/**
|
|
85
|
+
* Delete File
|
|
86
|
+
* Delete a file
|
|
87
|
+
* @param fileId
|
|
88
|
+
* @returns any Successful Response
|
|
89
|
+
* @throws ApiError
|
|
90
|
+
*/
|
|
91
|
+
static deleteFileFileLibraryFilesFileIdDelete(fileId: string): CancelablePromise<any>;
|
|
92
|
+
/**
|
|
93
|
+
* Upload Folder
|
|
94
|
+
* Upload folder with subfolders and files
|
|
95
|
+
* @param parentFolderId
|
|
96
|
+
* @param requestBody
|
|
97
|
+
* @returns FolderUploadResponse Successful Response
|
|
98
|
+
* @throws ApiError
|
|
99
|
+
*/
|
|
100
|
+
static uploadFolderFileLibraryFoldersParentFolderIdUploadFolderPost(parentFolderId: string, requestBody: FolderUploadRequest): CancelablePromise<FolderUploadResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* Create Folder Vector Store
|
|
103
|
+
* Create OpenAI vector store for a specific folder
|
|
104
|
+
* @param folderId
|
|
105
|
+
* @returns FolderResponse Successful Response
|
|
106
|
+
* @throws ApiError
|
|
107
|
+
*/
|
|
108
|
+
static createFolderVectorStoreFileLibraryFoldersFolderIdCreateVectorStorePost(folderId: string): CancelablePromise<FolderResponse>;
|
|
109
|
+
}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService } from "./clients/agents-generator";
|
|
1
|
+
import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService } from "./clients/agents-generator";
|
|
2
2
|
export * from "./clients/agents-generator";
|
|
3
3
|
export interface StreamEvent {
|
|
4
4
|
type: string;
|
|
@@ -26,6 +26,7 @@ export declare class AgentClient {
|
|
|
26
26
|
conversations: typeof ConversationsService;
|
|
27
27
|
mcpServers: typeof McpServersService;
|
|
28
28
|
root: typeof RootService;
|
|
29
|
+
fileLibrary: typeof FileLibraryService;
|
|
29
30
|
ApiError: typeof ApiError;
|
|
30
31
|
CancelError: typeof CancelError;
|
|
31
32
|
CancelablePromise: typeof CancelablePromise;
|