{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/latitude-so/json-schema/latitude-so-memory-record-users-schema.json",
  "title": "MemoryRecordUsers",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/latitude-so-memory-api-openapi.yml#/components/schemas/MemoryRecordUsers",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MemoryRecordUser"
      },
      "description": "End-users who accessed the record, most recent access first."
    }
  },
  "required": [
    "items"
  ],
  "$defs": {
    "MemoryRecordUser": {
      "type": "object",
      "properties": {
        "userId": {
          "type": "string",
          "description": "End-user identifier that accessed the record."
        },
        "readCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Number of reads the user made on the record."
        },
        "writeCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Number of writes the user made to the record."
        },
        "lastAccessedAt": {
          "type": "string",
          "description": "ISO-8601 timestamp of the user's most recent access."
        }
      },
      "required": [
        "userId",
        "readCount",
        "writeCount",
        "lastAccessedAt"
      ]
    }
  }
}