fyi.opensocial.listGroupTokens

The OAuth sessions issued by this host for the group DID (apps acting as the group), plus recent activity. Requires group.configure.

Details · query
Kindquery
Authorityopensocial.fyi
Indexed
cid bafyreidp7e4u3iq2maztrkf6ujsxs77egjgncf4to5q2qsg3uvfsq6hxzq

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "activityView": {
      "description": "Something an app did as the group.",
      "properties": {
        "action": {
          "description": "The method it called, or the record it wrote.",
          "type": "string"
        },
        "actor": {
          "description": "Who let the app in, with their handle where it can be read.",
          "ref": "fyi.opensocial.defs#actorView",
          "type": "ref"
        },
        "at": {
          "format": "datetime",
          "type": "string"
        },
        "clientId": {
          "description": "The app's OAuth client id.",
          "type": "string"
        },
        "member": {
          "description": "Who let the app in.",
          "format": "did",
          "type": "string"
        },
        "subject": {
          "description": "Whom the write is about, with their handle where it can be read: whose DID keys the record (a membership), or whose inbox it was written in (an invite).",
          "ref": "fyi.opensocial.defs#actorView",
          "type": "ref"
        },
        "write": {
          "description": "The record it wrote, in parts, when it was a write.",
          "ref": "#writeView",
          "type": "ref"
        }
      },
      "required": [
        "member",
        "action",
        "at"
      ],
      "type": "object"
    },
    "main": {
      "description": "The OAuth sessions issued by this host for the group DID (apps acting as the group), plus recent activity. Requires group.configure.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "activity": {
              "items": {
                "ref": "#activityView",
                "type": "ref"
              },
              "type": "array"
            },
            "sessions": {
              "items": {
                "ref": "#sessionView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "sessions",
            "activity"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "group": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "group"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "sessionView": {
      "description": "A session an app holds as the group.",
      "properties": {
        "actor": {
          "description": "Who let it in, with their handle where it can be read.",
          "ref": "fyi.opensocial.defs#actorView",
          "type": "ref"
        },
        "clientId": {
          "description": "The app's OAuth client id.",
          "type": "string"
        },
        "expiresAt": {
          "format": "datetime",
          "type": "string"
        },
        "grantedAt": {
          "format": "datetime",
          "type": "string"
        },
        "lastUsedAt": {
          "format": "datetime",
          "type": "string"
        },
        "member": {
          "description": "Who let it in.",
          "format": "did",
          "type": "string"
        },
        "role": {
          "description": "The role it was given, if one.",
          "type": "string"
        },
        "scope": {
          "type": "string"
        },
        "source": {
          "knownValues": [
            "oauth",
            "getGroupAuth",
            "appPassword"
          ],
          "type": "string"
        },
        "tokenId": {
          "type": "string"
        }
      },
      "required": [
        "tokenId",
        "clientId",
        "member",
        "source",
        "grantedAt"
      ],
      "type": "object"
    },
    "writeView": {
      "description": "A record an app wrote as the group.",
      "properties": {
        "collection": {
          "format": "nsid",
          "type": "string"
        },
        "operation": {
          "knownValues": [
            "create",
            "update",
            "delete"
          ],
          "type": "string"
        },
        "rkey": {
          "description": "The record's key.",
          "type": "string"
        },
        "space": {
          "description": "The space it was written in, by its at:// address; none for the group's public repo.",
          "type": "string"
        }
      },
      "required": [
        "operation",
        "collection",
        "rkey"
      ],
      "type": "object"
    }
  },
  "id": "fyi.opensocial.listGroupTokens",
  "lexicon": 1
}