ai.newnal.illi.home.uploadMyPhoto
Set the caller's photo in one home (family members; parents' photos come from parent.uploadProfileImage). The body is the image (JPEG, PNG or WebP, at most 10 MB; convert HEIC to JPEG on the device); the Service Agent Node rotates it upright, scales it to at most 1024 px and re-encodes it as JPEG without metadata (no EXIF or location), uploads it into the caller's own repo with the caller's session and writes it as the photo of the caller's My Data profile (ai.newnal.mydata.dev.profile, rkey self) in the home's family sphere. The photo is per home, like the name and relationship. Replaces an earlier photo.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | home.illi.newnal.ai |
| Indexed |
Showing version bafyreidmwrxooj574hl5gda5fvyjtjpfeynyen37jotyxegmceub5alxde. Show the latest
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Set the caller's photo in one home (family members; parents' photos come from parent.uploadProfileImage). The body is the image (JPEG, PNG or WebP, at most 10 MB; convert HEIC to JPEG on the device); the Service Agent Node rotates it upright, scales it to at most 1024 px and re-encodes it as JPEG without metadata (no EXIF or location), uploads it into the caller's own repo with the caller's session and writes it as the photo of the caller's My Data profile (ai.newnal.mydata.dev.profile, rkey self) in the home's family sphere. The photo is per home, like the name and relationship. Replaces an earlier photo.",
"errors": [
{
"name": "NotMember"
},
{
"name": "HomeNotFound"
},
{
"description": "Parents set their photo with parent.uploadProfileImage.",
"name": "InvalidRequest"
},
{
"name": "UnsupportedMedia"
},
{
"name": "MediaTooLarge"
},
{
"description": "The caller's session the Service Agent Node holds is unavailable; sign in again.",
"name": "DelegationUnavailable"
},
{
"name": "PdsUnavailable"
},
{
"description": "The caller's session was issued before the family permission set included the profile record; sign in again.",
"name": "ScopeMissing"
}
],
"input": {
"encoding": "*/*"
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"photoUrl": {
"description": "Gated URL of the stored photo, readable by the home's members and its device.",
"format": "uri",
"type": "string"
}
},
"required": [
"photoUrl"
],
"type": "object"
}
},
"parameters": {
"properties": {
"homeId": {
"format": "tid",
"type": "string"
}
},
"required": [
"homeId"
],
"type": "params"
},
"type": "procedure"
}
},
"id": "ai.newnal.illi.home.uploadMyPhoto",
"lexicon": 1
}