{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-resolve-declined-schema.json",
  "title": "Declined",
  "description": "`200` body — triage declined the issue. The job is persisted with `status: declined` and is never billed.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-resolve-openapi.yml#/components/schemas/ResolveDeclined",
  "type": "object",
  "required": [
    "id",
    "status",
    "decline_reason"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "const": "declined"
    },
    "decline_reason": {
      "type": "string"
    },
    "callback_secret": {
      "type": "string",
      "description": "Present only when the intake carried `callback_url` (a `job.declined` event is sent\ntoo). HMAC-SHA256 key for webhook signatures. **Returned once** — store it now.\n"
    }
  }
}