~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
54 lines · 1.4 KB Raw History
{
  "lexicon": 1,
  "id": "org.atgrp.listJoinRequests",
  "defs": {
    "main": {
      "type": "query",
      "description": "List pending join requests, which the host stores privately. Approve one by writing the requester's membership record. Deny requests with 'denyJoinRequest'. Requires auth as the group.",
      "parameters": {
        "type": "params",
        "properties": {
          "group": {
            "type": "string",
            "format": "did",
            "description": "The group's DID. A group account session names its own; a member's service auth names it here."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 50
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["requests"],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "requests": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "org.atgrp.defs#joinRequest"
              }
            }
          }
        }
      },
      "errors": [
        {
          "name": "InvalidCursor",
          "description": "The cursor isn't one this host gave."
        }
      ]
    }
  }
}