{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/latitude-so/json-schema/latitude-so-memory-store-snapshot-schema.json",
  "title": "MemoryStoreSnapshot",
  "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/MemoryStoreSnapshot",
  "type": "object",
  "properties": {
    "records": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MemoryStoreRecord"
      },
      "description": "The store's current records (ids plus light metadata), one per live record."
    }
  },
  "required": [
    "records"
  ],
  "$defs": {
    "MemoryStoreRecord": {
      "type": "object",
      "properties": {
        "recordId": {
          "type": "string",
          "description": "Record identifier (`gen_ai.memory.record.id`); opaque. The empty string is the unnamed record."
        },
        "tokenCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Tokens in the record's current body."
        },
        "lastUpdatedAt": {
          "type": "string",
          "description": "ISO-8601 timestamp of the version that produced the current body."
        }
      },
      "required": [
        "recordId",
        "tokenCount",
        "lastUpdatedAt"
      ]
    }
  }
}