{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/useclippy-cc/json-schema/useclippy-cc-item-list-response-schema.json",
  "title": "ItemListResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/useclippy-cc-openapi.yml#/components/schemas/ItemListResponse",
  "type": "object",
  "properties": {
    "room": {
      "type": "string"
    },
    "locked": {
      "type": "boolean"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Item"
      }
    },
    "now": {
      "type": "integer",
      "format": "int64",
      "description": "Server's current epoch ms; use as the next `?since` value."
    }
  },
  "$defs": {
    "Item": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "device": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "integer",
          "format": "int64",
          "description": "Milliseconds since epoch."
        },
        "updatedAt": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64"
        },
        "edited": {
          "type": "boolean"
        },
        "hasImage": {
          "type": "boolean"
        },
        "imageUrl": {
          "type": "string",
          "format": "uri",
          "description": "Present when hasImage is true."
        },
        "imageMime": {
          "type": "string",
          "description": "Present when hasImage is true."
        },
        "imageSize": {
          "type": "integer",
          "description": "Bytes. Present when hasImage is true."
        }
      }
    }
  }
}