{
"id": "am.noz.atgallery.alpha.publishedMedia",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"formatVersion",
"mediaKind",
"rendition",
"mime",
"size",
"createdAt"
],
"properties": {
"mime": {
"type": "string",
"maxLength": 100,
"knownValues": [
"image/avif",
"image/gif",
"image/jpeg",
"image/png",
"image/webp",
"video/mp4",
"audio/flac",
"audio/mp4",
"audio/mpeg",
"audio/ogg",
"audio/wav",
"audio/webm",
"application/pdf",
"text/plain",
"application/vnd.oasis.opendocument.text",
"application/vnd.oasis.opendocument.spreadsheet",
"application/vnd.oasis.opendocument.presentation",
"application/vnd.oasis.opendocument.graphics"
]
},
"size": {
"type": "integer",
"maximum": 52428800,
"minimum": 1
},
"width": {
"type": "integer",
"minimum": 1
},
"height": {
"type": "integer",
"minimum": 1
},
"preview": {
"type": "blob",
"accept": [
"image/webp"
],
"maxSize": 1048576
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"mediaKind": {
"type": "string",
"maxLength": 16,
"knownValues": [
"audio",
"document",
"image",
"video"
]
},
"rendition": {
"type": "blob",
"accept": [
"image/avif",
"image/gif",
"image/jpeg",
"image/png",
"image/webp",
"video/mp4",
"audio/flac",
"audio/mp4",
"audio/mpeg",
"audio/ogg",
"audio/wav",
"audio/webm",
"application/pdf",
"text/plain",
"application/vnd.oasis.opendocument.text",
"application/vnd.oasis.opendocument.spreadsheet",
"application/vnd.oasis.opendocument.presentation",
"application/vnd.oasis.opendocument.graphics"
],
"maxSize": 52428800
},
"decorative": {
"type": "boolean"
},
"formatVersion": {
"type": "integer",
"const": 1
},
"defaultAltText": {
"type": "string",
"maxGraphemes": 2000
},
"defaultCaption": {
"type": "string",
"maxGraphemes": 5000
},
"contentWarnings": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200
},
"maxLength": 20
},
"durationMilliseconds": {
"type": "integer",
"minimum": 1
}
}
},
"description": "An immutable, public, metadata-allowlisted media rendition."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}