MenuSpaces & records

Record

group.opensocial.membership

The group's side of membership: grants a member their roles.

Grants a member their roles. Written by the group authority; the record key is the member's DID.

Record key
any
Lives in
members

Fields

memberstring · didrequired
rolesarray of stringrequired
≤ 64 bytes
createdAtstring · datetimerequired

Schema

Lexicon JSON
{
  "lexicon": 1,
  "id": "group.opensocial.membership",
  "defs": {
    "main": {
      "type": "record",
      "key": "any",
      "description": "Grants a member their roles. Written by the group authority; the record key is the member's DID.",
      "record": {
        "type": "object",
        "required": [
          "member",
          "roles",
          "createdAt"
        ],
        "properties": {
          "member": {
            "type": "string",
            "format": "did"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64,
              "description": "A role id: the record key of a group.opensocial.role record."
            }
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      }
    }
  }
}

← All spaces and records