@ideascol/agents-generator-sdk 0.0.6 → 0.0.7

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 CHANGED
@@ -1128,6 +1128,131 @@ 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
+ }
1251
+ var init_FileLibraryService = __esm(() => {
1252
+ init_OpenAPI();
1253
+ init_request();
1254
+ });
1255
+
1131
1256
  // src/lib/clients/agents-generator/services/McpServersService.ts
1132
1257
  class McpServersService {
1133
1258
  static getMcpServersMcpServersGet() {
@@ -1182,6 +1307,7 @@ var init_agents_generator = __esm(() => {
1182
1307
  init_AgentService();
1183
1308
  init_ConversationsService();
1184
1309
  init_DefaultService();
1310
+ init_FileLibraryService();
1185
1311
  init_McpServersService();
1186
1312
  init_RootService();
1187
1313
  });
@@ -1192,6 +1318,7 @@ class AgentClient {
1192
1318
  conversations;
1193
1319
  mcpServers;
1194
1320
  root;
1321
+ fileLibrary;
1195
1322
  ApiError;
1196
1323
  CancelError;
1197
1324
  CancelablePromise;
@@ -1210,6 +1337,7 @@ class AgentClient {
1210
1337
  this.conversations = ConversationsService;
1211
1338
  this.mcpServers = McpServersService;
1212
1339
  this.root = RootService;
1340
+ this.fileLibrary = FileLibraryService;
1213
1341
  this.conversationsStream = ConversationsServiceStream;
1214
1342
  this.ApiError = ApiError;
1215
1343
  this.CancelError = CancelError;
@@ -1409,8 +1537,8 @@ var init_lib = __esm(() => {
1409
1537
  // src/commands/agentsCommand.ts
1410
1538
  var import_cli_maker, commandAgents, agentsCommand_default;
1411
1539
  var init_agentsCommand = __esm(() => {
1412
- import_cli_maker = __toESM(require_dist());
1413
1540
  init_lib();
1541
+ import_cli_maker = __toESM(require_dist());
1414
1542
  commandAgents = {
1415
1543
  name: "getAgents",
1416
1544
  description: "Get the list of agents",
@@ -1432,8 +1560,8 @@ var init_agentsCommand = __esm(() => {
1432
1560
  // src/commands/rootCommand.ts
1433
1561
  var import_cli_maker2, rootCommand, rootCommand_default;
1434
1562
  var init_rootCommand = __esm(() => {
1435
- import_cli_maker2 = __toESM(require_dist());
1436
1563
  init_lib();
1564
+ import_cli_maker2 = __toESM(require_dist());
1437
1565
  rootCommand = {
1438
1566
  name: "version",
1439
1567
  description: "Get the version of the API",
@@ -1463,8 +1591,8 @@ var init_rootCommand = __esm(() => {
1463
1591
  // src/commands/conversationsCommand.ts
1464
1592
  var import_cli_maker3, commandConversations, conversationsCommand_default;
1465
1593
  var init_conversationsCommand = __esm(() => {
1466
- import_cli_maker3 = __toESM(require_dist());
1467
1594
  init_agents_generator();
1595
+ import_cli_maker3 = __toESM(require_dist());
1468
1596
  commandConversations = {
1469
1597
  name: "getConversations",
1470
1598
  description: "Get the list of conversations",
@@ -1506,11 +1634,11 @@ __export(exports_cli, {
1506
1634
  });
1507
1635
  var import_cli_maker4, cli;
1508
1636
  var init_cli = __esm(() => {
1509
- import_cli_maker4 = __toESM(require_dist());
1510
1637
  init_agents_generator();
1511
1638
  init_agentsCommand();
1512
1639
  init_rootCommand();
1513
1640
  init_conversationsCommand();
1641
+ import_cli_maker4 = __toESM(require_dist());
1514
1642
  cli = new import_cli_maker4.CLI("@ideascol/agents-generator-sdk", "agents-generator-sdk", {
1515
1643
  interactive: true,
1516
1644
  version: OpenAPI.VERSION
package/dist/index.js CHANGED
@@ -696,6 +696,131 @@ 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
+ }
819
+ var init_FileLibraryService = __esm(() => {
820
+ init_OpenAPI();
821
+ init_request();
822
+ });
823
+
699
824
  // src/lib/clients/agents-generator/services/McpServersService.ts
700
825
  class McpServersService {
701
826
  static getMcpServersMcpServersGet() {
@@ -750,6 +875,7 @@ var init_agents_generator = __esm(() => {
750
875
  init_AgentService();
751
876
  init_ConversationsService();
752
877
  init_DefaultService();
878
+ init_FileLibraryService();
753
879
  init_McpServersService();
754
880
  init_RootService();
755
881
  });
@@ -760,6 +886,7 @@ class AgentClient {
760
886
  conversations;
761
887
  mcpServers;
762
888
  root;
889
+ fileLibrary;
763
890
  ApiError;
764
891
  CancelError;
765
892
  CancelablePromise;
@@ -778,6 +905,7 @@ class AgentClient {
778
905
  this.conversations = ConversationsService;
779
906
  this.mcpServers = McpServersService;
780
907
  this.root = RootService;
908
+ this.fileLibrary = FileLibraryService;
781
909
  this.conversationsStream = ConversationsServiceStream;
782
910
  this.ApiError = ApiError;
783
911
  this.CancelError = CancelError;
@@ -980,6 +1108,7 @@ __export(exports_src, {
980
1108
  RootService: () => RootService,
981
1109
  OpenAPI: () => OpenAPI,
982
1110
  McpServersService: () => McpServersService,
1111
+ FileLibraryService: () => FileLibraryService,
983
1112
  DefaultService: () => DefaultService,
984
1113
  ConversationsService: () => ConversationsService,
985
1114
  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,9 @@ 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 { FolderCreate } from './models/FolderCreate';
21
+ export type { FolderResponse } from './models/FolderResponse';
16
22
  export type { Handoff } from './models/Handoff';
17
23
  export type { HTTPValidationError } from './models/HTTPValidationError';
18
24
  export type { MarkerEnd } from './models/MarkerEnd';
@@ -29,5 +35,6 @@ export type { ValidationError } from './models/ValidationError';
29
35
  export { AgentService } from './services/AgentService';
30
36
  export { ConversationsService } from './services/ConversationsService';
31
37
  export { DefaultService } from './services/DefaultService';
38
+ export { FileLibraryService } from './services/FileLibraryService';
32
39
  export { McpServersService } from './services/McpServersService';
33
40
  export { RootService } from './services/RootService';
@@ -0,0 +1,3 @@
1
+ export type Body_upload_file_file_library_folders__folder_id__files_post = {
2
+ file: Blob;
3
+ };
@@ -0,0 +1,6 @@
1
+ export type BucketCreate = {
2
+ name: string;
3
+ credential_id: string;
4
+ region?: (string | null);
5
+ user_id: string;
6
+ };
@@ -0,0 +1,9 @@
1
+ export type BucketResponse = {
2
+ name: string;
3
+ credential_id: string;
4
+ region?: (string | null);
5
+ id: string;
6
+ user_id: string;
7
+ created_at: string;
8
+ updated_at: string;
9
+ };
@@ -0,0 +1,10 @@
1
+ export type FileResponse = {
2
+ name: string;
3
+ id: string;
4
+ folder_id: string;
5
+ s3_key: string;
6
+ size: number;
7
+ content_type: string;
8
+ created_at: string;
9
+ updated_at: string;
10
+ };
@@ -0,0 +1,5 @@
1
+ export type FolderCreate = {
2
+ name: string;
3
+ parent_folder_id?: (string | null);
4
+ bucket_id: string;
5
+ };
@@ -0,0 +1,9 @@
1
+ export type FolderResponse = {
2
+ name: string;
3
+ parent_folder_id?: (string | null);
4
+ id: string;
5
+ bucket_id: string;
6
+ path: string;
7
+ created_at: string;
8
+ updated_at: string;
9
+ };
@@ -0,0 +1,90 @@
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 { CancelablePromise } from '../core/CancelablePromise';
8
+ export declare class FileLibraryService {
9
+ /**
10
+ * Get Buckets
11
+ * Get all buckets for the user
12
+ * @returns BucketResponse Successful Response
13
+ * @throws ApiError
14
+ */
15
+ static getBucketsFileLibraryBucketsGet(): CancelablePromise<Array<BucketResponse>>;
16
+ /**
17
+ * Create Bucket
18
+ * Create a new S3 bucket
19
+ * @param requestBody
20
+ * @returns BucketResponse Successful Response
21
+ * @throws ApiError
22
+ */
23
+ static createBucketFileLibraryBucketsPost(requestBody: BucketCreate): CancelablePromise<BucketResponse>;
24
+ /**
25
+ * Get Bucket
26
+ * Get a specific bucket
27
+ * @param bucketId
28
+ * @returns BucketResponse Successful Response
29
+ * @throws ApiError
30
+ */
31
+ static getBucketFileLibraryBucketsBucketIdGet(bucketId: string): CancelablePromise<BucketResponse>;
32
+ /**
33
+ * Delete Bucket
34
+ * Delete a bucket
35
+ * @param bucketId
36
+ * @returns any Successful Response
37
+ * @throws ApiError
38
+ */
39
+ static deleteBucketFileLibraryBucketsBucketIdDelete(bucketId: string): CancelablePromise<any>;
40
+ /**
41
+ * Create Folder
42
+ * Create a new folder
43
+ * @param requestBody
44
+ * @returns FolderResponse Successful Response
45
+ * @throws ApiError
46
+ */
47
+ static createFolderFileLibraryFoldersPost(requestBody: FolderCreate): CancelablePromise<FolderResponse>;
48
+ /**
49
+ * Get Folders
50
+ * Get folders in a bucket
51
+ * @param bucketId
52
+ * @param parentFolderId
53
+ * @returns FolderResponse Successful Response
54
+ * @throws ApiError
55
+ */
56
+ static getFoldersFileLibraryBucketsBucketIdFoldersGet(bucketId: string, parentFolderId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
57
+ /**
58
+ * Delete Folder
59
+ * Delete a folder
60
+ * @param folderId
61
+ * @returns any Successful Response
62
+ * @throws ApiError
63
+ */
64
+ static deleteFolderFileLibraryFoldersFolderIdDelete(folderId: string): CancelablePromise<any>;
65
+ /**
66
+ * Upload File
67
+ * Upload a file to a folder
68
+ * @param folderId
69
+ * @param formData
70
+ * @returns FileResponse Successful Response
71
+ * @throws ApiError
72
+ */
73
+ static uploadFileFileLibraryFoldersFolderIdFilesPost(folderId: string, formData: Body_upload_file_file_library_folders__folder_id__files_post): CancelablePromise<FileResponse>;
74
+ /**
75
+ * Get Files
76
+ * Get files in a folder
77
+ * @param folderId
78
+ * @returns FileResponse Successful Response
79
+ * @throws ApiError
80
+ */
81
+ static getFilesFileLibraryFoldersFolderIdFilesGet(folderId: string): CancelablePromise<Array<FileResponse>>;
82
+ /**
83
+ * Delete File
84
+ * Delete a file
85
+ * @param fileId
86
+ * @returns any Successful Response
87
+ * @throws ApiError
88
+ */
89
+ static deleteFileFileLibraryFilesFileIdDelete(fileId: string): CancelablePromise<any>;
90
+ }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",