at.inlay.component

inlay.at

Documentation

Component record. The rkey is the type NSID this component implements.

main record

Component record. The rkey is the type NSID this component implements.

Record Key nsid

Properties

body union Optional

How this component is rendered. Omit for primitives rendered by the host.

createdAt string datetime Optional

An RFC 3339 formatted timestamp.

description string Optional

No description available.

maxLength: 10000 bytesmaxGraphemes: 1000 graphemes
imports array of string did Optional

Ordered list of DIDs (import stack). For each NSID, the first DID that has a component with that rkey wins.

updatedAt string datetime Optional

Last update timestamp. Set by the publish flow to bust cached responses.

view ref #view Optional

What data this component views and which prop receives it

View raw schema
{
  "description": "Component record. The rkey is the type NSID this component implements.",
  "key": "nsid",
  "record": {
    "properties": {
      "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 DIDs (import stack). For each NSID, the first DID that has a component with that rkey wins.",
        "items": {
          "format": "did",
          "type": "string"
        },
        "type": "array"
      },
      "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 data this component views and which prop receives it",
        "ref": "#view",
        "type": "ref"
      }
    },
    "required": [],
    "type": "object"
  },
  "type": "record"
}
bodyExternal object

Component rendered by calling a remote XRPC endpoint

Properties

did string did Required

DID of the service hosting this component

personalized boolean Optional

When true, host sends a signed JWT identifying the viewer with each call.

View raw schema
{
  "description": "Component rendered by calling a remote XRPC endpoint",
  "properties": {
    "did": {
      "description": "DID of the service hosting this component",
      "format": "did",
      "type": "string"
    },
    "personalized": {
      "description": "When true, host sends a signed JWT identifying the viewer with each call.",
      "type": "boolean"
    }
  },
  "required": [
    "did"
  ],
  "type": "object"
}
bodyTemplate object

Component rendered by the host from a serialized element tree

Properties

node unknown Required

Serialized element tree with bindings

View raw schema
{
  "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"
}
view object

Declares what data this component views and which prop receives it.

Properties

prop string Required

Which component prop receives the view data.

maxLength: 256 bytes
View raw schema
{
  "description": "Declares what data this component views and which prop receives it.",
  "properties": {
    "accepts": {
      "description": "Data types this view accepts.",
      "items": {
        "refs": [
          "#viewRecord",
          "#viewPrimitive"
        ],
        "type": "union"
      },
      "minLength": 1,
      "type": "array"
    },
    "prop": {
      "description": "Which component prop receives the view data.",
      "maxLength": 256,
      "type": "string"
    }
  },
  "required": [
    "prop",
    "accepts"
  ],
  "type": "object"
}
viewPrimitive object

View accepts a primitive value type.

Properties

format string Optional

String format constraint. Only applies when type is 'string'.

maxLength: 64 bytes
Known values: at-uri, did, datetime, uri, handle, at-identifier, nsid, cid, language, record-key, tid
type string Required

Lexicon primitive type.

maxLength: 128 bytes
Known values: string, integer, boolean, blob, cid-link, bytes
View raw schema
{
  "description": "View accepts a primitive value type.",
  "properties": {
    "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"
    },
    "type": {
      "description": "Lexicon primitive type.",
      "knownValues": [
        "string",
        "integer",
        "boolean",
        "blob",
        "cid-link",
        "bytes"
      ],
      "maxLength": 128,
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
viewRecord object

View accepts individual records of a collection. Omit collection for a generic record view. When rkey is present, the component accepts bare DIDs (expanded to full AT URIs) and appears on identity pages.

Properties

collection string nsid Optional

The collection this component views. Omit for any-collection.

rkey string Optional

The record key, baked from the collection's lexicon at authoring time. Presence enables DID expansion and identity page routing.

maxLength: 512 bytes
View raw schema
{
  "description": "View accepts individual records of a collection. Omit collection for a generic record view. When rkey is present, the component accepts bare DIDs (expanded to full AT URIs) and appears on identity pages.",
  "properties": {
    "collection": {
      "description": "The collection this component views. Omit for any-collection.",
      "format": "nsid",
      "type": "string"
    },
    "rkey": {
      "description": "The record key, baked from the collection's lexicon at authoring time. Presence enables DID expansion and identity page routing.",
      "maxLength": 512,
      "type": "string"
    }
  },
  "type": "object"
}

Lexicon Garden

@