Themes
A theme installed on this shop.
ID!
No description.
version
Section titled “version”Version!
No description.
themeHandle
Section titled “themeHandle”String!
The theme’s own id from its manifest — aurora. Stable across upgrades.
String!
No description.
publisher
Section titled “publisher”String!
The publisher’s handle.
themeVersion
Section titled “themeVersion”String!
The installed build.
availableVersion
Section titled “availableVersion”String
A newer build, when one exists: the newest still installed. Merchants upgrade
explicitly with themeUpgrade; we never do. Null on a hub theme.
source
Section titled “source”ThemeSource!
Where it came from.
surface
Section titled “surface”ThemeSurface!
What it draws: the shop’s store, or the shop’s page on kaladan.shop.
A shop has one published theme per surface. The hub’s is the platform’s own theme, installed on every shop; a merchant arranges and fills it and can’t install another.
isPublished
Section titled “isPublished”Boolean!
Whether this is the theme its surface is serving.
One published theme per surface, so per shop at most two: its store’s and its page’s. The rest are drafts, previews, and the previous one kept for a rollback.
storefrontApiVersion
Section titled “storefrontApiVersion”String
The dated Storefront API version this build queries, from its manifest.
When that version retires, the theme stops rendering. Surfaced so an admin can warn a merchant months before rather than on the day. Null on a hub theme, which kaladan.shop draws and which queries nothing itself.
hubApiVersion
Section titled “hubApiVersion”String
The dated Hub API version kaladan.shop reads a hub theme’s page with. Null on a storefront theme.
capabilities
Section titled “capabilities”[String!]!
What the theme says it supports, so a merchant sees the truth before installing.
templates
Section titled “templates”[ThemeTemplate!]!
What the visual builder edits: the templates and sections this theme declares.
Read from the manifest at install, not by running the container, so the builder works even when the theme is scaled to zero.
settings
Section titled “settings”ThemeSettings!
The merchant’s current choices, published and draft.
settingsSchema
Section titled “settingsSchema”JSON!
The theme-wide settings it declares, grouped: its manifest’s settings, in
theme/v1’s SettingGroup shape. What the builder draws the theme-wide panel
from, as a section’s settingsSchema is for a section. Empty when the theme
declares none.
styles
Section titled “styles”JSON!
The named looks it offers: its manifest’s styles, in theme/v1’s shape, each
a set of theme-wide values and starting layouts. The first is what a shop
gets before anybody chooses. Empty when the theme declares none.
egressAllowlist
Section titled “egressAllowlist”[ThemeEgressRule!]!
Hosts this theme’s container may reach, each with the reason it declared.
preview
Section titled “preview”Image
A screenshot for the theme picker.
installedAt
Section titled “installedAt”DateTime!
No description.
publishedAt
Section titled “publishedAt”DateTime
No description.
updatedAt
Section titled “updatedAt”DateTime!
No description.
ThemeAcquirePayload
Section titled “ThemeAcquirePayload”What themeAcquire returns.
acquisition
Section titled “acquisition”ThemeAcquisition
The shop’s acquisition of the theme: taken free, or already owned.
userErrors
Section titled “userErrors”[UserError!]!
No description.
ThemeAppBlock
Section titled “ThemeAppBlock”An app’s block a merchant has placed in a theme section.
Registered here so the platform knows to call the app when rendering — the theme never calls it directly, and the theme’s author need not have heard of the app.
ID!
No description.
appHandle
Section titled “appHandle”String!
The app that supplies it.
blockHandle
Section titled “blockHandle”String!
The block’s handle within that app.
String!
No description.
templateKey
Section titled “templateKey”String!
Which template and section it sits in.
sectionId
Section titled “sectionId”String!
No description.
settings
Section titled “settings”JSON!
No description.
appInstalled
Section titled “appInstalled”Boolean!
Whether the app is still installed.
False leaves the block in place but unrendered, rather than silently deleting a merchant’s layout when they uninstall something.
ThemeAppBlockInput
Section titled “ThemeAppBlockInput”An app block to place in a theme.
appHandle
Section titled “appHandle”String!
No description.
blockHandle
Section titled “blockHandle”String!
No description.
templateKey
Section titled “templateKey”String!
No description.
sectionId
Section titled “sectionId”String!
No description.
settings
Section titled “settings”JSON
No description.
ThemeConnection
Section titled “ThemeConnection”A page of themes.
[ThemeEdge!]!
No description.
[Theme!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int
How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.
ThemeEdge
Section titled “ThemeEdge”One theme, with its cursor.
cursor
Section titled “cursor”String!
No description.
Theme!
No description.
ThemeEgressRule
Section titled “ThemeEgressRule”One host a theme’s container may reach.
String!
No description.
reason
Section titled “reason”String!
Why the theme says it needs it. Reviewed at publish; shown here so a merchant can see.
ThemeInstallInput
Section titled “ThemeInstallInput”A theme to install: one the shop owns.
themeHandle
Section titled “themeHandle”String!
The theme’s handle in the store.
themeVersion
Section titled “themeVersion”String
A specific build. Omit for the newest that is still installed.
publish
Section titled “publish”Boolean
Whether to publish immediately.
Defaults false. Installing and publishing in one step replaces a live storefront with an unconfigured one, which merchants do once and never again.
ThemePayload
Section titled “ThemePayload”What the theme mutations return.
Theme
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
ThemePreviewPayload
Section titled “ThemePreviewPayload”What themePreviewCreate returns.
URL
A link that renders the draft as the storefront would, or, for a hub theme,
as kaladan.shop would: {kaladan.shop}/preview/<token>.
Short-lived and unguessable, so a merchant can send it to somebody for an
opinion without publishing. The theme is told preview: true and must not
emit analytics or fire pixels.
expiresAt
Section titled “expiresAt”DateTime
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
ThemeSection
Section titled “ThemeSection”A section a theme declares, and everything the builder needs to edit it.
A faithful projection of the theme’s sections/*.yaml. The schemas are given as
JSON because their shape is the theme’s rather than ours — re-typing every
setting kind here would mean this API versioning every time the theme contract
gained one.
String!
The section id, from its filename.
String!
No description.
description
Section titled “description”String
No description.
Int
Maximum instances per template. Null for unlimited.
appBlocksEnabled
Section titled “appBlocksEnabled”Boolean!
Whether an app’s block may be dropped inside it.
settingsSchema
Section titled “settingsSchema”JSON!
The settings schema, as declared. Validated against the theme contract at install.
blockSchemas
Section titled “blockSchemas”JSON!
The block types this section accepts, with their own schemas.
presets
Section titled “presets”JSON!
Starting points offered when the section is added.
ThemeSettings
Section titled “ThemeSettings”The merchant’s choices for a theme.
Two documents in use: the builder edits draft, and published is what the
storefront renders. A third, previousPublished, is kept so a rollback is one
operation rather than an undo history.
published
Section titled “published”ThemeSettingsDocument
What the storefront is rendering. Null for a theme that has never been published.
ThemeSettingsDocument!
What the builder is editing.
previousPublished
Section titled “previousPublished”ThemeSettingsDocument
What was published before the current document. Null after a first publish.
hasUnpublishedChanges
Section titled “hasUnpublishedChanges”Boolean!
Whether the draft differs from what is live.
ThemeSettingsDocument
Section titled “ThemeSettingsDocument”One settings document.
documentVersion
Section titled “documentVersion”String!
Opaque, and what the render context carries as settingsVersion.
Half of the theme’s cache key — the other half is the shop id. Changing anything mints a new one.
global
Section titled “global”JSON!
Theme-wide values, keyed by setting id.
String
The style chosen, by handle. Null when nobody has chosen, and then the
theme’s first style applies. The builder records the choice rather than
copying the style’s values in, so a release that improves a style reaches
the shops on it; global holds only what the merchant changed.
templates
Section titled “templates”JSON!
The section arrangement per template, keyed by template.
updatedAt
Section titled “updatedAt”DateTime!
No description.
updatedBy
Section titled “updatedBy”StaffMember
No description.
ThemeSettingsPayload
Section titled “ThemeSettingsPayload”What themeSettingsUpdate returns.
settings
Section titled “settings”ThemeSettings
No description.
unknownSettingKeys
Section titled “unknownSettingKeys”[String!]!
Settings the theme does not declare, named rather than silently dropped.
Usually a builder running against a theme that has since been upgraded. The values are kept — a downgrade would want them back — but they will not render.
userErrors
Section titled “userErrors”[UserError!]!
No description.
ThemeSettingsUpdateInput
Section titled “ThemeSettingsUpdateInput”Changes to a theme’s draft settings.
Both members are deep merges rather than replacements: the builder saves one section at a time, and a whole-document replace would make every save a race between two open browser tabs.
To remove a section, send the template’s section list without it — the list itself is replaced, because order is meaningful and merging an ordered list has no unambiguous meaning.
global
Section titled “global”JSON
Theme-wide values to set, keyed by setting id.
templates
Section titled “templates”JSON
Per-template section arrangements to set, keyed by template.
String
The style to choose, by handle. Omitted, the choice stands. A handle the
theme doesn’t declare is refused, INVALID on this field.
ThemeSource
Section titled “ThemeSource”Where a theme came from.
| Value | Meaning |
|---|---|
STORE | Published to the Kaladan theme store. |
CUSTOM | Built for this merchant and installed privately. |
FIRST_PARTY | One of the themes Kaladan ships, so a new shop is never themeless. |
ThemeSurface
Section titled “ThemeSurface”What a theme draws: theme/v1’s surface, from the manifest.
| Value | Meaning |
|---|---|
STOREFRONT | The shop’s store: a theme the platform runs as a server for it. |
HUB | The shop’s page on kaladan.shop, drawn by kaladan.shop itself. There is one hub theme, the platform’s, and every shop has it. |
ThemeTemplate
Section titled “ThemeTemplate”One route a theme renders, and what may go on it.
String!
index, product, collection. A route type in lower case.
String!
No description.
availableSections
Section titled “availableSections”[ThemeSection!]!
Section ids the builder may offer here.
requiredSectionIds
Section titled “requiredSectionIds”[String!]!
Sections the merchant cannot remove — a product page without its product section.
ThemeUpgradeLoss
Section titled “ThemeUpgradeLoss”One thing the merchant had that an upgraded theme no longer declares.
ThemeUpgradeLossKind!
No description.
String!
Where it is in the settings document, as a dotted path.
template
Section titled “template”String
The template it was on, by key. Null for a theme-wide setting and the style.
sectionId
Section titled “sectionId”String
The placed section it was in, or is: its id in the document, and its type.
sectionType
Section titled “sectionType”String
No description.
blockId
Section titled “blockId”String
The block it was in, or is.
blockType
Section titled “blockType”String
No description.
settingKey
Section titled “settingKey”String
The setting, by id, when what was lost is one value.
ThemeUpgradeLossKind
Section titled “ThemeUpgradeLossKind”What kind of thing an upgrade could not carry over.
| Value | Meaning |
|---|---|
SETTING | A value whose setting the new build no longer declares. |
SECTION | A placed section whose type the new build no longer offers there. |
BLOCK | A block whose type its section no longer declares. |
TEMPLATE | A whole template’s arrangement, for a page the new build no longer has. |
STYLE | The chosen style, which the new build no longer declares; its first applies. |
ThemeUpgradePayload
Section titled “ThemeUpgradePayload”What themeUpgrade returns.
Theme
The upgraded theme: the one asked about, or, when that one is live, the new unpublished copy beside it.
upgradedFromId
Section titled “upgradedFromId”ID
Set when theme is a new, unpublished copy because the theme asked about is
the live one: its id. The live theme is untouched, and publishing the copy is
the merchant’s say.
migrationsApplied
Section titled “migrationsApplied”[String!]!
What the manifest’s declared migrations did to the settings document.
A rename that was not declared silently discards a merchant’s value, so what was declared is reported back and the pre-upgrade document is kept.
droppedSettingKeys
Section titled “droppedSettingKeys”[String!]!
The paths of everything in notCarriedOver, in its order: global.<key>,
templates.<template>.sections.<id>, and so on into settings and blocks.
notCarriedOver
Section titled “notCarriedOver”[ThemeUpgradeLoss!]!
The carry-over report: everything the merchant had that the new build no longer declares, so it no longer renders. Kept in the document, never removed — a later build, or a downgrade, may want it back — and named here so the merchant can put it back by hand. Empty when everything carried over.
userErrors
Section titled “userErrors”[UserError!]!
No description.