Operazioni sul catalogo

3 operazioni di nome catalog.*. Ognuna si esegue in un batch con apply_ops, dry_run_ops, la CLI o l’admin.

Aggiornato il
OperationWhat it doesPermissionConfirmation
catalog.readRead the site registry: primitives, sections, design-system and behaviour components with their props, parts, states, slots and content models, and a summary of every insertable preset.site.readnone
catalog.indexList every node type this site can place, one entry each: its id (the node type of tree.commit inserts), kind, label, category, parts, states, slot names, what its children may be (accepts) and where it may sit (parentOneOf).site.readnone
catalog.entryRead one node type's whole registry entry by its id (box, ds.button, sticky-bar): its props schema with each field's help, parts, states, slots and content model.site.readnone

catalog.read

Read the site registry: primitives, sections, design-system and behaviour components with their props, parts, states, slots and content models, and a summary of every insertable preset.

permission: site.readreads onlyclass: read

Esempio di input

{}

Input

L’input è un record: vedi lo schema qui sotto.

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Output

FieldTypeRequiredNotes
themestringyes
entriesarray of objectyes
entries[].idstringyes
entries[].kindstringyesOne of "primitive", "ds", "behaviour", "section".
entries[].labelstringyesAt least 1 character. At most 80 characters.
entries[].keywordsarray of stringnoAt least 1 item. At most 16 items.
entries[].categorystringno
entries[].tagsarray of stringno
entries[].propsSchemaarray of objectyes
entries[].partsarray of stringyes
entries[].statesarray of stringyes
entries[].sceneStatesarray of stringno
entries[].childrenOnOpentrueno
entries[].slotsrecord of objectno
entries[].contentModelobjectyes
entries[].defaultMixinstringno
entries[].usesrecord of stringno
entries[].variantOfstringno
presetsarray of objectyes
presets[].sourcestringyesOne of "theme", "site".
presets[].idstringyes
presets[].kindstringyesOne of "section", "box", "element".
presets[].labelstringyesAt least 1 character. At most 80 characters.
presets[].keywordsarray of stringnoAt least 1 item. At most 16 items.
presets[].categorystringyes
presets[].descriptionstringnoAt most 280 characters.

I campi più annidati sono nello schema di output che risponde discover_operations con outputSchemas: true.

Provala

yarn splash catalog.read '{}' --dry-run

catalog.index

List every node type this site can place, one entry each: its id (the node type of tree.commit inserts), kind, label, category, parts, states, slot names, what its children may be (accepts) and where it may sit (parentOneOf). Read one type's props schema with catalog.entry; list the presets with preset.index.

permission: site.readreads onlyclass: read

Esempio di input

{}

Input

L’input è un record: vedi lo schema qui sotto.

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Output

FieldTypeRequiredNotes
themestringyes
entriesarray of objectyes
entries[].idstringyes
entries[].kindstringyes
entries[].labelstringyes
entries[].categorystringno
entries[].partsarray of stringyes
entries[].statesarray of stringyes
entries[].slotsarray of stringyes
entries[].acceptsarray of stringno
entries[].parentOneOfarray of stringno

Provala

yarn splash catalog.index '{}' --dry-run

catalog.entry

Read one node type's whole registry entry by its id (box, ds.button, sticky-bar): its props schema with each field's help, parts, states, slots and content model. Refused with 404 type_not_found for an id catalog.index does not list. Read embed before placing a map or a third-party video: its loading prop (immediate, onClick, afterConsent) keeps the iframe out of the page, behind a placeholder with a notice, a load button and an optional link (notice, loadLabel, allowLabel, linkUrl, linkLabel), until the visitor clicks or grants the external media consent.

permission: site.readreads onlyclass: read

Esempio di input

{
  "type": "ds.button"
}

Input

FieldTypeRequiredNotes
typestringyesAt least 1 character.

Output

FieldTypeRequiredNotes
idstringyes
kindstringyesOne of "primitive", "ds", "behaviour", "section".
labelstringyesAt least 1 character. At most 80 characters.
keywordsarray of stringnoAt least 1 item. At most 16 items.
categorystringno
tagsarray of stringno
propsSchemaarray of objectyes
propsSchema[].idstringyes
propsSchema[].typestringyesOne of "text", "richtext-single", "richtext-inline", "richtext-block", "select", "toggle", "number", "range", "url", "media", "date", "icon", "breakpoint", "menu", "form", "repeater", "object", "table".
propsSchema[].groupstringyesOne of "content", "behaviour".
propsSchema[].labelstringyesAt least 1 character. At most 80 characters.
propsSchema[].defaultany JSONno
propsSchema[].valuesarray of any JSONnoAt least 1 item.
propsSchema[].requiredbooleanno
propsSchema[].starterstringnoAt least 1 character. At most 80 characters.
propsSchema[].helpstringnoAt least 1 character. At most 240 characters.
propsSchema[].advancedbooleanno
propsSchema[].translatablefalseno
propsSchema[].picturefalseno
propsSchema[].formatstringnoOne of "css-name", "css-easing".
propsSchema[].fieldsarray of objectno
propsSchema[].minnumberno
propsSchema[].maxnumberno
partsarray of stringyes
statesarray of stringyes
sceneStatesarray of stringno
childrenOnOpentrueno
slotsrecord of objectno
contentModelobjectyes
contentModel.childrenobjectno
contentModel.parentobjectno
defaultMixinstringno
usesrecord of stringno
variantOfstringno

I campi più annidati sono nello schema di output che risponde discover_operations con outputSchemas: true.

Provala

yarn splash catalog.entry '{"type":"ds.button"}' --dry-run

Generato dal registro delle operazioni e dal catalogo degli strumenti MCP (sorgente 205667fbd6195669).

Qualcosa non va in questa pagina? Scrivi a docs@librettocms.com.

Guida di Libretto

Colophon. Questa guida è un sito Libretto: 70 pagine in due lingue, 21 pagine della guida importate da Markdown e 42 pagine di riferimento generate dal registro delle operazioni. Composta in Softcore, il codice in IBM Plex Mono. La sua struttura:

/it/ Guida di Libretto /it/start Per iniziare /it/start/request-access Richiedere l'accesso /it/start/workspace Il tuo spazio di lavoro /it/start/first-site Il tuo primo sito /it/start/invite-a-client Invitare un cliente /it/start/connect-claude Connettere Claude a Libretto /it/build Costruire /it/build/first-page Costruire una pagina /it/build/layers-and-canvas Livelli e canvas /it/build/site-components Componenti del sito /it/design-system Design system /it/design-system/tokens Colori, spazi e temi /it/design-system/components Componenti e varianti /it/design-system/fonts Tipografia e font /it/motion Movimento /it/motion/scenes Scene e ricette /it/motion/image-sequences Sequenze di immagini /it/motion/reduced-motion Movimento ridotto /it/publish Pubblicazione /it/publish/languages Le lingue del sito /it/publish/versions Pubblicazione e versioni /it/publish/members-and-forms Iscritti e moduli /it/publish/domains Domini /it/publish/redirects Reindirizzamenti /it/handover Consegnare un sito al cliente /it/glossary Glossario /it/agents Agenti e API /it/agents/mcp Server MCP /it/agents/cli CLI /it/agents/batches Batch /it/agents/errors Errori e segnalazioni /it/agents/operations Operazioni /it/search Cerca