bridgy-fed/lexicons/app/bsky/actor/updateProfile.json

60 wiersze
1.5 KiB
JSON

{
"lexicon": 1,
"id": "app.bsky.actor.updateProfile",
"defs": {
"main": {
"type": "procedure",
"description": "Notify server that the user has seen notifications.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"nullable": ["description", "avatar", "banner"],
"properties": {
"displayName": {
"type": "string",
"maxLength": 64
},
"description": {
"type": "string",
"maxLength": 256
},
"avatar": {
"type": "image",
"accept": ["image/png", "image/jpeg"],
"maxWidth": 500,
"maxHeight": 500,
"maxSize": 100000
},
"banner": {
"type": "image",
"accept": ["image/png", "image/jpeg"],
"maxWidth": 1500,
"maxHeight": 500,
"maxSize": 500000
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["uri", "cid", "record"],
"properties": {
"uri": {"type": "string"},
"cid": {"type": "string"},
"record": {"type": "unknown"}
}
}
},
"errors": [
{"name": "InvalidBlob"},
{"name": "BlobTooLarge"},
{"name": "InvalidMimeType"},
{"name": "InvalidImageDimensions"}
]
}
}
}