{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/postonce/main/json-schema/postonce-account-schema.json",
  "title": "Account",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/postonce-api-openapi.json#/components/schemas/Account",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "platform": {
      "type": "string",
      "enum": [
        "bluesky",
        "facebook",
        "farcaster",
        "nostr",
        "telegram",
        "instagram",
        "linkedin",
        "pinterest",
        "reddit",
        "snapchat",
        "threads",
        "tiktok",
        "twitter",
        "vimeo",
        "youtube"
      ]
    },
    "username": {
      "type": "string"
    },
    "avatar_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "auth_required",
        "disconnected"
      ]
    },
    "capabilities": {
      "type": [
        "object",
        "null"
      ],
      "description": "Discoverable account capabilities used by both the public API and generated MCP tools.",
      "properties": {
        "connection_mode": {
          "type": "string"
        },
        "destination": {
          "type": "boolean"
        },
        "source": {
          "type": "boolean"
        },
        "backfill": {
          "type": "boolean"
        },
        "text": {
          "type": "boolean"
        },
        "images": {
          "type": "boolean"
        },
        "video": {
          "type": "boolean"
        },
        "replies": {
          "type": "boolean"
        },
        "threads": {
          "type": "boolean"
        }
      }
    },
    "media_requirements": {
      "type": [
        "object",
        "null"
      ],
      "description": "Media input constraints from PostOnce's publishing validator. Check required_media before a text-only post. Platform-level guidance is not proof of current account authorization or delivery success. Format conversions remain subject to processing limits.",
      "properties": {
        "supported_formats": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "convertible_formats": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "max_size_bytes": {
          "type": "object",
          "properties": {
            "image": {
              "type": "integer"
            },
            "video": {
              "type": "integer"
            },
            "gif": {
              "type": "integer"
            }
          }
        },
        "file_constraints": {
          "type": "object",
          "description": "maxFiles, maxVideoFiles, maxImageFiles, optional maxGifFiles, allowMixedMedia and optional gifBehavior.",
          "additionalProperties": true
        },
        "required_media": {
          "type": [
            "object",
            "null"
          ],
          "description": "When present: minFiles and acceptedTypes (image/video) define mandatory media, with errorCode and errorMessage.",
          "additionalProperties": true
        },
        "max_hashtags": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "min_video_duration_seconds": {
          "type": [
            "number",
            "null"
          ]
        },
        "max_video_duration_seconds": {
          "type": [
            "number",
            "null"
          ]
        },
        "aspect_ratio": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "thumbnail": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}