{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One publish event: who shipped, when, and a before/after snapshot of every record the publish touched.",
      "key": "tid",
      "record": {
        "properties": {
          "actorDid": {
            "format": "did",
            "type": "string"
          },
          "actorHandle": {
            "type": "string"
          },
          "changes": {
            "items": {
              "properties": {
                "action": {
                  "enum": [
                    "create",
                    "update",
                    "delete"
                  ],
                  "type": "string"
                },
                "after": {
                  "type": "unknown"
                },
                "before": {
                  "type": "unknown"
                },
                "collection": {
                  "type": "string"
                },
                "rkey": {
                  "type": "string"
                }
              },
              "required": [
                "collection",
                "rkey",
                "action"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "changes"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "lexicon": 1
}
