at.inlay.component

inlay.at

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "acceptsEntry": {
      "description": "Declares a data type this component can handle, routed to a specific prop.",
      "properties": {
        "collection": {
          "description": "For at-uri strings, restricts to this collection.",
          "format": "nsid",
          "type": "string"
        },
        "format": {
          "description": "String format constraint. Only applies when type is 'string'.",
          "knownValues": [
            "at-uri",
            "did",
            "datetime",
            "uri",
            "handle",
            "at-identifier",
            "nsid",
            "cid",
            "language",
            "record-key",
            "tid"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "prop": {
          "description": "Prop to bind matched data to.",
          "maxLength": 256,
          "type": "string"
        },
        "type": {
          "description": "Lexicon field type.",
          "knownValues": [
            "string",
            "integer",
            "boolean",
            "blob",
            "cid-link",
            "bytes"
          ],
          "maxLength": 128,
          "type": "string"
        }
      },
      "required": [
        "type",
        "prop"
      ],
      "type": "object"
    },
    "bodyExternal": {
      "description": "Component rendered by calling a remote XRPC endpoint",
      "properties": {
        "did": {
          "description": "DID of the service hosting this component",
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "bodyTemplate": {
      "description": "Component rendered by the host from a serialized element tree",
      "properties": {
        "node": {
          "description": "Serialized element tree with bindings",
          "type": "unknown"
        }
      },
      "required": [
        "node"
      ],
      "type": "object"
    },
    "main": {
      "description": "Component record - declares an implementation of a type",
      "key": "tid",
      "record": {
        "properties": {
          "accepts": {
            "description": "Data types this component can render. Used for data-driven discovery.",
            "items": {
              "ref": "#acceptsEntry",
              "type": "ref"
            },
            "type": "array"
          },
          "body": {
            "description": "How this component is rendered. Omit for primitives rendered by the host.",
            "refs": [
              "#bodyExternal",
              "#bodyTemplate"
            ],
            "type": "union"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "imports": {
            "description": "Ordered list of pack URIs (import stack). First pack that exports an NSID wins.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "type": "array"
          },
          "type": {
            "description": "NSID this component implements (also the XRPC procedure)",
            "format": "nsid",
            "type": "string"
          },
          "updatedAt": {
            "description": "Last update timestamp. Set by the publish flow to bust cached responses.",
            "format": "datetime",
            "type": "string"
          },
          "via": {
            "description": "Platform-managed deployment metadata",
            "refs": [
              "at.inlay.defs#viaValtown"
            ],
            "type": "union"
          },
          "view": {
            "description": "What kinds of pages this component is a view for",
            "items": {
              "refs": [
                "#viewRecord",
                "#viewCollection",
                "#viewIdentity"
              ],
              "type": "union"
            },
            "type": "array"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "viewCollection": {
      "description": "Component is a view for a collection listing. Omit collection for a generic collection view.",
      "properties": {
        "collection": {
          "description": "The collection this component lists. Omit for any-collection.",
          "format": "nsid",
          "type": "string"
        }
      },
      "type": "object"
    },
    "viewIdentity": {
      "description": "Component is a view for an identity (person/DID).",
      "properties": {},
      "type": "object"
    },
    "viewRecord": {
      "description": "Component is a view for individual records of a collection. Omit collection for a generic record view.",
      "properties": {
        "collection": {
          "description": "The collection this component views. Omit for any-collection.",
          "format": "nsid",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "at.inlay.component",
  "lexicon": 1
}

Validate Record

Validate a record against at.inlay.component

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:mdg3w2kpadcyxy33pizokzf3
CID
bafyreie34glisqglxoqsmi6e3s2q6hwnaujixdpyeppowe2xgtybwiviqq
Indexed At
2026-02-18 18:28 UTC
AT-URI
at://did:plc:mdg3w2kpadcyxy33pizokzf3/com.atproto.lexicon.schema/at.inlay.component

Version History (3 versions)

Referenced Schemas (1)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Cache lifetime and invalidation tags returned by XRPC components.

Lexicon Garden

@