{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/post-quest-com/json-schema/post-quest-com-social-account-list-response-schema.json",
  "title": "SocialAccountListResponse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/post-quest-com-openapi.yaml#/components/schemas/SocialAccountListResponse",
  "type": "object",
  "required": [
    "data",
    "workspace",
    "content_pillars"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SocialAccount"
      }
    },
    "workspace": {
      "$ref": "#/$defs/WorkspaceSummary"
    },
    "content_pillars": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContentPillar"
      }
    }
  },
  "$defs": {
    "ContentPillar": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "Platform": {
      "type": "string",
      "enum": [
        "instagram",
        "facebook",
        "x",
        "youtube",
        "tiktok",
        "pinterest",
        "linkedin",
        "threads",
        "bluesky",
        "mastodon"
      ]
    },
    "SocialAccount": {
      "type": "object",
      "required": [
        "id",
        "platform",
        "provider",
        "active",
        "needs_reconnect"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "platform": {
          "$ref": "#/$defs/Platform"
        },
        "username": {
          "type": [
            "string",
            "null"
          ]
        },
        "handle": {
          "type": [
            "string",
            "null"
          ]
        },
        "avatar_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "provider": {
          "type": "string"
        },
        "active": {
          "type": "boolean"
        },
        "needs_reconnect": {
          "type": "boolean"
        }
      }
    },
    "WorkspaceSummary": {
      "type": "object",
      "required": [
        "id",
        "name",
        "timezone",
        "allow_agent_publishing"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        },
        "allow_agent_publishing": {
          "type": "boolean"
        }
      }
    }
  }
}