{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Advance the viewer's per-conversation seen cursor (never moves backwards). Modelled as a query to avoid the DPoP requirement on procedures; it writes internal bookkeeping, not a PDS record.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "seenAt": {
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "seenAt"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "convoId": {
            "type": "string"
          },
          "seenAt": {
            "format": "datetime",
            "type": "string"
          },
          "viewer": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "viewer",
          "convoId",
          "seenAt"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.zeens.markConvoSeen",
  "lexicon": 1
}
