{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-inbox-item-detail-schema.json",
  "title": "InboxItemDetail",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-api-openapi.json#/components/schemas/InboxItemDetail",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "from": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From"
    },
    "to": {
      "type": "string",
      "title": "To"
    },
    "pages": {
      "type": "integer",
      "title": "Pages"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "document_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Document Id"
    },
    "received_at": {
      "type": "string",
      "title": "Received At"
    },
    "amount_micro": {
      "type": "integer",
      "title": "Amount Micro",
      "default": 0
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Note"
    },
    "environment": {
      "type": "string",
      "enum": [
        "live",
        "test"
      ],
      "title": "Environment",
      "default": "live"
    },
    "number_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Number Id"
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Id"
    },
    "partial_content": {
      "type": "boolean",
      "title": "Partial Content",
      "default": false
    },
    "media_status": {
      "type": "string",
      "title": "Media Status",
      "default": "stored"
    },
    "duration_secs": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration Secs"
    },
    "provider": {
      "type": "string",
      "title": "Provider",
      "default": ""
    },
    "read_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Read At"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Document"
    },
    "text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Text"
    },
    "extraction_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Extraction Id"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "to",
    "pages",
    "status",
    "document_id",
    "received_at"
  ]
}