fyi.opensocial.getTemplateUse

lexicons.opensocial.fyi

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "barView": {
      "properties": {
        "days": {
          "description": "For how many days.",
          "minimum": 0,
          "type": "integer"
        },
        "groups": {
          "description": "How many groups keep it.",
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "groups",
        "days"
      ],
      "type": "object"
    },
    "main": {
      "description": "How groups on this host use a template shared with everyone, for whoever made it: counts, never which groups, and never what anyone wrote in a tab of it, which stays in each group. Groups on other hosts can't be seen. For a person's template, them; for a group's, whoever may publish for it.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "Forbidden"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "bar": {
              "description": "What it takes to be listed here.",
              "ref": "#barView",
              "type": "ref"
            },
            "keptAWhile": {
              "description": "Of those, the groups that have had it for as long as the bar asks.",
              "minimum": 0,
              "type": "integer"
            },
            "keptBy": {
              "description": "Groups with a tab of it now, of any version.",
              "minimum": 0,
              "type": "integer"
            },
            "notNow": {
              "description": "Versions groups undid, and how many groups for each.",
              "items": {
                "ref": "#notNowView",
                "type": "ref"
              },
              "type": "array"
            },
            "tookOff": {
              "description": "Groups that removed a tab of it in the last 30 days and have none now.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "keptBy",
            "keptAWhile",
            "tookOff",
            "notNow",
            "bar"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "uri": {
            "description": "The template, its fyi.opensocial.template.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "notNowView": {
      "properties": {
        "groups": {
          "minimum": 1,
          "type": "integer"
        },
        "number": {
          "minimum": 1,
          "type": "integer"
        },
        "version": {
          "format": "cid",
          "type": "string"
        }
      },
      "required": [
        "version",
        "groups"
      ],
      "type": "object"
    }
  },
  "id": "fyi.opensocial.getTemplateUse",
  "lexicon": 1
}

Validate Record

Validate a record against fyi.opensocial.getTemplateUse

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:2gqnilpksz2e7faj3bwvo6qc
CID
bafyreidhoydqa6iuhwsgvfk5vauntokujslb4ulkty7dm3howyeirevtai
Indexed At
2026-10-17 02:20 UTC
AT-URI
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.getTemplateUse

Similar Lexicons

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

  • A template shared with everyone, for its own page: what it's called, who made it, what a tab of it does at its latest version, and every version. For anyone; never one shared within a group.

  • The templates shared within the group, each at its latest version: for its members alone.

  • One of the templates shared within the group, for its members alone: its page and how a tab uses it, at the version given, or else its latest.

  • Templates shared with everyone that this host lists, for anyone looking for something to add to their group: each one whoever made it asked to be listed, kept by enough groups on this host for long enough, its latest ve…

  • Where a tab you can see is shared as a template: within the group, with everyone from the group, and with everyone from you; each with its versions, and whether you may take one back.

Lexicon Garden

@