{
"id": "com.suibari.nagi.post",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"text",
"createdAt"
],
"properties": {
"text": {
"type": "string",
"maxLength": 30000,
"maxGraphemes": 3000
},
"embed": {
"refs": [
"#images",
"#quote"
],
"type": "union"
},
"langs": {
"type": "array",
"items": {
"type": "string",
"format": "language"
},
"maxLength": 3
},
"reply": {
"ref": "#replyRef",
"type": "ref"
},
"facets": {
"type": "array",
"items": {
"ref": "app.bsky.richtext.facet",
"type": "ref"
}
},
"channel": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"kossori": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"linkCards": {
"type": "array",
"items": {
"ref": "#linkCard",
"type": "ref"
},
"maxLength": 4
},
"channelOnly": {
"type": "boolean"
}
}
}
},
"image": {
"type": "object",
"required": [
"image",
"alt"
],
"properties": {
"alt": {
"type": "string",
"maxLength": 10000,
"maxGraphemes": 1000
},
"image": {
"type": "blob",
"accept": [
"image/jpeg",
"image/png",
"image/webp",
"image/gif"
],
"maxSize": 2000000
},
"aspectRatio": {
"ref": "app.bsky.embed.defs#aspectRatio",
"type": "ref"
}
}
},
"quote": {
"type": "object",
"required": [
"record"
],
"properties": {
"images": {
"type": "array",
"items": {
"ref": "#image",
"type": "ref"
},
"maxLength": 4,
"minLength": 1
},
"record": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
}
}
},
"images": {
"type": "object",
"required": [
"images"
],
"properties": {
"images": {
"type": "array",
"items": {
"ref": "#image",
"type": "ref"
},
"maxLength": 4,
"minLength": 1
}
}
},
"linkCard": {
"type": "object",
"required": [
"uri",
"title"
],
"properties": {
"uri": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"thumb": {
"type": "blob",
"accept": [
"image/jpeg",
"image/png",
"image/webp"
],
"maxSize": 1000000
},
"title": {
"type": "string",
"maxLength": 3000,
"maxGraphemes": 300
},
"description": {
"type": "string",
"maxLength": 10000,
"maxGraphemes": 1000
}
}
},
"replyRef": {
"type": "object",
"required": [
"root",
"parent"
],
"properties": {
"root": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"parent": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}