{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/woopsocial-com/json-schema/woopsocial-com-social-account-schema.json",
  "title": "SocialAccount",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/woopsocial-com-openapi-openapi.yml#/components/schemas/SocialAccount",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "externalAccountId",
    "platform",
    "username",
    "imageUrl",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Social account identifier."
    },
    "externalAccountId": {
      "type": "string",
      "description": "Platform-specific account, page, profile, or channel identifier."
    },
    "platform": {
      "$ref": "#/$defs/SocialPlatform",
      "description": "Social platform for the connected account."
    },
    "username": {
      "type": "string",
      "description": "Display name or username for the connected account."
    },
    "imageUrl": {
      "type": "string",
      "format": "uri",
      "description": "Profile image URL for the connected account."
    },
    "status": {
      "$ref": "#/$defs/SocialAccountStatus",
      "description": "Connection status of the account."
    }
  },
  "$defs": {
    "SocialAccountStatus": {
      "type": "string",
      "enum": [
        "CONNECTED",
        "DISCONNECTED"
      ]
    },
    "SocialPlatform": {
      "type": "string",
      "enum": [
        "PINTEREST",
        "LINKEDIN",
        "LINKEDIN_PAGES",
        "INSTAGRAM",
        "FACEBOOK",
        "THREADS",
        "TIKTOK",
        "X",
        "YOUTUBE",
        "BLUESKY",
        "WOOPTEST"
      ],
      "description": "Identifies which social media platform this data structure targets.\n"
    }
  }
}