{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vee3-io/json-schema/vee3-io-portal-connected-account-response-schema.json",
  "title": "PortalConnectedAccountResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vee3-io-portal-api-openapi.yml#/components/schemas/PortalConnectedAccountResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "provider": {
      "type": "string",
      "title": "Provider"
    },
    "provider_user_id": {
      "type": "string",
      "title": "Provider User Id"
    },
    "screen_name": {
      "type": "string",
      "title": "Screen Name"
    },
    "display_name": {
      "type": "string",
      "title": "Display Name"
    },
    "avatar_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avatar Url"
    },
    "status": {
      "$ref": "#/$defs/ConnectedAccountStatus"
    },
    "is_default": {
      "type": "boolean",
      "title": "Is Default"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scopes"
    },
    "connected_at": {
      "type": "string",
      "format": "date-time",
      "title": "Connected At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "google_search_console_properties": {
      "items": {
        "$ref": "#/$defs/PortalGoogleSearchConsolePropertyResponse"
      },
      "type": "array",
      "title": "Google Search Console Properties"
    }
  },
  "type": "object",
  "required": [
    "id",
    "provider",
    "provider_user_id",
    "screen_name",
    "display_name",
    "avatar_url",
    "status",
    "is_default",
    "scopes",
    "connected_at",
    "updated_at"
  ],
  "$defs": {
    "ConnectedAccountStatus": {
      "type": "string",
      "enum": [
        "active",
        "disconnected"
      ],
      "title": "ConnectedAccountStatus"
    },
    "PortalGoogleSearchConsolePropertyResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "connection_id": {
          "type": "string",
          "format": "uuid",
          "title": "Connection Id"
        },
        "site_url": {
          "type": "string",
          "title": "Site Url"
        },
        "permission_level": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Permission Level"
        },
        "screen_name": {
          "type": "string",
          "title": "Screen Name"
        },
        "display_name": {
          "type": "string",
          "title": "Display Name"
        },
        "avatar_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Avatar Url"
        },
        "is_default": {
          "type": "boolean",
          "title": "Is Default"
        },
        "connected_at": {
          "type": "string",
          "format": "date-time",
          "title": "Connected At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "connection_id",
        "site_url",
        "permission_level",
        "screen_name",
        "display_name",
        "avatar_url",
        "is_default",
        "connected_at"
      ],
      "title": "PortalGoogleSearchConsolePropertyResponse"
    }
  }
}