{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/1password/json-schema/1password-file-schema.json",
  "title": "File",
  "description": "Represents a file attached to an item in a vault.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/1password-files-api-openapi.yml#/components/schemas/File",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The unique identifier for the file."
    },
    "name": {
      "type": "string",
      "description": "The name of the file."
    },
    "size": {
      "type": "integer",
      "description": "The size of the file in bytes."
    },
    "content_path": {
      "type": "string",
      "description": "The API path to retrieve the file content."
    },
    "section": {
      "$ref": "#/$defs/SectionRef"
    },
    "content": {
      "type": "string",
      "format": "byte",
      "description": "The base64-encoded file content, included when inline_files is true."
    }
  },
  "$defs": {
    "SectionRef": {
      "type": "object",
      "description": "A reference to a section within an item.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the referenced section."
        }
      }
    }
  }
}