{
  "lexicon": 1,
  "id": "chat.bsky.convo.getConvoAvailability",
  "defs": {
    "main": {
      "type": "query",
      "description": "Check whether the requester and the other members can start a 1-1 chat. Only applicable to direct (non-group) conversations. If an existing convo is found for these members, it is returned. Does not create a new convo if it doesn't exist.",
      "parameters": {
        "type": "params",
        "required": ["members"],
        "properties": {
          "members": {
            "type": "array",
            "minLength": 1,
            "maxLength": 10,
            "items": {
              "type": "string",
              "format": "did"
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["canChat"],
          "properties": {
            "canChat": {
              "type": "boolean"
            },
            "convo": {
              "type": "ref",
              "ref": "chat.bsky.convo.defs#convoView"
            }
          }
        }
      }
    }
  }
}

