FoyerDevelopers

Generated · Live registry

members tools

3 tools in this domain, generated from the running registry.

All tool domains

members.invite

writesconfirm

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

FieldTypeRequiredNotes
namestringyes
emailstringno
phonestringno
roleenumyesOne of: staff, reception, housekeeping, maintenance
localestringnoDefault: "de"

Output fields

FieldTypeRequiredNotes
idstringyes
roleenumyesOne of: staff, reception, housekeeping, maintenance

members.list

read-only

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

FieldTypeRequiredNotes
membersarray of objectyes
members.idstringyes
members.namestring · nullableyes
members.emailstring · nullableyes
members.phonestring · nullableyes
members.roleenumyesOne of: owner, staff, reception, housekeeping, maintenance
members.localestringyes

members.update

writesconfirm

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

FieldTypeRequiredNotes
userIdstringyes
roleenumnoOne of: owner, staff, reception, housekeeping, maintenance
modulePermissionsarray of string · nullableno

Output fields

FieldTypeRequiredNotes
idstringyes
roleenumyesOne of: owner, staff, reception, housekeeping, maintenance
modulePermissionsarray of string · nullableyes