@ideascol/agents-generator-sdk 0.1.5 → 0.2.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.
@@ -0,0 +1,85 @@
1
+ import type { AgentInitResponse } from '../models/AgentInitResponse';
2
+ import type { AgentQueryRequest } from '../models/AgentQueryRequest';
3
+ import type { AgentQueryResponse } from '../models/AgentQueryResponse';
4
+ import type { AgentRequest } from '../models/AgentRequest';
5
+ import type { CreateAgentResponse } from '../models/CreateAgentResponse';
6
+ import type { GetAgentResponse } from '../models/GetAgentResponse';
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
8
+ export declare class AdminAgentsService {
9
+ /**
10
+ * Create Agent
11
+ * @param requestBody
12
+ * @returns CreateAgentResponse Successful Response
13
+ * @throws ApiError
14
+ */
15
+ static createAgent(requestBody: AgentRequest): CancelablePromise<CreateAgentResponse>;
16
+ /**
17
+ * Get Agents
18
+ * @param skip
19
+ * @param limit
20
+ * @returns GetAgentResponse Successful Response
21
+ * @throws ApiError
22
+ */
23
+ static getAgents(skip?: number, limit?: number): CancelablePromise<Array<GetAgentResponse>>;
24
+ /**
25
+ * Update Agent
26
+ * @param agentId
27
+ * @param requestBody
28
+ * @param userId
29
+ * @returns any Successful Response
30
+ * @throws ApiError
31
+ */
32
+ static updateAgent(agentId: string, requestBody: AgentRequest, userId?: (string | null)): CancelablePromise<Record<string, any>>;
33
+ /**
34
+ * Get Agent
35
+ * @param agentId
36
+ * @param userId
37
+ * @returns GetAgentResponse Successful Response
38
+ * @throws ApiError
39
+ */
40
+ static getAgent(agentId: string, userId?: (string | null)): CancelablePromise<GetAgentResponse>;
41
+ /**
42
+ * Delete Agent
43
+ * @param agentId
44
+ * @param userId
45
+ * @returns any Successful Response
46
+ * @throws ApiError
47
+ */
48
+ static deleteAgent(agentId: string, userId?: (string | null)): CancelablePromise<Record<string, any>>;
49
+ /**
50
+ * Initialize Agent
51
+ * @param agentId
52
+ * @returns AgentInitResponse Successful Response
53
+ * @throws ApiError
54
+ */
55
+ static initializeAgent(agentId: string): CancelablePromise<AgentInitResponse>;
56
+ /**
57
+ * Query Agent
58
+ * @param agentId
59
+ * @param requestBody
60
+ * @param userId
61
+ * @param conversationId
62
+ * @returns AgentQueryResponse Successful Response
63
+ * @throws ApiError
64
+ */
65
+ static queryAgent(agentId: string, requestBody: AgentQueryRequest, userId?: (string | null), conversationId?: (string | null)): CancelablePromise<AgentQueryResponse>;
66
+ /**
67
+ * Get Agent Structure
68
+ * Get detailed agent structure and tools information using openai-agents visualization.
69
+ * Returns information about the agent's graph structure, nodes, edges, and tools used.
70
+ * @param agentId
71
+ * @param userId
72
+ * @returns any Successful Response
73
+ * @throws ApiError
74
+ */
75
+ static getAgentStructure(agentId: string, userId?: (string | null)): CancelablePromise<Record<string, any>>;
76
+ /**
77
+ * Visualize Agent
78
+ * @param agentId
79
+ * @param userId
80
+ * @param format
81
+ * @returns any Successful Response
82
+ * @throws ApiError
83
+ */
84
+ static visualizeAgent(agentId: string, userId?: (string | null), format?: string): CancelablePromise<any>;
85
+ }
@@ -0,0 +1,44 @@
1
+ import type { ConversationCreate } from '../models/ConversationCreate';
2
+ import type { ConversationResponse } from '../models/ConversationResponse';
3
+ import type { ConversationUpdate } from '../models/ConversationUpdate';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
+ export declare class AdminConversationsService {
6
+ /**
7
+ * Create Conversation
8
+ * @param requestBody
9
+ * @returns ConversationResponse Successful Response
10
+ * @throws ApiError
11
+ */
12
+ static createConversation(requestBody: ConversationCreate): CancelablePromise<ConversationResponse>;
13
+ /**
14
+ * Get Conversation
15
+ * @param conversationId
16
+ * @returns ConversationResponse Successful Response
17
+ * @throws ApiError
18
+ */
19
+ static getConversation(conversationId: string): CancelablePromise<ConversationResponse>;
20
+ /**
21
+ * Update Conversation
22
+ * @param conversationId
23
+ * @param requestBody
24
+ * @returns ConversationResponse Successful Response
25
+ * @throws ApiError
26
+ */
27
+ static updateConversation(conversationId: string, requestBody: ConversationUpdate): CancelablePromise<ConversationResponse>;
28
+ /**
29
+ * Delete Conversation
30
+ * @param conversationId
31
+ * @returns any Successful Response
32
+ * @throws ApiError
33
+ */
34
+ static deleteConversation(conversationId: string): CancelablePromise<Record<string, any>>;
35
+ /**
36
+ * Get Agent Conversations
37
+ * @param agentId
38
+ * @param skip
39
+ * @param limit
40
+ * @returns ConversationResponse Successful Response
41
+ * @throws ApiError
42
+ */
43
+ static getAgentConversations(agentId: string, skip?: number, limit?: number): CancelablePromise<Array<ConversationResponse>>;
44
+ }
@@ -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 AdminCredentialsService {
5
+ /**
6
+ * Get Credentials
7
+ * Get all credentials for a user
8
+ * @returns any Successful Response
9
+ * @throws ApiError
10
+ */
11
+ static getCredentials(): 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 createCredential(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 getCredential(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 updateCredential(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 deleteCredential(credentialId: string): CancelablePromise<Record<string, any>>;
45
+ /**
46
+ * Get Credential Decrypted
47
+ * Get a credential with decrypted value
48
+ * @param credentialId
49
+ * @returns any Successful Response
50
+ * @throws ApiError
51
+ */
52
+ static getCredentialDecrypted(credentialId: string): CancelablePromise<Record<string, any>>;
53
+ }
@@ -0,0 +1,109 @@
1
+ import type { Body_upload_file } from '../models/Body_upload_file';
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 AdminFileLibraryService {
11
+ /**
12
+ * Get Buckets
13
+ * Get all buckets for the user
14
+ * @returns BucketResponse Successful Response
15
+ * @throws ApiError
16
+ */
17
+ static getBuckets(): 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 createBucket(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 getBucket(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 deleteBucket(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 createFolder(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 getFoldersByBucket(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 deleteFolder(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 uploadFile(folderId: string, formData: Body_upload_file): 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 getFilesByFolder(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 deleteFile(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 uploadFolder(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 createFolderVectorStore(folderId: string): CancelablePromise<FolderResponse>;
109
+ }
@@ -0,0 +1,30 @@
1
+ import type { CreateMCPServerRequest } from '../models/CreateMCPServerRequest';
2
+ import type { MCPServer } from '../models/MCPServer';
3
+ import type { MCPServerList } from '../models/MCPServerList';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
+ export declare class AdminMcpServersService {
6
+ /**
7
+ * Get Mcp Servers
8
+ * Get a list of all MCP servers.
9
+ * Currently returns mock data as specified in the requirements.
10
+ * @returns MCPServerList Successful Response
11
+ * @throws ApiError
12
+ */
13
+ static getMcpServersMcpServersGet(): CancelablePromise<MCPServerList>;
14
+ /**
15
+ * Create Mcp Server
16
+ * Create a new MCP server.
17
+ * @param requestBody
18
+ * @returns MCPServer Successful Response
19
+ * @throws ApiError
20
+ */
21
+ static createMcpServerMcpServersPost(requestBody: CreateMCPServerRequest): CancelablePromise<MCPServer>;
22
+ /**
23
+ * Get Mcp Server
24
+ * Get a specific MCP server by ID.
25
+ * @param serverId
26
+ * @returns MCPServer Successful Response
27
+ * @throws ApiError
28
+ */
29
+ static getMcpServerMcpServersServerIdGet(serverId: string): CancelablePromise<MCPServer>;
30
+ }
@@ -9,11 +9,10 @@ export declare class AgentService {
9
9
  /**
10
10
  * Create Agent
11
11
  * @param requestBody
12
- * @param userId
13
12
  * @returns CreateAgentResponse Successful Response
14
13
  * @throws ApiError
15
14
  */
16
- static createAgent(requestBody: AgentRequest, userId?: (string | null)): CancelablePromise<CreateAgentResponse>;
15
+ static createAgent(requestBody: AgentRequest): CancelablePromise<CreateAgentResponse>;
17
16
  /**
18
17
  * Get Agents
19
18
  * @param skip
@@ -0,0 +1,12 @@
1
+ import type { GetAgentResponse } from '../models/GetAgentResponse';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class PublicAgentsService {
4
+ /**
5
+ * Get Agent
6
+ * @param agentId
7
+ * @param userId
8
+ * @returns GetAgentResponse Successful Response
9
+ * @throws ApiError
10
+ */
11
+ static getAgent(agentId: string, userId?: (string | null)): CancelablePromise<GetAgentResponse>;
12
+ }
@@ -0,0 +1,29 @@
1
+ import type { ConversationCreate } from '../models/ConversationCreate';
2
+ import type { ConversationResponse } from '../models/ConversationResponse';
3
+ import type { MessageCreate } from '../models/MessageCreate';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
+ export declare class PublicConversationsService {
6
+ /**
7
+ * Create Conversation
8
+ * @param requestBody
9
+ * @returns ConversationResponse Successful Response
10
+ * @throws ApiError
11
+ */
12
+ static createConversation(requestBody: ConversationCreate): CancelablePromise<ConversationResponse>;
13
+ /**
14
+ * Get Conversation
15
+ * @param conversationId
16
+ * @returns ConversationResponse Successful Response
17
+ * @throws ApiError
18
+ */
19
+ static getConversation(conversationId: string): CancelablePromise<ConversationResponse>;
20
+ /**
21
+ * Add Message
22
+ * @param conversationId
23
+ * @param requestBody
24
+ * @param accept Content type to receive: 'text/event-stream' for streaming or 'text/plain' for plain text
25
+ * @returns any Successful response
26
+ * @throws ApiError
27
+ */
28
+ static addMessage(conversationId: string, requestBody: MessageCreate, accept?: (string | null)): CancelablePromise<any>;
29
+ }
@@ -1,4 +1,4 @@
1
- import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService, CredentialsService } from "./clients/agents-generator";
1
+ import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService, CredentialsService, AdminAgentsService, PublicAgentsService, PublicConversationsService, AdminConversationsService, AdminCredentialsService, AdminFileLibraryService, AdminMcpServersService } from "./clients/agents-generator";
2
2
  export * from "./clients/agents-generator";
3
3
  export interface StreamEvent {
4
4
  type: string;
@@ -21,28 +21,65 @@ declare class ConversationsServiceStream extends ConversationsService {
21
21
  */
22
22
  static addMessageConversationsConversationIdMessagesPostStream(conversationId: string, requestBody: MessageCreate, callbacks: StreamCallbacks): () => void;
23
23
  }
24
+ declare class PublicConversationsServiceExtended extends PublicConversationsService {
25
+ static sendMessageWithStreaming: typeof AgentClient.prototype.sendMessageWithStreaming;
26
+ static sendMessage: typeof AgentClient.prototype.sendMessage;
27
+ }
24
28
  export declare class AgentClient {
29
+ admin: {
30
+ agents: typeof AdminAgentsService;
31
+ conversations: typeof AdminConversationsService;
32
+ credentials: typeof AdminCredentialsService;
33
+ fileLibrary: typeof AdminFileLibraryService;
34
+ mcpServers: typeof AdminMcpServersService;
35
+ };
36
+ public: {
37
+ agents: typeof PublicAgentsService;
38
+ conversations: typeof PublicConversationsServiceExtended;
39
+ };
40
+ /**
41
+ * @deprecated agent: Use client.admin.agents
42
+ */
25
43
  agent: typeof AgentService;
44
+ /**
45
+ * @deprecated conversations, use xxxxx
46
+ */
26
47
  conversations: typeof ConversationsService;
48
+ /**
49
+ * @deprecated mcpServers: Use client.admin.mcpServers
50
+ */
27
51
  mcpServers: typeof McpServersService;
28
52
  root: typeof RootService;
53
+ /**
54
+ * @deprecated fileLibrary: Use client.admin.fileLibrary
55
+ */
29
56
  fileLibrary: typeof FileLibraryService;
57
+ /**
58
+ * @deprecated credentials: Use client.admin.credentials
59
+ */
30
60
  credentials: typeof CredentialsService;
31
61
  ApiError: typeof ApiError;
32
62
  CancelError: typeof CancelError;
33
63
  CancelablePromise: typeof CancelablePromise;
34
64
  OpenAPI: typeof OpenAPI;
65
+ /**
66
+ * Conversations stream service
67
+ * @deprecated Use client.public.conversations.sendMessageWithStreaming instead
68
+ */
35
69
  conversationsStream: typeof ConversationsServiceStream;
36
70
  constructor({ apiUrl, apiToken, }: {
37
71
  apiUrl: string;
38
72
  apiToken: string;
39
73
  });
40
74
  /**
41
- * Envía un mensaje a una conversación con soporte para streaming
75
+ * sendMessageWithStreaming: Sent a message with streaming support to a conversation
76
+ * @deprecated Use client.public.conversations.sendMessageWithStreaming instead
42
77
  */
43
78
  sendMessageWithStreaming(conversationId: string, requestBody: MessageCreate, callbacks: StreamCallbacks): () => void;
44
79
  /**
45
- * Envía un mensaje a una conversación sin streaming
80
+ * sendMessage: Sends a message to a conversation without streaming
81
+ * @returns CancelablePromise with the response
82
+ * @deprecated Use client.public.conversations.sendMessage instead
46
83
  */
47
84
  sendMessage(conversationId: string, requestBody: MessageCreate): CancelablePromise<{
48
85
  status: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.1.5",
3
+ "version": "0.2.1",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",