{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-resolve-quote-schema.json",
  "title": "Quote",
  "description": "`201` body — the job was quoted (`quoted`) or auto-accepted on the free tier (`accepted`).",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-resolve-openapi.yml#/components/schemas/ResolveQuote",
  "type": "object",
  "required": [
    "id",
    "status",
    "tier",
    "quote_micro_usd",
    "triage_reason",
    "free_tier_remaining"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "quoted",
        "accepted"
      ],
      "description": "`accepted` only when the free tier was used (already dispatched)."
    },
    "tier": {
      "$ref": "#/$defs/ResolveTier"
    },
    "quote_micro_usd": {
      "type": "integer",
      "description": "Quoted price in USD micros (`7000000` = $7). `0` on the free tier."
    },
    "triage_reason": {
      "type": "string",
      "description": "One-line triage rationale shown with the quote."
    },
    "free_tier_remaining": {
      "type": "integer",
      "minimum": 0,
      "description": "Free resolves left for this user after this submission."
    },
    "intro_price_micro_eur": {
      "type": "integer",
      "description": "Present only on a `quoted` job while the intro price applies to you: accepting holds\nthis amount (EUR micros, `1000000` = €1) instead of the list price.\n"
    },
    "list_price_micro_eur": {
      "type": "integer",
      "description": "Present together with `intro_price_micro_eur`; the regular hold in EUR micros (the quote 1:1)."
    },
    "callback_secret": {
      "type": "string",
      "description": "Present only when the intake carried `callback_url`. HMAC-SHA256 key for verifying\nwebhook signatures. **Returned once** — it is never shown again, store it now.\n"
    }
  },
  "$defs": {
    "ResolveTier": {
      "type": "string",
      "title": "Quote tier",
      "description": "`free` (first 3 resolves per user), `t7` ($7), `t19` ($19), `t49` ($49). Prices are in USD micros on the wire.",
      "enum": [
        "free",
        "t7",
        "t19",
        "t49"
      ]
    }
  }
}