@smartkomm/plexus-cli 0.1.33 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -187,8 +187,8 @@ This table names each group and the rules its `--help` does not carry.
187
187
  | **retention** | Applications and persons past their retention period, erased by hand only (`--confirm --expect <n>`); nothing erases on a schedule — [erase-due-applications](./playbooks/retention/erase-due-applications.md), [erase-due-parties](./playbooks/retention/erase-due-parties.md). |
188
188
  | **test-actions** | The test-mode popover of a test application (scenarios, `auto-fill-files`, `submit-form`, …); `--param` values are JSON like `call`'s — [drive-a-test-application](./playbooks/test-actions/drive-a-test-application.md). |
189
189
  | **tokens** | Minting needs `_platform.apiTokens.manage` or the tenant right `administration.apiTokens.manage` (every `tenant_admin` holds it); list and revoke your own always work. Minting FOR someone needs `_platform.users.manage` and `_platform.apiTokens.manage` — [cli-access-for-tenant-admin](./playbooks/users/cli-access-for-tenant-admin.md). |
190
- | **users** | A school's permission groups and memberships, with the school's token: `users groups`, `users groups delete`, `users set-group`, `users unset-group` (refused while a `wip` or published workflow's assignment rule names the person — replace them first: „Person ersetzen" in the workflow editor, then publish; `--replace-with <configKey>` hands their active applications over and never rewrites a rule). Every other user command is the platform's — `platform users …` below. |
191
- | **tenant-users** | A school's own user administration (*Administration → Nutzer*), reachable with a school's token (`administration.users.manage`): `list`, `show`, `history`, `deactivate` / `archive` (plan with the handover unless `--confirm`; `--successor` takes the open work), `reactivate`, `invite` (plan unless `--confirm`; always mails a one-time sign-in link, `--group` by key needs `administration.permissions.manage` too), `send-login-link`, `send-password-reset`, `notifications list\|set`, `signature request`. A person is named by address or account id, never by name. Separate from `users`, the platform's cross-tenant group (`platform users archive` ends access in every school), because `--tenant` is filled by `default_tenant` and cannot tell „this school" from „everywhere" — [manage-school-users](./playbooks/users/manage-school-users.md). |
190
+ | **users** | A school's permission groups and memberships, with the school's token: `users groups`, `users groups delete`; a membership is given and taken with `tenant-users groups add\|revoke` (`users set-group` / `users unset-group` are retired spellings; removing is refused while a `wip` or published workflow's assignment rule names the person — replace them first: „Person ersetzen" in the workflow editor, then publish; `--replace-with <configKey>` hands their active applications over and never rewrites a rule). Every other user command is the platform's — `platform users …` below. |
191
+ | **tenant-users** | A school's own user administration (*Administration → Nutzer*), reachable with a school's token (`administration.users.manage`): `list`, `show`, `history`, `deactivate` / `archive` (plan with the handover unless `--confirm`; `--successor` takes the open work), `reactivate`, `invite` (plan unless `--confirm`; always mails a one-time sign-in link, `--group` by key needs `administration.permissions.manage` too), `set-key` (the config key rules and config name the person by; plan unless `--confirm`; `invite --key` too — [set-staff-config-key](./playbooks/users/set-staff-config-key.md)), `groups add\|revoke` (by group and unit key, needs `administration.permissions.manage`; `revoke` plans unless `--confirm`; `users set-group` / `users unset-group` are retired spellings), `send-login-link`, `send-password-reset`, `notifications list\|set`, `signature request`. A person is named by address or account id, never by name. Separate from `users`, the platform's cross-tenant group (`platform users archive` ends access in every school), because `--tenant` is filled by `default_tenant` and cannot tell „this school" from „everywhere" — [manage-school-users](./playbooks/users/manage-school-users.md). |
192
192
  | **platform** | Everything only a platform operator may do — see ["Platform vs school commands"](#platform-vs-school-commands): `platform users …` (every account across tenants: `list`, `show`, `grant`, `grant-all`, `revoke` — the `--tenant` only —, `archive` everywhere, `provision`, `create`, `set-password`, `set-email`, `set-platform-admin`, `set-platform-permission`, `doctor`, `relink-auth`, `login-trail`; a password comes only through `--password-stdin` / `--password-file`, `--out <csv>` appends the credential row, see ["Provisioning admins"](#provisioning-admins)), `platform workers list\|logs\|reaper-status\|reap`, `platform notifications list\|show\|retry\|sweeper-status\|self-test` (the delivery monitor), `platform imports trigger-all\|cleanup-orphaned`, `platform persons purge`, `platform signing connection set\|activate\|reseal\|delete` and `platform signing status`, `platform generator input-key …` — [debug-worker-jobs](./playbooks/worker-ops/debug-worker-jobs.md). |
193
193
  | **persons · leads** | Person search; `platform persons purge` is the only hard delete of a person (plan unless `--confirm`) — [purge-deleted-person](./playbooks/persons/purge-deleted-person.md); a tenant's open leads (Interessenten) — [list-leads](./playbooks/leads/list-leads.md). |
194
194
  | **admission** | `admission runs list`; `assignment simulate` evaluates an offer bundle's assignment rule offline — [assignment-rule](./playbooks/offer/assignment-rule.md). |
@@ -214,15 +214,13 @@ the category (`Users (platform operator)`, `Offer (school token)`) and as a
214
214
 
215
215
  | Scope | Who runs it | Where it lives |
216
216
  |---|---|---|
217
- | **platform operator** | a token with a `_platform.*` right; a school's token is refused | `platform …`, or a group that is the operator's as a whole: `feedback`, `demo`, `setup`, `retention`, `jobs`, `audit`, `branding` |
218
- | **school token** | a module permission inside one school — the school's own administrator (`--tenant <slug>`) | every other group: `offer`, `applications`, `config`, `tenant-users`, `users groups\|set-group\|unset-group`, `notifications letters\|chrome`, `org`, `catalog`, `generator` (not `input-key`), `stripe`, `signing list\|start\|show\|void\|resend\|reconcile`, `signing connection show\|test`, … |
217
+ | **platform operator** | a token with a `_platform.*` right; a school's token is refused | `platform …`, or a group that is the operator's as a whole: `feedback`, `demo`, `setup`, `retention`, `jobs`, `audit` |
218
+ | **school token** | a module permission inside one school — the school's own administrator (`--tenant <slug>`) | every other group: `offer`, `applications`, `config`, `branding`, `files`, `tenant-users`, `users groups\|set-group\|unset-group`, `notifications letters\|chrome`, `org`, `catalog`, `generator` (not `input-key`), `stripe`, `signing list\|start\|show\|void\|resend\|reconcile`, `signing connection show\|test`, … |
219
219
  | **own account** | any signed-in token | `whoami`, `tenants`, `tokens …`, `call` (the called function's own gate decides) |
220
220
  | **offline** | no deployment | `functions`, `describe`, `offer validate`, the bundle editors |
221
221
 
222
222
  So the path tells a school administrator whether a command is theirs: nothing
223
- under `platform …` is, and no other group mixes the two — except `files`
224
- (`files list` is the school's; `files put|delete` reach only the platform's
225
- functions — a school adds files through `config apply` or the app). Two
223
+ under `platform …` is, and no other group mixes the two. Two
226
224
  commands have a platform branch behind a flag: `tokens create --for <email>`
227
225
  and `accounts email-changes --user <address>`. `commandScope.test.ts` holds this:
228
226
  it reads the `gate:` of every backend function a command calls, and fails when