Files
codex/codex-rs/app-server-protocol/schema/json/v2/GetAccountSecuritySetupResponse.json
T
cooper-oai 4be90eb069 Fetch account security reminders through app-server (#60082)
## Why

Security reminder requests need to use app-server's active authentication and HTTP runtime, with results bound to the login that fetched them.

## What changed

- Add `account/securitySetup/read`, returning an optional notice with account and user IDs, plus generated protocol schemas and bindings.
- Fetch reminders in app-server only for a matching saved ChatGPT login. Return `notice: null` for ineligible, unavailable, or timed-out reads, and discard results when the login changes during the request.
- Route TUI reminder reads through the new method while retaining notice validation and identity checks. Unsupported servers produce no reminder.

## Testing

Add coverage for shared runtime use across restarts, ineligible authentication modes, and login changes during a fetch. Update TUI coverage for unavailable, unsupported, and mismatched notices.

GitOrigin-RevId: 426fee7ce98df17970957c06876881bc5b005196
2026-11-07 08:11:37 +00:00

62 lines
1.3 KiB
JSON
Generated

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"AccountSecuritySetupAction": {
"properties": {
"label": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"label",
"url"
],
"type": "object"
},
"AccountSecuritySetupNotice": {
"properties": {
"accountId": {
"type": "string"
},
"action": {
"$ref": "#/definitions/AccountSecuritySetupAction"
},
"description": {
"type": "string"
},
"title": {
"type": "string"
},
"userId": {
"type": "string"
}
},
"required": [
"accountId",
"action",
"description",
"title",
"userId"
],
"type": "object"
}
},
"description": "Optional security reminder bound to the account that fetched it. Unavailable or ineligible accounts return no notice; this read never changes account security.",
"properties": {
"notice": {
"anyOf": [
{
"$ref": "#/definitions/AccountSecuritySetupNotice"
},
{
"type": "null"
}
]
}
},
"title": "GetAccountSecuritySetupResponse",
"type": "object"
}