{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hermoso-ai/json-schema/hermoso-ai-post-schema.json",
  "title": "Post",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/app_hermoso_ai_rest.json#/components/schemas/Post",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "post"
      ]
    },
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "scheduled | processing | published | partially_published | failed | indeterminate. THIS SET MAY GROW — tolerate an unknown value. `indeterminate` means a restart interrupted the send and we cannot say whether it published: check the channel rather than assuming either way. `failed` is only ever used when we know nothing published."
    },
    "scheduled_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "channels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "caption": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "title_effective": {
      "type": "string",
      "description": "The headline actually going out — derived from the caption when you named none."
    },
    "link": {
      "type": "string"
    },
    "media": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "captions_by_channel": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "visibility": {
      "type": "string"
    },
    "visibility_by_channel": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "targets": {
      "type": "object",
      "additionalProperties": true,
      "description": "Which account this goes to, per channel (Page, board, LinkedIn Page, Business listing). Unset means the connection’s default."
    },
    "options": {
      "type": "object",
      "additionalProperties": true
    },
    "results": {
      "type": [
        "array",
        "null"
      ],
      "description": "Per-channel outcome once fired. A partial failure is normal and is reported here — the top-level status then says `partially_published`, never a flat `failed`.",
      "items": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "first_comment": {
            "type": "object",
            "description": "Present when the post carried `first_comment`. `posted` true with the comment `id`, or false with `note` saying why (`skipped` when the channel takes no first comment, or it was already posted by an earlier run). A failed comment never fails the channel.",
            "properties": {
              "posted": {
                "type": "boolean"
              },
              "id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "skipped": {
                "type": "boolean"
              },
              "note": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      }
    },
    "retry_of": {
      "type": [
        "string",
        "null"
      ]
    },
    "status_detail": {
      "type": [
        "string",
        "null"
      ],
      "description": "Present when the status alone would mislead. Set for `indeterminate`."
    },
    "content_lost": {
      "type": "boolean"
    }
  }
}