{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/temporevenue-com/json-schema/temporevenue-com-proposal-status-schema.json",
  "title": "ProposalStatus",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/temporevenue-com-openapi.json#/components/schemas/ProposalStatus",
  "type": "object",
  "required": [
    "id",
    "status",
    "viewed_at",
    "accepted_at",
    "public_url"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "viewed",
        "accepted"
      ],
      "description": "draft: not opened yet. viewed: the client opened it. accepted: the client signed it (signed does not mean paid)."
    },
    "viewed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the client first opened the document."
    },
    "accepted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "public_url": {
      "type": "string",
      "format": "uri"
    }
  }
}