{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listings-api/json-schema/listings-api-connected-account-details-schema.json",
  "title": "ConnectedAccountDetails",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listings-api-connected-accounts-api-openapi.yml#/components/schemas/ConnectedAccountDetails",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "type": {
      "$ref": "#/$defs/ConnectedSite"
    },
    "listings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConnectedAccountListing"
      }
    }
  },
  "required": [
    "id"
  ],
  "$defs": {
    "ConnectedAccountListing": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/ConnectedAccountLocationStatus"
        }
      },
      "required": [
        "id"
      ]
    },
    "ConnectedAccountLocationStatus": {
      "type": "string",
      "enum": [
        "CONNECTED",
        "DISCONNECTED",
        "PENDING",
        "ERROR"
      ]
    },
    "ConnectedSite": {
      "type": "string",
      "enum": [
        "GOOGLE",
        "FACEBOOK",
        "YELP",
        "LINKEDIN",
        "APPLE",
        "PINTEREST",
        "TRIPADVISOR"
      ]
    }
  }
}