full diff

ai.newnal.illi.home.uploadMyPhoto

From
bafyreifqh7kk2wny5zusxuxypblrpiexazjfn4m6mlmnfnnvj7bkc2icqq indexed 2026-11-06 13:46 UTC View this version
To
bafyreid2ab62sguokkcrxaxeeawiggnxzroohi67fern5525cwpdd6pbd4 indexed 2026-11-24 13:32 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 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).",
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 it as the caller's own profileRepresentation (ai.newnal.mydata.profileRepresentation, rkey self, with its provenance) 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 {
31 "description": "The caller's session was issued before the family permission set included the profile record; sign in again.",
31 "description": "The caller's session was issued before the family permission set included the profileRepresentation collection; sign in again.",
3232 "name": "ScopeMissing"
3333 },
3434 {
3535 "description": "Photo processing is temporarily unavailable; no photo was uploaded. Retry-After is forwarded when supplied by media.",
3636 "name": "MediaUnavailable"
3737 }
3838 ],
3939 "input": {
4040 "encoding": "*/*"
4141 },
4242 "output": {
4343 "encoding": "application/json",
4444 "schema": {
4545 "properties": {
4646 "photoUrl": {
4747 "description": "Gated URL of the stored photo, readable by the home's members and its device.",
4848 "format": "uri",
4949 "type": "string"
5050 }
5151 },
5252 "required": [
5353 "photoUrl"
5454 ],
5555 "type": "object"
5656 }
5757 },
5858 "parameters": {
5959 "properties": {
6060 "homeId": {
6161 "format": "tid",
6262 "type": "string"
6363 }
6464 },
6565 "required": [
6666 "homeId"
6767 ],
6868 "type": "params"
6969 },
7070 "type": "procedure"
7171 }
7272 },
7373 "id": "ai.newnal.illi.home.uploadMyPhoto",
7474 "lexicon": 1
7575}

Compare other versions