{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/socialync-io/json-schema/socialync-io-post-create-schema.json",
  "title": "PostCreate",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/socialync-io-openapi.json#/components/schemas/PostCreate",
  "type": "object",
  "properties": {
    "platforms": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "facebook",
          "instagram",
          "tiktok",
          "youtube",
          "linkedin",
          "twitter",
          "threads",
          "bluesky"
        ]
      },
      "minItems": 1,
      "maxItems": 8
    },
    "caption": {
      "type": "string",
      "minLength": 1,
      "maxLength": 50000
    },
    "scheduledAt": {
      "type": "string",
      "format": "date-time"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "mediaId": {
      "type": "string",
      "pattern": "^upload:[A-Za-z0-9_-]{1,128}$"
    },
    "imageUrls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "maxLength": 2048,
        "pattern": "^https:\\/\\/"
      },
      "minItems": 1,
      "maxItems": 10
    },
    "videoUrl": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "pattern": "^https:\\/\\/"
    },
    "firstComment": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2200
    },
    "platformSpecificSettings": {
      "type": "object",
      "additionalProperties": {}
    },
    "instagramTrialReel": {
      "type": "string",
      "enum": [
        "MANUAL",
        "AUTO"
      ]
    },
    "tiktokPrivacyLevel": {
      "type": "string",
      "enum": [
        "PUBLIC_TO_EVERYONE",
        "MUTUAL_FOLLOW_FRIENDS",
        "FOLLOWER_OF_CREATOR",
        "SELF_ONLY"
      ]
    },
    "profileId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,128}$"
    }
  },
  "required": [
    "platforms",
    "caption"
  ],
  "additionalProperties": false
}