← All types

PortalSiteDocument

A site version's source read as typed parts. Part order is the document's.

Fields

The site version this document is the source of.

source

String!Non-null

The site document XML exactly as stored, the canonical source the parts are read from.

layout

StringNullable

Name of the layout that wraps every page, or null for none.

The site's pages, in document order.

The site's own components, in document order; bundled library components are not listed.

The site's server routes under /api, in document order.

The site's MCP tools, in document order.

The site's shared Lua libraries, in document order.

The site's layouts (document shells), in document order.

The site's stylesheets, in document order.

The site's public text assets, in document order.

Referenced by (1)
Exact type SDL
"""
A site version's source read as typed parts. Part order is the document's.
"""
type PortalSiteDocument {
  """The site version this document is the source of."""
  versionId: PortalSiteVersionID!
  """
  The site document XML exactly as stored, the canonical source the parts are read from.
  """
  source: String!
  """Name of the layout that wraps every page, or null for none."""
  layout: String
  """The site's pages, in document order."""
  pages: [PortalSitePage!]!
  """
  The site's own components, in document order; bundled library components are not listed.
  """
  components: [PortalSiteComponent!]!
  """The site's server routes under `/api`, in document order."""
  routes: [PortalSiteRoute!]!
  """The site's MCP tools, in document order."""
  tools: [PortalSiteTool!]!
  """The site's shared Lua libraries, in document order."""
  libraries: [PortalSiteLibrary!]!
  """The site's layouts (document shells), in document order."""
  layouts: [PortalSiteLayout!]!
  """The site's stylesheets, in document order."""
  styles: [PortalSiteStyle!]!
  """The site's public text assets, in document order."""
  assets: [PortalSiteAsset!]!
}