97 lines
2.5 KiB
JSON
97 lines
2.5 KiB
JSON
{
|
|
"lexicon": 1,
|
|
"id": "chat.bsky.actor.defs",
|
|
"defs": {
|
|
"memberRole": {
|
|
"type": "string",
|
|
"knownValues": ["owner", "standard"]
|
|
},
|
|
"profileViewBasic": {
|
|
"type": "object",
|
|
"required": ["did", "handle"],
|
|
"properties": {
|
|
"did": {
|
|
"type": "string",
|
|
"format": "did"
|
|
},
|
|
"handle": {
|
|
"type": "string",
|
|
"format": "handle"
|
|
},
|
|
"displayName": {
|
|
"type": "string",
|
|
"maxGraphemes": 64,
|
|
"maxLength": 640
|
|
},
|
|
"avatar": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"associated": {
|
|
"type": "ref",
|
|
"ref": "app.bsky.actor.defs#profileAssociated"
|
|
},
|
|
"viewer": {
|
|
"type": "ref",
|
|
"ref": "app.bsky.actor.defs#viewerState"
|
|
},
|
|
"labels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "ref",
|
|
"ref": "com.atproto.label.defs#label"
|
|
}
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "datetime"
|
|
},
|
|
"chatDisabled": {
|
|
"type": "boolean",
|
|
"description": "Set to true when the actor cannot actively participate in conversations"
|
|
},
|
|
"verification": {
|
|
"type": "ref",
|
|
"ref": "app.bsky.actor.defs#verificationState"
|
|
},
|
|
"kind": {
|
|
"description": "Union field that has data specific to different kinds of convos.",
|
|
"type": "union",
|
|
"refs": [
|
|
"#directConvoMember",
|
|
"#groupConvoMember",
|
|
"#pastGroupConvoMember"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"directConvoMember": {
|
|
"type": "object",
|
|
"properties": {}
|
|
},
|
|
"groupConvoMember": {
|
|
"description": "A current group convo member.",
|
|
"type": "object",
|
|
"required": ["role"],
|
|
"properties": {
|
|
"addedBy": {
|
|
"description": "Who added this member. Only present if the member was added (instead of joining via link).",
|
|
"type": "ref",
|
|
"ref": "#profileViewBasic"
|
|
},
|
|
"role": {
|
|
"description": "The member's role within this conversation. Only present in group conversation member lists.",
|
|
"type": "ref",
|
|
"ref": "#memberRole"
|
|
}
|
|
}
|
|
},
|
|
"pastGroupConvoMember": {
|
|
"description": "A past group convo member.",
|
|
"type": "object",
|
|
"required": [],
|
|
"properties": {}
|
|
}
|
|
}
|
|
}
|