{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-ssoexchange-request-schema.json",
  "title": "SSOExchangeRequest",
  "description": "SSO token exchange request model.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robosystems-ai-auth-sso-api-openapi.yml#/components/schemas/SSOExchangeRequest",
  "properties": {
    "token": {
      "type": "string",
      "title": "Token",
      "description": "Temporary SSO token"
    },
    "target_app": {
      "type": "string",
      "title": "Target App",
      "description": "Target application identifier"
    },
    "return_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Return Url",
      "description": "Optional return URL after authentication"
    },
    "browser_nonce_hash": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Browser Nonce Hash",
      "description": "SHA-256 (hex) of a nonce the target app minted in the browser that is signing in. Completion must present the nonce, so the handoff cannot be redeemed by any other browser; a session exchanged without one cannot be completed."
    }
  },
  "type": "object",
  "required": [
    "token",
    "target_app"
  ]
}