@ideascol/agents-generator-sdk 0.0.5 → 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/README.md CHANGED
@@ -75,7 +75,7 @@ npx @ideascol/agents-generator-sdk@latest version --apiToken=1232 --URL=https://
75
75
  ### Update lib client
76
76
 
77
77
  ```bash
78
- npx openapi-typescript-codegen \
78
+ npx openapi-typescript-codegen \
79
79
  --input https://api.agentsgenerator.dev/openapi.json \
80
80
  --output src/lib/clients/agents-generator \
81
81
  --client fetch
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-dbd7d9ca8a6b1e4622ef409e26cd8addb650e95f",
601
+ VERSION: "main-1.0.0",
602
602
  WITH_CREDENTIALS: false,
603
603
  CREDENTIALS: "include",
604
604
  TOKEN: undefined,
@@ -849,14 +849,13 @@ class AgentService {
849
849
  }
850
850
  });
851
851
  }
852
- static getAgentsAgentsGet(skip, limit = 100, userId) {
852
+ static getAgentsAgentsGet(skip, limit = 100) {
853
853
  return request(OpenAPI, {
854
854
  method: "GET",
855
855
  url: "/agents",
856
856
  query: {
857
857
  skip,
858
- limit,
859
- user_id: userId
858
+ limit
860
859
  },
861
860
  errors: {
862
861
  422: `Validation Error`
@@ -1054,6 +1053,206 @@ var init_ConversationsService = __esm(() => {
1054
1053
  init_request();
1055
1054
  });
1056
1055
 
1056
+ // src/lib/clients/agents-generator/services/DefaultService.ts
1057
+ class DefaultService {
1058
+ static getCredentialsCredentialsGet() {
1059
+ return request(OpenAPI, {
1060
+ method: "GET",
1061
+ url: "/credentials"
1062
+ });
1063
+ }
1064
+ static createCredentialCredentialsPost(requestBody) {
1065
+ return request(OpenAPI, {
1066
+ method: "POST",
1067
+ url: "/credentials",
1068
+ body: requestBody,
1069
+ mediaType: "application/json",
1070
+ errors: {
1071
+ 422: `Validation Error`
1072
+ }
1073
+ });
1074
+ }
1075
+ static getCredentialCredentialsCredentialIdGet(credentialId) {
1076
+ return request(OpenAPI, {
1077
+ method: "GET",
1078
+ url: "/credentials/{credential_id}",
1079
+ path: {
1080
+ credential_id: credentialId
1081
+ },
1082
+ errors: {
1083
+ 422: `Validation Error`
1084
+ }
1085
+ });
1086
+ }
1087
+ static updateCredentialCredentialsCredentialIdPut(credentialId, requestBody) {
1088
+ return request(OpenAPI, {
1089
+ method: "PUT",
1090
+ url: "/credentials/{credential_id}",
1091
+ path: {
1092
+ credential_id: credentialId
1093
+ },
1094
+ body: requestBody,
1095
+ mediaType: "application/json",
1096
+ errors: {
1097
+ 422: `Validation Error`
1098
+ }
1099
+ });
1100
+ }
1101
+ static deleteCredentialCredentialsCredentialIdDelete(credentialId) {
1102
+ return request(OpenAPI, {
1103
+ method: "DELETE",
1104
+ url: "/credentials/{credential_id}",
1105
+ path: {
1106
+ credential_id: credentialId
1107
+ },
1108
+ errors: {
1109
+ 422: `Validation Error`
1110
+ }
1111
+ });
1112
+ }
1113
+ static getCredentialDecryptedCredentialsCredentialIdDecryptGet(credentialId) {
1114
+ return request(OpenAPI, {
1115
+ method: "GET",
1116
+ url: "/credentials/{credential_id}/decrypt",
1117
+ path: {
1118
+ credential_id: credentialId
1119
+ },
1120
+ errors: {
1121
+ 422: `Validation Error`
1122
+ }
1123
+ });
1124
+ }
1125
+ }
1126
+ var init_DefaultService = __esm(() => {
1127
+ init_OpenAPI();
1128
+ init_request();
1129
+ });
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
+
1057
1256
  // src/lib/clients/agents-generator/services/McpServersService.ts
1058
1257
  class McpServersService {
1059
1258
  static getMcpServersMcpServersGet() {
@@ -1107,6 +1306,8 @@ var init_agents_generator = __esm(() => {
1107
1306
  init_OpenAPI();
1108
1307
  init_AgentService();
1109
1308
  init_ConversationsService();
1309
+ init_DefaultService();
1310
+ init_FileLibraryService();
1110
1311
  init_McpServersService();
1111
1312
  init_RootService();
1112
1313
  });
@@ -1117,6 +1318,7 @@ class AgentClient {
1117
1318
  conversations;
1118
1319
  mcpServers;
1119
1320
  root;
1321
+ fileLibrary;
1120
1322
  ApiError;
1121
1323
  CancelError;
1122
1324
  CancelablePromise;
@@ -1135,6 +1337,7 @@ class AgentClient {
1135
1337
  this.conversations = ConversationsService;
1136
1338
  this.mcpServers = McpServersService;
1137
1339
  this.root = RootService;
1340
+ this.fileLibrary = FileLibraryService;
1138
1341
  this.conversationsStream = ConversationsServiceStream;
1139
1342
  this.ApiError = ApiError;
1140
1343
  this.CancelError = CancelError;
@@ -1334,8 +1537,8 @@ var init_lib = __esm(() => {
1334
1537
  // src/commands/agentsCommand.ts
1335
1538
  var import_cli_maker, commandAgents, agentsCommand_default;
1336
1539
  var init_agentsCommand = __esm(() => {
1337
- import_cli_maker = __toESM(require_dist());
1338
1540
  init_lib();
1541
+ import_cli_maker = __toESM(require_dist());
1339
1542
  commandAgents = {
1340
1543
  name: "getAgents",
1341
1544
  description: "Get the list of agents",
@@ -1347,7 +1550,7 @@ var init_agentsCommand = __esm(() => {
1347
1550
  }],
1348
1551
  action: async (args) => {
1349
1552
  const client = new lib_default({ apiUrl: args.URL, apiToken: "" });
1350
- const agents = await client.agent.getAgentsAgentsGet(0, 100, "anonymus");
1553
+ const agents = await client.agent.getAgentsAgentsGet(0, 100);
1351
1554
  console.log(agents);
1352
1555
  }
1353
1556
  };
@@ -1357,8 +1560,8 @@ var init_agentsCommand = __esm(() => {
1357
1560
  // src/commands/rootCommand.ts
1358
1561
  var import_cli_maker2, rootCommand, rootCommand_default;
1359
1562
  var init_rootCommand = __esm(() => {
1360
- import_cli_maker2 = __toESM(require_dist());
1361
1563
  init_lib();
1564
+ import_cli_maker2 = __toESM(require_dist());
1362
1565
  rootCommand = {
1363
1566
  name: "version",
1364
1567
  description: "Get the version of the API",
@@ -1388,8 +1591,8 @@ var init_rootCommand = __esm(() => {
1388
1591
  // src/commands/conversationsCommand.ts
1389
1592
  var import_cli_maker3, commandConversations, conversationsCommand_default;
1390
1593
  var init_conversationsCommand = __esm(() => {
1391
- import_cli_maker3 = __toESM(require_dist());
1392
1594
  init_agents_generator();
1595
+ import_cli_maker3 = __toESM(require_dist());
1393
1596
  commandConversations = {
1394
1597
  name: "getConversations",
1395
1598
  description: "Get the list of conversations",
@@ -1431,11 +1634,11 @@ __export(exports_cli, {
1431
1634
  });
1432
1635
  var import_cli_maker4, cli;
1433
1636
  var init_cli = __esm(() => {
1434
- import_cli_maker4 = __toESM(require_dist());
1435
1637
  init_agents_generator();
1436
1638
  init_agentsCommand();
1437
1639
  init_rootCommand();
1438
1640
  init_conversationsCommand();
1641
+ import_cli_maker4 = __toESM(require_dist());
1439
1642
  cli = new import_cli_maker4.CLI("@ideascol/agents-generator-sdk", "agents-generator-sdk", {
1440
1643
  interactive: true,
1441
1644
  version: OpenAPI.VERSION
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-dbd7d9ca8a6b1e4622ef409e26cd8addb650e95f",
169
+ VERSION: "main-1.0.0",
170
170
  WITH_CREDENTIALS: false,
171
171
  CREDENTIALS: "include",
172
172
  TOKEN: undefined,
@@ -417,14 +417,13 @@ class AgentService {
417
417
  }
418
418
  });
419
419
  }
420
- static getAgentsAgentsGet(skip, limit = 100, userId) {
420
+ static getAgentsAgentsGet(skip, limit = 100) {
421
421
  return request(OpenAPI, {
422
422
  method: "GET",
423
423
  url: "/agents",
424
424
  query: {
425
425
  skip,
426
- limit,
427
- user_id: userId
426
+ limit
428
427
  },
429
428
  errors: {
430
429
  422: `Validation Error`
@@ -622,6 +621,206 @@ var init_ConversationsService = __esm(() => {
622
621
  init_request();
623
622
  });
624
623
 
624
+ // src/lib/clients/agents-generator/services/DefaultService.ts
625
+ class DefaultService {
626
+ static getCredentialsCredentialsGet() {
627
+ return request(OpenAPI, {
628
+ method: "GET",
629
+ url: "/credentials"
630
+ });
631
+ }
632
+ static createCredentialCredentialsPost(requestBody) {
633
+ return request(OpenAPI, {
634
+ method: "POST",
635
+ url: "/credentials",
636
+ body: requestBody,
637
+ mediaType: "application/json",
638
+ errors: {
639
+ 422: `Validation Error`
640
+ }
641
+ });
642
+ }
643
+ static getCredentialCredentialsCredentialIdGet(credentialId) {
644
+ return request(OpenAPI, {
645
+ method: "GET",
646
+ url: "/credentials/{credential_id}",
647
+ path: {
648
+ credential_id: credentialId
649
+ },
650
+ errors: {
651
+ 422: `Validation Error`
652
+ }
653
+ });
654
+ }
655
+ static updateCredentialCredentialsCredentialIdPut(credentialId, requestBody) {
656
+ return request(OpenAPI, {
657
+ method: "PUT",
658
+ url: "/credentials/{credential_id}",
659
+ path: {
660
+ credential_id: credentialId
661
+ },
662
+ body: requestBody,
663
+ mediaType: "application/json",
664
+ errors: {
665
+ 422: `Validation Error`
666
+ }
667
+ });
668
+ }
669
+ static deleteCredentialCredentialsCredentialIdDelete(credentialId) {
670
+ return request(OpenAPI, {
671
+ method: "DELETE",
672
+ url: "/credentials/{credential_id}",
673
+ path: {
674
+ credential_id: credentialId
675
+ },
676
+ errors: {
677
+ 422: `Validation Error`
678
+ }
679
+ });
680
+ }
681
+ static getCredentialDecryptedCredentialsCredentialIdDecryptGet(credentialId) {
682
+ return request(OpenAPI, {
683
+ method: "GET",
684
+ url: "/credentials/{credential_id}/decrypt",
685
+ path: {
686
+ credential_id: credentialId
687
+ },
688
+ errors: {
689
+ 422: `Validation Error`
690
+ }
691
+ });
692
+ }
693
+ }
694
+ var init_DefaultService = __esm(() => {
695
+ init_OpenAPI();
696
+ init_request();
697
+ });
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
+
625
824
  // src/lib/clients/agents-generator/services/McpServersService.ts
626
825
  class McpServersService {
627
826
  static getMcpServersMcpServersGet() {
@@ -675,6 +874,8 @@ var init_agents_generator = __esm(() => {
675
874
  init_OpenAPI();
676
875
  init_AgentService();
677
876
  init_ConversationsService();
877
+ init_DefaultService();
878
+ init_FileLibraryService();
678
879
  init_McpServersService();
679
880
  init_RootService();
680
881
  });
@@ -685,6 +886,7 @@ class AgentClient {
685
886
  conversations;
686
887
  mcpServers;
687
888
  root;
889
+ fileLibrary;
688
890
  ApiError;
689
891
  CancelError;
690
892
  CancelablePromise;
@@ -703,6 +905,7 @@ class AgentClient {
703
905
  this.conversations = ConversationsService;
704
906
  this.mcpServers = McpServersService;
705
907
  this.root = RootService;
908
+ this.fileLibrary = FileLibraryService;
706
909
  this.conversationsStream = ConversationsServiceStream;
707
910
  this.ApiError = ApiError;
708
911
  this.CancelError = CancelError;
@@ -905,6 +1108,8 @@ __export(exports_src, {
905
1108
  RootService: () => RootService,
906
1109
  OpenAPI: () => OpenAPI,
907
1110
  McpServersService: () => McpServersService,
1111
+ FileLibraryService: () => FileLibraryService,
1112
+ DefaultService: () => DefaultService,
908
1113
  ConversationsService: () => ConversationsService,
909
1114
  CancelablePromise: () => CancelablePromise,
910
1115
  CancelError: () => CancelError,
@@ -6,11 +6,19 @@ 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';
15
+ export type { CredentialCreate } from './models/CredentialCreate';
16
+ export type { CredentialUpdate } from './models/CredentialUpdate';
12
17
  export type { Edge } from './models/Edge';
13
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';
14
22
  export type { Handoff } from './models/Handoff';
15
23
  export type { HTTPValidationError } from './models/HTTPValidationError';
16
24
  export type { MarkerEnd } from './models/MarkerEnd';
@@ -26,5 +34,7 @@ export type { Position } from './models/Position';
26
34
  export type { ValidationError } from './models/ValidationError';
27
35
  export { AgentService } from './services/AgentService';
28
36
  export { ConversationsService } from './services/ConversationsService';
37
+ export { DefaultService } from './services/DefaultService';
38
+ export { FileLibraryService } from './services/FileLibraryService';
29
39
  export { McpServersService } from './services/McpServersService';
30
40
  export { RootService } from './services/RootService';
@@ -9,6 +9,10 @@ export type AgentRequest = {
9
9
  * List of MCP servers associated with this agent
10
10
  */
11
11
  mcp_servers?: Array<MCPServerReference>;
12
+ /**
13
+ * ID of the credential associated with this agent
14
+ */
15
+ credential_id?: (string | null);
12
16
  nodes: Array<Node>;
13
17
  edges: Array<Edge>;
14
18
  timestamp: string;
@@ -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,8 @@
1
+ export type CredentialCreate = {
2
+ name: string;
3
+ type: string;
4
+ key?: (string | null);
5
+ description?: (string | null);
6
+ value: string;
7
+ user_id: string;
8
+ };
@@ -0,0 +1,7 @@
1
+ export type CredentialUpdate = {
2
+ name?: (string | null);
3
+ type?: (string | null);
4
+ key?: (string | null);
5
+ value?: (string | null);
6
+ description?: (string | null);
7
+ };
@@ -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
+ };
@@ -16,11 +16,10 @@ export declare class AgentService {
16
16
  * Get Agents
17
17
  * @param skip
18
18
  * @param limit
19
- * @param userId
20
19
  * @returns any Successful Response
21
20
  * @throws ApiError
22
21
  */
23
- static getAgentsAgentsGet(skip?: number, limit?: number, userId?: string): CancelablePromise<Array<Record<string, any>>>;
22
+ static getAgentsAgentsGet(skip?: number, limit?: number): CancelablePromise<Array<Record<string, any>>>;
24
23
  /**
25
24
  * Update Agent
26
25
  * @param agentId
@@ -0,0 +1,53 @@
1
+ import type { CredentialCreate } from '../models/CredentialCreate';
2
+ import type { CredentialUpdate } from '../models/CredentialUpdate';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class DefaultService {
5
+ /**
6
+ * Get Credentials
7
+ * Get all credentials for a user
8
+ * @returns any Successful Response
9
+ * @throws ApiError
10
+ */
11
+ static getCredentialsCredentialsGet(): CancelablePromise<Record<string, any>>;
12
+ /**
13
+ * Create Credential
14
+ * Create a new credential
15
+ * @param requestBody
16
+ * @returns any Successful Response
17
+ * @throws ApiError
18
+ */
19
+ static createCredentialCredentialsPost(requestBody: CredentialCreate): CancelablePromise<Record<string, any>>;
20
+ /**
21
+ * Get Credential
22
+ * Get a specific credential by ID
23
+ * @param credentialId
24
+ * @returns any Successful Response
25
+ * @throws ApiError
26
+ */
27
+ static getCredentialCredentialsCredentialIdGet(credentialId: string): CancelablePromise<Record<string, any>>;
28
+ /**
29
+ * Update Credential
30
+ * Update a credential
31
+ * @param credentialId
32
+ * @param requestBody
33
+ * @returns any Successful Response
34
+ * @throws ApiError
35
+ */
36
+ static updateCredentialCredentialsCredentialIdPut(credentialId: string, requestBody: CredentialUpdate): CancelablePromise<Record<string, any>>;
37
+ /**
38
+ * Delete Credential
39
+ * Delete a credential
40
+ * @param credentialId
41
+ * @returns any Successful Response
42
+ * @throws ApiError
43
+ */
44
+ static deleteCredentialCredentialsCredentialIdDelete(credentialId: string): CancelablePromise<Record<string, any>>;
45
+ /**
46
+ * Get Credential Decrypted
47
+ * Get a credential with decrypted value (internal use only)
48
+ * @param credentialId
49
+ * @returns any Successful Response
50
+ * @throws ApiError
51
+ */
52
+ static getCredentialDecryptedCredentialsCredentialIdDecryptGet(credentialId: string): CancelablePromise<Record<string, any>>;
53
+ }
@@ -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.5",
3
+ "version": "0.0.7",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",