mirror of
https://github.com/openai/codex.git
synced 2026-09-04 15:08:45 +00:00
## What changed - Make `thread/turns/list`, `thread/items/list`, and `thread/revert` available without the experimental API capability. - Stabilize `thread/reverted`, `thread.historyMode`, and the pagination fields used by `thread/resume` and `thread/fork`. - Publish the promoted requests, responses, and fields in the stable JSON and TypeScript schemas, and update the app-server documentation accordingly. GitOrigin-RevId: 18b8c53c265211597bb1a62fd62f66f4a3df5f06
85 lines
1.8 KiB
JSON
Generated
85 lines
1.8 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"SortDirection": {
|
|
"enum": [
|
|
"asc",
|
|
"desc"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"TurnItemsView": {
|
|
"oneOf": [
|
|
{
|
|
"description": "`items` was not loaded for this turn. The field is intentionally empty.",
|
|
"enum": [
|
|
"notLoaded"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"description": "`items` contains only a display summary for this turn.",
|
|
"enum": [
|
|
"summary"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"description": "`items` contains every ThreadItem available from persisted app-server history for this turn.",
|
|
"enum": [
|
|
"full"
|
|
],
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"properties": {
|
|
"cursor": {
|
|
"description": "Opaque cursor to pass to the next call to continue after the last turn.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"itemsView": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/TurnItemsView"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "How much item detail to include for each returned turn; defaults to summary."
|
|
},
|
|
"limit": {
|
|
"description": "Optional turn page size.",
|
|
"format": "uint32",
|
|
"minimum": 0.0,
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"sortDirection": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/SortDirection"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Optional turn pagination direction; defaults to descending."
|
|
},
|
|
"threadId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"threadId"
|
|
],
|
|
"title": "ThreadTurnsListParams",
|
|
"type": "object"
|
|
} |