mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
21d36296f1
## Summary - Add backend-client types and fetch support for active workspace messages. - Add the app-server v2 `account/workspaceMessages/read` method, generated schemas, and README documentation. - Delegate workspace-message eligibility to the Codex backend feature gate; map a backend 404 to `featureEnabled: false`. ## Testing - `just write-app-server-schema` - `just test -p codex-backend-client` - `just test -p codex-app-server-protocol` - `just test -p codex-app-server workspace_messages` - `just fix -p codex-backend-client -p codex-app-server-protocol -p codex-app-server` - `just fmt` ## Stack - Base PR for #28232, which adds the TUI status-line integration.
67 lines
1.5 KiB
JSON
Generated
67 lines
1.5 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"WorkspaceMessage": {
|
|
"properties": {
|
|
"archivedAt": {
|
|
"description": "Unix timestamp (in seconds) when the message was archived.",
|
|
"format": "int64",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"createdAt": {
|
|
"description": "Unix timestamp (in seconds) when the message was created.",
|
|
"format": "int64",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"messageBody": {
|
|
"type": "string"
|
|
},
|
|
"messageId": {
|
|
"type": "string"
|
|
},
|
|
"messageType": {
|
|
"$ref": "#/definitions/WorkspaceMessageType"
|
|
}
|
|
},
|
|
"required": [
|
|
"messageBody",
|
|
"messageId",
|
|
"messageType"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"WorkspaceMessageType": {
|
|
"enum": [
|
|
"headline",
|
|
"announcement",
|
|
"unknown"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"properties": {
|
|
"featureEnabled": {
|
|
"description": "Whether the workspace-message backend route is available for this client.",
|
|
"type": "boolean"
|
|
},
|
|
"messages": {
|
|
"description": "Active workspace messages returned by the backend.",
|
|
"items": {
|
|
"$ref": "#/definitions/WorkspaceMessage"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"featureEnabled",
|
|
"messages"
|
|
],
|
|
"title": "GetWorkspaceMessagesResponse",
|
|
"type": "object"
|
|
} |