~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
128 lines · 2.9 KB Raw History
{
	"lexicon": 1,
	"id": "social.grain.story.defs",
	"defs": {
		"storyView": {
			"type": "object",
			"required": [
				"uri",
				"cid",
				"creator",
				"thumb",
				"fullsize",
				"aspectRatio",
				"createdAt"
			],
			"properties": {
				"uri": {
					"type": "string",
					"format": "at-uri"
				},
				"cid": {
					"type": "string",
					"format": "cid"
				},
				"creator": {
					"type": "ref",
					"ref": "social.grain.actor.defs#profileView"
				},
				"thumb": {
					"type": "string",
					"format": "uri",
					"description": "Thumbnail URL for the story image."
				},
				"fullsize": {
					"type": "string",
					"format": "uri",
					"description": "Full-size URL for the story image."
				},
				"aspectRatio": {
					"type": "ref",
					"ref": "social.grain.defs#aspectRatio"
				},
				"location": {
					"type": "ref",
					"ref": "community.lexicon.location.hthree"
				},
				"address": {
					"type": "ref",
					"ref": "community.lexicon.location.address"
				},
				"locationDisplay": {
					"type": "string",
					"description": "Formatted location label for display."
				},
				"createdAt": {
					"type": "string",
					"format": "datetime"
				},
				"labels": {
					"type": "array",
					"items": {
						"type": "ref",
						"ref": "com.atproto.label.defs#label"
					}
				},
				"expired": {
					"type": "boolean",
					"description": "Whether the story has passed its 24-hour window."
				},
				"commentCount": {
					"type": "integer"
				},
				"viewer": {
					"type": "ref",
					"ref": "#viewerState"
				},
				"crossPost": {
					"type": "ref",
					"ref": "social.grain.gallery.defs#crossPostInfo"
				}
			}
		},
		"viewerState": {
			"type": "object",
			"description": "Metadata about the requesting account's relationship with the story.",
			"properties": {
				"fav": {
					"type": "string",
					"format": "at-uri"
				},
				"viewed": {
					"type": "boolean",
					"description": "Whether the requesting account has watched this story. Only present when true."
				}
			}
		},
		"storyAuthor": {
			"type": "object",
			"required": [
				"profile",
				"storyCount",
				"latestAt"
			],
			"properties": {
				"profile": {
					"type": "ref",
					"ref": "social.grain.actor.defs#profileView"
				},
				"storyCount": {
					"type": "integer"
				},
				"latestAt": {
					"type": "string",
					"format": "datetime"
				},
				"lastViewedAt": {
					"type": "string",
					"format": "datetime",
					"description": "createdAt of the newest of this author's live stories the requesting account has watched. Compare against latestAt to tell whether the viewer is caught up. Only present for an authenticated viewer who has watched at least one."
				},
				"unviewedCount": {
					"type": "integer",
					"description": "How many of this author's live stories the requesting account has not watched. Only present for an authenticated viewer."
				}
			}
		}
	}
}