# app.studynext.groupInvite

> A pending/answered group invite, written into the shared moderation account's (studynext.app) repo by the group-invites ingest endpoint. The invitee's client polls this to show incoming invite notifications. rkey is a deterministic hash of (groupUri, inviteeDid), so re-inviting after a decline overwrites the old response with a fresh pending one instead of accumulating duplicates.

- Kind: record
- Record key: any
- Authority: studynext.app
- Lexicon: 1
- Published by [studynext.app](https://lexicon.garden/identity/did:plc:nstib2qjcu3tyun7cxz4dxcm), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.groupInvite)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.groupInvite/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.groupInvite/analytics)

## Record (`app.studynext.groupInvite`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `groupUri` (string · at-uri, required)
- `inviteeDid` (string · did, required)
- `inviterDid` (string · did, required)
- `respondedAt` (string · datetime)
- `role` (string, required)
  - Constraints: knownValues: supervisor | member
- `status` (string, required)
  - Constraints: knownValues: pending | accepted | rejected

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A pending/answered group invite, written into the shared moderation account's (studynext.app) repo by the group-invites ingest endpoint. The invitee's client polls this to show incoming invite notifications. rkey is a deterministic hash of (groupUri, inviteeDid), so re-inviting after a decline overwrites the old response with a fresh pending one instead of accumulating duplicates.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "groupUri": {
            "format": "at-uri",
            "type": "string"
          },
          "inviteeDid": {
            "format": "did",
            "type": "string"
          },
          "inviterDid": {
            "format": "did",
            "type": "string"
          },
          "respondedAt": {
            "format": "datetime",
            "type": "string"
          },
          "role": {
            "knownValues": [
              "supervisor",
              "member"
            ],
            "type": "string"
          },
          "status": {
            "knownValues": [
              "pending",
              "accepted",
              "rejected"
            ],
            "type": "string"
          }
        },
        "required": [
          "groupUri",
          "inviterDid",
          "inviteeDid",
          "role",
          "status",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.groupInvite",
  "lexicon": 1
}
```
