app.zeens.getChatGate

Return whether a sender may start/continue a conversation with a recipient, based on the recipient's chatPrefs and the follow relationship. Used by the server-side start gate.

Repository @zeens.app did:plc:pwpuqwge6g7xrjmfbw73uycw namespace authority
Details · query
Kindquery
Authorityzeens.app
Indexed
cid bafyreidr7wzsskqxjlbsygfwf7bmnojr67sqvytfohnraxl6cgjo3u45vy

Checks

Valid
  • unlimited-string defs.main.output.schema.properties.allowNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.output.schema.properties.bucketNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Return whether a sender may start/continue a conversation with a recipient, based on the recipient's chatPrefs and the follow relationship. Used by the server-side start gate.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "allow": {
              "enum": [
                "off",
                "mutuals",
                "everyone"
              ],
              "type": "string"
            },
            "bucket": {
              "enum": [
                "inbox",
                "requests"
              ],
              "type": "string"
            },
            "mutuals": {
              "type": "boolean"
            },
            "permitted": {
              "type": "boolean"
            }
          },
          "required": [
            "allow",
            "mutuals",
            "permitted"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "recipient": {
            "format": "did",
            "type": "string"
          },
          "sender": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "sender",
          "recipient"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.zeens.getChatGate",
  "lexicon": 1
}