com.atproto.server.defs
Lexicon Version: 1
Definitions
Section titled “Definitions”inviteCode
Section titled “inviteCode”Type: object
Properties:
| Name | Type | Req’d | Description | Constraints |
|---|---|---|---|---|
code | string | ✅ | ||
available | integer | ✅ | ||
disabled | boolean | ✅ | ||
forAccount | string | ✅ | ||
createdBy | string | ✅ | ||
createdAt | string | ✅ | Format: datetime | |
uses | Array of #inviteCodeUse | ✅ |
inviteCodeUse
Section titled “inviteCodeUse”Type: object
Properties:
| Name | Type | Req’d | Description | Constraints |
|---|---|---|---|---|
usedBy | string | ✅ | Format: did | |
usedAt | string | ✅ | Format: datetime |
Lexicon Source
Section titled “Lexicon Source”{ "lexicon": 1, "id": "com.atproto.server.defs", "defs": { "inviteCode": { "type": "object", "required": [ "code", "available", "disabled", "forAccount", "createdBy", "createdAt", "uses" ], "properties": { "code": { "type": "string" }, "available": { "type": "integer" }, "disabled": { "type": "boolean" }, "forAccount": { "type": "string" }, "createdBy": { "type": "string" }, "createdAt": { "type": "string", "format": "datetime" }, "uses": { "type": "array", "items": { "type": "ref", "ref": "#inviteCodeUse" } } } }, "inviteCodeUse": { "type": "object", "required": [ "usedBy", "usedAt" ], "properties": { "usedBy": { "type": "string", "format": "did" }, "usedAt": { "type": "string", "format": "datetime" } } } }}