at.inlay.defs

inlay.at

Schema Diff

+83 -0

From

CID
bafyreihzx3wqkkj...
Indexed At
2026-02-13 13:44 UTC
View this version

To

CID
bafyreieum33geki...
Indexed At
2026-02-15 21:43 UTC
View this version
1 1
{
2 2
  "id": "at.inlay.defs",
3 3
  "defs": {
4 4
    "element": {
5 5
      "type": "object",
6 6
      "required": [
7 7
        "type"
8 8
      ],
9 9
      "properties": {
10 10
        "key": {
11 11
          "type": "string",
12 +
          "maxLength": 256,
12 13
          "description": "Stable key that identifies the component among its siblings."
13 14
        },
14 15
        "type": {
15 16
          "type": "string",
16 17
          "format": "nsid",
17 18
          "description": "NSID of the component to render."
18 19
        },
19 20
        "props": {
20 21
          "type": "unknown",
21 22
          "description": "Properties to pass to the component."
22 23
        }
23 24
      },
24 25
      "description": "A renderable Inlay element."
25 26
    },
27 +
    "tagLink": {
28 +
      "type": "object",
29 +
      "required": [
30 +
        "subject"
31 +
      ],
32 +
      "properties": {
33 +
        "from": {
34 +
          "type": "string",
35 +
          "format": "nsid",
36 +
          "description": "Collection NSID of the linking records. Omit for any collection."
37 +
        },
38 +
        "subject": {
39 +
          "type": "string",
40 +
          "format": "at-uri",
41 +
          "description": "Subject AT URI that is linked to"
42 +
        }
43 +
      },
44 +
      "description": "Cache tag: depend on backlink relationships to a subject."
45 +
    },
46 +
    "response": {
47 +
      "type": "object",
48 +
      "required": [
49 +
        "node",
50 +
        "cache"
51 +
      ],
52 +
      "properties": {
53 +
        "node": {
54 +
          "ref": "#element",
55 +
          "type": "ref",
56 +
          "description": "Rendered element tree"
57 +
        },
58 +
        "cache": {
59 +
          "ref": "#cachePolicy",
60 +
          "type": "ref",
61 +
          "description": "Cache lifetime and invalidation tags"
62 +
        }
63 +
      },
64 +
      "description": "Standard response from a component render call."
65 +
    },
66 +
    "tagRecord": {
67 +
      "type": "object",
68 +
      "required": [
69 +
        "uri"
70 +
      ],
71 +
      "properties": {
72 +
        "uri": {
73 +
          "type": "string",
74 +
          "format": "at-uri",
75 +
          "description": "AT URI at record, collection, or identity granularity"
76 +
        }
77 +
      },
78 +
      "description": "Cache tag: depend on a specific record, collection, or identity."
79 +
    },
26 80
    "viaValtown": {
27 81
      "type": "object",
28 82
      "required": [
29 83
        "valId"
30 84
      ],
31 85
      "properties": {
32 86
        "valId": {
33 87
          "type": "string",
88 +
          "maxLength": 128,
34 89
          "description": "Val Town val UUID"
35 90
        }
36 91
      }
92 +
    },
93 +
    "cachePolicy": {
94 +
      "type": "object",
95 +
      "properties": {
96 +
        "life": {
97 +
          "type": "string",
98 +
          "maxLength": 32,
99 +
          "description": "How frequently the underlying data changes",
100 +
          "knownValues": [
101 +
            "seconds",
102 +
            "minutes",
103 +
            "hours",
104 +
            "max"
105 +
          ]
106 +
        },
107 +
        "tags": {
108 +
          "type": "array",
109 +
          "items": {
110 +
            "refs": [
111 +
              "#tagRecord",
112 +
              "#tagLink"
113 +
            ],
114 +
            "type": "union"
115 +
          },
116 +
          "description": "Data dependencies for cache invalidation"
117 +
        }
118 +
      },
119 +
      "description": "Cache lifetime and invalidation tags returned by XRPC components."
37 120
    }
38 121
  },
39 122
  "$type": "com.atproto.lexicon.schema",
40 123
  "lexicon": 1
41 124
}

Compare Other Versions

Lexicon Garden

@