# The spec's lexicons

Every schema the spec for Atmosphere Groups defines, one page each, from its repository.

The page: https://www.atmospheregroups.org/spec/lexicons/

## Spaces

- [org.atgrp.meta](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-meta/): Basic information and settings for the group. Often public, even when the rest of the group is not.
- [org.atgrp.members](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-members/): Membership and administrative information for the group. Usually readable only by members.
- [org.atgrp.inbox](https://www.atmospheregroups.org/spec/lexicons/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

- [org.atgrp.declaration](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-declaration/): Declares an account as a group. Published in the group's public repo for discovery.
- [org.atgrp.about](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-about/): Basic information for presenting the group. Written by the group in the meta space.
- [org.atgrp.config](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-config/): The group's configuration, such as how to join. Written by the group in the meta space.
- [org.atgrp.rule](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-rule/): A group rule, written by the group in the members space. Reports can cite it by URI.
- [org.atgrp.labeler](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-labeler/): The group's label values and the reports it accepts. Written by the group in the members space.
- [org.atgrp.space](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-confirmation/): A member's confirmation of their group membership. Written by the member in the group's members space.
- [org.atgrp.invite](https://www.atmospheregroups.org/spec/lexicons/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

- [org.atgrp.policy](https://www.atmospheregroups.org/spec/lexicons/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.

## Permission sets

- [org.atgrp.authManageBasic](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-authManageBasic/): For group account sessions. Limited to what the authorizing user's roles grant.
- [org.atgrp.authManageMembers](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-authManageMembers/): For group account sessions. Limited to what the authorizing user's roles grant.
- [org.atgrp.authModerate](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-authModerate/): For group account sessions. Limited to what the authorizing user's roles grant.
- [org.atgrp.authManageAdmin](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-authManageAdmin/): For group account sessions. Limited to what the authorizing user's roles grant.
- [org.atgrp.authParticipate](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-authParticipate/): For personal sessions, acting as the user rather than the group.

## Methods

- [org.atgrp.listJoinRequests](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-mod-querySubjects/): List subjects in the moderation queue. Requires auth as the group.
- [org.atgrp.mod.querySubjectHistory](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-mod-querySubjectHistory/): Get a subject's moderation history. Requires auth as the group.
- [org.atgrp.mod.updateSubject](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-cancelJoinRequest/): Withdraw the caller's pending join request. Requires service auth.
- [org.atgrp.leaveGroup](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/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](https://www.atmospheregroups.org/spec/lexicons/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.

## Shared definitions

- [org.atgrp.defs](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-defs/): Shared definitions in the spec
- [org.atgrp.mod.defs](https://www.atmospheregroups.org/spec/lexicons/org-atgrp-mod-defs/): Shared definitions in the spec
