{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sewerai/main/json-schema/sewerai-video-read-schema.json",
  "title": "VideoRead",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sewerai-videos-api-openapi.yml#/components/schemas/VideoRead",
  "required": [
    "path"
  ],
  "type": "object",
  "properties": {
    "url": {
      "title": "Url",
      "type": "string",
      "format": "uri",
      "readOnly": true
    },
    "sid": {
      "title": "Sid",
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "video_name": {
      "title": "Video name",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "inspection": {
      "title": "Inspection",
      "type": "string",
      "format": "uri",
      "readOnly": true
    },
    "path": {
      "title": "Path",
      "type": [
        "string",
        "null"
      ],
      "minLength": 1
    },
    "stage": {
      "title": "Stage",
      "type": "string",
      "readOnly": true
    },
    "presigned_upload_data": {
      "title": "Presigned upload data",
      "type": "object",
      "readOnly": true
    },
    "created": {
      "title": "Created",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated": {
      "title": "Updated",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "project": {
      "$ref": "#/$defs/ProjectRead"
    },
    "created_by": {
      "title": "Created by",
      "type": "string",
      "format": "uri",
      "readOnly": true
    },
    "updated_by": {
      "title": "Updated by",
      "type": "string",
      "format": "uri",
      "readOnly": true
    },
    "deleted": {
      "title": "Deleted",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "deleted_by": {
      "title": "Deleted by",
      "type": "string",
      "format": "uri",
      "readOnly": true
    },
    "account": {
      "title": "Account",
      "type": "string",
      "format": "uri",
      "readOnly": true
    }
  },
  "$defs": {
    "ProjectRead": {
      "required": [
        "name"
      ],
      "type": "object",
      "properties": {
        "url": {
          "title": "Url",
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "sid": {
          "title": "Sid",
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "account": {
          "title": "Account",
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "name": {
          "title": "Name",
          "type": "string",
          "maxLength": 128,
          "minLength": 1
        },
        "description": {
          "title": "Description",
          "type": [
            "string",
            "null"
          ],
          "maxLength": 1024
        },
        "client": {
          "title": "Client",
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "date_due": {
          "title": "Date due",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "date_started": {
          "title": "Date started",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "date_finished": {
          "title": "Date finished",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "active": {
          "title": "Active",
          "type": "boolean"
        },
        "created": {
          "title": "Created",
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "updated": {
          "title": "Updated",
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "created_by": {
          "title": "Created by",
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "updated_by": {
          "title": "Updated by",
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "deleted": {
          "title": "Deleted",
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "deleted_by": {
          "title": "Deleted by",
          "type": "string",
          "format": "uri",
          "readOnly": true
        }
      }
    }
  }
}