# Published lexicons

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

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

## The standard

The standard's lexicons, `org.atgrp.*`, as lex.atgrp.org publishes them. The spec's own copies: https://www.atmospheregroups.org/spec/lexicons/

- [org.atgrp.about](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-about/): Basic information for presenting the group. Written by the group in the meta space.
- [org.atgrp.authManageAdmin](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-authManageAdmin/): For group account sessions. Limited to what the authorizing user's roles grant.
- [org.atgrp.authManageBasic](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-authManageBasic/): For group account sessions. Limited to what the authorizing user's roles grant.
- [org.atgrp.authManageMembers](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-authManageMembers/): For group account sessions. Limited to what the authorizing user's roles grant.
- [org.atgrp.authModerate](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-authModerate/): For group account sessions. Limited to what the authorizing user's roles grant.
- [org.atgrp.authParticipate](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-authParticipate/): For personal sessions, acting as the user rather than the group.
- [org.atgrp.cancelJoinRequest](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-cancelJoinRequest/): Withdraw the caller's pending join request. Requires service auth.
- [org.atgrp.config](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-config/): The group's configuration, such as how to join. Written by the group in the meta space.
- [org.atgrp.confirmation](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-confirmation/): A member's confirmation of their group membership. Written by the member in the group's members space.
- [org.atgrp.declaration](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-declaration/): Declares an account as a group. Published in the group's public repo for discovery.
- [org.atgrp.defs](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-defs/): Shared definitions in the standard
- [org.atgrp.denyJoinRequest](https://www.atmospheregroups.org/reference/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.inbox](https://www.atmospheregroups.org/reference/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.
- [org.atgrp.invite](https://www.atmospheregroups.org/reference/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.
- [org.atgrp.labeler](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-labeler/): The group's label values and the reports it accepts. Written by the group in the members space.
- [org.atgrp.leaveGroup](https://www.atmospheregroups.org/reference/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.listJoinRequests](https://www.atmospheregroups.org/reference/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.members](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-members/): Membership and administrative information for the group. Usually readable only by members.
- [org.atgrp.membership](https://www.atmospheregroups.org/reference/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.meta](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-meta/): Basic information and settings for the group. Often public, even when the rest of the group is not.
- [org.atgrp.mod.defs](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-mod-defs/): Shared definitions in the standard
- [org.atgrp.mod.querySelfHistory](https://www.atmospheregroups.org/reference/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.
- [org.atgrp.mod.querySubjectHistory](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-mod-querySubjectHistory/): Get a subject's moderation history. Requires auth as the group.
- [org.atgrp.mod.querySubjects](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-mod-querySubjects/): List subjects in the moderation queue. Requires auth as the group.
- [org.atgrp.mod.submitAppeal](https://www.atmospheregroups.org/reference/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.submitReport](https://www.atmospheregroups.org/reference/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.updateSubject](https://www.atmospheregroups.org/reference/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.policy](https://www.atmospheregroups.org/reference/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.
- [org.atgrp.requestJoin](https://www.atmospheregroups.org/reference/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.role](https://www.atmospheregroups.org/reference/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.rule](https://www.atmospheregroups.org/reference/lexicons/org-atgrp-rule/): A group rule, written by the group in the members space. Reports can cite it by URI.
- [org.atgrp.space](https://www.atmospheregroups.org/reference/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.

## The reference host

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

- [fyi.opensocial.acceptance](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-acceptance/): The member's side of membership, written by the member into the members space. Gates appearing in the roster, not access.
- [fyi.opensocial.access](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-access/): Who 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.admitMember](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-admitMember/): Approve a join request, giving the requester their roles. Requires admit. denyJoinRequest declines one.
- [fyi.opensocial.applyLabel](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-applyLabel/): Write a label record into the subject's space. Requires label, or takedown for !hide and !takedown.
- [fyi.opensocial.assignRoles](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-assignRoles/): Set a member's full role set. Requires role.assign; every role added or removed must be in the caller's assignable set.
- [fyi.opensocial.cancelJoinRequest](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-cancelJoinRequest/): Withdraw a pending join request.
- [fyi.opensocial.configure](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-configure/): For group-DID sessions.
- [fyi.opensocial.createInvite](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-createInvite/): Write an invite into someone's own invites space. Requires invite.
- [fyi.opensocial.createSpace](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-createSpace/): Create a space under the group with its access record and, unless index is false, an index entry. Requires space.create.
- [fyi.opensocial.declaration](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-declaration/): Marks a DID as a group. Lives in the public repo. Points at the meta space. Discovery only.
- [fyi.opensocial.defs](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-defs/): Shared definitions on the reference host
- [fyi.opensocial.deleteRole](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-deleteRole/): Remove a role. Requires group.configure. Fails if any membership still holds it.
- [fyi.opensocial.deleteRule](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-deleteRule/): Remove a rule. Requires group.configure.
- [fyi.opensocial.deleteSpace](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-deleteSpace/): Delete a group space and its index entry. Requires space.delete.
- [fyi.opensocial.denyJoinRequest](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-denyJoinRequest/): Deny a pending join request. Requires admit. The requester sees it as no request at all, and may ask again.
- [fyi.opensocial.ejectMember](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-ejectMember/): Remove a member and their access. Requires eject; every role the member holds must be in the caller's assignable set.
- [fyi.opensocial.getSubjectHistory](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-getSubjectHistory/): Get a subject's moderation history, oldest first. Requires mod.read.
- [fyi.opensocial.inbox](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-inbox/): Each 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.invite](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-invite/): An 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.label](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-label/): A moderation label, written by the group authority into the space its subject lives in — or, for an account, into the members space.
- [fyi.opensocial.labeler](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-labeler/): The 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.leaveGroup](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-leaveGroup/): Leave the group.
- [fyi.opensocial.listInvites](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-listInvites/): Outstanding invites. Requires invite.
- [fyi.opensocial.listJoinRequests](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-listJoinRequests/): The pending-requests queue. Requires admit.
- [fyi.opensocial.listSubjects](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-listSubjects/): List subjects in the moderation queue. Requires mod.read.
- [fyi.opensocial.members](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-members/): Roles, who holds them, the authz config, and the space index. Usually gated to members.
- [fyi.opensocial.membership](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-membership/): Grants 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.meta](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-meta/): The group's public face. Profile, rules, how to get in. Often readable by anyone, though may be private to members.
- [fyi.opensocial.negateLabel](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-negateLabel/): Negate a previously applied label. Requires label, or takedown for !hide and !takedown.
- [fyi.opensocial.permissions](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-permissions/): Group-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.profile](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-profile/): The group's profile. Written by the group authority into the meta space.
- [fyi.opensocial.putRole](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-putRole/): Create or update a role and its grant. Requires group.configure.
- [fyi.opensocial.putRule](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-putRule/): Create 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.requestJoin](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-requestJoin/): Ask 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.resolveSubject](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-resolveSubject/): Resolve or escalate a subject, optionally with a note. Repeating the current status adds the note. Requires mod.resolve.
- [fyi.opensocial.revokeInvite](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-revokeInvite/): Retract an outstanding invite. Requires invite.
- [fyi.opensocial.role](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-role/): Declares 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.rule](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-rule/): One group rule, with a stable URI a moderation action can cite.
- [fyi.opensocial.space](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-space/): Lists one space in the group's index, in its members space. A discovery aid, not an exhaustive list.
- [fyi.opensocial.updateProfile](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-updateProfile/): Replace 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.updateSpace](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-updateSpace/): Change a space: its name in the group's index, and its access record, replaced whole. Requires space.configure.
- [fyi.opensocial.uploadImage](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-uploadImage/): Upload 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.

## Host extensions

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

- [fyi.opensocial.basePermissions](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-basePermissions/): A permission set on the reference host
- [fyi.opensocial.getGroupAuth](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-getGroupAuth/): Obtain 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.getJoinRequest](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-getJoinRequest/): The 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.listGroups](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-listGroups/): Host-level: the groups hosted here, with their profiles. v1 discovery; a real index would come from declarations on the public network.
- [fyi.opensocial.provisionGroup](https://www.atmospheregroups.org/reference/lexicons/fyi-opensocial-provisionGroup/): Host-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.

- [com.atproto.admin.defs](https://www.atmospheregroups.org/reference/lexicons/com-atproto-admin-defs/): Shared definitions from another namespace
- [com.atproto.label.defs](https://www.atmospheregroups.org/reference/lexicons/com-atproto-label-defs/): Shared definitions from another namespace
- [com.atproto.moderation.defs](https://www.atmospheregroups.org/reference/lexicons/com-atproto-moderation-defs/): Shared definitions from another namespace
- [com.atproto.repo.strongRef](https://www.atmospheregroups.org/reference/lexicons/com-atproto-repo-strongRef/): A URI with a content-hash fingerprint.
- [com.atproto.server.defs](https://www.atmospheregroups.org/reference/lexicons/com-atproto-server-defs/): Shared definitions from another namespace
- [community.lexicon.location.address](https://www.atmospheregroups.org/reference/lexicons/community-lexicon-location-address/): A physical location in the form of a street address.
- [community.lexicon.location.fsq](https://www.atmospheregroups.org/reference/lexicons/community-lexicon-location-fsq/): A physical location contained in the Foursquare Open Source Places dataset.
- [community.lexicon.location.geo](https://www.atmospheregroups.org/reference/lexicons/community-lexicon-location-geo/): A physical location in the form of a WGS84 coordinate.
- [community.lexicon.location.hthree](https://www.atmospheregroups.org/reference/lexicons/community-lexicon-location-hthree/): A physical location in the form of a H3 encoded location.
