ing.dasl.masl

A tile, instantiating MASL metadata into a record

Details · record, key tid
Kindrecord
Record keytid
Authoritydasl.ing
Commit rev3n27b32o3bq2d
Indexed

Showing version bafyreietueuhdda2oqj3xn3cvy6c6tcfcp6xe337pqld6r45meaadggpem. Show the latest

cid bafyreietueuhdda2oqj3xn3cvy6c6tcfcp6xe337pqld6r45meaadggpem

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A tile, instantiating MASL metadata into a record",
      "key": "tid",
      "record": {
        "properties": {
          "cid": {
            "description": "The DRISL CID of the MASL for the tile",
            "format": "cid",
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp",
            "format": "datetime",
            "type": "string"
          },
          "tile": {
            "description": "The MASL content",
            "ref": "ing.dasl.masl#masl",
            "type": "ref"
          }
        },
        "required": [
          "cid",
          "tile",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "masl": {
      "description": "MASL metadata as defined in https://dasl.ing/masl.html",
      "properties": {
        "background_color": {
          "description": "A colour for the background of the tile",
          "type": "string"
        },
        "categories": {
          "description": "Tags categorising the tile",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "description": {
          "description": "Short overview of the content",
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "icons": {
          "description": "Icons for the tile",
          "items": {
            "properties": {
              "purpose": {
                "type": "string"
              },
              "sizes": {
                "type": "string"
              },
              "src": {
                "type": "string"
              }
            },
            "required": [
              "src"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "name": {
          "description": "The name for the tile, can be a title or app name",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        },
        "prev": {
          "description": "In case there are multiple versions of this tile, this is the CID of the previous one",
          "type": "cid-link"
        },
        "resources": {
          "description": "A mapping of path to object with a CID src and HTTP headers",
          "type": "unknown"
        },
        "roots": {
          "description": "The CAR roots — avoid using this",
          "items": {
            "type": "cid-link"
          },
          "type": "array"
        },
        "screenshots": {
          "description": "Screenshots, can be used for banner or card images",
          "items": {
            "properties": {
              "label": {
                "type": "string"
              },
              "sizes": {
                "type": "string"
              },
              "src": {
                "type": "string"
              }
            },
            "required": [
              "src"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "short_name": {
          "description": "A name, in case the basic name cannot fit",
          "type": "string"
        },
        "sizing": {
          "description": "The size the content would like, in CSS pixels; the context that runs it decides (https://dasl.ing/tp-size.html)",
          "properties": {
            "fit": {
              "description": "The dimensions that follow the content, measured by the runtime",
              "knownValues": [
                "none",
                "width",
                "height",
                "both"
              ],
              "type": "string"
            },
            "height": {
              "description": "The height the tile is designed for",
              "minimum": 1,
              "type": "integer"
            },
            "maxHeight": {
              "description": "The tallest the tile has a use for",
              "minimum": 1,
              "type": "integer"
            },
            "maxWidth": {
              "description": "The widest the tile has a use for",
              "minimum": 1,
              "type": "integer"
            },
            "minHeight": {
              "description": "The shortest the tile works at",
              "minimum": 1,
              "type": "integer"
            },
            "minWidth": {
              "description": "The narrowest the tile works at",
              "minimum": 1,
              "type": "integer"
            },
            "width": {
              "description": "The width the tile is designed for",
              "minimum": 1,
              "type": "integer"
            }
          },
          "type": "object"
        },
        "theme_color": {
          "description": "Theme colour",
          "type": "string"
        },
        "version": {
          "const": 1,
          "description": "The CAR version — avoid using this",
          "type": "integer"
        }
      },
      "required": [
        "name",
        "resources"
      ],
      "type": "object"
    }
  },
  "description": "Lexicon for DASL (https://dasl.ing/) types used on AT, notably for Web Tiles.",
  "id": "ing.dasl.masl",
  "lexicon": 1
}