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

johnandersen777.bsky.social/atlibs

0
0
main
54 lines · 2.8 KB Raw History
{
	"lexicon": 1,
	"id": "ing.dasl.masl",
	"description": "Lexicon for DASL (https://dasl.ing/) types used on AT, notably for Web Tiles. From the appendix of https://dasl.ing/tiles.html.",
	"defs": {
		"masl": {
			"type": "object",
			"description": "MASL metadata as defined in https://dasl.ing/masl.html",
			"required": ["name", "resources"],
			"properties": {
				"name": { "type": "string", "description": "The name for the tile, can be a title or app name", "maxLength": 1000, "maxGraphemes": 100 },
				"description": { "type": "string", "description": "Short overview of the content", "maxLength": 3000, "maxGraphemes": 300 },
				"categories": { "type": "array", "description": "Tags categorising the tile", "items": { "type": "string" } },
				"background_color": { "type": "string", "description": "A colour for the background of the tile" },
				"icons": {
					"type": "array",
					"description": "Icons for the tile; each src has to be in resources",
					"items": { "type": "object", "required": ["src"], "properties": { "src": { "type": "string" }, "sizes": { "type": "string" }, "purpose": { "type": "string" } } }
				},
				"screenshots": {
					"type": "array",
					"description": "Screenshots, can be used for banner or card images",
					"items": { "type": "object", "required": ["src"], "properties": { "src": { "type": "string" }, "sizes": { "type": "string" }, "label": { "type": "string" } } }
				},
				"sizing": {
					"type": "object",
					"description": "Requesting sizing properties for the content",
					"required": ["width", "height"],
					"properties": { "width": { "type": "integer", "minimum": 1 }, "height": { "type": "integer", "minimum": 1 } }
				},
				"resources": { "type": "unknown", "description": "A mapping of path to object with a blob src and HTTP headers" },
				"short_name": { "type": "string", "description": "A name, in case the basic name cannot fit" },
				"theme_color": { "type": "string", "description": "Theme colour" },
				"prev": { "type": "cid-link", "description": "In case there are multiple versions of this tile, this is the CID of the previous one" },
				"version": { "type": "integer", "description": "The CAR version — avoid using this", "const": 1 },
				"roots": { "type": "array", "description": "The CAR roots — avoid using this", "items": { "type": "cid-link" } }
			}
		},
		"main": {
			"type": "record",
			"description": "A tile, instantiating MASL metadata into a record",
			"key": "tid",
			"record": {
				"type": "object",
				"required": ["cid", "tile", "createdAt"],
				"properties": {
					"cid": { "type": "string", "description": "The DRISL CID of the MASL for the tile", "format": "cid" },
					"tile": { "type": "ref", "description": "The MASL content", "ref": "ing.dasl.masl#masl" },
					"createdAt": { "type": "string", "description": "Timestamp", "format": "datetime" }
				}
			}
		}
	}
}