{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autoposting-ai/json-schema/autoposting-ai-platform-auth-status-schema.json",
  "title": "PlatformAuthStatus",
  "description": "Connection status for a single platform on a brand.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autoposting-ai-platform-oauth-api-openapi.yml#/components/schemas/PlatformAuthStatus",
  "type": "object",
  "properties": {
    "connected": {
      "type": "boolean"
    },
    "tokenExpired": {
      "type": "boolean"
    },
    "accounts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PlatformAccount"
      }
    }
  },
  "$defs": {
    "PlatformAccount": {
      "type": "object",
      "description": "A single connected account on a platform.",
      "properties": {
        "platformUserId": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "tokenId": {
          "type": "string"
        }
      }
    }
  }
}