The spec's lexicons
Every schema the spec defines, one page each, from the files in its repository.
They're published on the network under the same names, and the reference host publishes its own versions of most of them. Both are under Published lexicons, and each page here links to its counterparts.
Spaces
| Lexicon | What it is |
|---|
org.atgrp.meta | Basic information and settings for the group. Often public, even when the rest of the group is not. |
org.atgrp.members | Membership and administrative information for the group. Usually readable only by members. |
org.atgrp.inbox | A 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. |
Records
| Lexicon | What it is |
|---|
org.atgrp.declaration | Declares an account as a group. Published in the group's public repo for discovery. |
org.atgrp.about | Basic information for presenting the group. Written by the group in the meta space. |
org.atgrp.config | The group's configuration, such as how to join. Written by the group in the meta space. |
org.atgrp.rule | A group rule, written by the group in the members space. Reports can cite it by URI. |
org.atgrp.labeler | The group's label values and the reports it accepts. Written by the group in the members space. |
org.atgrp.space | An 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. |
org.atgrp.role | A 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.membership | A 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.confirmation | A member's confirmation of their group membership. Written by the member in the group's members space. |
org.atgrp.invite | An invitation to join the group, written by the group into the invitee's inbox space. Deleting it revokes the invite. |
Space policy
| Lexicon | What it is |
|---|
org.atgrp.policy | Space 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. |
Methods
| Lexicon | What it is |
|---|
org.atgrp.listJoinRequests | 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. |
org.atgrp.denyJoinRequest | Deny a pending join request, deleting it. To approve one, write the requester's membership instead. Requires auth as the group. |
org.atgrp.mod.querySubjects | List subjects in the moderation queue. Requires auth as the group. |
org.atgrp.mod.querySubjectHistory | Get a subject's moderation history. Requires auth as the group. |
org.atgrp.mod.updateSubject | Change a subject's status or tags, or add a note. Omitted fields are left as they are. Requires auth as the group. |
org.atgrp.requestJoin | Request 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. |
org.atgrp.cancelJoinRequest | Withdraw the caller's pending join request. Requires service auth. |
org.atgrp.leaveGroup | Leave a group, deleting the caller's membership, which the group authored. The caller should also delete their confirmation. Requires service auth. |
org.atgrp.mod.submitReport | Report 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.submitAppeal | Appeal 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.querySelfHistory | Get moderation history for the caller's account and records. Omits reports, notes, tags, and who acted. Works for former members. Requires service auth. |