{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/corvio-ai/json-schema/corvio-ai-public-asset-read-response-schema.json",
  "title": "PublicAssetReadResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/corvio-ai-openapi.yml#/components/schemas/PublicAssetReadResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "asset_id": {
      "type": "string",
      "format": "uuid",
      "title": "Asset Id",
      "description": "Stable Asset UUID accepted by get_file and organize_files."
    },
    "object": {
      "type": "string",
      "const": "workspace_asset",
      "title": "Object",
      "default": "workspace_asset"
    },
    "node_id": {
      "type": "string",
      "format": "uuid",
      "title": "Node Id"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "parent_node_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent Node Id"
    },
    "original_file_name": {
      "type": "string",
      "title": "Original File Name"
    },
    "mime_type": {
      "type": "string",
      "title": "Mime Type"
    },
    "size_bytes": {
      "type": "integer",
      "title": "Size Bytes"
    },
    "content_sha256": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content Sha256"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "sensitivity_status": {
      "type": "string",
      "title": "Sensitivity Status"
    },
    "sensitivity_reasons": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Sensitivity Reasons"
    },
    "ai_read_policy": {
      "type": "string",
      "title": "Ai Read Policy"
    },
    "processing_status": {
      "type": "string",
      "title": "Processing Status"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "links": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Links"
    },
    "document_image": {
      "anyOf": [
        {
          "$ref": "#/$defs/PublicDocumentImageReference"
        },
        {
          "type": "null"
        }
      ],
      "description": "For image Assets, a copyable Markdown image and durable content URL. Rendering requires the reader's current Asset access; API download links are not browser image URLs."
    },
    "document_audio": {
      "anyOf": [
        {
          "$ref": "#/$defs/PublicDocumentImageReference"
        },
        {
          "type": "null"
        }
      ],
      "description": "For audio Assets, a copyable structured document block using current authenticated Asset access."
    },
    "content_projection": {
      "anyOf": [
        {
          "$ref": "#/$defs/PublicAssetContentProjection"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "id",
    "asset_id",
    "node_id",
    "title",
    "original_file_name",
    "mime_type",
    "size_bytes",
    "status",
    "sensitivity_status",
    "ai_read_policy",
    "processing_status",
    "created_at",
    "links"
  ],
  "$defs": {
    "PublicAssetContentProjection": {
      "properties": {
        "extraction_mode": {
          "type": "string",
          "title": "Extraction Mode"
        },
        "content_markdown": {
          "type": "string",
          "maxLength": 20000,
          "title": "Content Markdown"
        },
        "char_count": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Char Count"
        },
        "content_complete": {
          "type": "boolean",
          "title": "Content Complete"
        },
        "projection_truncated": {
          "type": "boolean",
          "title": "Projection Truncated"
        },
        "source_authority": {
          "type": "string",
          "enum": [
            "derived_read_projection_of_immutable_original",
            "hash_verified_read_projection_of_immutable_original"
          ],
          "title": "Source Authority"
        },
        "source_asset_sha256": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Asset Sha256"
        },
        "representation_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Representation Id"
        }
      },
      "type": "object",
      "required": [
        "extraction_mode",
        "content_markdown",
        "char_count",
        "content_complete",
        "projection_truncated",
        "source_authority"
      ],
      "title": "PublicAssetContentProjection"
    },
    "PublicDocumentImageReference": {
      "properties": {
        "asset_id": {
          "type": "string",
          "format": "uuid",
          "title": "Asset Id"
        },
        "content_url": {
          "type": "string",
          "title": "Content Url"
        },
        "markdown": {
          "type": "string",
          "title": "Markdown"
        }
      },
      "type": "object",
      "required": [
        "asset_id",
        "content_url",
        "markdown"
      ],
      "title": "PublicDocumentImageReference"
    }
  }
}