{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-file-list-view-schema.json",
  "title": "FileListView",
  "description": "A page of files.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-files-api-openapi.yml#/components/schemas/FileListView",
  "type": "object",
  "required": [
    "files"
  ],
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FileView"
      },
      "description": "Rows, newest first."
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Cursor to pass as `after` for the next page, or `null` at the end."
    }
  },
  "$defs": {
    "FileView": {
      "type": "object",
      "description": "Public projection of a stored file.",
      "required": [
        "id",
        "filename",
        "byte_size",
        "content_type",
        "sha256",
        "visibility",
        "tags",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "byte_size": {
          "type": "integer",
          "format": "int64",
          "description": "Stored size in bytes."
        },
        "content_type": {
          "type": "string",
          "description": "Media type of the stored bytes — the converted one when the upload was\ntranscoded, which may differ from what was sent."
        },
        "created_at": {
          "type": "string",
          "description": "RFC 3339 creation timestamp."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional caption."
        },
        "filename": {
          "type": "string",
          "description": "Stored file name."
        },
        "folder_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "Containing folder, or `null` at the library root."
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "File id."
        },
        "sha256": {
          "type": "string",
          "description": "Lowercase-hex SHA-256 of the bytes as uploaded (deduplication key)."
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Free-form labels."
        },
        "updated_at": {
          "type": "string",
          "description": "RFC 3339 last-modification timestamp."
        },
        "visibility": {
          "type": "string",
          "description": "`private` or `link`."
        }
      }
    }
  }
}