{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/post-bridge-com/json-schema/post-bridge-com-analytics-dto-schema.json",
  "title": "AnalyticsDto",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/post-bridge-com-openapi.yml#/components/schemas/AnalyticsDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the analytics record"
    },
    "post_result_id": {
      "type": "string",
      "description": "The ID of the associated post result"
    },
    "platform": {
      "type": "string",
      "description": "Platform name (e.g. tiktok)"
    },
    "platform_post_id": {
      "type": "object",
      "description": "Platform-specific post ID"
    },
    "view_count": {
      "type": "number",
      "description": "Total view count"
    },
    "like_count": {
      "type": "number",
      "description": "Total like count"
    },
    "comment_count": {
      "type": "number",
      "description": "Total comment count"
    },
    "share_count": {
      "type": "number",
      "description": "Total share count"
    },
    "cover_image_url": {
      "type": "object",
      "description": "Cover image URL from the platform"
    },
    "share_url": {
      "type": "object",
      "description": "Share URL on the platform"
    },
    "video_description": {
      "type": "object",
      "description": "Video description on the platform"
    },
    "duration": {
      "type": "object",
      "description": "Video duration in seconds"
    },
    "platform_created_at": {
      "type": "object",
      "description": "When the content was created on the platform"
    },
    "last_synced_at": {
      "type": "string",
      "description": "When analytics were last synced"
    },
    "match_confidence": {
      "type": "object",
      "description": "Confidence of the match (exact or high)"
    }
  },
  "required": [
    "id",
    "post_result_id",
    "platform",
    "platform_post_id",
    "view_count",
    "like_count",
    "comment_count",
    "share_count",
    "cover_image_url",
    "share_url",
    "video_description",
    "duration",
    "platform_created_at",
    "last_synced_at",
    "match_confidence"
  ]
}