@@ -52,10 +52,10 @@ import { ListAgentsCommand } from './usecases/list-agents/list-agents.command';
5252import { ListAgents } from './usecases/list-agents/list-agents.usecase' ;
5353import { RemoveAgentIntegrationCommand } from './usecases/remove-agent-integration/remove-agent-integration.command' ;
5454import { RemoveAgentIntegration } from './usecases/remove-agent-integration/remove-agent-integration.usecase' ;
55- import { UpdateAgentIntegrationCommand } from './usecases/update-agent-integration/update-agent-integration.command' ;
56- import { UpdateAgentIntegration } from './usecases/update-agent-integration/update-agent-integration.usecase' ;
5755import { UpdateAgentCommand } from './usecases/update-agent/update-agent.command' ;
5856import { UpdateAgent } from './usecases/update-agent/update-agent.usecase' ;
57+ import { UpdateAgentIntegrationCommand } from './usecases/update-agent-integration/update-agent-integration.command' ;
58+ import { UpdateAgentIntegration } from './usecases/update-agent-integration/update-agent-integration.usecase' ;
5959
6060@ThrottlerCategory ( ApiRateLimitCategoryEnum . CONFIGURATION )
6161@ApiCommonResponses ( )
@@ -84,10 +84,7 @@ export class AgentsController {
8484 description : 'Creates an agent scoped to the current environment. The identifier must be unique per environment.' ,
8585 } )
8686 @RequirePermissions ( PermissionsEnum . AGENT_WRITE )
87- createAgent (
88- @UserSession ( ) user : UserSessionData ,
89- @Body ( ) body : CreateAgentRequestDto
90- ) : Promise < AgentResponseDto > {
87+ createAgent ( @UserSession ( ) user : UserSessionData , @Body ( ) body : CreateAgentRequestDto ) : Promise < AgentResponseDto > {
9188 return this . createAgentUsecase . execute (
9289 CreateAgentCommand . create ( {
9390 userId : user . _id ,
@@ -96,6 +93,7 @@ export class AgentsController {
9693 name : body . name ,
9794 identifier : body . identifier ,
9895 description : body . description ,
96+ active : body . active ,
9997 } )
10098 ) ;
10199 }
@@ -108,10 +106,7 @@ export class AgentsController {
108106 'Returns a cursor-paginated list of agents for the current environment. Use **after**, **before**, **limit**, **orderBy**, and **orderDirection** query parameters.' ,
109107 } )
110108 @RequirePermissions ( PermissionsEnum . AGENT_READ )
111- listAgents (
112- @UserSession ( ) user : UserSessionData ,
113- @Query ( ) query : ListAgentsQueryDto
114- ) : Promise < ListAgentsResponseDto > {
109+ listAgents ( @UserSession ( ) user : UserSessionData , @Query ( ) query : ListAgentsQueryDto ) : Promise < ListAgentsResponseDto > {
115110 return this . listAgentsUsecase . execute (
116111 ListAgentsCommand . create ( {
117112 user,
@@ -132,7 +127,8 @@ export class AgentsController {
132127 @ApiResponse ( AgentIntegrationResponseDto , 201 )
133128 @ApiOperation ( {
134129 summary : 'Link integration to agent' ,
135- description : 'Creates a link between an agent (by identifier) and an integration (by integration **identifier**, not the internal _id).' ,
130+ description :
131+ 'Creates a link between an agent (by identifier) and an integration (by integration **identifier**, not the internal _id).' ,
136132 } )
137133 @ApiNotFoundResponse ( {
138134 description : 'The agent or integration was not found.' ,
@@ -287,6 +283,7 @@ export class AgentsController {
287283 identifier,
288284 name : body . name ,
289285 description : body . description ,
286+ active : body . active ,
290287 behavior : body . behavior ,
291288 } )
292289 ) ;
0 commit comments