Operazioni sugli accessi
2 operazioni di nome access.*. Ognuna si esegue in un batch con apply_ops, dry_run_ops, la CLI o l’admin.
| Operation | What it does | Permission | Confirmation |
|---|---|---|---|
| access.read | Read your own design-system levels on this site: the level of each area (palette, components, variants, themes, ...) and the role overrides that set them. | site.read | none |
| access.update | Set the design-system level of the editor or client role on this site in one area ({ role, area, level }, a level the area offers): what people of that role may view or change in the palette, the components, the variants, the themes and the other areas. | site.admin | none |
access.read
Read your own design-system levels on this site: the level of each area (palette, components, variants, themes, ...) and the role overrides that set them. A designSystem.* operation is refused unless your level in its area allows it.
Esempio di input
{}Input
L’input è un record: vedi lo schema qui sotto.
{
"type": "object",
"properties": {},
"additionalProperties": false
}Output
| Field | Type | Required | Notes |
|---|---|---|---|
| role | string | yes | One of "admin", "editor", "viewer", "client", "content". |
| levels | record of string | yes | |
| overrides | array of object | yes | |
| overrides[].role | string | yes | One of "editor", "client". |
| overrides[].area | string | yes | One of "palette", "semantic-colours", "font-families", "type-presets", "space", "radius", "borders", "shadow", "motion", "grid", "assets", "components", "variants", "themes", "import-export", "reset". |
| overrides[].level | string | yes | One of "none", "view", "edit", "pick", "switch-default", "export", "own-areas". |
Provala
yarn splash access.read '{}' --dry-runaccess.update
Set the design-system level of the editor or client role on this site in one area ({ role, area, level }, a level the area offers): what people of that role may view or change in the palette, the components, the variants, the themes and the other areas. Undo restores the levels.
Esempio di input
{
"role": "editor",
"area": "palette",
"level": "view"
}Input
| Field | Type | Required | Notes |
|---|---|---|---|
| role | string | yes | One of "editor", "client". |
| area | string | yes | One of "palette", "semantic-colours", "font-families", "type-presets", "space", "radius", "borders", "shadow", "motion", "grid", "assets", "components", "variants", "themes", "import-export", "reset". |
| level | string | yes | One of "none", "view", "edit", "pick", "switch-default", "export", "own-areas". |
Output
| Field | Type | Required | Notes |
|---|---|---|---|
| role | string | yes | One of "admin", "editor", "viewer", "client", "content". |
| levels | record of string | yes | |
| overrides | array of object | yes | |
| overrides[].role | string | yes | One of "editor", "client". |
| overrides[].area | string | yes | One of "palette", "semantic-colours", "font-families", "type-presets", "space", "radius", "borders", "shadow", "motion", "grid", "assets", "components", "variants", "themes", "import-export", "reset". |
| overrides[].level | string | yes | One of "none", "view", "edit", "pick", "switch-default", "export", "own-areas". |
Provala
yarn splash access.update '{"role":"editor","area":"palette","level":"view"}' --dry-runGenerato dal registro delle operazioni e dal catalogo degli strumenti MCP (sorgente d1321a7fbb50a3a7).
Qualcosa non va in questa pagina? Scrivi a docs@librettocms.com.