{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roar-ai-com/json-schema/roar-ai-com-mcp-sign-in-status-schema.json",
  "title": "McpSignInStatus",
  "description": "Where one signed-in tool server stands. No token or secret is ever returned",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roar-ai-com-openapi.json#/components/schemas/McpSignInStatus",
  "type": "object",
  "required": [
    "upstreamId",
    "state",
    "signedInBy",
    "signedInByFormerMember",
    "signedInAt",
    "accountLabel",
    "accountLabelVerified",
    "signInHost",
    "knownVendor",
    "vendor",
    "scopes",
    "problem"
  ],
  "properties": {
    "upstreamId": {
      "type": "string",
      "format": "uuid"
    },
    "state": {
      "type": "string",
      "enum": [
        "not_signed_in",
        "connected",
        "needs_sign_in"
      ]
    },
    "signedInBy": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "id",
        "name",
        "email"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      },
      "description": "The person who signed in. Null once they are deleted"
    },
    "signedInByFormerMember": {
      "type": "boolean",
      "description": "The person who signed in has left the organisation: sign in again as someone current"
    },
    "signedInAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "accountLabel": {
      "type": [
        "string",
        "null"
      ],
      "description": "The vendor account the sign-in page REPORTED, when it named one. Unverified"
    },
    "accountLabelVerified": {
      "type": "boolean",
      "enum": [
        false
      ],
      "description": "Always false: `accountLabel` is not verified"
    },
    "signInHost": {
      "type": [
        "string",
        "null"
      ],
      "description": "The sign-in server’s host"
    },
    "knownVendor": {
      "type": "boolean",
      "description": "Whether the sign-in is a vendor Roar recognises, rather than a server’s own"
    },
    "vendor": {
      "type": [
        "string",
        "null"
      ],
      "description": "That vendor’s name, when `knownVendor`"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The permissions granted"
    },
    "problem": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "renewal_refused",
        "server_refused",
        "no_refresh_token",
        "app_removed",
        "unreadable",
        null
      ],
      "description": "Why it needs signing in again. Null unless `state` is `needs_sign_in`"
    }
  }
}