{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/preflight-social/json-schema/preflight-social-platform-capabilities-schema.json",
  "title": "PlatformCapabilities",
  "description": "What one network accepts, as GET /platforms reports it.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/preflight-social-openapi.json#/components/schemas/PlatformCapabilities",
  "type": "object",
  "properties": {
    "platform": {
      "$ref": "#/$defs/Platform"
    },
    "name": {
      "type": "string"
    },
    "charLimit": {
      "type": "integer"
    },
    "requiresMedia": {
      "type": "string",
      "enum": [
        "none",
        "image",
        "video",
        "image_or_video"
      ]
    },
    "supportsImage": {
      "type": "boolean"
    },
    "supportsVideo": {
      "type": "boolean"
    },
    "allowsEmptyText": {
      "type": "boolean"
    },
    "maxMediaPerPost": {
      "type": "integer"
    },
    "maxImageBytes": {
      "type": "integer"
    },
    "maxVideoBytes": {
      "type": "integer"
    },
    "minVideoDurationSeconds": {
      "type": "number"
    },
    "maxVideoDurationSeconds": {
      "type": "number"
    },
    "minVideoFps": {
      "type": "number"
    },
    "maxVideoFps": {
      "type": "number"
    },
    "supportsThread": {
      "type": "boolean"
    },
    "supportsAltText": {
      "type": "boolean"
    },
    "supportsThumbnail": {
      "type": "boolean"
    },
    "supportsFirstComment": {
      "type": "boolean"
    },
    "canEditRemote": {
      "type": "boolean"
    },
    "canDeleteRemote": {
      "type": "boolean"
    },
    "canReadComments": {
      "type": "boolean"
    },
    "reportsFollowers": {
      "type": "boolean"
    },
    "metricFields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "notes": {
      "type": "string"
    }
  },
  "$defs": {
    "Platform": {
      "type": "string",
      "enum": [
        "youtube",
        "tiktok",
        "instagram",
        "facebook",
        "threads",
        "twitter",
        "linkedin",
        "pinterest",
        "bluesky",
        "mastodon",
        "telegram",
        "discord",
        "tumblr"
      ],
      "description": "A network's name. twitter (X) is text-only and not offered to new accounts."
    }
  }
}