{
"id": "club.userstyles.alpha.defs",
"defs": {
"followView": {
"type": "object",
"required": [
"did",
"createdAt"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"createdAt": {
"type": "string",
"format": "datetime"
}
}
},
"ratingView": {
"type": "object",
"required": [
"uri",
"cid",
"author",
"subjectUri",
"rating",
"createdAt",
"indexedAt"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"author": {
"type": "string",
"format": "did"
},
"rating": {
"type": "integer",
"maximum": 5,
"minimum": 1
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"updatedAt": {
"type": "string",
"format": "datetime"
},
"subjectUri": {
"type": "string",
"format": "at-uri"
}
}
},
"commentView": {
"type": "object",
"required": [
"uri",
"cid",
"author",
"subjectUri",
"comment",
"createdAt",
"indexedAt"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"author": {
"type": "string",
"format": "did"
},
"comment": {
"type": "string",
"maxLength": 2560,
"maxGraphemes": 256
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"parentUri": {
"type": "string",
"format": "at-uri"
},
"updatedAt": {
"type": "string",
"format": "datetime"
},
"subjectUri": {
"type": "string",
"format": "at-uri"
}
}
},
"profileView": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"handle": {
"type": "string",
"format": "handle"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"description": {
"type": "string",
"maxLength": 2560,
"maxGraphemes": 256
}
}
},
"feedViewItem": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"userstyle",
"comment",
"rating",
"follow"
],
"type": "string"
},
"follow": {
"ref": "club.userstyles.alpha.defs#feedFollowView",
"type": "ref"
},
"rating": {
"ref": "club.userstyles.alpha.defs#ratingView",
"type": "ref"
},
"comment": {
"ref": "club.userstyles.alpha.defs#commentView",
"type": "ref"
},
"userstyle": {
"ref": "club.userstyles.alpha.defs#userstyleView",
"type": "ref"
}
}
},
"userstyleView": {
"type": "object",
"required": [
"uri",
"cid",
"author",
"title",
"sourceCodeCid",
"createdAt",
"indexedAt",
"commentCount",
"ratingCount"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"title": {
"type": "string",
"maxGraphemes": 140,
"minGraphemes": 1
},
"author": {
"type": "string",
"format": "did"
},
"license": {
"type": "string",
"maxLength": 100
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"updatedAt": {
"type": "string",
"format": "datetime"
},
"description": {
"type": "string",
"maxGraphemes": 300
},
"homepageUrl": {
"type": "string",
"format": "uri"
},
"ratingCount": {
"type": "integer"
},
"upstreamUrl": {
"type": "string",
"format": "uri"
},
"userCssVars": {
"type": "integer"
},
"commentCount": {
"type": "integer"
},
"ratingAverage": {
"type": "string"
},
"sourceCodeCid": {
"type": "string",
"format": "cid"
},
"ignoreUpdateUrl": {
"type": "boolean"
},
"previewImageCid": {
"type": "string",
"format": "cid"
},
"mozDocumentFunctions": {
"type": "array",
"items": {
"ref": "club.userstyles.alpha.defs#mozDocumentFunction",
"type": "ref"
}
}
}
},
"feedFollowView": {
"type": "object",
"required": [
"uri",
"did",
"subjectDid",
"createdAt",
"indexedAt"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"subjectDid": {
"type": "string",
"format": "did"
}
}
},
"notificationView": {
"type": "object",
"required": [
"reason",
"recordUri",
"author",
"createdAt",
"indexedAt"
],
"properties": {
"author": {
"type": "string",
"format": "did"
},
"reason": {
"enum": [
"comment",
"reply",
"thread",
"rating",
"follow"
],
"type": "string"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"recordUri": {
"type": "string",
"format": "at-uri"
},
"userstyle": {
"ref": "club.userstyles.alpha.defs#userstyleView",
"type": "ref"
}
}
},
"relationshipView": {
"type": "object",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"following": {
"type": "string",
"format": "at-uri"
},
"followedBy": {
"type": "string",
"format": "at-uri"
}
}
},
"commentThreadView": {
"type": "object",
"required": [
"uri",
"deleted",
"createdAt",
"indexedAt"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"author": {
"type": "string",
"format": "did"
},
"rating": {
"type": "integer",
"maximum": 5,
"minimum": 1
},
"comment": {
"type": "string",
"maxLength": 2560,
"maxGraphemes": 256
},
"deleted": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"parentUri": {
"type": "string",
"format": "at-uri"
},
"updatedAt": {
"type": "string",
"format": "datetime"
},
"subjectUri": {
"type": "string",
"format": "at-uri"
}
}
},
"mozDocumentFunction": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}