fyi.opensocial.listTemplates

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

Details · query
Kindquery
Authorityopensocial.fyi
Indexed
cid bafyreify2n56ufgm4svsplripicsnea336nz5m22brhyon6d2qiipmfmma

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The templates shared within the group, each at its latest version: for its members alone.",
      "errors": [
        {
          "name": "Forbidden"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "templates": {
              "items": {
                "ref": "#templateView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "templates"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "group": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "group"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "templateView": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "createdBy": {
          "description": "Who shared its latest version.",
          "format": "did",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "entry": {
          "description": "How a tab uses it, its own kinds of record not yet named for any tab.",
          "ref": "fyi.opensocial.template#entry",
          "type": "ref"
        },
        "name": {
          "description": "Its record key: lowercase letters, digits and dashes.",
          "type": "string"
        },
        "number": {
          "minimum": 1,
          "type": "integer"
        },
        "sharedFrom": {
          "description": "The namespace of the tab it was shared from.",
          "type": "string"
        },
        "updatedAt": {
          "format": "datetime",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        },
        "version": {
          "description": "Its latest version, which a tab made from it names.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "versions": {
          "description": "Every version, newest first.",
          "items": {
            "ref": "#versionView",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "uri",
        "name",
        "description",
        "version",
        "number",
        "entry",
        "createdAt"
      ],
      "type": "object"
    },
    "versionView": {
      "properties": {
        "changes": {
          "description": "What's new in it.",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "createdBy": {
          "description": "Who shared it.",
          "format": "did",
          "type": "string"
        },
        "found": {
          "description": "What this host's scan of it found, on an earlier version: each a sentence for its row on the template's page.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "number": {
          "minimum": 1,
          "type": "integer"
        },
        "takenBack": {
          "description": "Whoever shared it took it back.",
          "type": "boolean"
        },
        "unsafe": {
          "description": "Labelled unsafe, by this host's moderators or a labeler it follows: no tab is brought onto it, and a tab on it goes back to the last version that isn't.",
          "type": "boolean"
        },
        "version": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "version",
        "number",
        "createdAt"
      ],
      "type": "object"
    }
  },
  "id": "fyi.opensocial.listTemplates",
  "lexicon": 1
}