fix(frontend/copilot): sync openapi.json with backend schema (query param descriptions)

This commit is contained in:
Zamil Majdy
2026-04-15 23:21:16 +07:00
parent 7e8a68a5c0
commit 3056be165f

View File

@@ -1490,7 +1490,7 @@
"get": {
"tags": ["v2", "chat", "chat"],
"summary": "Get Session",
"description": "Retrieve the details of a specific chat session.\n\nSupports cursor-based pagination via ``limit``, ``before_sequence``, and\n``after_sequence``.\n\nOn the initial load (no cursor provided) of a completed session, messages\nare returned in forward order starting from sequence 0 so the user always\nsees their initial prompt. Active sessions use the legacy newest-first\norder so streaming context is preserved.\n\nArgs:\n session_id: The unique identifier for the desired chat session.\n user_id: The authenticated user's ID.\n limit: Maximum number of messages to return (1-200, default 50).\n before_sequence: Return messages with sequence < this value (backward\n pagination cursor, used by active-session load-more).\n after_sequence: Return messages with sequence > this value (forward\n pagination cursor, used by completed-session load-more).\n\nReturns:\n SessionDetailResponse: Details for the requested session, including\n active_stream info and pagination metadata.",
"description": "Retrieve the details of a specific chat session.\n\nSupports cursor-based pagination via ``limit``, ``before_sequence``, and\n``after_sequence``. The two cursor parameters are mutually exclusive.\n\nOn the initial load (no cursor provided) of a completed session, messages\nare returned in forward order starting from sequence 0 so the user always\nsees their initial prompt. Active sessions use the legacy newest-first\norder so streaming context is preserved.",
"operationId": "getV2GetSession",
"security": [{ "HTTPBearerJWT": [] }],
"parameters": [
@@ -1508,9 +1508,11 @@
"type": "integer",
"maximum": 200,
"minimum": 1,
"description": "Maximum number of messages to return.",
"default": 50,
"title": "Limit"
}
},
"description": "Maximum number of messages to return."
},
{
"name": "before_sequence",
@@ -1521,8 +1523,10 @@
{ "type": "integer", "minimum": 0 },
{ "type": "null" }
],
"description": "Backward pagination cursor. Return messages with sequence number strictly less than this value. Used by active-session load-more. Mutually exclusive with after_sequence.",
"title": "Before Sequence"
}
},
"description": "Backward pagination cursor. Return messages with sequence number strictly less than this value. Used by active-session load-more. Mutually exclusive with after_sequence."
},
{
"name": "after_sequence",
@@ -1533,8 +1537,10 @@
{ "type": "integer", "minimum": 0 },
{ "type": "null" }
],
"description": "Forward pagination cursor. Return messages with sequence number strictly greater than this value. Used by completed-session load-more. Mutually exclusive with before_sequence.",
"title": "After Sequence"
}
},
"description": "Forward pagination cursor. Return messages with sequence number strictly greater than this value. Used by completed-session load-more. Mutually exclusive with before_sequence."
}
],
"responses": {