Skip to content
Interfacecorev0.12.0

PermissionAssertion

The check assertPermissions runs.

interface PermissionAssertion

inverse

Refuse when the subject holds a scope bit.

inverse?: boolean

notice

Your Notice class, thrown in place of the default refusal. seedcord constructs it with the missing names, or the held ones under inverse.

permissions

The effective permission bitfield the subject holds, computed by the caller.

permissions: bigint;

subject

Mention string for who is checked, used as the refusal's subject. Null addresses the caller.

subject: string | null;