{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Send a message in one of the caller's conversations. Requires an authenticated Lovesky session.",
      "errors": [
        {
          "description": "No such conversation, or the caller is not part of it.",
          "name": "ConvoNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "convoId": {
              "type": "string"
            },
            "text": {
              "maxGraphemes": 1000,
              "maxLength": 10000,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "convoId",
            "text"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "app.lovesky.chat.defs#messageView",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.lovesky.chat.sendMessage",
  "lexicon": 1
}
