{
"id": "pub.chive.collaboration.invite",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"subject",
"invitee",
"createdAt"
],
"properties": {
"role": {
"type": "string",
"description": "Role granted by this invitation. Defaults to 'collaborator'.",
"knownValues": [
"collaborator",
"editor",
"viewer",
"co-author",
"reviewer"
]
},
"invitee": {
"type": "string",
"format": "did",
"description": "DID of the user being invited."
},
"message": {
"type": "string",
"maxLength": 500,
"description": "Optional personal note shown to the invitee.",
"maxGraphemes": 200
},
"subject": {
"ref": "com.atproto.repo.strongRef",
"type": "ref",
"description": "StrongRef to any Chive-authored record being shared (collection, eprint, review, etc.)."
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"expiresAt": {
"type": "string",
"format": "datetime",
"description": "Optional expiration after which the invite is no longer valid."
}
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1,
"description": "Invitation record from a subject-record author to a potential collaborator. Lives in the inviter's PDS. Generic over any Chive record (collections in v1; eprints, reviews, and other records in the future)."
}