{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/breakreach-com/json-schema/breakreach-com-comment-dm-event-schema.json",
  "title": "CommentDmEvent",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/breakreach-com-openapi.json#/components/schemas/CommentDmEvent",
  "type": "object",
  "required": [
    "id",
    "ruleId",
    "status",
    "reason",
    "error",
    "commentId",
    "commentText",
    "commenterUsername",
    "commenterName",
    "mediaId",
    "dmMessageId",
    "publicReply",
    "publicReplyError",
    "createdAt",
    "sentAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "ruleId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "sent",
        "failed",
        "skipped"
      ]
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Why it was skipped: duplicate (the person already got this rule's DM), too_old (Instagram allows private replies within 7 days), plan (the workspace owner is not on Pro or Agency), paused, deleted"
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "commentId": {
      "type": "string"
    },
    "commentText": {
      "type": "string"
    },
    "commenterUsername": {
      "type": [
        "string",
        "null"
      ],
      "description": "Instagram handle"
    },
    "commenterName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Facebook name"
    },
    "mediaId": {
      "type": [
        "string",
        "null"
      ]
    },
    "dmMessageId": {
      "type": [
        "string",
        "null"
      ]
    },
    "publicReply": {
      "type": [
        "string",
        "null"
      ],
      "description": "The public reply posted under the comment"
    },
    "publicReplyError": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "sentAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}