@ideascol/agents-generator-sdk 0.0.7 → 0.0.9

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
@@ -939,6 +939,21 @@ class AgentService {
939
939
  }
940
940
  });
941
941
  }
942
+ static getAgentStructureAgentsAgentIdStructureGet(agentId, userId) {
943
+ return request(OpenAPI, {
944
+ method: "GET",
945
+ url: "/agents/{agent_id}/structure",
946
+ path: {
947
+ agent_id: agentId
948
+ },
949
+ query: {
950
+ user_id: userId
951
+ },
952
+ errors: {
953
+ 422: `Validation Error`
954
+ }
955
+ });
956
+ }
942
957
  static visualizeAgentAgentsAgentIdVisualizeGet(agentId, userId, format = "png") {
943
958
  return request(OpenAPI, {
944
959
  method: "GET",
@@ -1247,6 +1262,32 @@ class FileLibraryService {
1247
1262
  }
1248
1263
  });
1249
1264
  }
1265
+ static uploadFolderFileLibraryFoldersParentFolderIdUploadFolderPost(parentFolderId, requestBody) {
1266
+ return request(OpenAPI, {
1267
+ method: "POST",
1268
+ url: "/file-library/folders/{parent_folder_id}/upload-folder",
1269
+ path: {
1270
+ parent_folder_id: parentFolderId
1271
+ },
1272
+ body: requestBody,
1273
+ mediaType: "application/json",
1274
+ errors: {
1275
+ 422: `Validation Error`
1276
+ }
1277
+ });
1278
+ }
1279
+ static createFolderVectorStoreFileLibraryFoldersFolderIdCreateVectorStorePost(folderId) {
1280
+ return request(OpenAPI, {
1281
+ method: "POST",
1282
+ url: "/file-library/folders/{folder_id}/create-vector-store",
1283
+ path: {
1284
+ folder_id: folderId
1285
+ },
1286
+ errors: {
1287
+ 422: `Validation Error`
1288
+ }
1289
+ });
1290
+ }
1250
1291
  }
1251
1292
  var init_FileLibraryService = __esm(() => {
1252
1293
  init_OpenAPI();
package/dist/index.js CHANGED
@@ -507,6 +507,21 @@ class AgentService {
507
507
  }
508
508
  });
509
509
  }
510
+ static getAgentStructureAgentsAgentIdStructureGet(agentId, userId) {
511
+ return request(OpenAPI, {
512
+ method: "GET",
513
+ url: "/agents/{agent_id}/structure",
514
+ path: {
515
+ agent_id: agentId
516
+ },
517
+ query: {
518
+ user_id: userId
519
+ },
520
+ errors: {
521
+ 422: `Validation Error`
522
+ }
523
+ });
524
+ }
510
525
  static visualizeAgentAgentsAgentIdVisualizeGet(agentId, userId, format = "png") {
511
526
  return request(OpenAPI, {
512
527
  method: "GET",
@@ -815,6 +830,32 @@ class FileLibraryService {
815
830
  }
816
831
  });
817
832
  }
833
+ static uploadFolderFileLibraryFoldersParentFolderIdUploadFolderPost(parentFolderId, requestBody) {
834
+ return request(OpenAPI, {
835
+ method: "POST",
836
+ url: "/file-library/folders/{parent_folder_id}/upload-folder",
837
+ path: {
838
+ parent_folder_id: parentFolderId
839
+ },
840
+ body: requestBody,
841
+ mediaType: "application/json",
842
+ errors: {
843
+ 422: `Validation Error`
844
+ }
845
+ });
846
+ }
847
+ static createFolderVectorStoreFileLibraryFoldersFolderIdCreateVectorStorePost(folderId) {
848
+ return request(OpenAPI, {
849
+ method: "POST",
850
+ url: "/file-library/folders/{folder_id}/create-vector-store",
851
+ path: {
852
+ folder_id: folderId
853
+ },
854
+ errors: {
855
+ 422: `Validation Error`
856
+ }
857
+ });
858
+ }
818
859
  }
819
860
  var init_FileLibraryService = __esm(() => {
820
861
  init_OpenAPI();
@@ -17,8 +17,11 @@ export type { CredentialUpdate } from './models/CredentialUpdate';
17
17
  export type { Edge } from './models/Edge';
18
18
  export type { ErrorResponse } from './models/ErrorResponse';
19
19
  export type { FileResponse } from './models/FileResponse';
20
+ export type { FileUploadItem } from './models/FileUploadItem';
20
21
  export type { FolderCreate } from './models/FolderCreate';
21
22
  export type { FolderResponse } from './models/FolderResponse';
23
+ export type { FolderUploadRequest } from './models/FolderUploadRequest';
24
+ export type { FolderUploadResponse } from './models/FolderUploadResponse';
22
25
  export type { Handoff } from './models/Handoff';
23
26
  export type { HTTPValidationError } from './models/HTTPValidationError';
24
27
  export type { MarkerEnd } from './models/MarkerEnd';
@@ -1,6 +1,7 @@
1
1
  export type BucketCreate = {
2
2
  name: string;
3
3
  credential_id: string;
4
+ openai_credential_id?: (string | null);
4
5
  region?: (string | null);
5
6
  user_id: string;
6
7
  };
@@ -1,6 +1,7 @@
1
1
  export type BucketResponse = {
2
2
  name: string;
3
3
  credential_id: string;
4
+ openai_credential_id?: (string | null);
4
5
  region?: (string | null);
5
6
  id: string;
6
7
  user_id: string;
@@ -5,6 +5,7 @@ export type FileResponse = {
5
5
  s3_key: string;
6
6
  size: number;
7
7
  content_type: string;
8
+ openai_file_id?: (string | null);
8
9
  created_at: string;
9
10
  updated_at: string;
10
11
  };
@@ -0,0 +1,7 @@
1
+ export type FileUploadItem = {
2
+ name: string;
3
+ path: string;
4
+ content: string;
5
+ size: number;
6
+ content_type: string;
7
+ };
@@ -4,6 +4,7 @@ export type FolderResponse = {
4
4
  id: string;
5
5
  bucket_id: string;
6
6
  path: string;
7
+ vector_store_id?: (string | null);
7
8
  created_at: string;
8
9
  updated_at: string;
9
10
  };
@@ -0,0 +1,4 @@
1
+ import type { FileUploadItem } from './FileUploadItem';
2
+ export type FolderUploadRequest = {
3
+ files: Array<FileUploadItem>;
4
+ };
@@ -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
+ };
@@ -8,4 +8,12 @@ export type NodeData = {
8
8
  * List of MCP servers associated with this node
9
9
  */
10
10
  mcp_servers?: Array<MCPServerReference>;
11
+ /**
12
+ * List of selected folders for file search tools
13
+ */
14
+ selectedFolders?: null;
15
+ /**
16
+ * Configuration for web search tool
17
+ */
18
+ webSearchConfig?: (Record<string, any> | null);
11
19
  };
@@ -62,6 +62,16 @@ export declare class AgentService {
62
62
  * @throws ApiError
63
63
  */
64
64
  static queryAgentAgentsAgentIdQueryPost(agentId: string, requestBody: AgentQueryRequest, userId?: string, conversationId?: (string | null)): CancelablePromise<AgentQueryResponse>;
65
+ /**
66
+ * Get Agent Structure
67
+ * Get detailed agent structure and tools information using openai-agents visualization.
68
+ * Returns information about the agent's graph structure, nodes, edges, and tools used.
69
+ * @param agentId
70
+ * @param userId
71
+ * @returns any Successful Response
72
+ * @throws ApiError
73
+ */
74
+ static getAgentStructureAgentsAgentIdStructureGet(agentId: string, userId?: string): CancelablePromise<Record<string, any>>;
65
75
  /**
66
76
  * Visualize Agent
67
77
  * @param agentId
@@ -4,6 +4,8 @@ import type { BucketResponse } from '../models/BucketResponse';
4
4
  import type { FileResponse } from '../models/FileResponse';
5
5
  import type { FolderCreate } from '../models/FolderCreate';
6
6
  import type { FolderResponse } from '../models/FolderResponse';
7
+ import type { FolderUploadRequest } from '../models/FolderUploadRequest';
8
+ import type { FolderUploadResponse } from '../models/FolderUploadResponse';
7
9
  import type { CancelablePromise } from '../core/CancelablePromise';
8
10
  export declare class FileLibraryService {
9
11
  /**
@@ -87,4 +89,21 @@ export declare class FileLibraryService {
87
89
  * @throws ApiError
88
90
  */
89
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>;
90
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",