{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "appView": {
      "properties": {
        "clientId": {
          "type": "string"
        },
        "connectedAt": {
          "format": "datetime",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "usedAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "clientId",
        "name",
        "connectedAt",
        "usedAt"
      ],
      "type": "object"
    },
    "main": {
      "description": "The AI apps, MCP clients, you've connected to the group to act as you there, the most lately used first: each by the name it gave, to disconnect with revokeConnectedApp.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "apps": {
              "items": {
                "ref": "#appView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "apps"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "group": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "group"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.listConnectedApps",
  "lexicon": 1
}
