{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/temporevenue-com/json-schema/temporevenue-com-proposal-schema.json",
  "title": "Proposal",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/temporevenue-com-openapi.json#/components/schemas/Proposal",
  "type": "object",
  "required": [
    "id",
    "title",
    "editor_url",
    "status",
    "public_url",
    "credits_remaining"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "editor_url": {
      "type": "string",
      "format": "uri",
      "description": "Open the draft in the TempoRevenue editor to review, edit and share it."
    },
    "status": {
      "type": "string",
      "enum": [
        "draft"
      ]
    },
    "public_url": {
      "type": "string",
      "format": "uri",
      "description": "The link where your client reads and signs, once you publish it for signature."
    },
    "credits_remaining": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Contracts you can still create. null only if the balance could not be read after the contract was already saved."
    }
  }
}