chadtmiller.com/group-host
atmosphere group host
0
0
{
"lexicon": 1,
"id": "org.atgrp.internal.getAuthorization",
"defs": {
"main": {
"type": "query",
"description": "An app's pending request to sign in as a group, as the caller would approve it: the app, the groups the caller may act for, and for each one what the caller's roles let the app do. Called by the console's approval page, with service auth from the caller's own PDS.",
"parameters": {
"type": "params",
"required": [
"requestUri"
],
"properties": {
"requestUri": {
"type": "string",
"description": "The request_uri the app received from this host's pushed authorization request endpoint."
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"client",
"groups",
"requested"
],
"properties": {
"client": {
"type": "ref",
"ref": "#client"
},
"requested": {
"type": "array",
"items": {
"type": "ref",
"ref": "org.atgrp.internal.defs#scopeRef"
},
"description": "The scope values the app asked for."
},
"labels": {
"type": "array",
"items": {
"type": "ref",
"ref": "#label"
},
"description": "What each permission set the app asked for, and each a group would give in place of one, is called, and says it is for, in its own words."
},
"loginHint": {
"type": "string",
"description": "The group the app named, if it named one."
},
"groups": {
"type": "array",
"items": {
"type": "ref",
"ref": "#group"
},
"description": "The groups the caller may sign in as: the one the app named, or every group on this host where the caller holds a role."
},
"mcp": {
"type": "boolean",
"description": "Whether the app is an MCP client, an AI app, asking to act as the caller in a group through the host's MCP tools rather than to sign in as one. It asks for no scope: it may do what the caller's roles in the group allow."
}
}
}
},
"errors": [
{
"name": "ExpiredRequest"
}
]
},
"client": {
"type": "object",
"required": [
"clientId"
],
"properties": {
"name": {
"type": "string"
},
"uri": {
"type": "string",
"format": "uri",
"description": "Its home page (client_uri), when on the client id's own origin."
},
"logo": {
"type": "string",
"format": "uri",
"description": "Its logo (logo_uri), when the host serves it at /img/app?id=<clientId>, as a page is to draw it."
},
"clientId": {
"type": "string"
}
}
},
"group": {
"type": "object",
"required": [
"did",
"handle",
"roles",
"granted",
"withheld"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"handle": {
"type": "string"
},
"displayName": {
"type": "string"
},
"avatar": {
"type": "string",
"format": "uri"
},
"roles": {
"type": "array",
"items": {
"type": "ref",
"ref": "org.atgrp.internal.defs#roleRef"
}
},
"granted": {
"type": "array",
"items": {
"type": "ref",
"ref": "org.atgrp.internal.defs#scopeRef"
},
"description": "The requested scope values the caller's roles let the app have."
},
"withheld": {
"type": "array",
"items": {
"type": "ref",
"ref": "org.atgrp.internal.defs#scopeRef"
},
"description": "The requested scope values the app will not get."
}
}
},
"label": {
"type": "object",
"required": [
"scope",
"text"
],
"properties": {
"scope": {
"type": "string"
},
"title": {
"type": "string",
"description": "The permission set's title, in its own words."
},
"text": {
"type": "string"
}
}
}
}
}