Function inviteToSpace

Invite a user (by provider handle) to a space at a role. The host resolves the handle, so the app never sees other users' uids except the one it invited. Pull-based (FILE_SHARING_SPEC §6.4): this writes an INVITATION, not membership — the recipient must acceptInvite. Re-inviting an already-invited/member user is idempotent.

Capability: spaces:admin. Catalog name: spaces:invite.

Error & { code: InviteToSpaceError } on host refusal.

  • Parameters

    • spaceId: string
    • login: string
    • role: Role

    Returns Promise<void>