{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Submit a batch of analytics events from the mobile app.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "events": {
              "items": {
                "properties": {
                  "appVersion": {
                    "type": "string"
                  },
                  "did": {
                    "format": "did",
                    "type": "string"
                  },
                  "event": {
                    "type": "string"
                  },
                  "platform": {
                    "type": "string"
                  },
                  "props": {
                    "type": "unknown"
                  },
                  "ts": {
                    "format": "datetime",
                    "type": "string"
                  }
                },
                "required": [
                  "event"
                ],
                "type": "object"
              },
              "maxLength": 20,
              "type": "array"
            }
          },
          "required": [
            "events"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "inserted": {
              "type": "integer"
            }
          },
          "required": [
            "inserted"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.didpic.notification.recordEvents",
  "lexicon": 1
}
