{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/post-bridge-com/json-schema/post-bridge-com-post-result-dto-schema.json",
  "title": "PostResultDto",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/post-bridge-com-openapi.yml#/components/schemas/PostResultDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the post result"
    },
    "post_id": {
      "type": "string",
      "description": "The ID of the associated post"
    },
    "success": {
      "type": "boolean",
      "description": "Indicates if the operation was successful"
    },
    "social_account_id": {
      "type": "number",
      "description": "The ID of the associated Social Account"
    },
    "error": {
      "type": "object",
      "description": "Error message if the operation failed"
    },
    "platform_data": {
      "type": "object",
      "description": "Platform-specific data",
      "properties": {
        "id": {
          "type": "string",
          "description": "Platform-specific ID"
        },
        "url": {
          "type": "string",
          "description": "URL of the posted content"
        },
        "username": {
          "type": "string",
          "description": "Username on the platform"
        },
        "platform_video_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "TikTok only: the final public video id, usable against TikTok's own APIs. `id` is TikTok's publish/processing id. Populated once TikTok moderation exposes the post (re-poll until non-null); always null for drafts and for other platforms, where `id` is already the native post id."
        }
      }
    }
  },
  "required": [
    "id",
    "post_id",
    "success",
    "social_account_id",
    "error",
    "platform_data"
  ]
}