fyi.opensocial.getPageDraft

The page the caller's assistant left for one of the site's tabs (which needs group.configure), if any, and the caller's assistants connected to the group. Only the caller's own: nobody sees another member's drafts.

Details · query
Kindquery
Authorityopensocial.fyi
Indexed
cid bafyreih5c4sui4w55vawkdapt5fr5kbxwj6deyh3h2umpkn7s4nxeawyee

Checks

Valid
JSONDownload
{
  "$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"
        },
        "records": {
          "description": "Every kind of record the page reads or writes, and where.",
          "items": {
            "ref": "fyi.opensocial.template#recordUse",
            "type": "ref"
          },
          "maxLength": 60,
          "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"
        }
      },
      "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), 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": "The tab's channel.",
            "type": "string"
          },
          "group": {
            "format": "did",
            "type": "string"
          },
          "side": {
            "description": "Which of the tab's pages: the one inside (the default), or the code that builds its public page.",
            "knownValues": [
              "inside",
              "public"
            ],
            "type": "string"
          },
          "tab": {
            "description": "The tab.",
            "type": "string"
          }
        },
        "required": [
          "group",
          "channel",
          "tab"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.getPageDraft",
  "lexicon": 1
}