# app.studynext.status

> Studying status for a user. Only one record per user (rkey=self).

- Kind: record
- Record key: literal:self
- 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.status)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.status/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.status/analytics)

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

Type: record · key literal:self

### Properties

- `openTo` (string, required)
  - Constraints: knownValues: invite-only | followers | public
- `planTitle` (string)
  - Constraints: maxLength: 200
- `role` (string): The user's role in the current or resumable study room. Older records may omit this field.
  - Constraints: knownValues: host | guest
- `roomUri` (string · at-uri): Stable per-host AT-URI identifying the hosted room; currently the host's app.studynext.status/self URI. Older records may omit this field.
- `shareStudying` (boolean): User opt-in for third-party clients to display the current-studying badge. This field does not encode recipient restrictions; combine it with openTo when enforcing StudyNext visibility. Some clients may only inspect this flag.
- `startedAt` (string · datetime)
- `studying` (boolean, required)
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Studying status for a user. Only one record per user (rkey=self).",
      "key": "literal:self",
      "record": {
        "properties": {
          "openTo": {
            "knownValues": [
              "invite-only",
              "followers",
              "public"
            ],
            "type": "string"
          },
          "planTitle": {
            "maxLength": 200,
            "type": "string"
          },
          "role": {
            "description": "The user's role in the current or resumable study room. Older records may omit this field.",
            "knownValues": [
              "host",
              "guest"
            ],
            "type": "string"
          },
          "roomUri": {
            "description": "Stable per-host AT-URI identifying the hosted room; currently the host's app.studynext.status/self URI. Older records may omit this field.",
            "format": "at-uri",
            "type": "string"
          },
          "shareStudying": {
            "description": "User opt-in for third-party clients to display the current-studying badge. This field does not encode recipient restrictions; combine it with openTo when enforcing StudyNext visibility. Some clients may only inspect this flag.",
            "type": "boolean"
          },
          "startedAt": {
            "format": "datetime",
            "type": "string"
          },
          "studying": {
            "type": "boolean"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "studying",
          "openTo",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.status",
  "lexicon": 1
}
```
