{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/viralnote-app/json-schema/viralnote-app-platform-metadata-schema.json",
  "title": "PlatformMetadata",
  "description": "Optional per-platform metadata. Each sub-key is only relevant when that platform is present in `platforms`; all sub-keys and their fields are optional.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/viralnote-app-openapi.json#/components/schemas/PlatformMetadata",
  "type": "object",
  "properties": {
    "youtube": {
      "type": "object",
      "properties": {
        "privacyStatus": {
          "type": "string",
          "enum": [
            "public",
            "unlisted",
            "private"
          ],
          "default": "public",
          "description": "Requested YouTube video visibility. YouTube may restrict uploads from unaudited API projects to private."
        }
      }
    },
    "reddit": {
      "type": "object",
      "properties": {
        "subreddit": {
          "type": "string",
          "maxLength": 64,
          "description": "Subreddit name without the `r/` prefix (e.g. `videos`)."
        }
      }
    },
    "pinterest": {
      "type": "object",
      "properties": {
        "boardId": {
          "type": "string",
          "maxLength": 64,
          "description": "Board id to pin to. Boards live under a specific Pinterest account, so this only works when a single Pinterest account is targeted. For multi-account Pinterest posts, use `boardIdByAccount` instead.",
          "deprecated": true
        },
        "boardIdByAccount": {
          "type": "object",
          "description": "Per-account board selection: socialAccounts doc id → Pinterest board id. Required when more than one Pinterest account is targeted on the post, since the same board id doesn't resolve across accounts.",
          "additionalProperties": {
            "type": "string",
            "maxLength": 64
          }
        }
      }
    },
    "tiktok": {
      "type": "object",
      "description": "TikTok publishing options. With privacy_level set, the post publishes directly to the profile. Without it, the post uploads to the creator's TikTok inbox as a draft.",
      "properties": {
        "privacy_level": {
          "type": "string",
          "enum": [
            "PUBLIC_TO_EVERYONE",
            "MUTUAL_FOLLOW_FRIENDS",
            "FOLLOWER_OF_CREATOR",
            "SELF_ONLY"
          ],
          "description": "Who can view the post. Setting it publishes directly to the TikTok profile (Direct Post). Omit it to upload an inbox draft that the creator finishes in the TikTok app. It must be one of the account's current privacy options. Branded content can't be SELF_ONLY. Accounts connected before Direct Post was enabled get an inbox draft until they reconnect."
        },
        "allow_comment": {
          "type": "boolean",
          "description": "Allow comments. Off when omitted."
        },
        "allow_duet": {
          "type": "boolean",
          "description": "Allow Duet (video only). Off when omitted."
        },
        "allow_stitch": {
          "type": "boolean",
          "description": "Allow Stitch (video only). Off when omitted."
        },
        "commercial_content_toggle": {
          "type": "boolean",
          "description": "Disclose that the post promotes a brand, product, or service. When true, set your_brand, branded_content, or both."
        },
        "your_brand": {
          "type": "boolean",
          "description": "Promotes the creator's own business. TikTok labels it \"Promotional content\"."
        },
        "branded_content": {
          "type": "boolean",
          "description": "Promotes a third party. TikTok labels it \"Paid partnership\". Can't be SELF_ONLY."
        }
      }
    }
  }
}