@@ -5083,6 +5083,61 @@ const docTemplate = `{
50835083 }
50845084 }
50855085 },
5086+ "/conversations/{id}/export": {
5087+ "get": {
5088+ "security": [
5089+ {
5090+ "BearerAuth": []
5091+ }
5092+ ],
5093+ "description": "导出当前用户单个会话的元信息、消息、运行日志和可见处理轨迹",
5094+ "consumes": [
5095+ "application/json"
5096+ ],
5097+ "produces": [
5098+ "application/json"
5099+ ],
5100+ "tags": [
5101+ "chat"
5102+ ],
5103+ "summary": "导出会话 JSON",
5104+ "parameters": [
5105+ {
5106+ "type": "string",
5107+ "description": "会话 public_id",
5108+ "name": "id",
5109+ "in": "path",
5110+ "required": true
5111+ }
5112+ ],
5113+ "responses": {
5114+ "200": {
5115+ "description": "OK",
5116+ "schema": {
5117+ "$ref": "#/definitions/internal_transport_http_conversation.ConversationExportResponseDoc"
5118+ }
5119+ },
5120+ "400": {
5121+ "description": "Bad Request",
5122+ "schema": {
5123+ "$ref": "#/definitions/internal_transport_http_conversation.ErrorDoc"
5124+ }
5125+ },
5126+ "404": {
5127+ "description": "Not Found",
5128+ "schema": {
5129+ "$ref": "#/definitions/internal_transport_http_conversation.ErrorDoc"
5130+ }
5131+ },
5132+ "500": {
5133+ "description": "Internal Server Error",
5134+ "schema": {
5135+ "$ref": "#/definitions/internal_transport_http_conversation.ErrorDoc"
5136+ }
5137+ }
5138+ }
5139+ }
5140+ },
50865141 "/conversations/{id}/messages": {
50875142 "get": {
50885143 "security": [
@@ -10937,6 +10992,72 @@ const docTemplate = `{
1093710992 }
1093810993 }
1093910994 },
10995+ "internal_transport_http_conversation.ConversationExportCompatibilityResponse": {
10996+ "type": "object",
10997+ "properties": {
10998+ "format": {
10999+ "type": "string"
11000+ },
11001+ "notes": {
11002+ "type": "string"
11003+ }
11004+ }
11005+ },
11006+ "internal_transport_http_conversation.ConversationExportResponse": {
11007+ "type": "object",
11008+ "properties": {
11009+ "compatibility": {
11010+ "$ref": "#/definitions/internal_transport_http_conversation.ConversationExportCompatibilityResponse"
11011+ },
11012+ "conversation": {
11013+ "$ref": "#/definitions/internal_transport_http_conversation.ConversationResponse"
11014+ },
11015+ "defaultMessagePublicIDs": {
11016+ "type": "array",
11017+ "items": {
11018+ "type": "string"
11019+ }
11020+ },
11021+ "exportScope": {
11022+ "type": "string"
11023+ },
11024+ "exportedAt": {
11025+ "type": "string"
11026+ },
11027+ "messages": {
11028+ "type": "array",
11029+ "items": {
11030+ "$ref": "#/definitions/internal_transport_http_conversation.MessageResponse"
11031+ }
11032+ },
11033+ "runs": {
11034+ "type": "array",
11035+ "items": {
11036+ "$ref": "#/definitions/internal_transport_http_conversation.RunResponse"
11037+ }
11038+ },
11039+ "totalMessages": {
11040+ "type": "integer"
11041+ },
11042+ "totalRuns": {
11043+ "type": "integer"
11044+ },
11045+ "version": {
11046+ "type": "integer"
11047+ }
11048+ }
11049+ },
11050+ "internal_transport_http_conversation.ConversationExportResponseDoc": {
11051+ "type": "object",
11052+ "properties": {
11053+ "data": {
11054+ "$ref": "#/definitions/internal_transport_http_conversation.ConversationExportResponse"
11055+ },
11056+ "errorMsg": {
11057+ "type": "string"
11058+ }
11059+ }
11060+ },
1094011061 "internal_transport_http_conversation.ConversationListResponseDoc": {
1094111062 "type": "object",
1094211063 "properties": {
0 commit comments