fyi.opensocial.getPageDraft

lexicons.opensocial.fyi

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "assistant": {
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "usedAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "usedAt"
      ],
      "type": "object"
    },
    "draft": {
      "properties": {
        "by": {
          "description": "The assistant that made it.",
          "type": "string"
        },
        "html": {
          "type": "string"
        },
        "lexicons": {
          "description": "For a tab's page: lexicons of the group's own it brings, which publishing defines.",
          "items": {
            "type": "unknown"
          },
          "type": "array"
        },
        "network": {
          "description": "For a tab's page: the collections it reads from everyone on the network, which publishing it puts on the tab.",
          "items": {
            "format": "nsid",
            "type": "string"
          },
          "maxLength": 20,
          "type": "array"
        },
        "reads": {
          "description": "For a tab's page: the kinds of record it reads from the group's spaces, which publishing puts on the tab.",
          "items": {
            "format": "nsid",
            "type": "string"
          },
          "type": "array"
        },
        "savedAt": {
          "format": "datetime",
          "type": "string"
        },
        "size": {
          "type": "integer"
        },
        "spaces": {
          "description": "For a tab's page: kinds of space it keeps its records in, one of each made for its tab when it's published.",
          "items": {
            "format": "nsid",
            "type": "string"
          },
          "type": "array"
        },
        "title": {
          "description": "For a new page of their own: what the assistant called it.",
          "type": "string"
        },
        "writes": {
          "description": "For a tab's page: the kinds of record it writes for the viewer, which publishing puts on the tab.",
          "items": {
            "format": "nsid",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "html",
        "savedAt",
        "by",
        "size"
      ],
      "type": "object"
    },
    "main": {
      "description": "The page the caller's assistant left for one of the site's tabs (which needs group.configure) or for one of the caller's own pages, if any, and the caller's assistants connected to the group. Only the caller's own: nobody sees another member's drafts.",
      "errors": [
        {
          "name": "Forbidden"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "assistants": {
              "items": {
                "ref": "#assistant",
                "type": "ref"
              },
              "type": "array"
            },
            "draft": {
              "ref": "#draft",
              "type": "ref"
            }
          },
          "required": [
            "assistants"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "channel": {
            "description": "A tab's channel.",
            "type": "string"
          },
          "group": {
            "format": "did",
            "type": "string"
          },
          "tab": {
            "description": "The tab.",
            "type": "string"
          },
          "work": {
            "description": "Instead of a tab, one of the caller's own pages, by its key: profile, one of theirs, or new.",
            "type": "string"
          }
        },
        "required": [
          "group"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.getPageDraft",
  "lexicon": 1
}

Validate Record

Validate a record against fyi.opensocial.getPageDraft

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:2gqnilpksz2e7faj3bwvo6qc
CID
bafyreigiyp5kpvjmouklty5c27rwjbnemqsznl5gggclhm4l4b7cryauw4
Indexed At
2026-10-09 22:06 UTC
AT-URI
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.getPageDraft

Version History (3 versions)

Similar Lexicons

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

  • Drop the page the caller's assistant left for a tab or one of their own pages: once it is published or saved, or not wanted.

  • One of the group's own methods as the page the caller's assistant left for a tab would bring it, before it's published: its body and lexicon from that draft, called as the caller. `output` is what the method returns, as…

Lexicon Garden

@