members.invite
Invite a new tenant member (staff, reception, housekeeping, or maintenance). Provide either email OR phone (at least one required). Creates the user row; magic-link delivery is wired in later phases. Mutating action — requires _confirm: true.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | yes | |
email | string | no | |
phone | string | no | |
role | enum | yes | One of: staff, reception, housekeeping, maintenance |
locale | string | no | Default: "de" |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
role | enum | yes | One of: staff, reception, housekeeping, maintenance |
members.list
List all tenant members (owner, staff, housekeeping, maintenance) with their contact and locale. Used as context for task-assignment and scheduling. Read-only.
Input parameters
Returns object.
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
members | array of object | yes | |
members.id | string | yes | |
members.name | string · nullable | yes | |
members.email | string · nullable | yes | |
members.phone | string · nullable | yes | |
members.role | enum | yes | One of: owner, staff, reception, housekeeping, maintenance |
members.locale | string | yes |
members.update
Update a tenant member's role and/or module permissions. `role` optional (owner/staff/reception/housekeeping/maintenance). `modulePermissions`: an array of module keys = explicit override (invalid keys dropped); null = reset to the role default; omit while setting a role = reset to that role's default. Blocks demoting the last owner of a tenant (last_owner). Mutating — requires _confirm: true.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
userId | string | yes | |
role | enum | no | One of: owner, staff, reception, housekeeping, maintenance |
modulePermissions | array of string · nullable | no |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
role | enum | yes | One of: owner, staff, reception, housekeeping, maintenance |
modulePermissions | array of string · nullable | yes |