{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "The authenticated member has not confirmed age and accepted the Terms and Privacy Policy.",
          "name": "ConsentRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "content": {
              "description": "Message text.",
              "maxLength": 5000,
              "type": "string"
            },
            "inquiryId": {
              "description": "UUID of the inquiry to append to. Lexicon has no uuid string format, so the hyphenated 36-character length is the strongest bound the schema can carry; the inquiry_id column is what rejects a non-UUID.",
              "maxLength": 36,
              "type": "string"
            }
          },
          "required": [
            "inquiryId",
            "content"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "message": {
              "ref": "app.bivri.support.defs#messageView",
              "type": "ref"
            }
          },
          "required": [
            "message"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Append a message to one of the authenticated member's own inquiry threads. Authentication is required.",
  "id": "app.bivri.support.addMessage",
  "lexicon": 1
}
