fyi.opensocial.template
A template for a tab for a group's site, published by whoever made it, as it's listed: its name, what it's for, its icon, and its latest version, a fyi.opensocial.templateVersion. A site names it by URI; an agent installs it as a skill. Keyed by the template's name.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | opensocial.fyi |
| Indexed |
Showing version bafyreiahmmalrz47xfn5zzxmerciuw6girogqjhax7624h3fhjbsnahwfm. Show the latest
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"aboutNew": {
"description": "",
"properties": {
"in": {
"description": "The space's type the site makes with the tab.",
"format": "nsid",
"type": "string"
},
"label": {
"maxGraphemes": 60,
"maxLength": 300,
"type": "string"
}
},
"required": [
"label",
"in"
],
"type": "object"
},
"entry": {
"description": "A tab, as the template suggests it, without the template itself.",
"properties": {
"accepts": {
"description": "Drafts its tabs take that only its page makes into what it keeps.",
"items": {
"ref": "fyi.opensocial.site#accept",
"type": "ref"
},
"maxLength": 10,
"type": "array"
},
"appviews": {
"description": "The app servers it reads for the viewer, by the start of their methods' names. Bluesky's, for app.bsky, needs no naming.",
"items": {
"ref": "fyi.opensocial.site#appview",
"type": "ref"
},
"maxLength": 10,
"type": "array"
},
"calls": {
"description": "The methods it may call for the viewer: the host's, and an app server's, like Bluesky's.",
"items": {
"format": "nsid",
"type": "string"
},
"maxLength": 50,
"type": "array"
},
"labels": {
"description": "Its words for what it lets people do, by record kind or method, to follow 'Lets people': 'post events'.",
"items": {
"ref": "#label",
"type": "ref"
},
"type": "array"
},
"outside": {
"description": "Whether a tab of it can have a public page, and how it's made.",
"ref": "#outside",
"type": "ref"
},
"reads": {
"description": "How what its tabs keep reads, where only its own method knows.",
"items": {
"ref": "fyi.opensocial.site#reads",
"type": "ref"
},
"maxLength": 10,
"type": "array"
},
"records": {
"description": "Every kind of record it reads or writes, and where: nothing else is answered or done.",
"items": {
"ref": "fyi.opensocial.template#recordUse",
"type": "ref"
},
"maxLength": 60,
"type": "array"
},
"section": {
"description": "Where it's offered, adding a tab: talking and writing, planning, about the group, from elsewhere, or running the group (only in the group's site); hidden, not offered.",
"knownValues": [
"talk",
"plan",
"about",
"elsewhere",
"run",
"hidden"
],
"maxLength": 32,
"type": "string"
},
"settings": {
"description": "What each tab made from it is asked, in its settings and when it's added: fields the site draws, whose answers its page reads as os.settings().",
"items": {
"ref": "#setting",
"type": "ref"
},
"maxLength": 12,
"type": "array"
},
"slug": {
"maxLength": 64,
"type": "string"
},
"summary": {
"description": "One short line on what a tab of it shows, for choosing it.",
"maxGraphemes": 100,
"maxLength": 1000,
"type": "string"
},
"title": {
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"worksWith": {
"description": "The app or standard whose records it shows and writes, said where it's offered: Bluesky, standard.site. Said only when its address is the authority of a record kind it reads or writes, or a method it calls: bsky.app for app.bsky.*.",
"ref": "#worksWith",
"type": "ref"
}
},
"required": [
"slug"
],
"type": "object"
},
"label": {
"properties": {
"action": {
"description": "For that write alone.",
"knownValues": [
"create",
"update",
"delete"
],
"maxLength": 16,
"type": "string"
},
"noun": {
"description": "What the records are called, shown: \"RSVPs\". Empty for records it reads only to show others, like labels.",
"maxGraphemes": 40,
"maxLength": 300,
"type": "string"
},
"nsid": {
"description": "A record kind it writes, or a method it calls.",
"format": "nsid",
"type": "string"
},
"text": {
"description": "What writing it, or calling it, lets people do: \"post events\".",
"maxGraphemes": 80,
"maxLength": 300,
"type": "string"
}
},
"required": [
"nsid"
],
"type": "object"
},
"main": {
"description": "A template for a tab for a group's site, published by whoever made it, as it's listed: its name, what it's for, its icon, and its latest version, a fyi.opensocial.templateVersion. A site names it by URI; an agent installs it as a skill. Keyed by the template's name.",
"key": "any",
"record": {
"properties": {
"createdAt": {
"format": "datetime",
"type": "string"
},
"description": {
"description": "One line saying what it is and when to use it; what an agent matches a request against.",
"maxGraphemes": 300,
"maxLength": 3000,
"type": "string"
},
"icon": {
"description": "Its icon, as a square SVG, for choosing it: what's drawn in currentColor takes the colour of the text around it; a logo keeps its own colours. Shown as an image, so nothing in it runs.",
"maxLength": 20000,
"type": "string"
},
"latest": {
"description": "Its latest version: a fyi.opensocial.templateVersion in the same repo. A tab that doesn't name a version of its own is drawn from this one.",
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"listed": {
"description": "Whoever made it asks for it to be listed where people look for things to add to their group. A host lists it only while groups on it keep it, every version it has is scanned with nothing found, and nothing labels it hidden. Not listed, unless it says so.",
"type": "boolean"
},
"name": {
"description": "What a site and an agent call it: lowercase letters, digits and dashes. The same as the record key.",
"maxLength": 64,
"type": "string"
},
"sharedFrom": {
"description": "For one shared from a group's tab, within the group or with everyone: the namespace of the tab it was shared from. Sharing that tab again to the same place puts out a new version of this one.",
"maxLength": 13,
"type": "string"
},
"takenBack": {
"description": "Versions whoever made them took back, by CID: no tab is brought onto one, and a tab on one goes back to the last version before it that wasn't.",
"items": {
"format": "cid",
"maxLength": 128,
"type": "string"
},
"maxLength": 100,
"type": "array"
},
"updatedAt": {
"description": "When its latest version came out.",
"format": "datetime",
"type": "string"
}
},
"required": [
"name",
"description",
"latest",
"createdAt"
],
"type": "object"
},
"type": "record"
},
"outside": {
"description": "Its tabs can have a public page: its version's outside.js builds it on the host, from what's public.",
"properties": {
"path": {
"description": "The address it suggests: \"/blog\".",
"maxLength": 200,
"type": "string"
},
"wellKnown": {
"description": "Names under /.well-known/ its public page also answers, at the page's path: site.standard.publication answers /.well-known/site.standard.publication/blog.",
"items": {
"maxLength": 100,
"type": "string"
},
"maxLength": 10,
"type": "array"
}
},
"type": "object"
},
"recordUse": {
"description": "One kind of record a tab reads or writes, and where. A place is \"group\" (the group's own public repo), \"members\" (its members' public repos; read only, by members), \"everyone\" (anyone's public repo, which the host keeps whole), \"accounts\" (each named account's newest, fetched when asked; read only), \"self\" (the viewer's own public repo), or \"space:<type>\" (the group's spaces of that type, private to whoever each lets in).",
"properties": {
"collection": {
"format": "nsid",
"type": "string"
},
"read": {
"description": "The places it reads this kind from.",
"items": {
"maxLength": 320,
"type": "string"
},
"maxLength": 8,
"type": "array"
},
"write": {
"description": "The places it writes this kind to, and as whom.",
"items": {
"ref": "#writeUse",
"type": "ref"
},
"maxLength": 8,
"type": "array"
}
},
"required": [
"collection"
],
"type": "object"
},
"setting": {
"properties": {
"choices": {
"items": {
"ref": "#settingChoice",
"type": "ref"
},
"maxLength": 20,
"type": "array"
},
"help": {
"maxGraphemes": 160,
"maxLength": 600,
"type": "string"
},
"key": {
"description": "What the page reads it as: os.settings().people.",
"maxLength": 32,
"type": "string"
},
"kind": {
"description": "For a link, the kind of record it's to. For an about, the kind of thing: a space's type, or a record's collection.",
"format": "nsid",
"type": "string"
},
"label": {
"maxGraphemes": 60,
"maxLength": 300,
"type": "string"
},
"new": {
"description": "For an about: a new one, made when the tab's added: a space of this type, for whoever its channel is for.",
"ref": "#aboutNew",
"type": "ref"
},
"none": {
"description": "For an about: what a tab about none of them shows. Without it, a tab of it must be about one.",
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"type": {
"description": "people: some members, or everyone in the tab's channel (the default, which follows it). choice: one of choices, the first unless another is chosen. toggle: off unless turned on. text: a line of words. link: a record anywhere on the network, of kind, given by a link to it; its at:// URI. about: which one of the group's own the tab is for, of kind (a space's type, or a record's collection), kept as the tab's about: what it may read and write follows it, and the tab goes when it does. One at most.",
"knownValues": [
"people",
"choice",
"toggle",
"text",
"link",
"about"
],
"maxLength": 16,
"type": "string"
}
},
"required": [
"key",
"label",
"type"
],
"type": "object"
},
"settingChoice": {
"properties": {
"label": {
"maxGraphemes": 60,
"maxLength": 300,
"type": "string"
},
"value": {
"maxLength": 64,
"type": "string"
}
},
"required": [
"value",
"label"
],
"type": "object"
},
"worksWith": {
"properties": {
"name": {
"maxGraphemes": 40,
"maxLength": 300,
"type": "string"
},
"url": {
"format": "uri",
"type": "string"
}
},
"required": [
"name",
"url"
],
"type": "object"
},
"writeUse": {
"description": "One place a tab writes a kind of record to: as the viewer, into \"self\" or a space; or as the group, into \"group\" or a space — the group's own writes allowed by each space's grants to roles.",
"properties": {
"actions": {
"description": "Only these of making, changing and taking away; all of them, if none.",
"items": {
"knownValues": [
"create",
"update",
"delete"
],
"maxLength": 16,
"type": "string"
},
"maxLength": 3,
"type": "array"
},
"as": {
"default": "viewer",
"knownValues": [
"viewer",
"group"
],
"maxLength": 16,
"type": "string"
},
"by": {
"description": "As the group into \"group\" or the tab's own space: \"readers\" is whoever can see the tab, granted to them there, rather than the roles a space grants it to.",
"knownValues": [
"readers"
],
"maxLength": 16,
"type": "string"
},
"to": {
"description": "A place: \"self\", \"group\", or \"space:<type>\".",
"maxLength": 320,
"type": "string"
}
},
"required": [
"to"
],
"type": "object"
}
},
"id": "fyi.opensocial.template",
"lexicon": 1
}