town.walls.photo

A documented photo of a graffiti piece.

Repository @walls.town did:plc:geruez2v64zoge3l4sztt4kz namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritywalls.town
Indexed
cid bafyreibyomr2xrwghi63m424wyar6x4mlyujhahj4qc42ukwwqxqiqic3y

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "aspectRatio": {
      "description": "Image pixel dimensions. width/height are integers (e.g. for a 6000x4000 photo).",
      "properties": {
        "height": {
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "camera": {
      "description": "Best-effort capture metadata from EXIF or a grain record.",
      "properties": {
        "aperture": {
          "type": "string"
        },
        "focalLength": {
          "type": "string"
        },
        "iso": {
          "type": "integer"
        },
        "lens": {
          "type": "string"
        },
        "make": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "shutter": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "externalLink": {
      "description": "A hand-recorded link to this piece on an off-protocol service.",
      "properties": {
        "label": {
          "description": "Platform/handle label; drives the icon on render. e.g. \"instagram\".",
          "maxLength": 64,
          "type": "string"
        },
        "url": {
          "description": "The public URL.",
          "format": "uri",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "label",
        "url"
      ],
      "type": "object"
    },
    "location": {
      "description": "Capture location. lat/lng are decimal-degree STRINGS: ATProto lexicons have no float type (only integer). Coordinates are stored AND rendered at full precision (the website plots them on its map page); the record is also public via listRecords, so exact coords are readable by anyone reading the repo directly.",
      "properties": {
        "lat": {
          "description": "Decimal degrees, full precision. e.g. \"37.77531\".",
          "type": "string"
        },
        "lng": {
          "description": "Decimal degrees, full precision. e.g. \"-122.22417\".",
          "type": "string"
        },
        "name": {
          "description": "Optional human label, e.g. \"E 12th St underpass\".",
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "A documented photo of a graffiti piece.",
      "key": "tid",
      "record": {
        "properties": {
          "altText": {
            "description": "Accessibility alt text describing the photo. Auto-generated by a vision model at admin time; editable. The site renders it as the image alt.",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "artists": {
            "description": "Artist names. Free strings; a piece may have several.",
            "items": {
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "aspectRatio": {
            "description": "Pixel dimensions of the image, used for justified layout / to avoid reflow. Best-effort.",
            "ref": "#aspectRatio",
            "type": "ref"
          },
          "camera": {
            "ref": "#camera",
            "type": "ref"
          },
          "caption": {
            "description": "Short visible description shown under the artist-name title on the photo page. Was the title field; the title is now always the artist names.",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "capturedAt": {
            "description": "When the photo was taken (EXIF DateTimeOriginal), if known.",
            "format": "datetime",
            "type": "string"
          },
          "createdAt": {
            "description": "Record creation time.",
            "format": "datetime",
            "type": "string"
          },
          "externalLinks": {
            "description": "Manually-recorded off-protocol links (Instagram, Flickr, X, …). Tier-3 external syndication, recorded by hand — not automated posting.",
            "items": {
              "ref": "#externalLink",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "grainPost": {
            "description": "strongRef to a grain post serving as the photo. Alternative to image (exactly one of image/grainPost required, app-enforced).",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "image": {
            "accept": [
              "image/*"
            ],
            "description": "The displayed photo. Optional in schema; exactly one of image or grainPost is required (enforced in app code).",
            "maxSize": 4000000,
            "type": "blob"
          },
          "location": {
            "ref": "#location",
            "type": "ref"
          },
          "syndication": {
            "description": "Syndicated copies of this photo published as their own atproto records (bsky post, grain gallery, site doc, currents save, …). Machine-written by the syndication step — one entry per platform. Open set: adding a platform needs no lexicon change.",
            "items": {
              "ref": "#syndicationLeg",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "tags": {
            "description": "Faceted tags. Conventions (parsed/enforced in app code, not the lexicon): kind:<piece|throwup|tag|mural|sticker|roller|wheatpaste|other> (exactly one expected), crew:<name>, surface:<wall|truck|pole|shutter|...>. Plus freeform tags (e.g. \"trackside\", \"two-color\").",
            "items": {
              "type": "string"
            },
            "maxLength": 40,
            "type": "array"
          }
        },
        "required": [
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "syndicationLeg": {
      "description": "A syndicated copy of this photo as its own atproto record. Written by the syndication step; a platform's absence means that leg hasn't run.",
      "properties": {
        "platform": {
          "description": "Platform key (open set): bsky, grain, site, currents, longform, … The code-side registry maps keys to display names + URL builders.",
          "maxLength": 32,
          "type": "string"
        },
        "ref": {
          "description": "strongRef to the syndicated record.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "platform",
        "ref"
      ],
      "type": "object"
    }
  },
  "id": "town.walls.photo",
  "lexicon": 1
}