{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mysiren-ai/json-schema/mysiren-ai-programmatic-run-response-schema.json",
  "title": "ProgrammaticRunResponse",
  "description": "Subset of PipelineRunResponse exposed via the public API.\n\nStable shape we commit to — internal columns (input_brief raw structure,\ncost_cents, current_stage) are kept off this surface so we can refactor\nthem later without breaking customer integrations.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mysiren-ai-openapi.json#/components/schemas/ProgrammaticRunResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "brief": {
      "type": "string",
      "title": "Brief"
    },
    "channel": {
      "type": "string",
      "title": "Channel"
    },
    "asset_type": {
      "type": "string",
      "title": "Asset Type"
    },
    "output_text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Text"
    },
    "caption": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Caption"
    },
    "replayed": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Replayed"
    },
    "callback_secret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Callback Secret"
    },
    "asset_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Asset Url"
    },
    "asset_urls": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Asset Urls"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At"
    },
    "finished_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Finished At"
    },
    "auto_post_eligible": {
      "type": "boolean",
      "title": "Auto Post Eligible",
      "description": "True if this run was created with a key whose auto_post=True. The post is dispatched as soon as the run finishes rendering."
    },
    "scheduled": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scheduled"
    },
    "posts": {
      "anyOf": [
        {
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Posts",
      "description": "Dispatched posts for this run: platform, status, url, error_message, posted_at."
    },
    "progress": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Progress",
      "description": "While rendering: {frames_done, frames_total, pct}."
    },
    "eta_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Eta Seconds",
      "description": "Seconds until the render should finish (estimate)."
    },
    "poll_after_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Poll After Seconds",
      "description": "Wait this long before the next get_run."
    },
    "director_notes": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Director Notes"
    },
    "film_check": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Film Check",
      "description": "Keyframe check of a finished film: {state, ok, findings}. Fix and re-render when ok is false."
    },
    "spec_check": {
      "anyOf": [
        {
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Spec Check",
      "description": "App Store previews only: [{rule, ok, actual, expected}] measured on the delivered file."
    },
    "channels": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Channels"
    },
    "campaign_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Campaign Id"
    },
    "notices": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Notices",
      "description": "Plain-words notes on the request, e.g. it asked for a mood the brand's look does not wear. The asset is made as asked; pass the note to the human."
    }
  },
  "type": "object",
  "required": [
    "id",
    "status",
    "brief",
    "channel",
    "asset_type",
    "output_text",
    "asset_url",
    "created_at",
    "started_at",
    "finished_at",
    "auto_post_eligible"
  ]
}