full diff

ai.newnal.illi.home.uploadMyPhoto

From
bafyreidmwrxooj574hl5gda5fvyjtjpfeynyen37jotyxegmceub5alxde indexed 2026-11-03 02:59 UTC View this version
To
bafyreifqh7kk2wny5zusxuxypblrpiexazjfn4m6mlmnfnnvj7bkc2icqq indexed 2026-11-06 13:46 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
5 "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.",
5 "description": "Set the caller's photo in one home (family members; parents use parent.uploadProfileImage). The binary body accepts JPEG, PNG, WebP, HEIC or HEIF, at most 10 MB. The media service synchronously rotates upright, scales the longest side to at most 1024 px without enlargement and returns a metadata-free JPEG (no EXIF, GPS, XMP or ICC), at most 5,000,000 bytes. The Service Agent Node uploads this JPEG with the caller's session and writes the caller's My Data profile (ai.newnal.mydata.dev.profile, rkey self) in the home's family sphere. The photo is per home and replaces an earlier photo. Media failure writes nothing to the PDN or profile: UnsupportedMedia (415), MediaTooLarge (413), or MediaUnavailable (503, with Retry-After when supplied).",
66 "errors": [
77 {
88 "name": "NotMember"
99 },
1010 {
1111 "name": "HomeNotFound"
1212 },
1313 {
1414 "description": "Parents set their photo with parent.uploadProfileImage.",
1515 "name": "InvalidRequest"
1616 },
1717 {
1818 "name": "UnsupportedMedia"
1919 },
2020 {
2121 "name": "MediaTooLarge"
2222 },
2323 {
2424 "description": "The caller's session the Service Agent Node holds is unavailable; sign in again.",
2525 "name": "DelegationUnavailable"
2626 },
2727 {
2828 "name": "PdsUnavailable"
2929 },
3030 {
3131 "description": "The caller's session was issued before the family permission set included the profile record; sign in again.",
3232 "name": "ScopeMissing"
33 },
34 {
35 "description": "Photo processing is temporarily unavailable; no photo was uploaded. Retry-After is forwarded when supplied by media.",
36 "name": "MediaUnavailable"
3337 }
3438 ],
3539 "input": {
3640 "encoding": "*/*"
3741 },
3842 "output": {
3943 "encoding": "application/json",
4044 "schema": {
4145 "properties": {
4246 "photoUrl": {
4347 "description": "Gated URL of the stored photo, readable by the home's members and its device.",
4448 "format": "uri",
4549 "type": "string"
4650 }
4751 },
4852 "required": [
4953 "photoUrl"
5054 ],
5155 "type": "object"
5256 }
5357 },
5458 "parameters": {
5559 "properties": {
5660 "homeId": {
5761 "format": "tid",
5862 "type": "string"
5963 }
6064 },
6165 "required": [
6266 "homeId"
6367 ],
6468 "type": "params"
6569 },
6670 "type": "procedure"
6771 }
6872 },
6973 "id": "ai.newnal.illi.home.uploadMyPhoto",
7074 "lexicon": 1
7175}

Compare other versions