{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "activityDetail": {
      "description": "One constituent activity underlying an experience (included only on full-detail shares). Carries no internal journal paths, facets, or raw capture stream IDs.",
      "properties": {
        "endedAt": {
          "format": "datetime",
          "type": "string"
        },
        "facets": {
          "items": {
            "ref": "app.bsky.richtext.facet",
            "type": "ref"
          },
          "maxLength": 100,
          "type": "array"
        },
        "id": {
          "description": "Opaque identifier stable within this shared experience (e.g. a1, a2), referenced by moment.activityIds.",
          "maxLength": 64,
          "type": "string"
        },
        "kind": {
          "description": "Optional coarse activity kind.",
          "knownValues": [
            "social",
            "meeting",
            "work",
            "outing",
            "travel",
            "meal",
            "exercise",
            "creative",
            "media",
            "other"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "segments": {
          "description": "Optional timed segments within this constituent activity.",
          "items": {
            "ref": "#segment",
            "type": "ref"
          },
          "maxLength": 200,
          "type": "array"
        },
        "startedAt": {
          "format": "datetime",
          "type": "string"
        },
        "summary": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "title": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        }
      },
      "required": [
        "startedAt"
      ],
      "type": "object"
    },
    "audio": {
      "description": "An audio clip attached to a moment, segment, or experience.",
      "properties": {
        "alt": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "blob": {
          "accept": [
            "audio/*",
            "video/mp4",
            "video/webm"
          ],
          "maxSize": 50000000,
          "type": "blob"
        },
        "capturedAt": {
          "format": "datetime",
          "type": "string"
        },
        "durationMs": {
          "minimum": 0,
          "type": "integer"
        },
        "mimeType": {
          "maxLength": 128,
          "type": "string"
        },
        "transcript": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        }
      },
      "required": [
        "blob"
      ],
      "type": "object"
    },
    "external": {
      "description": "An external web link attached to a moment, segment, or experience.",
      "properties": {
        "description": {
          "maxGraphemes": 1000,
          "maxLength": 10000,
          "type": "string"
        },
        "thumb": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        },
        "title": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "uri": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "image": {
      "description": "An image attached to a moment, segment, or experience (EXIF/GPS stripped before upload).",
      "properties": {
        "alt": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "aspectRatio": {
          "ref": "app.bsky.embed.defs#aspectRatio",
          "type": "ref"
        },
        "blob": {
          "accept": [
            "image/*"
          ],
          "maxSize": 5000000,
          "type": "blob"
        },
        "caption": {
          "maxGraphemes": 1000,
          "maxLength": 10000,
          "type": "string"
        },
        "capturedAt": {
          "format": "datetime",
          "type": "string"
        },
        "mimeType": {
          "maxLength": 128,
          "type": "string"
        }
      },
      "required": [
        "blob"
      ],
      "type": "object"
    },
    "moment": {
      "description": "One chronological narrative moment within a shared experience, with optional summary, media, and opaque links to constituent activities.",
      "properties": {
        "activityIds": {
          "description": "Optional opaque IDs referencing items in the parent experience activities[] array (populated on full-detail shares only; never internal journal paths).",
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxLength": 50,
          "type": "array"
        },
        "endedAt": {
          "description": "When this moment ended. Omit for point-in-time moments.",
          "format": "datetime",
          "type": "string"
        },
        "facets": {
          "items": {
            "ref": "app.bsky.richtext.facet",
            "type": "ref"
          },
          "maxLength": 50,
          "type": "array"
        },
        "id": {
          "description": "Opaque identifier stable within this shared experience (e.g. m1, m2), for anchoring annotations or references.",
          "maxLength": 64,
          "type": "string"
        },
        "locations": {
          "items": {
            "refs": [
              "community.lexicon.location.address",
              "community.lexicon.location.geo",
              "community.lexicon.location.hthree",
              "community.lexicon.location.fsq",
              "#placeName"
            ],
            "type": "union"
          },
          "maxLength": 4,
          "type": "array"
        },
        "media": {
          "items": {
            "refs": [
              "#image",
              "#video",
              "#audio",
              "#external"
            ],
            "type": "union"
          },
          "maxLength": 12,
          "type": "array"
        },
        "people": {
          "items": {
            "ref": "#participant",
            "type": "ref"
          },
          "maxLength": 50,
          "type": "array"
        },
        "startedAt": {
          "description": "When this moment began (RFC 3339, UTC preferred).",
          "format": "datetime",
          "type": "string"
        },
        "summary": {
          "description": "Plain-text summary of what happened during this moment.",
          "maxGraphemes": 1500,
          "maxLength": 15000,
          "type": "string"
        }
      },
      "required": [
        "startedAt"
      ],
      "type": "object"
    },
    "participant": {
      "description": "A person involved in or mentioned by an experience. Works identically for people with or without an Atmosphere account.",
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "name": {
          "maxGraphemes": 120,
          "maxLength": 1200,
          "type": "string"
        },
        "ref": {
          "format": "at-uri",
          "type": "string"
        },
        "role": {
          "knownValues": [
            "present",
            "author",
            "host",
            "mentioned"
          ],
          "maxLength": 64,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "placeName": {
      "description": "A plain human-readable place label when structured address, coordinates, or POI IDs are absent or deliberately withheld.",
      "properties": {
        "name": {
          "maxGraphemes": 200,
          "maxLength": 2000,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "recordRef": {
      "description": "A reference to a related ATProto record (public or in the same space via at:space/...).",
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "relation": {
          "knownValues": [
            "calendar-event",
            "gallery",
            "related-memory",
            "companion-post",
            "source"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "segment": {
      "description": "One timed segment within a constituent activity (included only on full-detail shares).",
      "properties": {
        "endedAt": {
          "format": "datetime",
          "type": "string"
        },
        "facets": {
          "items": {
            "ref": "app.bsky.richtext.facet",
            "type": "ref"
          },
          "maxLength": 50,
          "type": "array"
        },
        "id": {
          "description": "Opaque identifier stable within this shared experience (e.g. s1, s2).",
          "maxLength": 64,
          "type": "string"
        },
        "media": {
          "items": {
            "refs": [
              "#image",
              "#video",
              "#audio",
              "#external"
            ],
            "type": "union"
          },
          "maxLength": 12,
          "type": "array"
        },
        "startedAt": {
          "format": "datetime",
          "type": "string"
        },
        "summary": {
          "maxGraphemes": 1500,
          "maxLength": 15000,
          "type": "string"
        }
      },
      "required": [
        "startedAt"
      ],
      "type": "object"
    },
    "uriRef": {
      "description": "A reference to a non-ATProto URL related to the experience.",
      "properties": {
        "relation": {
          "maxLength": 64,
          "type": "string"
        },
        "title": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "uri": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "video": {
      "description": "A video clip attached to a moment, segment, or experience.",
      "properties": {
        "alt": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "aspectRatio": {
          "ref": "app.bsky.embed.defs#aspectRatio",
          "type": "ref"
        },
        "blob": {
          "accept": [
            "video/mp4",
            "video/webm"
          ],
          "maxSize": 50000000,
          "type": "blob"
        },
        "capturedAt": {
          "format": "datetime",
          "type": "string"
        },
        "durationMs": {
          "minimum": 0,
          "type": "integer"
        },
        "mimeType": {
          "maxLength": 128,
          "type": "string"
        },
        "poster": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        }
      },
      "required": [
        "blob"
      ],
      "type": "object"
    }
  },
  "id": "app.solstone.memory.defs",
  "lexicon": 1
}
