Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class ConversationController(
private val commandBus: CommandBus,
private val getConversationQueryService: GetConversationQueryService,
) {
@Deprecated(
"Replaced by the Conversation surface backed by the renamed model (#68). Removed once nothing calls it.",
)
@PostMapping
@ResponseStatus(HttpStatus.CREATED)
fun create(
Expand All @@ -45,6 +48,9 @@ class ConversationController(
return ConversationResponse.from(created)
}

@Deprecated(
"Replaced by the Conversation surface backed by the renamed model (#68). Removed once nothing calls it.",
)
@GetMapping("/{id}")
fun getById(
@PathVariable id: UUID,
Expand All @@ -53,6 +59,9 @@ class ConversationController(
return ConversationResponse.from(conversation)
}

@Deprecated(
"Replaced by the Conversation surface backed by the renamed model (#68). Removed once nothing calls it.",
)
@DeleteMapping("/{id}")
@ResponseStatus(HttpStatus.NO_CONTENT)
fun archive(
Expand All @@ -62,6 +71,9 @@ class ConversationController(
commandBus.dispatch(ArchiveConversationCommand(conversationId = ConversationId(id), userId = userId))
}

@Deprecated(
"Replaced by the Conversation surface backed by the renamed model (#68). Removed once nothing calls it.",
)
@GetMapping
fun listByUser(
@RequestHeader("X-User-Id") userId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class MessageController(
private val commandBus: CommandBus,
private val getMessageQueryService: GetMessageQueryService,
) {
@Deprecated(
"Replaced by the Conversation surface backed by the renamed model (#68). Removed once nothing calls it.",
)
@PostMapping
@ResponseStatus(HttpStatus.CREATED)
fun send(
Expand All @@ -52,6 +55,9 @@ class MessageController(
return MessageResponse.from(saved)
}

@Deprecated(
"Replaced by the Conversation surface backed by the renamed model (#68). Removed once nothing calls it.",
)
@GetMapping
fun list(
@PathVariable conversationId: UUID,
Expand Down
18 changes: 12 additions & 6 deletions client-spec/openapi/agents-api-client.json
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,8 @@
}
}
}
}
},
"deprecated" : true
},
"post" : {
"tags" : [ "conversation-controller" ],
Expand Down Expand Up @@ -749,7 +750,8 @@
}
}
}
}
},
"deprecated" : true
}
},
"/api/v1/conversations/{conversationId}/messages" : {
Expand Down Expand Up @@ -779,7 +781,8 @@
}
}
}
}
},
"deprecated" : true
},
"post" : {
"tags" : [ "message-controller" ],
Expand Down Expand Up @@ -821,7 +824,8 @@
}
}
}
}
},
"deprecated" : true
}
},
"/api/v1/chat-sessions" : {
Expand Down Expand Up @@ -1434,7 +1438,8 @@
}
}
}
}
},
"deprecated" : true
},
"delete" : {
"tags" : [ "conversation-controller" ],
Expand All @@ -1459,7 +1464,8 @@
"204" : {
"description" : "No Content"
}
}
},
"deprecated" : true
}
},
"/api/v1/chat-sessions/{id}" : {
Expand Down
18 changes: 12 additions & 6 deletions client-spec/openapi/agents-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,8 @@
}
}
}
}
},
"deprecated" : true
},
"post" : {
"tags" : [ "conversation-controller" ],
Expand Down Expand Up @@ -749,7 +750,8 @@
}
}
}
}
},
"deprecated" : true
}
},
"/api/v1/conversations/{conversationId}/messages" : {
Expand Down Expand Up @@ -779,7 +781,8 @@
}
}
}
}
},
"deprecated" : true
},
"post" : {
"tags" : [ "message-controller" ],
Expand Down Expand Up @@ -821,7 +824,8 @@
}
}
}
}
},
"deprecated" : true
}
},
"/api/v1/chat-sessions" : {
Expand Down Expand Up @@ -1434,7 +1438,8 @@
}
}
}
}
},
"deprecated" : true
},
"delete" : {
"tags" : [ "conversation-controller" ],
Expand All @@ -1459,7 +1464,8 @@
"204" : {
"description" : "No Content"
}
}
},
"deprecated" : true
}
},
"/api/v1/chat-sessions/{id}" : {
Expand Down
Loading