{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ChatgptAuthTokensRefreshParams",
  "type": "object",
  "required": [
    "reason"
  ],
  "properties": {
    "previousAccountId": {
      "description": "Workspace/account identifier that Codex was previously using.\n\nClients that manage multiple accounts/workspaces can use this as a hint to refresh the token for the correct workspace.\n\nThis may be `null` when the prior auth state did not include a workspace identifier (`chatgpt_account_id`).",
      "type": [
        "string",
        "null"
      ]
    },
    "reason": {
      "$ref": "#/definitions/ChatgptAuthTokensRefreshReason"
    }
  },
  "definitions": {
    "ChatgptAuthTokensRefreshReason": {
      "oneOf": [
        {
          "description": "Codex attempted a backend request and received `401 Unauthorized`.",
          "type": "string",
          "enum": [
            "unauthorized"
          ]
        }
      ]
    }
  }
}