Atmosphere GroupsOpen specificationBeta
MenuClose

4.5Published lexicons

Every schema behind the standard and its reference host, one page each, generated from the records they're published as.

The standard

The standard's lexicons, org.atgrp.*, as lex.atgrp.org publishes them. They're the same as the spec's own at commit 0885261.

Records

LexiconWhat it is
org.atgrp.aboutBasic information for presenting the group. Written by the group in the meta space.
org.atgrp.configThe group's configuration, such as how to join. Written by the group in the meta space.
org.atgrp.confirmationA member's confirmation of their group membership. Written by the member in the group's members space.
org.atgrp.declarationDeclares an account as a group. Published in the group's public repo for discovery.
org.atgrp.inviteAn invitation to join the group, written by the group into the invitee's inbox space. Deleting it revokes the invite.
org.atgrp.labelerThe group's label values and the reports it accepts. Written by the group in the members space.
org.atgrp.membershipA member's roles in the group, keyed by the member's DID. Written by the group in the members space, and paired with the member's confirmation.
org.atgrp.roleA group role and its group-wide grants, keyed by role ID. Role IDs follow label value syntax ([a-z-]+) and are at least 3 characters. Written by the group in the members space. Grants within a space live in that space's policy.
org.atgrp.ruleA group rule, written by the group in the members space. Reports can cite it by URI.
org.atgrp.spaceAn entry in the group's space index, in the members space. The group host maintains these records as spaces are created, deleted, or unlisted, and rejects direct writes.

Spaces

LexiconWhat it is
org.atgrp.inboxA user's inbox for group invites, under their own DID. Created with a memberspace policy that sets publicWrite, so groups may write invites here and read only their own.
org.atgrp.membersMembership and administrative information for the group. Usually readable only by members.
org.atgrp.metaBasic information and settings for the group. Often public, even when the rest of the group is not.

Methods

LexiconWhat it is
org.atgrp.cancelJoinRequestWithdraw the caller's pending join request. Requires service auth.
org.atgrp.denyJoinRequestDeny a pending join request, deleting it. To approve one, write the requester's membership instead. Requires auth as the group.
org.atgrp.leaveGroupLeave a group, deleting the caller's membership, which the group authored. The caller should also delete their confirmation. Requires service auth.
org.atgrp.listJoinRequestsList 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.
org.atgrp.mod.querySelfHistoryGet moderation history for the caller's account and records. Omits reports, notes, tags, and who acted. Works for former members. Requires service auth.
org.atgrp.mod.querySubjectHistoryGet a subject's moderation history. Requires auth as the group.
org.atgrp.mod.querySubjectsList subjects in the moderation queue. Requires auth as the group.
org.atgrp.mod.submitAppealAppeal a label or ejection on the caller's account or one of their records, reopening it in the moderation queue. Works for former members. Requires service auth.
org.atgrp.mod.submitReportReport an account or record in a group, opening or reopening it in the moderation queue. The caller must be able to read the subject's space. Requires service auth.
org.atgrp.mod.updateSubjectChange a subject's status or tags, or add a note. Omitted fields are left as they are. Requires auth as the group.
org.atgrp.requestJoinRequest to join a group, optionally redeeming an invite. Admits the caller right away when the join policy is open or with a valid invite, and otherwise queues a request. Returns the caller's existing request or membership if they have one. Requires service auth.

Permission sets

LexiconWhat it is
org.atgrp.authManageAdminFor group account sessions. Limited to what the authorizing user's roles grant.
org.atgrp.authManageBasicFor group account sessions. Limited to what the authorizing user's roles grant.
org.atgrp.authManageMembersFor group account sessions. Limited to what the authorizing user's roles grant.
org.atgrp.authModerateFor group account sessions. Limited to what the authorizing user's roles grant.
org.atgrp.authParticipateFor personal sessions, acting as the user rather than the group.

Shared definitions

LexiconWhat it is
org.atgrp.defs
org.atgrp.mod.defs
org.atgrp.policySpace policy for group spaces: each role's access and permissions in the space, whether it is public, and whether it is listed in the space index. The host always publishes it in the space as a com.atproto.space.policy record.

The reference host

The reference host at opensocial.fyi publishes its own schemas as fyi.opensocial.*. They differ from the standard's in places.

LexiconWhat it is
fyi.opensocial.acceptanceThe member's side of membership, written by the member into the members space. Gates appearing in the roster, not access.
fyi.opensocial.accessWho can access this space, in every space under the group. Grants apply only to this space. Members whose roles grant read may obtain space credentials and write their own records here. The group authority issues space credentials according to this record and nothing else.
fyi.opensocial.declarationMarks a DID as a group. Lives in the public repo. Points at the meta space. Discovery only.
fyi.opensocial.inviteAn invitation, written by the group in its own repo in the invitee's inbox (fyi.opensocial.invites), through com.atproto.space.*. Deleting it revokes it.
fyi.opensocial.labelA moderation label, written by the group authority into the space its subject lives in — or, for an account, into the members space.
fyi.opensocial.labelerThe group as a moderation service: the label values it applies and what it accepts reports about. Written by the group into the meta space.
fyi.opensocial.membershipGrants a member their roles, in the members space. Written by the group authority; the record key is the member's DID. Writes are bounded by the writer's assignable roles. Creating one admits one waiting to join and decides their request; deleting one ejects the member.
fyi.opensocial.permissionsGroup-wide grants for each role, in the members space: the OAuth scopes the role holds and the roles its holders may assign. Roles compose by union; there are no deny rules. A writer changes the grants only of roles they may assign, adds no scope their own roles do not hold, and lets no role assign one they may not.
fyi.opensocial.profileThe group's profile. Written by the group authority into the meta space.
fyi.opensocial.roleDeclares that a role exists, in the members space. The record key is the role id, of 64 characters at most. A role is deleted only once no member holds it and the permissions record grants it nothing.
fyi.opensocial.ruleOne group rule, with a stable URI a moderation action can cite.
fyi.opensocial.spaceLists one space in the group's index, in its members space. A discovery aid, not an exhaustive list.
fyi.opensocial.inboxEach person's own inbox, hosted by them rather than by a group: where groups' invites arrive, where whoever puts them in a conversation leaves a pointer to it, and where they keep how far they've read their conversations and their groups' chats, boards and calendars, which only they read.
fyi.opensocial.membersRoles, who holds them, the authz config, and the space index. Usually gated to members.
fyi.opensocial.metaThe group's public face. Profile, rules, how to get in. Often readable by anyone, though may be private to members.
fyi.opensocial.admitMemberApprove a join request, giving the requester their roles. Requires admit. denyJoinRequest declines one.
fyi.opensocial.applyLabelWrite a label record into the subject's space. Requires label, or takedown for !hide and !takedown.
fyi.opensocial.assignRolesSet a member's full role set. Requires role.assign; every role added or removed must be in the caller's assignable set.
fyi.opensocial.cancelJoinRequestWithdraw a pending join request.
fyi.opensocial.createInviteWrite an invite into someone's own invites space. Requires invite.
fyi.opensocial.createSpaceCreate a space under the group with its access record and, unless index is false, an index entry. Requires space.create.
fyi.opensocial.deleteRoleRemove a role. Requires group.configure. Fails if any membership still holds it.
fyi.opensocial.deleteRuleRemove a rule. Requires group.configure.
fyi.opensocial.deleteSpaceDelete a group space and its index entry. Requires space.delete.
fyi.opensocial.denyJoinRequestDeny a pending join request. Requires admit. The requester sees it as no request at all, and may ask again.
fyi.opensocial.ejectMemberRemove a member and their access. Requires eject; every role the member holds must be in the caller's assignable set.
fyi.opensocial.getSubjectHistoryGet a subject's moderation history, oldest first. Requires mod.read.
fyi.opensocial.leaveGroupLeave the group.
fyi.opensocial.listInvitesOutstanding invites. Requires invite.
fyi.opensocial.listJoinRequestsThe pending-requests queue. Requires admit.
fyi.opensocial.listSubjectsList subjects in the moderation queue. Requires mod.read.
fyi.opensocial.negateLabelNegate a previously applied label. Requires label, or takedown for !hide and !takedown.
fyi.opensocial.putRoleCreate or update a role and its grant. Requires group.configure.
fyi.opensocial.putRuleCreate or update a rule. Requires group.configure. Fields are inlined rather than referencing fyi.opensocial.rule, because a record def cannot be used as an input object — same fix as updateProfile.
fyi.opensocial.requestJoinAsk to join a group, optionally redeeming an invitation. An invite the group has sent the caller, neither taken back nor past its expiresAt, admits them at once, whatever the group's join policy, with the group's default roles; one named that is not such an invite is refused. Unnamed, a waiting invite is redeemed all the same. No role required; authenticated as the requester.
fyi.opensocial.resolveSubjectResolve or escalate a subject, optionally with a note. Repeating the current status adds the note. Requires mod.resolve.
fyi.opensocial.revokeInviteRetract an outstanding invite. Requires invite.
fyi.opensocial.updateProfileReplace the profile: name, description, join policy, where it meets, its topics and languages. Requires group.configure. Fields are inlined rather than referencing fyi.opensocial.profile, because a record def cannot be used as an input object — mirrors createGroup.
fyi.opensocial.updateSpaceChange a space: its name in the group's index, and its access record, replaced whole. Requires space.configure.
fyi.opensocial.uploadImageUpload an image for the profile avatar or banner. Requires group.configure. Binary input like com.atproto.repo.uploadBlob; the group is a parameter because the blob has to land in that group's repo for a profile record to reference it.
fyi.opensocial.configureFor group-DID sessions.
fyi.opensocial.defs

Host extensions

What the reference host serves beyond the spec, which apps need today.

LexiconWhat it is
fyi.opensocial.basePermissions
fyi.opensocial.getGroupAuthObtain a DPoP-bound OAuth access token to act as the group DID. The host is the group's PDS and authorization server: the caller authenticates with their personal account (service auth) and presents a DPoP proof; the host issues a short-lived token for the group DID whose space: scopes are exactly what the caller's roles are granted by the space's access record. No group password is involved. The same token may write those kinds of record in the group's public repo too (repoCollections): publishing them, as the group. For someone's inbox (fyi.opensocial.invites), a caller whose roles may invite gets a token to write the group's invite there, and nothing in the group's repo.
fyi.opensocial.getJoinRequestThe caller's own pending request to join, if they have one. Requires no action: listJoinRequests is the moderator's queue and needs `admit`, which leaves a requester unable to see the request they themselves made. Returns nothing once a request has been decided, so a denial is not disclosed.
fyi.opensocial.listGroupsHost-level: the groups hosted here, with their profiles. v1 discovery; a real index would come from declarations on the public network.
fyi.opensocial.provisionGroupHost-level: an app creates a group for a person and gets its own OAuth session on it. Authenticated twice: the person asking, by service auth from their PDS (they become the founder), and the app, by OAuth client authentication in the body (a client assertion for a confidential client) with a DPoP proof in the `DPoP` header, exactly as at the token endpoint. The app must be one this host provisions for. Returns the group and a token response bound to the proof's key, issued to the app's client id: refreshed, listed and revoked like any other session on the group.

From other namespaces

Schemas the ones above refer to, published by atproto and lexicon.community.

LexiconWhat it is
com.atproto.admin.defs
com.atproto.label.defs
com.atproto.moderation.defs
com.atproto.repo.strongRefA URI with a content-hash fingerprint.
com.atproto.server.defs
community.lexicon.location.addressA physical location in the form of a street address.
community.lexicon.location.fsqA physical location contained in the Foursquare Open Source Places dataset.
community.lexicon.location.geoA physical location in the form of a WGS84 coordinate.
community.lexicon.location.hthreeA physical location in the form of a H3 encoded location.